Skip to main content
agentscope-extensions-skill-postgresql-repository stores skills in PostgreSQL with full CRUD: edit and save in your admin console / business system, and the Agent picks up changes immediately on the next read.

When to use

  • You operate skills via an admin console and want changes to take effect right away.
  • You already have PostgreSQL infrastructure and don’t want a Git dependency.
  • You want skill storage to share the transactional boundary with your business data.

Add the dependency

Quickstart

Using the Builder

Schema

When createIfNotExist=true, the following tables are created (under the configured schema):
  • agentscope_skills: the skills themselves; name is unique; skill_content stores the full SKILL.md.
  • agentscope_skill_resources: attached resource files (screenshots, templates, …) cascaded by id.
Unlike the MySQL variant, PostgreSQL uses schemas (not databases) as the namespace isolation boundary — the database is selected via the JDBC URL.

Compatibility with legacy tables

  • If an existing table lacks metadata_json, the repository falls back to round-tripping name + description only. It does not auto-ALTER TABLE.
  • To upgrade: run ALTER TABLE "agentscope"."agentscope_skills" ADD COLUMN metadata_json TEXT NULL; yourself.

CRUD

Writes and deletes run in transactions; the resource table’s ON DELETE CASCADE ensures no orphaned resources.

Builder reference