ai-fication-kit / rules
Cursor rule3 starsChanged 5 months agoApache-2.0View on GitHub
Fix a bug using the knowledge layer — reproduce first, failing regression test, root cause, surgical fix, review and ledger entry after.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/add-feature.mdcCursor rule
- .cursor/rules/adversarial-audit.mdcCursor rule
- .cursor/rules/ai-knowledge-layer.mdcCursor rule
- .cursor/rules/check-drift.mdcCursor rule
- .cursor/rules/cold-start.mdcCursor rule
- .cursor/rules/create-feature-catalog.mdcCursor rule
- .cursor/rules/perform-feature-add-simulation.mdcCursor rule
- .cursor/rules/post-cold-start-verification.mdcCursor rule
- .cursor/rules/review-agent-config.mdcCursor rule
- .cursor/rules/review-change.mdcCursor rule
- .cursor/rules/verify-ai-readiness.mdcCursor rule
- add-featureSkill
- cold-startSkill
- deep-testSkill
- fix-bugSkill
- review-changeSkill
- add-featureSkill
- adversarial-auditSkill
- check-docsSkill
- check-driftSkill
- cold-startSkill
- create-feature-catalogSkill
- fix-bugSkill
- implement-specSkill
- perform-feature-add-simulationSkill
- post-cold-start-verificationSkill
- review-agent-configSkill
- review-changeSkill
- verify-ai-readinessSkill
The file
Files
--- description: Fix a bug using the knowledge layer — reproduce first, failing regression test, root cause, surgical fix, review and ledger entry after. alwaysApply: false --- <!-- Copyright (c) 2026 Kunal Suri (CEA LIST). All rights reserved. --> Fix the reported bug following the `fix-bug` skill contract (VS Code auto-discovers it from `.claude/skills/fix-bug/` or `.agents/skills/fix-bug/` in this repo). Summary of the contract: 1. **Reproduce first.** Draft `ai/lab/specs/BUGFIX_<name>.md` from the template (symptom, exact steps) and get the user's OK before touching code. 2. **Failing test before fix.** Turn the reproduction into a permanent regression test and watch it fail — that is the proof the bug is understood. 3. **Locate via the maps.** MODULE_MAP Stability → FEATURE_MAP gotchas → WORKLOG history (was this area just touched? is the behavior deliberate?). 4. **Respect Stability.** Root cause in `frozen` or `?` files ⇒ explicit human approval in this conversation, recorded in the bugfix doc. 5. **Root cause, then surgical fix.** Name the defect, not the symptom; smallest diff that turns the regression test green. No drive-by refactors. 6. **Verify.** Regression test green plus the suites covering the touched area. Failing or unrun tests ⇒ not fixed. 7. **Review & record.** Request `/review-change` on the diff; append the `bugfix` row to `ai/lab/WORKLOG.md` and the FEATURE_MAP gotcha — all tagged `[inferred]` for the human to verify.
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.

