/autorun-skills:function-signature-and-parameter-guidancefrom autorun-skills
Designs and reviews caller-facing names and contracts for functions, tools, CLI flags, parameters, config keys, env vars, profiles, event types, and node/edge identifiers. Checks names, descriptions, help text, docstrings, schemas, defaults, bounds, units, errors, outputs, mutation, and whether values reach behavior.
Ships in autorun-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A tool or parameter has four visible parts: its name, the description that teaches it, the error when a caller gets it wrong, and the behavior matching all three. Callers are increasingly AI agents reading a schema once and guessing, so merely not wrong still produces wrong calls. Aim for text that makes the wrong call hard to write, and behavior that fails loudly when it happens anyway.
The failures that matter most return success — a parameter validated, clamped, echoed, and never used looks correct at every observable layer. So verify behavior matches the text (Group B passes) before checking the text is right (Group A).
An example gets read as the whole universe rather than as one case of a general principle. That is true of the caller reading your description and of you reading these checks, so the words must state the concept explicitly — examples alone are not enough. Make the concept behind the concept explicit, or it is missed entirely. Apply this to this document too: every case named below is one instance of its rule, never the rule's limit.
Correctness before brevity, always — trimming a wrong sentence produces a shorter wrong sentence.
search_graph or kit symbols does the same
faster when the session has one). Two targets: conventions — sign, units, naming, what 0
already means, since a value's meaning comes from its siblings rather than first
principles; and semantic duplicates, of a parameter (limit beside max_results) and
of a whole tool — state each job in a sentence and look for matches, the tell being a
parameter selecting behavior another tool provides. Extend what exists, or say how each
differs from its near-twin where the caller reads. Then check governing ISO/domain,
platform/protocol, and language naming conventions before inventing a name.Every parameter description states, and every error message restates:
0, negatives, empty, absent).Error template:
<name> must be <accepted range>, got <value>; <what to pass and what it selects>
Worked example:
limit must be 0 or greater, got -5; pass a positive count, or 0 for every match
Five parts, because fact 4 splits in the message: name, bound, offending value, corrective action, what the correction selects. Drop any one and the message becomes guessable rather than actionable.
transcript_lines beats n, max, size.preview_chars, timeout_ms, lines_per_message. A unit
in the name survives truncation and paraphrase; one in the description does not.0 is disputed,
and 0 is usually the load-bearing value.snapshot, sync, rebuild, flush,
clone, export all make callers avoid or schedule around a call.Answer all twenty for each tool and parameter. An unanswerable question is a design flaw, not a documentation gap. The right column names the pass or rule that verifies each answer against the implementation; answering is yours.
| # | Question | Verified by |
|---|---|---|
| 1 | Does an existing parameter or tool already do this? | A2 |
| 2 | Can the value read as both a count and an index? | A5 |
| 3 | What does 0 do, and does that match its natural reading? | A5 |
| 4 | What does a negative do, and how many items come back? | A5 |
| 5 | Inclusive or exclusive bound? | A5 |
| 6 | What does omission do, and does empty differ? | A6 |
| 7 | What unit, and is it in the name? | rule 2 |
| 8 | Changes which results, or only how they show? | B1 |
| 9 | What does the count count, and in what order? | B5 |
| 10 | Out of range: rejected, clamped, or ignored — and is the effective value reported? | B1 |
| 11 | Does the value reach the behavior, or is it echoed and dropped? | B1 |
| 12 | Which parameters conflict, and what happens when both are set? | B1, B3 |
| 13 | Do listed features compose? Which pairs fail? | B3 |
| 14 | Is every example executed in CI? | B4 |
| 15 | Can a valid-but-wrong value look like a genuine miss? | B5 |
| 16 | Is there an input matching everything that a caller would reach for? | B5 |
| 17 | Does the name imply a cost the code lacks? | rule 7 |
| 18 | If a container: what do empty, absent, and unknown-key mean? Do members interact or override? | B1, B2 |
| 19 | Read cold: what can a stranger not answer? | A9 |
| 20 | Can the caller predict the response shape and know whether it mutates? | B8 |
If a question does not apply, say why in one line. "Not applicable" without a reason is where concepts get dropped silently.
The generative rule: each check asks whether a caller can predict the behavior from type, name, and description alone. Wherever those under-determine it, the check applies.
Name the concept before ruling a check out. The common miss is dismissal by type — this one is an enum, not an integer; this one is a high-level object — which skips the concept entirely and reports clean. Ask what the check is for, then whether this parameter can fail that way.
In what you write, that means stating the range rather than a sample. "e.g. 5" teaches
nothing about 0 or -1; "a positive count, or 0 for every match" teaches the whole space.
| Check names | Concept | Also covers |
|---|---|---|
| signed integers | the type hides the value space | auto/default enum members, sentinels ("", "*", "all"), tri-state booleans, 0 as epoch-or-unset |
| does the value reach the behavior | accepted versus honored | structs nobody reads, options merged then overwritten, env vars read once at startup |
| names a parameter the caller cannot set | points where the reader cannot reach | a config file they cannot write, a flag behind a toggle, a method on an object they do not hold |
| empty results are ambiguous | one output covers success and user error | 0 counts, null, empty lists, default-valued structs, exit 0 with empty stdout |
| do listed features compose | documented capability exceeds tested surface | capability matrices, format × mode combinations, flag pairs |
| a check phrased for one scalar | a container is a namespace, holding more ambiguity | options objects, config blocks, nested structs — every rule applies to each member and to the container (empty? absent? unknown key?) |
Ω(k) in supplied keys, never
sublinear; a measured typo-rejection round trip ran ~50–60 µs, below the cost of a cache.Mistakes made while doing the review, all observed: testing at a layer that skips validation; assuming red means the code is wrong when the assertion miscounted; suppressing stderr and reading the empty output as a result; auditing a build older than your branch; claiming files diverged without diffing; blaming the tool before re-reading your invocation. Part 2 tabulates twelve with corrections.
references/designing-and-reviewing-signatures-and-parameters.md
references/mcp-specifics.md — everything protocol-particular, kept out of the passes
so they stay surface-agnostic: the four declarations a tool should carry, ToolAnnotations
with its defaults and conditionals, the two error channels, a live-server audit recipe, and
a three-server comparison.references/sources.md — specifications verified versus cited-but-unverified, observed
defects with commit and session identifiers, discrepancies, naming decisions.tests/test_check_schema_descriptions.py — 20 tests, pinning every bug the checker has
shipped: a false clean bill on zero input, nested parameters skipped under a type union, a
case-sensitive enum check, and severity tiering.scripts/check-schema-descriptions.py — JSON Schema and MCP tools/list only, any
server language, since it reads protocol output rather than source.
--help output, config files, or docstrings —
use the passes' grep recipes there. A clean run is not a clean review: the passes it
skips catch the failures that return success.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ahundt/autorun --plugin autorun-skills11 skills in this plugin
/ai-skill-builderGuides creation, audit, and improvement of portable Agent Skills using the shared SKILL.md format and Anthropic's established methodology, without confusing the portable specification with runtime-specific extensions. Use when the user wants to "create a skill", "create an agent skill", "build a skill", "make a new skill", "write a new skill", "improve an existing skill", "audit my skill", "audit a SKILL.md", "refine my skill", "test a skill", "test skill discovery", "install skills across harnesses", "package a skill for distribution", or needs guidance on skill structure, semantic XML regions, progressive disclosure, description quality, frontmatter, scripts, arguments, security, testing, cross-harness compatibility, or distribution./cli-demo-recorderCreate demo videos for CLI and TUI tools. Use when user asks to "record a demo", "make a demo GIF", "create a demo video", "record my CLI tool", "asciinema demo", "demo recording script". Covers asciinema+agg+ffmpeg pipeline, tmux recording, multi-shell, and dual-purpose demo+test harnesses in Python, Rust, TypeScript, and Bash./mermaid-diagramsRender Mermaid diagrams to SVG using beautiful-mermaid and bun. Use when the user asks to "render mermaid", "generate diagram", "create flowchart", "update diagrams", "render SVG from mermaid", "beautiful-mermaid", "regenerate diagrams", or needs to convert Mermaid diagram syntax into styled SVG files. Supports all Mermaid diagram types with 15 themes including tokyo-night.Other plugins' skills for the same job