backpropagation
Trace runtime bugs back to spec gaps — identify missing acceptance criteria, update specs, generate regression tests, and detect patterns
Behavioral guardrails for Forge agents based on Andrej Karpathy's principles — prevents over-engineering, silent assumptions, scope creep, and unfocused execution
$ npx -y skills add LucasDuys/forge --skill karpathy-guardrails --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/karpathy-guardrailsContext preview
The summary Claude sees to decide when to auto-load this skill.
Behavioral guardrails for Forge agents based on Andrej Karpathy's principles — prevents over-engineering, silent assumptions, scope creep, and unfocused execution
name: karpathy-guardrails description: Behavioral guardrails for Forge agents based on Andrej Karpathy's principles — prevents over-engineering, silent assumptions, scope creep, and unfocused execution
Behavioral guardrails that all Forge agents MUST follow during execution. These four principles prevent the most common failure modes in AI-generated code: silent assumptions, over-engineering, scope creep, and unfocused execution.
These guardrails are referenced by forge-executor, forge-reviewer, and forge-planner agents. They are not optional.
**Rule:** Surface assumptions explicitly. Never hide confusion behind code.
**Anti-pattern:** Implementing "export users" without asking about scope, format, fields, or volume. **Correct pattern:** Flag ambiguity, present interpretations, get clarification.
**Rule:** Write the minimum code that solves only the stated problem.
**Anti-pattern:** Building abstract strategy patterns and dataclass configurations for a simple discount calculator. **Correct pattern:** Three lines of direct logic that solve the stated requirement.
**Token impact:** Simpler code uses fewer tokens to generate, review, and verify. Over-engineering wastes budget across the entire pipeline (executor + reviewer + verifier).
**Rule:** Modify only what is necessary to fulfill the task's requirements.
**Anti-pattern:** Fixing an empty email validation bug while also adding username length validation, reformatting the file, and upgrading the test framework. **Correct pattern:** Fix only the email validation. One bug, one fix, one commit.
**Reviewer enforcement:** The forge-reviewer MUST flag any changes that do not trace to an acceptance criterion as IMPORTANT (over-engineering).
**Rule:** Transform vague tasks into verifiable success criteria before writing code.
**Why this works:** LLMs excel at looping until specific goals are met. Clear success criteria enable independent verification and reduce back-and-forth clarification.
When these guardrails are working:
Turn a one-line idea into a branch with tested, reviewed, committed code. The brainstorm-to-commit pipeline for Claude Code.
Repo: LucasDuys/forge
Trace runtime bugs back to spec gaps — identify missing acceptance criteria, update specs, generate regression tests, and detect patterns
Interactive spec generation — turn ideas into concrete specs with R-numbered requirements and testable acceptance criteria
Internal token optimization for Forge agent artifacts (handoff notes, artifact summaries, review notes). NOT exposed as a user-facing /caveman command.
Hackathon-native multiplayer collaboration mode -- brain-dump together, claim tasks across machines, flag decisions async. Drives the subcommands of…
DESIGN.md integration for Forge — ensures visual consistency across all UI tasks through standardized design specifications
Autonomous task implementation workflow — implement, test, review, commit for each task in the frontier