--- name: prove-it-works description: Use when asked to prove a software change works or run a Pstack-style proof and adversarial review loop. Exercise the real user path, capture reproducible evidence, and repeat fresh-context reviews after material fixes. --- # Prove it works ## Define what would count as proof Read the request, relevant spec, and repo verification instructions. Identify the changed user journeys or public contracts, the observable results, and the downstream behavior most likely to regress. Give each important claim an expected result and a check that could fail. For bug fixes, reproduce the original failure when practical. For performance or parity claims, capture a baseline under comparable conditions. ## Run the real path - Reuse the repo's feature map, verification skill, and driver. If they're missing, trace each affected feature from its user entry point to the expected outcome and use the simplest repeatable way to drive it. When asked to make verification reusable, capture launch, readiness, drive, evidence, and cleanup instructions in a repo-local harness and exercise one mapped path end to end. - Confirm the build, environment, and fixture before driving. Use the actual UI, CLI, API, or public library interface. Check the visible outcome and relevant side effects. Use isolated state and test accounts when possible. Treat remote writes, deployment, and merge as separate actions that require task authority. - Run the relevant lint, types, and tests. Record what each check establishes. If an important assertion could pass without exercising the claimed behavior, demonstrate that it fails on the old build, a deliberately broken case in scratch, or another appropriate negative control. When mocks stand in for an external integration, state which boundary remains untested. - Capture the revision and environment, exact command or interaction, and observed result. Keep useful logs, screenshots, recordings, or outputs accessible after cleaning up test resources. When a claim needs stronger evidence, use a user-facing statechart to check intended transitions, property-based tests for broad input or action sequences, or formal methods for a specific high-risk invariant. State what the model or test actually covers. ## Challenge the current result Run this review loop when the user invokes this skill by name, asks for adversarial review, or requests the full Pstack loop. For a proof-only request, complete the runtime checks. For the full loop, give a fresh reviewer the user's goal, current diff or artifact, and reproduction evidence. Ask them to look for reachable failures, weak assertions, and gaps in product intent or maintainability. Keep prior verdicts and the implementer's defense out of the brief. Ask for concrete evidence and user impact. Use separate reviewers when distinct concerns warrant independent judgment. Reproduce or evaluate the findings, fix material issues in scope, and rerun affected proof. Give a new reviewer the updated result after material changes. Finish when the current revision meets the acceptance criteria, runtime proof covers the essential claims, and a fresh review finds no unresolved material issues. If access, delegation, or the agreed effort limit prevents that, report the missing coverage and the strongest evidence you obtained. ## Hand off the evidence When a recurring failure warrants prevention, first look for a narrow API or architecture constraint, then a type, lint, or regression check with an actionable failure. Reserve prose for judgment the tooling cannot encode. Prove the inner loop before proposing release automation. Close with a short evidence summary suitable for a handoff or PR. Include the method, observed result, evidence path, and any failed, blocked, or skipped checks. Identify the coverage of the final review and include model details only when they matter to interpreting the evidence.