Skip to content
Back to skills

Docs

ASecurity

The checklist for bringing a skill, hook or script from a working project into this repository. Do the steps in order; the scrub check and the validator at the end catch most of what gets forgotten. 1. **Pick the plugin group** by purpose: `session-discipline` (starting and closing sessions), `verification` (proving work is correct), `agent-orchestration` (working with subagents), `guards` (hooks that block mistakes, and safety checks), `planning` (from idea to sliced work). The skill goes in...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgobashnodegit

Works with

  • claude code
  • terminal
  • cli

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add paureis/pau-skills --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/paureis-docs/badge)](https://www.skillsdirectory.com/skills/paureis-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Adding a skill

The checklist for bringing a skill, hook or script from a working project into this repository. Do the steps in
order; the scrub check and the validator at the end catch most of what gets forgotten.

1. **Pick the plugin group** by purpose: `session-discipline` (starting and closing sessions), `verification`
   (proving work is correct), `agent-orchestration` (working with subagents), `guards` (hooks that block mistakes,
   and safety checks), `planning` (from idea to sliced work). The skill goes in `skills/<plugin>/<skill-name>/` and
   a hook script in `hooks/<plugin>/`. If none fits, a new group needs a `skills/<group>/` folder and an entry
   (name, description, version, keywords) in `.claude-plugin/marketplace.json`; `scripts/build-marketplace.mjs` fills
   in the rest.

2. **Scaffold it**: `node scripts/new-skill.mjs <plugin> <skill-name>`. This creates the `SKILL.md` and the ORIGINS
   stub `docs/origins/<plugin>/<skill-name>.md`, adds a line linking the stub to the plugin's list in the
   `docs/ORIGINS.md` index, and adds a bullet to the plugin's list in `docs/REFERENCE.md`. Every placeholder is marked
   `TODO(new-skill)`, and the scrub check fails until none is left. The script refuses a name that already exists in any plugin.
   A skill loads on its own (it is model-invoked) unless it is typed only. Make it typed only when the user always
   starts it on purpose and no other skill starts it: scaffold it with `--typed-only`, which writes
   `disable-model-invocation: true` after the description, and add `<plugin>/<skill>` to `TYPED_ONLY` in
   `tests/typed-only-list.mjs`, the only place the list is decided. Name it too in the typed paragraph of the README
   ("What loads on its own") and under "Skills you type" in `which-skill`; `tests/typed-only.test.mjs` checks both.
   No request in words, no agent and no other skill can start a typed-only skill. A typed-only skill adds no context
   load (its description shows only in the `/` menu) but adds cognitive load (the user has to remember it exists and
   when to type it). Write its description as one sentence on what the skill does, at most 160 characters, with no
   "Use when" (or whenever, before, for, after) opener and no quoted phrase; it does not count in the total. A
   model-invoked skill's description is context load: it is in every session's context, used or not, so write it as
   a short trigger list: one sentence on what the skill does, then "Use when" with the phrases a person would
   actually say, and, where another skill could be picked for the same words, what makes this one different. At most
   400 characters, all model-invoked descriptions together at most 14,000, and exactly one "Use when" (or whenever,
   before, for, after) opener. For both kinds: no XML-like tag such as `<word>`, and no other skill's name in
   backticks. Leave out what the body already says. Write it as one double-quoted line with no backslash or double quote inside, in printable
   ASCII only (no curly quote, no accented letter, nothing outside the space to the tilde), with no backtick. On a
   skill in the confirm list, no quoted phrase holds a question mark or has one right after it: write a question as a
   situation. `tests/context-budget.test.mjs` checks the lengths and `tests/description-rules.test.mjs` the four rules.
   The confirm list is only for skills that can start on their own, so a typed-only skill is never on it. If a
   model-invoked skill launches subagents or headless runs, commits, pushes or installs with no other check, or
   changes how the whole session works, and nothing in it already stops for the user's yes before that cost, add it
   to `CONFIRM_LIST` in `tests/confirm-list.mjs` and to the lists in the README ("What loads on its own") and
   `which-skill`, and paste this paragraph into its `SKILL.md`, word for word, near the top (or at the start of the
   step that costs, when only one step does):

   ```
   If you started this skill on your own, without the user typing its name or asking for what it does, first say in
   one or two lines what it will do and what it will cost, and wait for a yes. A remark or a question that only
   matches its description is not asking for it. If the user asked for it, or the brief you are working from does,
   go ahead.
   ```

   A skill may start or offer a model-invoked skill: a mention says "use `<name>` if it is installed" for a step
   inside the work the user asked for, and "offer to run `<name>` if it is installed" for a next step after this one.
   No skill can start a typed-only one, so a mention of one says what the user can type (`/<name>`), and only where
   keeping that skill typed only is right. `tests/typed-only.test.mjs` checks this.

3. **Copy the skill in and generalise it.** Bring its `SKILL.md` body and any bundled files across from the project.
   Then:
   - Translate everything into English.
   - Remove product, client and people names, account and project IDs, URLs and machine paths. Replace a project
     specific with configuration (an environment variable or an optional file under `.claude/`), documented in the
     plugin's `skills/<plugin>/README.md`. Do not replace it with a different hard-coded stand-in.
   - Reference bundled files as `${CLAUDE_PLUGIN_ROOT}/skills/<plugin>/<skill>/<file>`, never `~/.claude/...` or an
     absolute path. Every plugin is rooted at the repository, so `${CLAUDE_PLUGIN_ROOT}` is the repository root and
     any file in it can be reached; a test checks that every such path exists. For a file in the skill's own folder,
     `${CLAUDE_SKILL_DIR}/<file>` is better: Claude Code sets it for plugin and standalone installs alike, while
     `${CLAUDE_PLUGIN_ROOT}` is set only for plugins. A skill that reads its bundled files outside the project should
     also allow those reads in its frontmatter, `allowed-tools: Read(/${CLAUDE_SKILL_DIR}/**)` (the leading `/` makes
     the path absolute), so the user does not see a permission prompt for them.
   - Make it stand alone: it must work when it is the only skill installed. If it mentions another skill, say "if
     it is installed" and what to do without it. If it needs another skill's script, copy the script into its folder
     and add the pair to `COPIES` in `tests/standalone.test.mjs`.
   - Keep scripts dependency-free and cross-platform (Node standard library; bash only where bash is the point).
   - A hook script exits 0 on input it does not understand, unless failing closed is the point of the hook.

4. **Record its origin** in the stub `docs/origins/<plugin>/<skill>.md`, and give its line in the `docs/ORIGINS.md`
   index the same classification as the stub's heading:
   - Original or adapted. If you are not sure, diff it against the likely upstream before deciding, and do not
     guess.
   - The problem that led to it, with the names removed.
   - What generalising it changed.
   - For an adapted skill, a "What this version changes" list taken from a real diff against the closest upstream
     version, the upstream license in `NOTICE`, and `license` and `metadata.upstream` lines in its frontmatter.
   - A skill that differs from upstream only by being shorter is not published here. List it in the README under
     "I also use, unmodified".

5. **Fill in the bullet in `docs/REFERENCE.md`**: one line on what it does, with " (adapted)" after the name if it is
   adapted. Add it to the right section under "Problems this fixes" in the README too, and to the `which-skill` router
   (`skills/session-discipline/which-skill/SKILL.md`). Update the skill and hook count badges if they changed.
   For a hook: import `../lib/config.mjs`, call `hookEnabled(<name>, config)` before acting, add a row and an
   options section to `hooks/README.md`, and register it in `hooks/<plugin>/hooks.json` as
   `node "${CLAUDE_PLUGIN_ROOT}/hooks/<plugin>/<script>.mjs"`.

6. **Add or extend tests** for any script with logic, in `tests/*.test.mjs` (`node:test`, no dependencies). Then
   prove the tests can fail: run one mutation through the harness (commit first; the harness refuses a dirty tree):
   `bash skills/verification/mutation-test/mutate.sh <script> node --test tests/<file>.test.mjs < mutation.sed`.

7. **Run the checks** as separate commands, so a failure is not hidden behind the next one:
   ```bash
   npm test
   npm run scrub
   ```

8. **Rebuild the marketplace** if a `hooks.json` or a plugin folder changed: `node scripts/build-marketplace.mjs`
   (the tests fail while `marketplace.json` is out of date). Then **bump the plugin's version** in its entry in
   `.claude-plugin/marketplace.json`, and the `pau-skills` bundle's version too, since it ships the same files. A
   change to a hook also bumps `pau-skills-hooks`, which ships every hook and no skills.
   To list what to bump, run this on your branch (it counts new untracked files and both ends of a move):
   ```bash
   base=$(git merge-base origin/main HEAD) && {
     git diff --name-only --no-renames "$base" -- :/skills :/hooks
     git ls-files --others --exclude-standard --full-name -- :/skills :/hooks
   } | cut -d/ -f1-2 | sort -u
   ```
   Bump the plugin named by each `skills/<plugin>` or `hooks/<plugin>` line, the bundle, and `pau-skills-hooks` for
   any `hooks/` line; `hooks/lib` bumps every plugin that has hooks.
   Users only receive a change when the version changes. Use a minor bump for a new skill and a patch bump for a fix.
   Add a line to `CHANGELOG.md`.

9. **Validate**:
   ```bash
   claude plugin validate . --strict
   ```
   CI runs the same command with Claude Code 2.1.302 on the committed files, on every push to main and every pull
   request.

10. **Commit** with the message from a file (`git commit -F <file>`), then push.

11. **After the merge, ship it to claude.ai.** Skills can also be uploaded to a claude.ai account, which syncs them to
    the terminal, the desktop app and the web. Run `npm run pack-skills -- <name>` on main: it writes
    `dist/<name>.zip` with the folder at the zip root, built from the committed files, and refuses when claude.ai
    would (a name that is not lowercase letters, digits and hyphens, holds "claude" or "anthropic", or differs from
    the folder; an empty description, one over 1,024 characters, or one with an XML-like tag such as `<word>`; over
    30 MB). Without `--out` it first removes old zips from `dist/`, and it warns when HEAD is not on main. Upload the
    zip under Customize, Skills; to replace a skill, open it and upload the new zip. Uploaded skills appear as
    `/anthropic-skills:<name>` in a session started after the upload.

Files in this skill

  • ADDING-A-SKILL.md9.1 KB
  • BACKLOG.md11.3 KB
  • INSTALL.md6.4 KB
  • ORIGINS.md10.9 KB
  • REFERENCE.md13.6 KB
  • RULES.md8.1 KB
  • WORKFLOW.md2.1 KB
  • backlog/context-budget.md2.8 KB
  • backlog/decisions.md16.2 KB
  • backlog/done-2026-10-17-to-19.md7.7 KB
  • backlog/done-2026-10-20-to-25.md15.4 KB
  • backlog/done.md6.2 KB
  • backlog/how-to-run-a-batch.md9.5 KB
  • backlog/kickoff.md7.6 KB
  • backlog/m-existing-skills.md5.8 KB
  • backlog/n-new-skills.md17 KB
  • backlog/p0-groundwork.md9.4 KB
  • backlog/p1-small-tooling.md3.3 KB
  • backlog/q1.md4.4 KB
  • backlog/q10.md7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.