# Global Skills Registry

`skills/<locale>/<skill-name>/` in `https://gitee.com/mdsfe/agent-workflows.git` is the canonical source of truth for reusable MDSFE skills.

## Goals

- Standardize global skill packaging for multiple AI tools and IDEs.
- Keep `.agent`, `.cursor`, and VitePress docs synchronized from the same source.
- Provide a remote registry that `mds-cli` can fetch for listing and installation.

## Structure

```text
skills/
  registry.json
  zh-CN/<skill-name>/SKILL.md
  en-US/<skill-name>/SKILL.md
```

## Sync Targets

Run the sync script after editing canonical skills or after registry metadata changes:

```bash
npm run skills:sync
```

The script will update the bundled CLI snapshot from the remote repository and refresh:

- `<locale>/.agent/skills/*`
- `<locale>/.cursor/skills/*`
- `docs/<locale>/skills/*`

## Registry Contract

`skills/registry.json` is consumed by `mds-cli` for:

- remote `--list` discovery
- single-skill install
- full `--clone` install to supported global skill directories
- explicit dependency expansion during install
- bundled snapshot fallback metadata

Keep registry metadata and directory names aligned.
