name: create-skill description: Author and maintain agent skills with valid frontmatter, correct placement, and global-memory integration. Use when asked to create, update, or document a skill workflow.
Purpose
Create high-quality agent skills that are discoverable, accurate, and maintainable.
Canonical references
Before writing or changing a skill, verify format and behavior from official docs:
- https://opencode.ai/docs/skills/
- Use existing skills in
~/.agents/skills/*/SKILL.mdas style references.
Do not invent frontmatter fields or naming rules.
Required structure
Each skill must be:
- One directory per skill name.
- A
SKILL.mdfile in that directory. - YAML frontmatter with:
name(required)description(required)
Name constraints:
- Lowercase alphanumeric and hyphen only.
- 1 to 64 characters.
- Must match the containing directory name.
Description constraints:
- 1 to 1024 characters.
- Clearly state what the skill does and when to use it.
Authoring workflow
- Identify target location:
- Universal skills (shared across all coding agents):
~/.local/share/chezmoi/skills/(outside chezmoi state; distributed viavercel-labs/skillsCLI per.agents/skills/update-skills/SKILL.md) - Tool-specific skills (e.g. OpenCode-only):
~/.local/share/chezmoi/home/dot_config/<tool>/skills/
- Universal skills (shared across all coding agents):
- Create skill directory and
SKILL.md. - Write concise instructions with concrete command patterns and guardrails.
- Include a self-improvement loop section so the skill is updated when better steps are found.
- If the skill introduces rules that belong in global memory, update
~/.local/share/chezmoi/home/dot_agents/AGENTS.md. - Verify deployed files after
chezmoi apply.
Content quality checklist
- Use imperative, action-oriented steps.
- Keep instructions specific to operational behavior, not generic advice.
- Include remediation branches for expected failure modes.
- Keep terminology consistent across sections.
- Avoid unnecessary verbosity, keep the skill easy to scan.
Guardrails
- For AGENTS.md edits, load and follow the
memoryskill first. - Do not edit deployed files directly, update chezmoi source and apply.
- Do not remove existing memory rules unless explicitly requested.
Self-improvement loop
After each skill-authoring task, capture any improvements in structure, validation, or memory-integration steps by updating this file: skills/create-skill/SKILL.md at the chezmoi repo root.