autoforge
Skill1 starsChanged 8 months agoMITView on GitHub
Builds features unattended through a 5-phase pipeline with automated code review (/grill), veracity checking (/quick-check), and UX evaluation (Playwright + heuristic scoring). Loops until convergence or circuit breaker. Fully unattended. Zero user prompts. Zero confirmations. Zero pauses. features=all (default) or features=research_library,auto_veracity,batch_queue,cross_topic_synthesis. Optionally skip_ux=true to skip Playwright UX evaluation (faster, for non-HTML features). For each feature, launch a subagent (Agent tool) with the feature spec from ~/.claude/skills/autoforge/references/feature_specs/{feature_id}.md. The agent builds the MVP and writes files to the feature's output directory. Build…
In this repository10 other files it gives its agents.
- context-engineerSkill
- council-improveSkill
- council-qaSkill
- council-ux-testSkill
- grillSkill
- lrs-evalSkill
- readme-auditSkill
- ux-committeeSkill
- veracity-tweaked-555Skill
- veracity-v2-experimentalSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 12 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Create output directory: ~/.claude/autoforge/{YYYY-MM-DD}_{HH-MM-SS}/
- Very specific: line 14
Create subdirectories: features/01_research_library/, features/02_auto_veracity/, features/03_batch_queue/, …
- Distinctive: line 52
After each build completes:
- Very specific: line 53
Update state.json: set feature phase to "built", increment build_pass
- Distinctive: line 57
Context management: After each feature build, compact context.
- Distinctive: line 75
If the feature produced documentation with factual claims (e.g., "supports batch processing", "scans directories matching pattern X"), …
- Distinctive: line 77
Check each claim: does the code actually do what the docs say?
- Distinctive: line 96
If any check failed:
- Distinctive: line 101
If a fix breaks a previously-passing check: revert that fix, try alternative
- Distinctive: line 102
If 3 alternatives all regress: defer the finding
- Very specific: line 106
Read convergence rules from references/convergence_rules.md:
- Distinctive: line 107
All applicable checks pass simultaneously
- Very specific: line 109
If converged: set convergence.converged = true, move to next feature
- Distinctive: line 110
If not converged and pass < 5: loop back to 3a
- Very specific: line 111
If pass = 5 and not converged: write NEEDS_HUMAN.md in feature dir, move on
- Very specific: line 115
Update state.json after every pass:
- Distinctive: line 117
If context heavy, compact before next feature
- Distinctive: line 121
After all features individually converge (or hit circuit breaker):
- Distinctive: line 123
Smoke test: Verify all output files exist at expected locations
- Very specific: line 124
Cross-feature test: If research_library.html exists, verify it can read from the deep-research output structure.
- Very specific: line 125
Combined code review: Run /grill-style review on all feature files together, checking for naming collisions, shared state conflicts, …
- Very specific: line 131
Write a summary to state.json with all final scores
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AutoForge — Self-Improving Build Loop
Builds features unattended through a 5-phase pipeline with automated code review (/grill), veracity checking (/quick-check), and UX evaluation (Playwright + heuristic scoring). Loops until convergence or circuit breaker.
Fully unattended. Zero user prompts. Zero confirmations. Zero pauses.
Input
features=all (default) or features=research_library,auto_veracity,batch_queue,cross_topic_synthesis. Optionally skip_ux=true to skip Playwright UX evaluation (faster, for non-HTML features).
Phase 1: Scaffold
- Create output directory:
~/.claude/autoforge/{YYYY-MM-DD}_{HH-MM-SS}/ - Create subdirectories:
features/01_research_library/,features/02_auto_veracity/,features/03_batch_queue/,features/04_cross_topic_synthesis/,integration/,audit_trails/ - Initialize state file:
state.json(context-engineer pattern for crash recovery)
{
"_schema": "autoforge/state/v1",
"_description": "In progress. Read this file to resume.",
"started": "<ISO-8601>",
"features": [
{"id": "research_library", "type": "html", "phase": "pending", "build_pass": 0, "review_pass": 0,
"grill_score": null, "veracity_score": null, "ux_score": null,
"convergence": {"consecutive_pass": 0, "converged": false}},
{"id": "auto_veracity", "type": "python", "phase": "pending", "build_pass": 0, "review_pass": 0,
"grill_score": null, "veracity_score": null, "ux_score": null,
"convergence": {"consecutive_pass": 0, "converged": false}},
{"id": "batch_queue", "type": "python", "phase": "pending", "build_pass": 0, "review_pass": 0,
"grill_score": null, "veracity_score": null, "ux_score": null,
"convergence": {"consecutive_pass": 0, "converged": false}},
{"id": "cross_topic_synthesis", "type": "python", "phase": "pending", "build_pass": 0, "review_pass": 0,
"grill_score": null, "veracity_score": null, "ux_score": null,
"convergence": {"consecutive_pass": 0, "converged": false}}
],
"integration": {"pass": 0, "converged": false},
"history": []
}Phase 2: Build (Sequential, One Feature at a Time)
For each feature, launch a subagent (Agent tool) with the feature spec from ~/.claude/skills/autoforge/references/feature_specs/{feature_id}.md. The agent builds the MVP and writes files to the feature's output directory.
Build order: research_library → auto_veracity → batch_queue → cross_topic_synthesis
Each build agent receives:
- The feature spec
- Reference to Joon's existing dashboard patterns (dark theme, CSS variables, single HTML file, localStorage)
- Instruction: "Build a working MVP. Do not over-engineer. Keep it simple."
After each build completes:
- Update
state.json: set feature phase to "built", increment build_pass - Copy built files to their target locations (e.g.,
~/.claude/deep-research/research-library.html) - Checkpoint state file
Context management: After each feature build, compact context. The state file has everything needed to resume.
Phase 3: Review Gauntlet (Loop Per Feature)
For each built feature, run the review gauntlet. Loop until convergence or circuit breaker (max 5 passes).
Per-pass gauntlet:
3a. Code Review (/grill pattern)
Launch an agent that performs adversarial code review on the feature's files:
- Phase 1: Comprehensive review (correctness, security, performance, maintainability)
- Phase 2: Critic validates Phase 1 findings
- Auto-fix policy: CRITICAL/HIGH auto-fix, MEDIUM auto-fix if confidence >80%, LOW defer
- Extract pass/fail:
grill_pass = (0 CRITICAL) AND (0 HIGH) AND (MEDIUM <= 3)
3b. Documentation Veracity (if feature has .md files)
If the feature produced documentation with factual claims (e.g., "supports batch processing", "scans directories matching pattern X"), verify claims against the actual code:
- Launch an agent that reads the docs AND the code
- Check each claim: does the code actually do what the docs say?
- Rate: TRUE/FALSE/OVERCLAIMED
- Auto-fix false or overclaimed documentation
- Extract pass/fail:
doc_pass = (0 FALSE claims)
3c. UX Evaluation (if feature type = html AND skip_ux != true)
Launch an agent that:
- Opens the HTML file via Playwright (
browser_navigatetofile://path) - Takes screenshots at 1440x900 (desktop) and 375x812 (mobile)
- Evaluates against Nielsen's 10 heuristics (see
references/ux_heuristics.md) - Each heuristic scored 0-4. UX score = sum / 40 * 100
- Checks: dark theme consistency, text readability, interactive elements work, responsive layout
- Extract pass/fail:
ux_pass = (score >= 75)
For non-HTML features, skip this step (ux_score = N/A, ux_pass = true).
3d. Fix Cycle
If any check failed:
- Collect all findings from failed checks
- Sort by severity (CRITICAL first)
- Apply fixes via Edit tool
- Re-run ONLY the failed checks (not full gauntlet)
- If a fix breaks a previously-passing check: revert that fix, try alternative
- If 3 alternatives all regress: defer the finding
3e. Convergence Check
Read convergence rules from references/convergence_rules.md:
- All applicable checks pass simultaneously
- Scores stable for 2 consecutive passes (delta < 2)
- If converged: set
convergence.converged = true, move to next feature - If not converged and pass < 5: loop back to 3a
- If pass = 5 and not converged: write
NEEDS_HUMAN.mdin feature dir, move on
3f. Checkpoint
Update state.json after every pass:
- Record scores, findings count, fixes applied
- If context heavy, compact before next feature
Phase 4: Integration Test
After all features individually converge (or hit circuit breaker):
- Smoke test: Verify all output files exist at expected locations
- Cross-feature test: If research_library.html exists, verify it can read from the deep-research output structure. Verify auto_veracity script can find unaudited directories. Verify batch_queue can write to queue.json.
- Combined code review: Run
/grill-style review on all feature files together, checking for naming collisions, shared state conflicts, inconsistent patterns - Convergence: 2 consecutive passes with 0 CRITICAL/HIGH
- Circuit breaker: 3 passes max
Phase 5: Package
- Write a summary to
state.jsonwith all final scores - List all files created and their locations
- Note any
NEEDS_HUMAN.mdfiles (features that didn't converge) - Present final summary:
═══════════════════════════════════════════════════
AUTOFORGE COMPLETE
Features: {N built} / {N total}
Duration: {time}
═══════════════════════════════════════════════════
Feature Results:
research_library: {CONVERGED|NEEDS_HUMAN} (grill: {score}, ux: {score})
auto_veracity: {CONVERGED|NEEDS_HUMAN} (grill: {score})
batch_queue: {CONVERGED|NEEDS_HUMAN} (grill: {score})
cross_topic_synthesis: {CONVERGED|NEEDS_HUMAN} (grill: {score})
Integration: {PASSED|NEEDS_HUMAN}
Review passes total: {N}
Files created: {list}
NEEDS_HUMAN items: {list or "none"}
═══════════════════════════════════════════════════Limitations
- UX evaluation via screenshots is approximate — catches layout/contrast/spacing issues but not interaction bugs
- Circuit breakers mean some features may ship with known MEDIUM issues (logged in NEEDS_HUMAN.md)
- Each feature gets a fresh agent context — cross-feature patterns may not be consistent until Phase 4
- Token budget ~1M per feature worst case. Total ~4M+ for all 4 features with review loops.
- Playwright UX evaluation requires the Playwright MCP server to be running
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

