Adding a skill to WongStack means creating it under [`.agents/skills/`](../../.agents/skills/) and wiring it through every surface that installs, versions, and advertises the payload — so [`/wong-sync`](../../.agents/skills/wong-sync/SKILL.md) pulls it into target repos, and the docs and READMEs still match reality. It's a [release](README.md), so it ends with a changelog entry. A skill that stays in WongStack, like [`update-dependencies`](../../.agents/skills/update-dependencies/SKILL.md), d...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Maintaining?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/matthewwong525-maintaining)
# Adding a skill to the payload
Adding a skill to WongStack means creating it under [`.agents/skills/`](../../.agents/skills/) and wiring it through every surface that installs, versions, and advertises the payload — so [`/wong-sync`](../../.agents/skills/wong-sync/SKILL.md) pulls it into target repos, and the docs and READMEs still match reality. It's a [release](README.md), so it ends with a changelog entry.
A skill that stays in WongStack, like [`update-dependencies`](../../.agents/skills/update-dependencies/SKILL.md), does step 1 only. It gets no `payload-files.json` entry, no setup surface names it, and its edits need no changelog entry of their own. The manifest guide lists these skills under [Not copied](../../.agents/skills/wong-sync/references/payload-manifest.md#not-copied); the [link check](../../.agents/rules/payload.md) still resolves their links, headings included, against this repo.
Work through it in order:
1. **Create the skill.** Add `.agents/skills/<name>/SKILL.md` with YAML frontmatter — `name`, a one-line `description` that says what the skill does and when to use it, like the others (the text an invocation is matched against), and `user-invocable: true` — following [`save`](../../.agents/skills/save/SKILL.md) for shape. Add a `references/` folder for supporting material the skill reads (as [`wong-sync`](../../.agents/skills/wong-sync/references/) does) and/or a `scripts/` folder for helpers it runs (as [`save`](../../.agents/skills/save/) does), only if the skill needs them. A script there takes `isMain` and `parseCli` from the shared [`memory/scripts/lib/cli.mjs`](../../.agents/skills/memory/scripts/lib/cli.mjs), never its own copy: skills already import that folder, and a copy drifts. A runbook long enough to displace what the skill *is* belongs in `references/` rather than in `SKILL.md` — see [repo layout](repo-layout.md) for where a payload file physically lives before you edit it. The skills' text is budgeted: [`measure-context.mjs --check`](../../scripts/measure-context.mjs) fails when the instruction total or the session's start-up words grow, so a new skill needs a cut elsewhere, by [the payload rule](../../.agents/rules/payload.md). A skill only a person should start, like [`paste-this-into-your-ai`](../../.agents/skills/paste-this-into-your-ai/SKILL.md), takes `disable-model-invocation: true`: no session loads its description, and its files are counted apart as `on-call`. The Skill tool refuses such a skill too, so never set it on a verb another verb hands off to. A skill that is only a handoff target takes `user-invocable: false` instead: the `/` menu hides it, and the Skill tool still calls it. Your own skill listing still shows such a skill, so only a person can confirm what the `/` menu shows. The generic Codex skill validator refuses `user-invocable`; keep the field, because Claude Code supports it. Keep a `description` at or under 600 characters: it holds triggers, not a manual, and Claude Code cuts `description` plus `when_to_use` at 1,536 characters in its listing, so trigger words past that never match. The vendored `agent-browser` skill is the one exception. Reference repo files by **repo-relative path** — `$(git rev-parse --show-toplevel)/…` — never an absolute path, because the same skill runs from whatever repo installed it.
Write its rules so they last:
- **Cut a rule before you cut words.** A page shortened with every rule kept reads as a tight list of *never*s, and it grows back. Ask of each rule whether it is needed: drop one a script enforces, one another page states, and one with no known cause. A cause is a mistake on record, a person's request, or something that can't be undone; the release that added the rule is not one. A rule that stays goes in [the cheapest place that works](../agent-knowledge-center.md#what-each-surface-owns). Before you cut a sentence, search the tests for it: a test may quote it, as [`schedule-payload.test.mjs`](../../scripts/tests/schedule-payload.test.mjs) quotes the payload manifest, and the cut fails CI.
- **Give a rule its reason**, in a clause: *let the helper build unwatched: it exists so the build does not fill this chat*. A goal with its reason covers the case a bare *never* misses. The long why goes in the wiki.
- **State a permission next to the rule it breaks.** When a skill tells the agent to do what its caution would flag, such as touching a credential or an outside account, say so beside the nearer rule: an agent that generalizes from that rule asks every run.
- **Let a script own what it already decides.** The skill keeps the command and how to read its result; a second copy of the script's logic goes stale.
A guard on what can't be undone (a force push, a deletion, a merge, a sent message, a payment, a credential in a tracked file) stays as it is.
2. **Wire it into the payload inventory.** Add the directory name to `core.skillDirs` in [`payload-files.json`](../../.agents/skills/wong-sync/references/payload-files.json). That machine-readable file is the one source of truth for fresh setup, sync, and payload link checks; its companion [manifest guide](../../.agents/skills/wong-sync/references/payload-manifest.md) owns the rules. The installer copies the whole skill directory, including `references/` and `scripts/`. A target's install record maps upstream names to local names, so setup and sync preserve a target-owned skill with the same name instead of silently replacing it. Update a setup surface only when that surface separately names the skill; do not create a second copy-list.
3. **Cut a minor release** by [the payload rule](../../.agents/rules/payload.md): a new skill is additive, and without a changelog entry existing installs never hear of it.
4. **Update the user-facing surfaces.** Add its operating rule to the `WONG-STACK:BEGIN/END` block in [`AGENTS.md`](../../AGENTS.md) when every installed repo must know it. Link its owning workflow page from the [development hub](../development/README.md). These are what a reader and a freshly installed repo see.
5. **Carry attribution for adapted work.** If the skill adapts external, licensed work, keep the required license material with the skill and record a `license:` field and source metadata in the SKILL frontmatter.
Part of [maintaining WongStack](README.md).