Context
Part of the CLAUDE.md cross-repo DRY refactor (RFC-001) tracked in cybermonkey/prompts#564.
Artemis currently has a 919-line monolithic CLAUDE.md with governance contracts (testing, security, workflow, git rules, coordination) copy-pasted inline. This violates RFC-001's progressive disclosure architecture and makes governance updates a manual multi-repo operation.
Goal
Replace with a thin proxy (~60 lines) that:
- Imports
GOVERNANCE-SUMMARY.md as the always-loaded compact ruleset (~65 rules)
- References full contracts via
@third_party/prompts/CONTRACT.md imports
- Retains only artemis-specific context (bug bounty automation, Go toolchain, worker architecture, commands)
Work
-
Add third_party/prompts git submodule:
git submodule add ssh://git@vhost7:9001/cybermonkey/prompts.git third_party/prompts
-
Write thin CLAUDE.md (~60 lines) containing:
- Project purpose (bug bounty automation, distributed scanning, Go)
- Commands (build, test, lint — from Makefile)
- Governing contracts table with
@third_party/prompts/ imports
- Artemis-specific approach (human-centric, evidence-based, worker architecture)
- Cross-repo work section
- Testing:
@third_party/prompts/TESTING.md + @third_party/prompts/TESTING-GO.md
-
Once cybermonkey/prompts#562 merges, add:
Generic anti-patterns (cross-repo): @third_party/prompts/ANTI-PATTERNS.md
Pattern
Same pattern applied to hecate, hera, helen. See:
- hecate:
refactor/2374-claude-md-factoring
- hera:
refactor/7-claude-md-factoring
- helen:
refactor/14-claude-md-factoring
Branch
refactor/<this-issue-number>-claude-md-factoring
References
- RFC-001:
third_party/prompts/docs/rfcs/RFC-001-governance-prompt-architecture.md (once submodule is added)
- Tracking issue:
cybermonkey/prompts#564
- ANTI-PATTERNS.md blocker:
cybermonkey/prompts#562
Context
Part of the CLAUDE.md cross-repo DRY refactor (RFC-001) tracked in
cybermonkey/prompts#564.Artemis currently has a 919-line monolithic
CLAUDE.mdwith governance contracts (testing, security, workflow, git rules, coordination) copy-pasted inline. This violates RFC-001's progressive disclosure architecture and makes governance updates a manual multi-repo operation.Goal
Replace with a thin proxy (~60 lines) that:
GOVERNANCE-SUMMARY.mdas the always-loaded compact ruleset (~65 rules)@third_party/prompts/CONTRACT.mdimportsWork
Add
third_party/promptsgit submodule:Write thin
CLAUDE.md(~60 lines) containing:@third_party/prompts/imports@third_party/prompts/TESTING.md+@third_party/prompts/TESTING-GO.mdOnce
cybermonkey/prompts#562merges, add:Pattern
Same pattern applied to hecate, hera, helen. See:
refactor/2374-claude-md-factoringrefactor/7-claude-md-factoringrefactor/14-claude-md-factoringBranch
refactor/<this-issue-number>-claude-md-factoringReferences
third_party/prompts/docs/rfcs/RFC-001-governance-prompt-architecture.md(once submodule is added)cybermonkey/prompts#564cybermonkey/prompts#562