Skip to main content
agentscope-extensions-skill-mysql-repository stores skills in MySQL 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 MySQL 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

Schema

When createIfNotExist=true, the following tables are created:
  • 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.

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_skills ADD COLUMN metadata_json LONGTEXT NULL; yourself.

Custom database / table names

CRUD

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