Skip to content

Skill Authoring

Stuart Jackson edited this page Nov 25, 2026 · 8 revisions

Skill Authoring

How to write a skill for an augur plugin. This page holds the main points and the rules specific to this marketplace; the official docs hold the detail. Read the linked section before going deeper than this page.

Sources (read 2026-11-22; re-read before relying on a number):

Progressive disclosure

A skill loads in three levels, so only what the task needs costs tokens (OV "How Skills work"):

Level What When it loads Cost
1. Metadata name and description Always, at startup About 100 tokens per skill
2. Body The rest of SKILL.md When the description matches the task Keep under 5k tokens
3. Bundled files references/*.md, scripts, templates Only when the body points Claude at them Nothing until read; a script's output only, never its code

Design every skill around this:

  • The description decides whether the skill is ever used. Level 1 is all Claude sees when choosing.
  • The body is a map, not a manual. Core steps and decisions in SKILL.md; detail in files it names.
  • Reference files MUST link directly from SKILL.md. One level deep: a file that links to another file risks Claude reading it only partially (BP "Avoid deeply nested references").

name and description

Hard limits (BP, OV):

  • name: at most 64 characters; lowercase letters, numbers, and hyphens; MUST NOT contain anthropic or claude. Gerund form is preferred (processing-pdfs); avoid vague names (helper, utils, data).
  • description: non-empty, at most 1,024 characters, no XML tags.

A good description (BP "Writing effective descriptions"):

  • Third person. "Answers questions about…", not "I can help…" or "You can use this to…".
  • Says what it does and when to use it, with the words a user would actually type. "Helps with documents" never triggers reliably.

SKILL.md body

  • Under 500 lines. Split into reference files as it nears that (BP).
  • Claude is already smart. Cut every sentence Claude does not need; explain only what is specific to us (BP "Concise is key").
  • Match freedom to risk. Plain guidance where many approaches work; exact steps where one mistake is costly, such as writes to live data (BP "Set appropriate degrees of freedom").
  • Workflows get a checklist and a check. Number the steps, and for risky work loop "validate, fix, repeat" before moving on (BP "Use workflows", "Implement feedback loops").
  • One default, not a menu. Give one way to do it, plus an escape hatch.
  • One term per thing. Do not alternate "connector", "server", and "integration" for the same thing.
  • No dates or "new as of". Time-sensitive notes go stale; keep them out.

Bundled files

The three patterns (BP "Progressive disclosure patterns"):

  1. Guide plus references. SKILL.md gives the overview and links references/<topic>.md for each deep area.
  2. By domain. One file per domain (for example one per ERP area), so Claude reads only the relevant one.
  3. Conditional detail. The common case inline; "for X, read references/x.md" for the rest.

Rules:

  • Name files for their content (references/pricing-rules.md, not doc2.md). Forward slashes only.
  • A reference file over 100 lines starts with a table of contents.
  • For a script, say whether Claude should run it or read it.
  • ${CLAUDE_SKILL_DIR} (the skill's installed folder) is filled in only in SKILL.md and its allowed-tools, not in reference files. Put a script's runnable path in SKILL.md; a reference file points to it there.
  • allowed-tools: Bash(node ${CLAUDE_SKILL_DIR}/scripts/<name>.ts *) pre-approves that one script while the skill is active (Claude Code only), so it runs without a prompt. The repo skill's cleanup-plan.ts is the example.
  • A script a skill runs is TypeScript under skills/<skill>/scripts/, run with plain node (22.18 or later). If it makes decisions, prove them (Proofs) and say what the skill does when the script cannot run (chat, no Node, bad input): the safe outcome, never a guess.

Rules for augur plugins

These come from where our plugins run (Platform-Support#what-each-surface-loads) and MUST hold for every skill:

  • Chat-safe frontmatter. Only name, description, license, compatibility, metadata, allowed-tools. Any other key (when_to_use, disable-model-invocation, argument-hint, model, paths, …) is a hard error on claude.ai (CC). claude plugin validate does not catch it; review MUST.
  • No local machinery. No reliance on Bash, gh, git, jq, local files, the clipboard, or Chrome: chat has none. !`command` injection does not run on claude.ai (CC). Anything Claude Code-only MUST say so.
    • Exception: workflow skills (augur-build's wiki, repo, code, augur-packages, rules, launcher; simpleapps-work's wip) exist to run git, gh and the project's scripts, or to read and write the project's own files (launcher: one file in the user's bin folder, after a yes). They MAY rely on them when they say what happens on each surface (a table or a short paragraph) and do something useful in chat without them (draft, review). Invoking one of their subcommands is the approval for the writes that subcommand lists; that replaces "ask before every write" below for those writes only.
  • Tools by connector name, not prefix. BP asks for fully qualified tool names (ServerName:tool_name). The raw prefixes differ by surface (mcp__claude_ai_<Connector>__… vs mcp__plugin_<plugin>_<key>__…), so name the connector by its display name and the tool by what it does: "the Augur API connector's discovery tool". Connector names: Plugin-Format#connectors.
  • Do not repeat the connector. Each augur server sends its own instructions (workflow, scoping, write rules). A skill adds what sits around the connector, and MAY restate a safety rule (such as confirm before writing) on purpose.
  • Ask before every write. A skill that can change live data MUST show the exact change and wait for a yes. Low freedom, per BP.
  • Public text. "ERP", Prophet 21 named minimally, no internal table or field names, no client names or ids, even as examples (Development#banned-strings-check).
  • Every skill answers help. Each SKILL.md MUST carry the shared Help block (<!-- shared:help --> then ## Help, copied word for word from any other skill), placed at the end by convention: /<skill> help explains how the skill is used, from its own text, and changes nothing. Every command's argument-hint MUST list help ([a | b | help], or [help] alone), and every mod command MUST answer it. scripts/validate.ts fails a skill without the block's marker and heading, a command whose hint lacks help (proved: Marketplace.HasHelpSection, HintListsHelp), and a copy of the block that differs. It does not check the block's place in the file, or mod commands (their hints live in code: each mod's tests cover them). The owner, 2026-11-25: "all of them every one".
  • Skills do the work; a command only adds the hint. All behaviour lives in the skill. A command is a thin front door for the typed hint (see Subcommands and argument hints); chat loads commands as skills.

Subcommands and argument hints

A skill with several jobs is one skill with subcommands (/repo submit, /launcher audit), not one skill per job. The text after the name reaches the skill as its argument; the skill's SKILL.md lists the subcommands and says what each does, and what a bare call does.

Claude Code shows a typed hint ([write | audit]) only for a command, not a skill: skill frontmatter can't carry argument-hint in a chat plugin. So each skill with subcommands gets a matching command:

  1. The skill holds every step, the subcommand table, and the bare-call default. Its description names the subcommands, which the / menu shows.

  2. The command is commands/<skill>.md, named as the skill, and does nothing but hand over:

    ---
    name: launcher
    description: <the skill's description, word for word>
    argument-hint: "[write | audit | help]"
    ---
    
    Use the `launcher` skill and run its `$ARGUMENTS` subcommand. With no argument, run `audit`.
    • description MUST be the skill's description, word for word. A command that shares a skill's name takes its place in the list Claude chooses from, so a short description drops the skill's trigger words, and Claude stops picking the skill for plain requests ("commit this"). Seen in Claude Code 2.1.332 after augur-build 2026.11.13: the listing showed the commands' short descriptions in place of the skills'. scripts/validate.ts fails a command whose description differs from its same-named skill's (proved: Marketplace.SameDescription).
    • argument-hint lists every subcommand, [a | b | c | help], in the skill's order with help last (the validator checks only that help is listed), plus [...] for any further argument. help is not counted in the description's subcommands: it lives in the skill's ## Help block, not its subcommand table.
    • The body names the skill, passes $ARGUMENTS, and repeats the bare-call default. No steps, rules or safeguards: those stay in the skill, so the two can't drift.
    • Keep the command in step with the skill: adding, renaming or removing a subcommand, or changing the description, changes both.
  3. Commands come from the commands/ folder. MUST NOT list them in plugin.json as an object ("commands": { "launcher": { "argumentHint": … } }): Claude Code accepts it, but claude.ai rejects the whole plugin's commands ("commands must be a string or list, not a dict"; Platform-Support).

Typing it. The hint shows after the full name and a space: /augur-build:launcher → [write | audit | help]. Type /launch, press Tab (it fills in the full name), then space. The short name /launcher runs the command but shows no hint. A command and its skill sharing a name is fine in Claude Code: the command owns the / entry, and the skill stays loadable by its description.

A bare call. The body repeats the skill's default when it has one (launcher runs audit, wiki runs load; rules, whose skill names none, runs its read-only audit); a default too long to repeat is named instead (wip: "do what the skill says for a bare call"). When the skill defines none, the body says to list the subcommands and ask which to run (repo, code, augur-packages), so a bare call never guesses, and never guesses a git write.

Status. Every skill with subcommands has its command: augur-build's launcher, rules, repo, code, wiki and augur-packages, and simpleapps-work's wip. Verified in Claude Code 2.1.332 (launcher). Not yet verified on claude.ai or Cowork, where the command loads as a skill: argument-hint there, or two skills with one name, may be rejected. A claude.ai sync after the release is the check.

Testing

BP "Build evaluations first" and "Develop Skills iteratively", in short:

  1. Write three realistic tasks the skill must handle, and note how Claude does without it.
  2. Write the minimum that fixes the gaps.
  3. Test in a fresh session on each surface (Testing#each-plugin), and with the models users will run.
  4. Watch how Claude navigates: files it skips, reads twice, or reads in an odd order point to a structure problem.

There is no built-in eval runner on claude.ai; test by hand there. Claude Code's skill-creator skill can help draft and measure a skill.

Clone this wiki locally