proof-of-work
npx machina-cli add skill athola/claude-night-market/proof-of-work --openclawProof of Work
Table of Contents
- Overview
- The Iron Law
- Usage Standards
- Validation Protocol
- Integration
- Validation Checklist
- Red Flag Self-Check
- Exit Criteria
Overview
The "Proof of Work" methodology prevents premature completion claims by requiring technical verification before stating that a task is finished. For example, instead of assuming an LSP configuration functions after a restart, we verify that the server starts and that tools respond to queries. This approach confirms the solution works before the user attempts validation.
Before claiming completion, provide reproducible evidence of the solution's performance and address edge cases. All claims must be backed by actual command output captured in the current environment.
The Iron Law
NO IMPLEMENTATION WITHOUT A FAILING TEST FIRST NO COMPLETION CLAIM WITHOUT EVIDENCE FIRST NO CODE WITHOUT UNDERSTANDING FIRST
The Iron Law prevents testing from becoming a perfunctory exercise. If an implementation is planned before tests are written, the RED phase fails to drive the design. Understand the technical rationale for an approach and its limitations before declaring it done. Before writing code, document evidence of the failure being addressed and confirm that tests are driving the implementation.
Verification and TDD Workflow
Verify the fundamentals of the implementation and the reasons for choosing it over alternatives. Identify where a solution might fail rather than stating it should always work. The TDD cycle follows these mandatory steps:
- RED: Write a failing test before implementation.
- GREEN: Create a minimal implementation that passes the test.
- REFACTOR: Improve the code without changing its behavior.
Iron Law Self-Check
| Self-Check Question | If Answer Is Wrong | Action |
|---|---|---|
| Do I have documented evidence of failure/need? | No | STOP - document failure first |
| Am I testing pre-conceived implementation? | Yes | STOP - let test DRIVE design |
| Am I feeling design uncertainty? | No | STOP - uncertainty is GOOD |
| Did test drive implementation? | No | STOP - doing it backwards |
Iron Law Progress Tracking
proof:iron-law-red: Failing test written before implementation.proof:iron-law-green: Minimal implementation passes test.proof:iron-law-refactor: Code improved without behavior change.proof:iron-law-coverage: Coverage gates passed (line, branch, and mutation).
Confirm that work passes all line, branch, and mutation coverage gates. For detailed enforcement patterns, see iron-law-enforcement.md.
Usage Standards
Apply this skill before stating that work is "done," "finished," or "ready." Use it before recommending solutions or stating that a configuration "should work." Stop if you find yourself assuming a configuration is correct without testing it or recommending a fix without first reproducing the problem. Red flags include thinking "this looks correct" without actual verification. If you cannot explain each line of a configuration or why a specific practice applies to the current context, the necessary validation steps have been skipped.
Validation Protocol
Step 1: Reproduce the Problem (proof:problem-reproduced)
Before proposing a solution, verify the current state. Use tools like ps, echo, and cat to check running processes, environment variables, and configuration files. Document the failure with command output and error logs.
Step 2: Test the Solution (proof:solution-tested)
Before claiming a solution works, execute it in the current environment. Capture the actual output and confirm that it matches expected behavior. Do not rely on assumed output.
Step 3: Check for Known Issues (proof:edge-cases-checked)
Research known bugs and limitations related to the approach. Check GitHub issues, version compatibility, and official documentation to identify potential blockers or common pitfalls.
Step 4: Capture Evidence (proof:evidence-captured)
Use imbue:evidence-logging to document the commands executed, their output, timestamps, and the conclusions drawn from each step.
Step 5: Prove Completion (proof:completion-proven)
Define acceptance criteria and validate each item. If a blocker is identified, document the diagnosis with evidence and provide workaround options instead of claiming completion.
Integration
With Improvement Workflows
Use proof-of-work to validate improvement opportunities identified by /update-plugins or /fix-workflow. Document the baseline metrics (step count, failure rate, duration), test the proposed changes, and capture the improved metrics to demonstrate quantitative impact.
Validation Checklist (Before Claiming "Done")
Verify that the problem was reproduced with evidence and the solution was tested in the actual environment. Research known issues and consider edge cases. Capture evidence in a reproducible format and confirm that all acceptance criteria are met. The completion statement must detail the specific tests run and their results, citing evidence for each claim.
Red Flag Self-Check
Before sending a completion message, confirm that you have run the recommended commands and captured their output. Verify that you have researched known issues and that the validation steps are reproducible by the user. Ensure you are proving rather than assuming.
Supporting Modules
- TodoWrite naming patterns - naming conventions and safe deletion rules for imbue TodoWrite items
- Evidence logging - structured evidence capture, audit trails, and reproducibility patterns
Exit Criteria
Complete all progress tracking items. Create an evidence log with reproducible proofs. Define and validate acceptance criteria, and document any identified blockers.
Source
git clone https://github.com/athola/claude-night-market/blob/master/plugins/imbue/skills/proof-of-work/SKILL.mdView on GitHub Overview
Proof of Work enforces 'prove before claim' discipline by requiring validation, testing, and evidence before declaring work complete. It mandates reproducible outputs and documented results for any completion claim, solution recommendation, or improvement validation. This approach guards against premature conclusions and keeps work verifiable in the current environment.
How This Skill Works
The Iron Law drives the workflow: no implementation without a failing test, no completion claim without evidence, and no code without understanding. Teams follow a red-green-refactor cycle and require explicit evidence logging (outputs, logs, and artifacts) to verify that the solution works in the live environment before marking done.
When to Use It
- Before declaring a task as done or ready for release (completion claim).
- During acceptance testing to verify criteria with reproducible outputs.
- When generating proofs or recommending solutions to stakeholders.
- When validating performance improvements or workflow optimizations with concrete evidence.
- When resolving issues and closing tickets only after verifiable results are captured.
Quick Start
- Step 1: Identify the completion claim and write a failing test that captures it.
- Step 2: Implement the minimal fix to pass the test and run the validation against the current environment.
- Step 3: Capture and attach reproducible outputs (logs, commands, results) and mark the work DONE only with evidence.
Best Practices
- Write a failing test (RED) before implementing a solution.
- Keep a minimal, test-driven implementation that passes the test (GREEN).
- Capture and attach reproducible command outputs from the current environment.
- Document edge cases, failure modes, and what evidence addresses them.
- Avoid making completion claims without explicit logs, outputs, and test results.
Example Use Cases
- Restart a service and provide startup logs and health-check outputs as proof.
- Apply a bug fix only after a failing test is addressed and a passing test is shown.
- Benchmark before/after performance with captured tool outputs.
- Provide a traceability link between requirements, tests, and evidence before closure.
- In code reviews, require a RED-GREEN-REFACTOR cycle with attached evidence.
Frequently Asked Questions
Related Skills
rigorous-reasoning
athola/claude-night-market
'Prevents sycophantic reasoning through checklist-based analysis, categorical
workflow-monitor
athola/claude-night-market
automatically create GitHub issues for workflow improvements via /fix-workflow.
feature-review
athola/claude-night-market
'Feature review and prioritization with RICE/WSJF/Kano scoring. Creates
scope-guard
athola/claude-night-market
'Use this skill BEFORE implementing any new feature. This is NON-NEGOTIABLE