Verwendung
- Installationsbefehl kopieren und das Quellpaket vor der Installation in der eigenen Agentenumgebung prüfen.
- Benötigte Werkzeuge, Zugangsdaten und Hosts im Original prüfen.
- Eingabe und gewünschtes Ergebnis beschreiben und die Ausgabe mit den Quellen abgleichen.
npx skills add https://github.com/longcipher/pb-spec --skill pb-buildVor dem Start
- Die Installation umfasst weder Modellabo noch API-Kontingent oder Dateizugriffsrechte.
- Sterne und Installationen zeigen Aktivität, keine unabhängige Qualitäts- oder Sicherheitsprüfung.
Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.
pb-build
Execute the spec task-by-task. The spec is the source of truth.
Workflow
1. Load spec and resolve tasks
- Resolve
<spec-dir>from actual directory names underspecs/. Never guess. - Parse
### Task X.Y:blocks (4 fields, schema indocs/contract.md), build the dependency graph fromDependsOn(cycle → stop), and execute in dependency order. Independent tasks may run in parallel subagents; same-file tasks must not.
2. Per task — strict TDD loop
- Red: write the failing test first (unit + property tests where applicable; for bug fixes the reproducer IS the red test) → verify it fails. If you wrote code before the test, delete it and start over.
- Green: minimum implementation → verify pass.
- Refactor: clean up → suite still green.
- Verify layers: per the project testing principle, add integration/E2E/fuzz coverage the task's test matrix calls for — boundary and exception paths included. No production code without a failing test first; no completion claims without fresh evidence (run the command, paste output, check exit code — "should pass" is a lie).
3. Mutation testing — selective and scope-bounded
Mutation testing is very slow. Do NOT run it unconditionally:
- Run it when the task touches core logic with subtle correctness risk (parsers, state machines, gas/crypto/boundary math, concurrency), or when the spec's
TDD & Mutation Testing Strategymarks it required. - Scope it strictly: mutate only the files changed by this task —
pb-spec mutate --against <base>or the project's diff-based script. Never whole-repo runs. Prefer targeted selection (e.g.mutmutpath filters) to shrink the run further. - Skip it for infra, config, docs, trivial getters/setters, and UI code.
- Surviving mutants on changed code are test failures: strengthen assertions until they are killed — or record a justified exemption in the task.
4. Failures and handoff
- Per-task failure retry: 1st → retry with the error as hint; 2nd → root-cause analysis before retrying; 3rd → emit a Build Blocked / DCR packet (3 fields:
Reason/Requested Change/Impact) and stop, hand off to/pb-refine. - After each task: flip its
Status:to🟢 DONEintasks.mdand append a one-line result (task, commits, verdict) to the spec's progress notes. - All tasks done → run the full suite once, emit a handoff summary (what shipped, evidence, next steps). On session resume, trust files over memory.
Constraints
- Never improvise beyond the spec: ambiguity or defect → DCR packet, not silent "improvement".
- The only permitted edits under
specs/are bookkeeping: flipping taskStatus:markers and
appending progress notes. Any design/content change goes through a DCR packet instead.
- Never commit/push unless explicitly asked.
- Incremental tests after each task; full suite only at the end.
- Match
AGENTS.mdconventions.



