/second-brain-skills:prove-build-worksfrom second-brain-skills
Quality gate that runs built artifacts on real data, attempts to break them, performs a second pass by a different method, and produces an evidence-backed verdict before declaring 'done'.
Ships in second-brain-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.
None: SKILL.md is the whole skill.
Principle: a green first run proves little. "It works" said from memory is the most common false report. The word "done" is allowed only after a first pass, a break attempt, and a second pass by a DIFFERENT method, each leaving evidence. If nothing was built this session, say so plainly: "nothing to test".
Evidence means the command you ran with its output and exit code, or a quoted line from a file. The words "I checked" are not evidence. Numbers come from an instrument, time from a clock.
List the changed artifacts and what each was supposed to do, in the requester's own words, one line per requirement. Search existing notes and prior work first so you do not rebuild or re-test something already settled.
"Impossible", "no such option", "by design unsupported", or offering the human a manual step instead of automation is a claim too. Walk the cheap ladder in order:
<tool> --help, -h, help <subcommand>: the FULL flag list, not what you remember.--help.Not walked: the only allowed phrasing is "I did not find how to do it". A silent or crashing --help (non-zero exit, traceback, "unknown flag") is a defect of the tool to fix, not an absence of answer.
Mirror trap: a flag found in --help proves the flag EXISTS, not that it fits your data. Any flag a verdict relies on must be called once on your data in the same pass.
Expensive evidence does not cancel the cheap check: forty minutes of log forensics once "proved" something one --help line disproved in five seconds.
A test that never failed is fake.
$? after | tail or | head belongs to the last command of the pipeline: cmd | head -1; echo $? can print 0 for a real 3. Use no pipe, set -o pipefail, ${PIPESTATUS[0]}, or write output to a file and read it after.test --flagA || test --flagB does not prove redness: a test that swallows unknown flags silently returns green and || never reaches the right call. Require three measurements: a garbage flag must fail (strictness canary), the green run exits 0, the red run exits non-zero. Refusing to start (usage error) is NOT redness.PYTHONDONTWRITEBYTECODE=1) because same-second mutations can reuse stale caches and blame the previous mutant. A mutant must kill exactly ITS check; killing others means it is misnamed or the run is dirty. Finish with a control run on the restored original. Verify the mutation itself actually breaks the protection (X = [] or [...] yields a non-empty list).When a verdict rests on a regex, stop-word list, glob or string parser, before "done":
founding, founder-builder); a legitimate homonym.The commonest silent bug is not in the core but in invisible results.
Every living part gets, in the same pass: a test, a docstring-style passport in the file (input, output, who calls it, what breaks), and a usage counter (timestamp, actor, event, outcome). Measure use, not calls. A hook or door that is not wired into the config is not built: prove it by calling it through the real entry point.
Steps 1-3 green is only the FIRST pass. The second must differ from the first or it repeats the same blindness.
Send the CODE OF THE FIX, not the original task, plus a list of "what I declared closed", and ask the reviewer to break THESE fixes. Own green acceptance is not evidence. Use reviewers of other model families, in parallel; your own model's subagents are extra eyes but do not count as independent. Findings are hypotheses: verify each against the primary source, report accepted and refuted. Two or more reviewers naming the same defect independently means fix without debate. A reviewer who approves must have run at least one check themselves. Notes-only changes may skip this consciously, with the skip logged. Reviewer unavailable after all doors tried: the verdict caps at partial, never pass.
Any failure in Steps 1-3 is a defect of THIS task's artifact: dig to the root, fix the class, go back to Step 1 and re-run until clean. Do not patch the symptom. Safety-critical parts (locks, sync, auth, scheduler, idempotency): read the implementation before changing it and add a mini-test.
ok row. All busy, skip, blocked means the door is locked shut and the repair subject is the lock. "We did it by hand" in the object's history is the strongest sign of a locked door.Short table: what was checked, how (live output), pass or partial or fail. Then one final line:
Verdict ceilings (partial at best even if everything else is green): second opinion skipped; no test, doc or counter; autonomous loop with unproven backpressure; fix not rolled out to every consumer; second pass not shown as a line ("rechecked by X, found / did not find Y").
Flattering conclusions get a stronger check, not a weaker one. If the conclusion is convenient (closes the work, blames someone else, puts us ahead, allows skipping an unpleasant task, confirms prior belief), require ONE extra independent evidence item.
Final status line, mandatory form:
verified: <what, with command or file evidence> | not verified: <what, and why> | verdict: PASS/PARTIAL/FAIL
Delivery is not effect. If the work promised an effect (fewer tokens, more replies, faster, cheaper), add a line: measure on: <date in 30 days> | metric | instrument | baseline | control; otherwise measure: not applicable. If the fix is a class that strangers could reproduce without your internals, offer it to the public (a short write-up or an upstream thread) in the same pass.
flowchart TD
S([Built something]) --> A{Code touched?}
A -->|no| B[Check the text against the task] --> V
A -->|yes| C[Step 1 live run, same interpreter as consumer]
C --> D[Step 2 break on purpose, red proof]
D --> E{Failure?}
E -->|yes| R[Step 6 root cause, fix, re-run] --> C
E -->|no| F[Step 4 second pass, different method]
F --> G{Executable change?}
G -->|yes| H[Step 5 foreign review]
G -->|no| V
H --> V[Step 7 verdict + status line]
Like this skill? It is part of second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.
Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).
Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_
Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tonydzi/second-brain-starter-kit --plugin second-brain-skills248 skills in this plugin
/03Run an autonomous consensus round between agent peers on several machines: they negotiate a decision over a shared channel and execute it without a human relaying messages. Use when multiple machines must agree on a change. Triggers: "/03", "work it out among yourselves", "find consensus". Wakes the human only for irreversible actions or a deadlock./1Recover a session after a hard crash (app died, machine rebooted, context lost mid-work): replay the turn-state ledger for the last requests, files and decisions, run a green/red health ping over the system map, file sync and MCP connectors, then rebuild the previous session history for pickup. Triggers: "/1", "resume after crash", "wake"./agendaShow the operator's day: today's calendar plus what needs them personally (leads due, people awaiting a reply, deadlines), pulled from Calendar and Telegram and ranked. Read-only: sends and commits nothing. Triggers: "/agenda", "what's on today", "my agenda"./ai-slopRewrite machine-written text so it reads like a busy human wrote it: cut 50-70%, break the even rhythm, drop AI-tell words and filler, keep facts and protected terms. Use before publishing any post, reply or email drafted by a model. Triggers: /ai-slop, /slop, humanize, anti-slop, make it shorter and alive./ak47Pick the simplest and cheapest-in-tokens solution before building anything and before declaring done: five build-or-not questions, a token-cost ladder, a complication test and four pre-completion checks. Use for any script, skill, rule, schema or automation decision. Triggers: "/ak47", "make it simpler", "simplify", "cheaper in tokens", before a build, before "done"./alfa-search-recall-deepresearchDecision protocol for strategic work: recall the knowledge vault, run a gap analysis, emit a deep-research prompt for external tools, then synthesize the returned reports into a decision memo. Use before any new product, feature, market, pricing, GTM or architecture call, where local recall alone is not enough. Triggers: "/alfa-search-recall-deepresearch", "alpha protocol", "R+DR".Other plugins' skills for the same job