Skip to content

Agent Skills ​

Skills for AI coding assistants, written once and exposed to Claude Code, OpenCode and VS Code Copilot. The slash commands are skills too.

Location ​

SourceInstalled toMethod
config/skills/<name>/~/.claude/skills/<name>/symlink (per skill)
config/skills/<name>/~/.copilot/skills/<name>/symlink (per skill)
config/skills/<name>/SKILL.md¹~/.config/opencode/commands/<name>.mdsymlink
config/agents/AGENTS.md~/.claude/AGENTS.mdsymlink
config/claude/CLAUDE.md~/.claude/CLAUDE.mdsymlink
config/agents/AGENTS.md~/.config/opencode/AGENTS.mdsymlink
config/agents/AGENTS.md~/.copilot/copilot-instructions.mdsymlink

¹ Only for a user-invoked skill.

Each skill folder is symlinked individually — never a skills/ directory itself. Claude Code manages its own synced/ and .trash/ subdirectories inside ~/.claude/skills/, and a directory-level symlink would clobber them.

os/helpers/links.sh also removes the links an earlier version left in ~/.claude/commands/, ~/.config/opencode/commands/ and VS Code's prompts/ folder to the former config/commands/ and config/claude/commands/ directories. Run scripts/symlink.sh after pulling a change that adds, renames or removes a skill.

Which directory each tool reads ​

Tool~/.claude/skills/~/.copilot/skills/
Claude Codeyes (native)no
OpenCodeyes (Claude compat)no
VS Code, Copilot sessionnot documentedyes
VS Code, Claude sessionyesnot documented
VS Code, Local session (retiring)yesyes

Two links per skill therefore cover the three tools. A VS Code Local session reads both directories and lists every skill twice; VS Code is retiring that session type, and its documentation asks for prompt files to become skills (see Migrate Copilot customizations). ~/.agents/skills/ is left out on purpose: OpenCode reads it as well as ~/.claude/skills/ and would list every skill twice. Disable OpenCode's Claude compatibility with OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1.

Invocation ​

Every skill is one of two kinds:

KindReached byFrontmatter
model-invokedthe agent, when the work matchesname, description
user-invokedyou, typing /<name>plus disable-model-invocation: true and the two opencode/* keys
markdown
---
name: next-issue
description: Work the next GitHub issue of the project, verify it and propose a commit.
argument-hint: "[all | N | #number]"
disable-model-invocation: true
metadata:
  opencode/slash: "false"
  opencode/autoinvoke: "false"
---
  • Claude Code and VS Code read disable-model-invocation: the skill leaves the model's reach and stays in the / menu.
  • OpenCode ignores that key. opencode/autoinvoke: "false" keeps the skill out of its model's reach, and /<name> comes from the command file linked to the same SKILL.md; opencode/slash: "false" keeps a version of OpenCode that lists skills as commands from listing it twice.
  • argument-hint is shown in the / menu. $ARGUMENTS is written so the model falls back to the text typed after the command (VS Code does not substitute it).

Run the workflow commands in an edit-capable mode (OpenCode Build, Copilot Agent), not plan or ask.

Writing an interoperable skill ​

A skill is a folder with a SKILL.md whose YAML frontmatter follows the Agent Skills spec:

FieldConstraint
name^[a-z0-9]+(-[a-z0-9]+)*$, 1–64 chars, must match the folder name
description1–1024 chars: what it is, then the cases that should trigger it

Rules to stay portable:

  • No frontmatter key beyond the ones of Invocation: tests/configs.bats fails on any other.
  • No Claude-only placeholders (${CLAUDE_SKILL_DIR}, !command`` injection syntax) — reference bundled files with relative paths (./).
  • A skill reaches another by naming it ("load the git-workflow skill"). Only a model-invoked skill can be reached that way.
  • Keep SKILL.md under ~500 lines; move what only some runs need to a file beside it (git-workflow/rebase.md, tdd/tests.md).

The writing-for-agents skill holds the full method.

Existing skills ​

Model-invoked: the owner's conventions ​

SkillPurpose
commit-typesConventional Commits format and type for every commit message, in English
git-workflowBranch, commit, push and pull request handed over as runnable commands
readmeGenerate or restructure a README.md to the canonical repo architecture
docs-hubEdit docs/ following the kevindebenedetti.github.io hub contract
todo-mdEnglish-only format of a project's TODO.md, used by /next-task
manual-stepsGuided chat through a TODO.md's manual steps, run by /next-task manual
debug-actionFind the cause of a failing GitHub Actions run before changing anything

Model-invoked: engineering ​

Adapted from mattpocock/skills (MIT, notice in config/skills/NOTICE.md), rewritten for these conventions: the owner commits, the wording is tool-neutral, and code-review takes uncommitted work.

SkillPurpose
diagnosing-bugsRed loop first, then minimise, hypothesise, probe, fix behind a regression test
tddOne failing test, then the least code that passes it, at seams agreed first
code-reviewTwo-axis review of a diff (Standards, Spec), uncommitted work included
grillingInterview in rounds of numbered questions, each with a recommended answer
codebase-designVocabulary of deep modules: interface, seam, adapter, depth
domain-modelingSettle terms in GLOSSARY.md, record hard-to-reverse decisions as ADRs
prototypeThrowaway code that answers one design question
researchCheck a claim against primary sources and cite each finding
writing-for-agentsHow to write a skill, an AGENTS.md or any document an agent reads

User-invoked: the commands ​

CommandPurpose
/next-taskWork a project's TODO.md; manual guides you through its manual steps
/next-issueThe same over GitHub issues, picked by label and recorded as comments
/new-issueFile your own requests as issues, one per change, grouped and deduplicated
/auditInspect a whole repository, read-only, and file findings as needs-triage issues
/commitGroup uncommitted changes into Conventional Commits and hand you the commands
/prBring the branch's pull request up to date, or hand the commands that get there
/explainExplain a file, a command or the selection in plain terms

The workflow commands load the engineering skills at fixed steps: /next-task and /next-issue use diagnosing-bugs, grilling, tdd and code-review; /audit uses one per lens.

They also run without being asked:

  • in Claude Code, a SessionStart hook and a UserPromptSubmit hook name the skills that fit the repository and the prompt (see Claude Code);
  • the Claude Code Stop hook asks for docs-hub / readme when code changed but the docs did not;
  • VS Code's Generate commit message button follows the same Conventional Commits rules as commit-types (see VS Code).

Global rules ​

config/agents/AGENTS.md holds the rules that apply in every project: the owner commits and pushes, everything written reads as the owner's own work, secrets stay unread, kubectl is read-only. It is linked to the user-level instruction file of each tool (table above), so the three read the same text on every session. A project's own AGENTS.md / CLAUDE.md adds to it.

Claude Code reads it through an entry file of its own: config/claude/CLAUDE.md, linked to ~/.claude/CLAUDE.md, imports ~/.claude/AGENTS.md and then the files only Claude Code reads (RTK.md). Its imports are home-relative (@~/.claude/<file>.md), since the file is reached through a symlink. A Cowork session of the Claude desktop app skips a ~/.claude/CLAUDE.md that is a symlink.

An existing ~/.claude/CLAUDE.md, ~/.config/opencode/AGENTS.md or ~/.copilot/copilot-instructions.md is copied to <file>.bak.<date> before the link replaces it: move what you want to keep into config/agents/AGENTS.md. Every line of that file is read on every turn, and tests/configs.bats caps it at 60 lines.

Scope boundaries ​

LayerLocationManaged by
Personal (this repo)config/skills/ → ~/.claude/skills/, ~/.copilot/skills/dotfiles symlink
Project<repo>/.claude/skills/each repository
Publishedplugin / registrythe publishing tool

The mattpocock-skills plugin stays enabled in Claude Code for its user-invoked planning flows (triage, to-spec, to-tickets, wayfinder); its copies of the engineering skills above are hidden from the model (see Claude Code).

MCP servers are configured per-tool (see config/vscode/mcp.json) and are out of scope for this sharing mechanism.