Skip to content
Back to skills

Simplespec

ASecurity

Solve one issue end to end with one spec file and one draft PR. Read the issue, prove the code with file:line receipts, write <spec-root>/issue-<number>-<short-title>/SPEC.md (docs/specs in this repository), pass a fresh skeptical reviewer, then implement. Use it when the user pastes an issue or an issue link and wants it solved, says "simplespec", "simple spec", "solve this issue" or "do issue 42", and for a bounded one-PR task given to an engineer who is new to the codebase. Stop and escala...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentspythonrustgoshellbashsqlnodegitapidatabase

Works with

  • claude code
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned November 29, 2026

npx -y skills add bradennapier/intellagents --skill simplespec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simplespec?

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

Security grade badge for Simplespec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bradennapier-simplespec/badge)](https://www.skillsdirectory.com/skills/bradennapier-simplespec)

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
---
name: simplespec
description: Solve one issue end to end with one spec file and one draft PR. Read the issue, prove the code with file:line receipts, write <spec-root>/issue-<number>-<short-title>/SPEC.md (docs/specs in this repository), pass a fresh skeptical reviewer, then implement. Use it when the user pastes an issue or an issue link and wants it solved, says "simplespec", "simple spec", "solve this issue" or "do issue 42", and for a bounded one-PR task given to an engineer who is new to the codebase. Stop and escalate to superspec for a schema migration, or for a contract that two parts of the system share. superspec-mini owns the full routing table.
allowed-tools:
  - Bash(${CLAUDE_SKILL_DIR}/scripts/spec-root.sh)
---

# simplespec

One issue. One spec file. One draft PR.

The spec exists to make the FIRST implementation correct. Each claim in it has a receipt, and a
fresh reviewer attacks it before any product code changes.

The issue arrives as the skill argument or in the message of the user.

## Scope: read this first

| Situation                                                                  | Action                                |
| -------------------------------------------------------------------------- | ------------------------------------- |
| Bounded issue, one PR, no schema change                                    | Run this skill.                       |
| Schema migration, backfill or data movement                                | Stop. Tell the user. Use `superspec`. |
| A contract that two parts share (API shape, stored row shape, file format) | Stop. Tell the user. Use `superspec`. |
| Three or more milestones, more than one PR, or a feature-flag rollout      | Stop. Tell the user. Use `superspec`. |
| 3 files or fewer, one part, no ambiguity, one revert undoes it             | No spec. Implement it directly.       |

**Use this table first.** `superspec-mini` owns the routing table of the whole family. That table is
older than this skill and has no simplespec row. Read it only for a signal that this table does
not list, and read a `mini` verdict there as a verdict for this skill, because both cover the same
band. State the routing call out loud before you start, and record it in the Decision Log.

## Companion skills and repository rules

Load the skills. Do not restate them.

- **`asd-ste100`**: the ASD-STE100 writing skill. `AGENTS.md` requires it for docs, screens,
  messages and comments. Load it BEFORE the first draft of any text that a person or an agent
  reads: SPEC.md, the reviewer charge, the findings that you report, the questions that you ask.
  Use strict mode for the reviewer charge and the Plan steps. Use STE-flavored mode for the prose
  sections. A draft that you write loosely and simplify later keeps its shape, and the shape is the
  problem.
- **`gather-context`**: reads the issue and its linked evidence.

These parts of the repository own the other rules:

- **Commits, branches and the PR:** the "Send a change" part of `CONTRIBUTING.md`. Match the
  subject style of `git log --oneline`. Do not add links to agent sessions.
- **Local servers:** the "Set up a development checkout" part of `CONTRIBUTING.md`. Read its
  warning about `COMPOSE_PROJECT_NAME` before the first `up` or `demo`: another install on the same
  computer can lose its containers.
- **Private data:** the "Private data" rule of `AGENTS.md`. Use invented data in tests, fixtures,
  screenshots and the spec.
- **Code navigation:** a language server (hover, find references) when your agent has one.
  Otherwise `rg`, and say so in the Evidence.

## Hard rules

1. **A gate is a command that exits 0.** It is never a checklist that you certify yourself.
   - Verify in THIS session that the command exists: in a `package.json` script, in the check table
     of `CONTRIBUTING.md`, or through `--help`. A gate that cannot run is fiction.
   - Run it bare and read the exit code. `cmd | tail` reports the exit code of `tail`.
   - A `-t` filter that matches no test still exits 0, with every test skipped. That is a vacuous
     green. Confirm that the output shows at least one test that ran and passed.
2. **Trust no claim that you did not verify in this session.** A `file:line` receipt or a
   reference-search result is verification. Memory is not.
3. **Build the simplest design that meets the acceptance criteria.** Add nothing that the issue
   does not need. No speculative abstraction. No configuration surface for later.
4. **Report what you find, and wait.** A bug, an unhandled edge case or a wrong premise goes in the
   Decision Log, and the user decides. Never act on it silently. Never drop it silently.
5. **Delete the code that your change orphans, in the same change.** Prove it with a reference
   search. Dead code that you leave for later reads as live code to the next reader.

## The loop

Steps 1 to 5 change no product code.

### 1. Work in a fresh branch or worktree

Create a fresh branch or worktree for the issue, and work only there. In Claude Code, use the
`EnterWorktree` tool and do not `cd`. Enter the worktree BEFORE you start any subagent, because a
later entry breaks Bash for an agent that already started.

```bash
git fetch origin && git merge-base --is-ancestor origin/main HEAD   # exit 0 required
pwd -P                                                              # the real path, not a symlink
```

In a fork, use the remote of the upstream repository in place of `origin`. An old branch makes a
spec that describes code that nobody runs. Rebase onto `origin/main` before you investigate
anything.

A fresh worktree has no `node_modules`, so the Node checks cannot run in it yet. Install the
packages as the "Set up a development checkout" part of `CONTRIBUTING.md` says
(`pnpm -C app install --frozen-lockfile`). The formatter needs the root packages too
(`pnpm install --frozen-lockfile` in the repository root).

### 2. Find the spec folder and read the issue

`<spec-root>` is:
!`${CLAUDE_SKILL_DIR}/scripts/spec-root.sh`

The line above ran in the folder where the session started. Run the script again when you work in
another worktree, or when the line shows a command and not a path. Make the worktree your current
folder, and run `bash <folder of this skill>/scripts/spec-root.sh`. Use only its latest output.

The script prints `docs/specs` in the repository root when it is a real folder and git ignores no
spec file in it. Otherwise (`docs/specs` is missing, is a symlink, or git ignores spec files in it),
the script prints `~/.superspec/projects/<repository name>/specs`, outside the repository. Put this path in the prompt of each subagent that reads or writes spec
files.

The spec folder is `<spec-root>/issue-<number>-<short-title>/`. The name never contains `/`,
because a slash nests a folder.

**No issue?** Ask the user if they want one. The user files it. When the user wants none, name the
folder `no-issue-<short-title>`, skip `gather-context`, and rely on the Request section of SPEC.md.

Run `gather-context` on the issue. Pass the artifact path
`<spec-root>/issue-<number>-<short-title>/00-CONTEXT.md`, because its default path is different.
That file is an INPUT. SPEC.md stays the only spec artifact.

When the work touches an SDK, an API or a provider, read the CURRENT documentation with a
documentation tool or the web. Do not answer from memory. These libraries change often.

### 3. Read the code until you can name it

Stop when you can name each file and each symbol that you will change, each one with a
`file:line` receipt.

- Hover and search references at each cited location with a language server. Never use a text
  search to prove a claim about a symbol when a language server is available.
- A file with no symbols (shell, SQL, Markdown, JSON, YAML) gives no language-server result. Read
  the file and cite the line.
- Prove each "unused", "dead" or "orphaned" claim again with a reference search. Example of the
  failure: a spec calls a helper dead after a text search for its name finds nothing. A re-export
  under another name still calls it, and the deletion breaks the build.
- Back a claim about stored data with a test, a test fixture or the demo install
  (`./intellagents demo`), not with the schema alone. Never read, query or copy the real history of
  a person to prove a claim. Cite the test, the fixture or the steps in Evidence.

### 4. Write SPEC.md

Path: `<spec-root>/issue-<number>-<short-title>/SPEC.md`. Write it with your file tool, by the
absolute path.

When `<spec-root>` is inside the repository, SPEC.md is public when you commit it. Follow
`docs/specs/README.md`: no secrets, no private data, no names of private projects.

Sections, in this order:

```text
# issue-<number> — <short title>
> Routing: simplespec. Issue: <#number or none>. Branch: <branch>.

## Request
The message of the user, verbatim, with the issue link. Write it before anything else. It grounds
the work again after a loss of context. Append later steering as a dated addendum. Never edit the
original text, but replace private data with [removed: private] before you commit.

## Goal
What the issue must achieve, in its own acceptance terms.

## Non-goals
What this change does not do. Name the near misses that a reader would assume.

## Evidence
Only what you verified in THIS session. One line for each claim, each with a file:line receipt.
Add what gather-context returned. The reviewer attacks each line here.

## Plan
- [ ] 1. <step> — proof: <a command that exits 0, or the observable behavior>
- [ ] 2. ...
Two to six steps. You can validate each step on its own. Each step leaves all checks green.

## Do not change
Files, functions, contracts and tests that must stay as they are, and why each one is
load-bearing.

## Evals
Answer this. It is not optional. Does this change claim something about AI output?
- YES: name the scenario of the eval harness. pnpm -C app eval --list lists the scenarios, and
  app/server/evals/README.md explains them. A live run (pnpm -C app eval <scenario> --model <model>)
  calls a real model and costs money. It also reads and changes the install that it targets, by
  default the main install with the real history of the user (sessions, tags, notes, dashboards,
  a zz_eval database). Agree on the run strategy and the target install with the user first.
  Record only PASS or FAIL here, never the answers of the model.
- NO: one line that says why.

## Rollback
One or two lines. How to revert a bad landing.

## Decision Log
- YYYY-MM-DD — routing call, user answer, reviewer round, scope change or reported bug
```

### 5. Review gate: implement nothing before an approval

Start ONE fresh subagent (in Claude Code, the Agent tool) on the most capable model. It is never
the author of the spec, and never a continuation of this context.

Give it the SPEC.md path, the `00-CONTEXT.md` path when one exists, and this charge:

```text
Read <path>/SPEC.md. Assume it is wrong. Find why.
Default to REJECT. Approve only when you are sure that this spec is correct and that implementing
it as written breaks nothing. Any doubt about a blocker is a REJECT. A minor finding alone is not
a reason to REJECT.
1. Open each file that the spec names. Confirm that each cited symbol exists at its cited line.
   Use a language server when you have one, not grep. For a file with no symbols (shell, SQL,
   Markdown, JSON, YAML), read the file and confirm the cited line.
2. Prove each "unused", "dead" or "orphaned" claim again yourself with a reference search.
3. Walk the Plan in order. After each step, ask whether the checks still pass. Search for
   consumers of each deleted symbol in later steps and in other parts of the repository.
4. Name a materially simpler design that meets the same acceptance criteria. A credible simpler
   design is grounds for REJECT.
5. Confirm that "Do not change" covers the load-bearing neighbors of what the Plan touches.
6. Confirm that each command the spec cites exists in the package.json or the CONTRIBUTING.md
   check table that it claims.
7. Confirm that the Evidence supports the Goal. Report each claim that has no receipt.
8. Report each signal that needs superspec: a schema migration, or a contract that two parts share.
9. Report each secret, each piece of private data and each real session content in the spec. Each
   one is a blocker.
Return exactly one of these on the first line: `VERDICT: APPROVE`, `VERDICT: APPROVE WITH FIXES`,
or `VERDICT: REJECT`. Then numbered findings.
Each finding: claim -> evidence at file:line -> severity (blocker, major, minor) -> the exact fix.
- APPROVE: no finding above minor.
- APPROVE WITH FIXES: the design is sound, no finding is a blocker, and you state the exact fix
  for each major finding.
- REJECT: a blocker, a wrong design, a credible simpler design, or a major finding with no exact
  fix.
```

Log each round in the Decision Log.

- **On `APPROVE WITH FIXES`,** apply each stated fix to SPEC.md, log each one, and start step 6. No
  new round runs. The diff review in **Done** checks the result.
- **On `REJECT`,** fix the findings. Run the gate again with a NEW reviewer, never the one that saw
  the previous draft.

**Stop at round 3.** If a reviewer repeats a finding that you believe is wrong, do not loop. Report
both positions with their receipts, and let the user decide. A reviewer loop wastes the time of
the user.

A material scope change at any later point runs this gate again.

### 6. Implement

- Work through the Plan in order. Check each box when its step lands.
- Commit at coherent boundaries, as the "Send a change" part of `CONTRIBUTING.md` says. When
  `<spec-root>` is in the repository, commit SPEC.md (and `00-CONTEXT.md`) with the work. Check them
  for private data first.
- Keep SPEC.md true. When the code goes away from the Plan, fix the Plan and log the reason.

### 7. Prove it, then open the PR

- The issue touches a screen or an API? Prove the behavior end to end in the running app, with
  invented data (`./intellagents demo`). Start the app as the "Set up a development checkout" part
  of `CONTRIBUTING.md` says. Check the changed screen in a browser, with the keyboard too. Use the
  browser tool that your agent has.
- Run the checks of each part that you changed, bare, and read the exit codes. The table in
  `CONTRIBUTING.md` lists them, for example `pnpm -C app typecheck`, `pnpm -C app test`,
  `node --test explorer/`, `python3 -m unittest discover -s tests` and `pnpm fmt:check`.
- No hook in this repository runs the checks. **Run them yourself.**
- Make SPEC.md agree with the shipped code, and commit it again.
- Open a DRAFT PR. Ask the user first, unless the user asked for the PR in this session. The body
  says what changed, how you tested it, and what you did not test (the "Send a change" part of
  `CONTRIBUTING.md`). Name the spec folder in the body.

**UI evidence goes in the PR body, through `--attach`.** A screenshot that you send to the user in
chat is not an attachment. A reviewer sees only the PR.

- Check that your `gh` accepts the flag: `gh pr create --help` lists `--attach`. Current versions
  accept it on `gh pr create`, `gh pr edit` and `gh pr comment`.
- Write the reference first, as `![descriptive alt](./name.png)`. Then pass one
  `--attach ./name.png` for each file that the body references. `gh` rewrites the matching
  reference so that it points at the uploaded file.
- Paths in a `--body-file` are relative to the folder of that file. Run `gh` from the folder that
  holds the files, or add `--repo <owner>/<repo>` to run it from anywhere else.
- A video reference becomes a player. For a complex flow, prefer one annotated H.264 MP4 to ten
  screenshots.
- `gh` adds an attached file that the body does not reference at the bottom of the body, with no
  caption.
- A draft PR can become ready around `gh pr edit`, so check the draft state after each edit:
  `gh pr view <n> --json isDraft --jq .isDraft`. Restore it with `gh pr ready <n> --undo`.
- Screenshots show invented data only.

## Done

Done means all of these. Each one is a command or a logged verdict, never a self-report.

- [ ] Each Plan box is checked
- [ ] The reviewer returned `VERDICT: APPROVE`, or `VERDICT: APPROVE WITH FIXES` with each fix
      applied, and each round is in the Decision Log
- [ ] The checks of each changed part exit 0, with at least one test that ran
- [ ] Each path that this change orphaned is deleted, each one proven by a reference-search result
      pasted into the Decision Log
- [ ] A fresh reviewer read `git diff origin/main...HEAD` against SPEC.md and confirmed that they
      match
- [ ] UI or API evidence is IN the PR body, not only in chat:
      `gh pr view <n> --json body --jq '.body | contains("user-attachments")'` prints `true`
- [ ] When `<spec-root>` is in the repository: SPEC.md is committed on the work branch and holds no
      private data
- [ ] A draft PR is open, and its body names the spec folder

---

_simplespec: one issue, one spec, one reviewed plan, one PR._

Files in this skill

  • SKILL.md16.7 KB
  • scripts/spec-root.sh2.4 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.