han-release
Cut a Han release: update CHANGELOG.md with the changes since the last release, bump and tag every plugin that changed as {plugin-name}--v{version} so a…
Designs the contract for an API change inside one codebase — a component's props, a function surface, URL or query parameters, an event payload, or a module boundary — through a discovery pass, an options document with one recommendation, a question round, and an adversarial
$ npx -y skills add testdouble/han --skill design-an-api --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/design-an-apiContext preview
The summary Claude sees to decide when to auto-load this skill.
Designs the contract for an API change inside one codebase — a component's props, a function surface, URL or query parameters, an event payload, or a module boundary — through a discovery pass, an options document with one recommendation, a question round, and an adversarial
name: design-an-api
description: >
Designs the contract for an API change inside one codebase — a component's props, a function surface, URL or query
parameters, an event payload, or a module boundary — through a discovery pass, an options document with one
recommendation, a question round, and an adversarial validation round, with every element of the contract justified
from one stated goal. Use when you want to design, shape, decide, or nail down an interface, contract, signature, or
API change for a capability you can already describe, sized for roughly one pull request. Produces a design document
and changes no code. Does not specify what a feature should do — use plan-a-feature. Does not plan delivery or
sequencing — use plan-implementation. Does not assess the architecture of existing code — use
architectural-analysis. Does not write the code — use tdd. Does not restructure existing code — use refactor. Runs its rounds without
pausing for review; to review each round as it lands, use pairing.
arguments: size
argument-hint:
"[size: small | medium | large | dynamic] [the goal or ticket this serves, and the interface to design]"
allowed-tools:
Read, Write, Glob, Grep, Agent, Bash(git *), Bash(find *), Bash(mkdir *),
Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh")As your first action, use the Read tool on `.han/config.md` inside the `personal config directory` path above. A read that returns no file is no personal configuration: continue silently. When that file or the `project .han/config.md` probe supplies content, apply it per [config-rule.md](../../references/config-rule.md), which governs precedence between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.
Read these before dispatching anything. They constrain every step below.
goal: a ticket, an issue, a written requirement, or a described capability. If no goal resolves, stop and ask for one BECAUSE without a goal there is nothing to justify the design against, and the run degrades into designing a general-purpose framework for a single consumer.
rule, and failure behavior states exactly one of two things: the part of the stated goal it descends from, quoted or named; or the asked-for behavior it is a necessity of. An element that can fill neither does not enter the design. It moves to the cut list with what it would have done and why it was cut.
mentions a caching layer justifies cutting one. The same goal's silence about invalid input, error behavior, and types does not cut those, because they are necessities of the surface it did ask for.
size, selects the roster, fans agents out and in, runs the two human gates, and renders the design document. It produces no design content of its own.
`han-core:software-architect`, `han-core:junior-developer`, and `han-core:adversarial-validator` run at every size BECAUSE evidence, design, questioning, and attack are the irreducible core of a contract that survives contact. Every other specialist is added only when the interface's signals warrant it and the band allows it, BECAUSE dispatching an agent whose domain the contract never touches burns tokens and pulls the design toward concerns the goal did not ask for.
Borderline signals stay at the smaller band. Under-dispatching is recoverable by re-running at a larger size; over-dispatching is not.
`tdd` run against this document.
design with alternatives invented afterward to justify it. The user picks before three further agent rounds are spent refining one.
[references/api-design-template.md](./references/api-design-template.md).** The skill renders that template by filling its sections. It does not invent a structure inline.
sources the shared standard by invoking `han-communication:readability-guidance` and applies it, holding one audience above the writing: the engineer who will implement this contract and the reviewer who will approve it. Scope that frame per section so the specifics that reader needs — exact signatures, types, precedence rules, file paths — are preserved, never simplified away.
**Bind `$size`.** If the us
Han is a suite of AI skills and agents for solo (or small-team) product engineers.
Cut a Han release: update CHANGELOG.md with the changes since the last release, bump and tag every plugin that changed as {plugin-name}--v{version} so a…
Update Han plugin documentation so every skill, agent, guidance doc, index, and cross-reference is current and accurate. On a non-default branch, scopes the…
Produces a progressive-disclosure overview of unfamiliar code or a pull request's changes with code-overview and publishes the resulting overview to a…
Runs an evidence-based investigation of a bug, failure, or unexpected behavior with investigate and publishes the resulting investigation report to a…
Publishes a local Markdown file to a user-specified Confluence location, creating a new page or updating an existing one through the Atlassian MCP server. Use…
Builds a feature specification from scratch with plan-a-feature and publishes it to a user-specified Confluence location, posting the spec as a parent page and…