mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-03 12:27:41 +08:00
Skills Management
This directory is the single source of truth for repository skills.
Add a New Skill
- Create a new folder under
.agents/skills/<skill-name>/. - Add a
SKILL.mdfile with:nameanddescriptionin YAML frontmatter- concise workflow instructions in the body
- (Optional) Add
agents/openai.yamlif Codex UI metadata is needed. - If this skill should be shared in the repository, append
<skill-name>to.agents/skills/public-skills.txt.
Naming Rules
- Use lowercase letters, digits, and hyphens only.
- Prefer short, action-oriented names (for example:
gh-create-pr).
Claude Compatibility
For each new public skill, run:
pnpm skills:sync
skills:sync will create/update .claude/skills/<skill-name> as a symlink pointing to ../../.agents/skills/<skill-name>.
Windows Compatibility
This project uses symlinks to synchronize files such as AGENTS.md and skills. Windows developers must enable symlink support:
- Enable Developer Mode (Settings → Update & Security → For developers), or
- Grant
SeCreateSymbolicLinkPrivilegevia Local Security Policy (secpol.msc). - Configure Git to create symlinks:
git config --global core.symlinks true - Re-clone the repository (or run
pnpm skills:sync) after enabling symlink support.
White-list Tracking Rules
The public white-list is defined in .agents/skills/public-skills.txt.
- Skills listed there are synced to both
.agents/skills/.gitignoreand.claude/skills/.gitignore. - Private/local-only skills should stay out of
public-skills.txt. - Use one skill name per line. Comment lines must start with
#and cannot be appended inline.
After updating public-skills.txt, run:
pnpm skills:sync
Then validate:
pnpm skills:check
The sync/check scripts manage and verify:
.agents/skills/.gitignore.claude/skills/.gitignore.claude/skills/<skill-name>is a valid symlink to.agents/skills/<skill-name>