/proof:proof-initfrom proof
Initializes the Proof harness on a project by inspecting the repo, asking what it cannot infer, and writing .claude/harness.json plus GitHub board and labels.
Ships in proof. 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.
None: SKILL.md is the whole skill.
Writes .claude/harness.json — the file every other Proof skill reads. Run once per
project. Re-run when commands, deploy steps or risk areas change.
/proof-init
/proof-init --refresh # update an existing config, keep what is still true
Talk to the user per _partials/voice.md throughout.
Do the reading before the asking. The user should confirm, not dictate.
package.json scripts (root and any sub-app), plus lockfiles and CI workflows —
CI is the most reliable source of the real test commandCLAUDE.md, README.md, CONTRIBUTING.md) — often state
the build, deploy and conventions outrightapp.json/eas.json, next.config, vite.config,
Dockerfile, railway.json, vercel.json, fly.toml.env files and other secrets, for protected_paths (record the paths, never read
the values)One question at a time, each with your inferred answer as the default so the user can confirm in a word. Cover, in order:
models.builder_min: haiku, sonnet, opus, or no floor). Suggest
sonnet when the risks include money, auth or data loss; otherwise no floor.ship.store_notes).Do not ask about anything you can see. Asking a user to type a command that is sitting in their CI file is how a setup tool earns a reputation for being tedious.
Copy templates/harness.json and fill it in. Rules:
Refreshing (--refresh): compare the existing config with the current
templates/harness.json. Every key the template has and the config lacks was added in
a newer Proof (for example ship.changelog, ship.store_notes, goals,
labels.needs_design). Ask about each, in the step 2 order, inferring an answer where
you can (a CHANGELOG.md → ship.changelog). Keep every existing value the user has
not changed, and say which keys you added.
Run each command you record once, if it is safe and quick. A command that fails
today can go in commands, but not in verify.steps. Otherwise every piece of work
fails verification before it starts. Tell the user it fails and why.
A command you are not sure about is null, not a guess. null means the skills skip
that step and say so; a wrong command means they run something meaningless and pass.
verify.manual holds checks only the human can do — simulator runs, device testing,
visual checks. Skills surface these; they never claim them as done.
ship.steps is an ordered list of {name, run}, optionally {expect} for a smoke
test. Manual steps get run: null and are presented as instructions.
review.risk_focus is prose, one concrete risk per line, in the project's own terms.
Show the finished config and pause for approval before writing.
Only after the config is approved:
"${CLAUDE_PLUGIN_ROOT}/scripts/setup-board.sh" # reads .claude/harness.json
The script lives in the plugin, not the project, so always call it by that path.
It needs GitHub's command-line tool (gh), signed in with project access. Cloud
sessions do not have gh. If you are in one, say so plainly, skip this step, and tell the
user to run /proof-init --refresh in Claude Code on their own computer. Do not report the
board as set up. Until it runs, priority labels do not exist, so anything that applies a
rating will have nothing to apply. If board creation fails on permissions, the fix is
usually gh auth refresh -s project,read:project. If the user would rather not, set
board.enabled to false. Labels alone still work.
It is idempotent, so it's safe on a board that already has some of this.
board.stages. A new board's Todo / In Progress /
Done are renamed in place, so existing cards and GitHub's built-in workflows keep
pointing at the right stages. Never set these options by any other route: sending
options without their existing IDs wipes every card's status.The script flags each step below with a tag. Steps 1, 3 and 6 you can finish yourself once the user agrees; GitHub's API cannot do the rest. Go through each flagged step as its own exchange: say what it's for in one line, give the link and the exact clicks, then wait for the user before moving on. Do not batch them into one list, and do not move to step 5 until each is done or explicitly skipped. Where the API can confirm the result, re-run the script and check. The user saying "done" is not confirmation.
DECIDE (repo-features) — ask this first. Proof files work as Issues and
parks worked-out ideas as Discussions (/proof-spec's second landing option;
/proof-plan and the overlap check read them). Either can be switched off on a
repository. Name what is off and what each is for, and say plainly that turning on
Discussions adds a Discussions tab to the repository (visible to anyone who can see
it). On a yes, re-run the script with --enable-repo-features and confirm it reports
them on. If the user declines Discussions, say that /proof-spec will offer issues
only, and move on.
ACTION NEEDED (ideas-category): rare, because GitHub creates an Ideas category
when Discussions are switched on, but it can be deleted or renamed. Nothing in the API
can create one. Steps: the link the script prints → Name: Ideas, Format:
Open-ended discussion → Create. Re-run the script and confirm it reports the
category present.
DECIDE (done-workflows) — ask this next; you can also finish it yourself. The built-in Item closed and Pull request merged workflows move
cards to the shipped stage when a PR merges or an issue closes, which is before
/proof-ship has released anything. Offer three options:
--remove-done-workflows. Say plainly that this is permanent: GitHub's API
cannot recreate built-in workflows.<board>/workflows → each one → toggle off.ACTION NEEDED (auto-add) or ACTION NEEDED (auto-add-filter). Without
auto-add, only issues a Proof skill touches reach the board; issues opened on the
GitHub website or by other tools never do. Steps: <board>/workflows → Auto-add to
project → Edit → Repository: this repo → Filter → Save and turn on. Free accounts get
one auto-add workflow.
The filter is the trap. GitHub pre-fills it with label:bug (for example
is:issue,pr is:open label:bug), which silently skips every issue that isn't a bug.
Tell the user to replace it with exactly is:issue is:open (issues only: Proof
tracks work by issue, each issue card already shows its linked PR, and PR cards would
sit in the first stage forever because no skill moves them), and ask them to
read back what the filter box says. The API can see that auto-add is on but never its
filter, so the user's read-back is the only direct check.
Then re-run the script. It checks behaviour: any open issue created since auto-add was
saved that isn't on the board is reported as auto-add-filter. With no new issues
yet, it can't prove the filter either way. Say so, and record the user's read-back as
the confirmation.
CHECK (default-repo): where + Add item on the board creates issues. Steps:
<board>/settings → Default repository → this repo. Nothing can read this setting,
so ask the user to confirm it's set, and record that the confirmation is theirs.
DECIDE (branch-protection): the default branch has no protection on GitHub.
Proof's bash guard refuses pushes straight to it, but only in Claude Code on a machine
with the plugin installed; a push from anywhere else goes through. Show the user the
settings the script proposes and why each is set that way for one person:
settings/rules
It changes a repository setting, so ask. On a yes, re-run the script with
--protect-default-branch and confirm it reports the ruleset created.
CHECK (branch-protection) instead means a private repository on a plan without
rulesets. Nothing can be turned on; say that Proof's local guard is the only
protection, and that GitHub Pro or a public repository adds it.
Already protected (the script says "left as is"): say so and move on. Never
change protection someone already set up.If the user skips a step, note it as an open item in the hand-back (step 9).
Write .claude/settings.json so Claude Code offers or loads Proof automatically, on the
user's computer and in cloud sessions:
{
"extraKnownMarketplaces": {
"proof": { "source": { "source": "github", "repo": "jsamitt/proof-claude-plugin" } }
},
"enabledPlugins": { "proof@proof": true }
}
If the file already exists, merge these keys in. Never overwrite other settings.
Then check .gitignore. Both .claude/harness.json and .claude/settings.json must be
tracked. The common trap: a rule that ignores the whole .claude/ folder cannot be
undone for a single file inside it. Git will not look inside an ignored folder, so a
!.claude/harness.json line after it does nothing. Replace the folder rule with one that
ignores the folder's contents:
.claude/*
!.claude/harness.json
!.claude/settings.json
Then verify with git check-ignore that both files are tracked and
.claude/settings.local.json is still ignored. Say what you changed.
If /proof- commands do not appear in a cloud session, check that the session can reach
GitHub, and that the project's .claude/settings.json is on the branch the session
cloned.
If learnings.file does not exist, create it with a short header explaining what it is
and how entries get there. Do not backfill it with invented history.
Ask whether the user wants a short digest posted after days they work on the project
(see _partials/digest.md). If not, skip this step.
If yes:
_partials/digest.md. Ask the user to pin it; that cannot be done from here.templates/nightly-prompt.md with the project repository, the owner's
GitHub login, their time zone, and the digest issue number. Show the finished prompt.jsamitt/proof-claude-pluginAsk whether the user wants a retro to appear by itself about once a month (see
/proof-retro). It is separate from the nightly digest and changes nothing about it. If
not, skip this step.
If yes:
proof-retro label exists: re-run scripts/setup-board.sh, which
creates it. (The retro creates it too if it can, but a project set up before the
label existed is better fixed now.)templates/retro-prompt.md with the project repository, the owner's GitHub
login and their time zone. Show the finished prompt.jsamitt/proof-claude-plugin.
Without both it runs, reports success, and does nothingReport: the config path, what you inferred vs. what the user told you, the board URL,
and the one-line next step — /proof-spec "<something you want to build>".
List anything from step 4 that is still open first: Issues or Discussions left off
(and what that means: no Discussion landing in /proof-spec), a missing Ideas category, a
skipped or unconfirmed auto-add workflow or default repository, the done-workflows
decision if it was deferred, and an unprotected default branch (declined, or not
available on the repository's plan). Give the link for each.
Flag honestly anything that will limit the harness: no test command, an empty test suite, no typecheck, no board permissions, a board not yet created because this was a cloud session. The user should know where the safety net has holes before they rely on it.
What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
11 skills in this plugin
/proof-designUse when setting up or checking a project's design system — not part of every issue. Establishes a design system where a project has none, wire an existing one into the harness so the other skills obey it, or report drift between the tokens and the code — detects which of the three applies rather than being told/proof-fixUse when something is broken — finds the root cause before changing anything, confirms it, fixes it with a test that proves it, and opens a PR. The path every bug takes, instead of spec and work. Part of every bug/proof-handoffUse when a design made in a design tool is ready to be built — checks it against the codebase before anything is built (what exists, what is new, what cannot be built as drawn, which states are missing), writes the revisions for the design tool, repeats until it is clean, then records the approved design in the issue and marks it ready. Between spec and work, for designs made elsewhere/proof-learnThe last step of every issue, and whenever a working session pauses — sweeps the session for lessons about the product and code while the conversation still exists. Owns what the project knows: records a lesson directly, searches past decisions, promotes durable ones into the decisions file behind a durability gate, and keeps that file pruned. Part of every issue/proof-planUse periodically — not part of every issue — to decide what to work on next and in what order, re-check priorities that have gone stale, and optionally clean up duplicate, superseded or abandoned issues. Proposes; changes nothing without approval/proof-retroUse periodically — monthly or after a release, not part of every issue, or let the retro routine run it. Owns how the work goes, not what was learned. Looks back over a stretch of work: shipped against planned, where work waited, how estimates held up, which areas keep breaking, how often lessons repeated, whether the goals moved. Posts a retro issue with at most three process changes as tick boxes, and applies the ones tickednpx claudepluginhub jsamitt/proof-claude-plugin --plugin proofOther plugins' skills for the same job