Ship a Feature

Think it through first, then let your agent write tested code.

You start withA feature request for a codebase you work in
You end withA design you approved, then a function built to it with an edge-case table and test calls
Step 1

Use Claude Code

Reads your repo and writes down how it builds and tests, in CLAUDE.md.

Open Claude Code

Save it as CLAUDE.md. In your repo, run claude and type /init; Claude Code reads the code and writes CLAUDE.md with its build, test and style rules.

Step 2

Give your agent the Brainstorming skill

Makes the agent think the feature through before it writes code.

The skill is in this folder, at skill/brainstorming. Copy it into your agent's skills folder, or install it from its maker:

/plugin install superpowers@claude-plugins-official

Save it as feature-design.md. Paste one function's part of the design doc into {{What the function should do}} and its code into {{Related code it must work with}}.

Step 3

Run the Write a Function From a Spec prompt

The assumptions, the function, an edge-case table and example calls.

Any capable chat assistant writes a single function well from a clear spec; an editor assistant such as GitHub Copilot or Cursor can also see the surrounding code for you.