aiki
CLAUDE.md0 starsChanged 9 months agoMITView on GitHub
Always record architecture, technology choices, and design decisions: Before ending a session: - Ask "Update CLAUDE.md with today's work" - Or manually update the Work History section Latest important decisions (see docs/decisions/ for details):
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/ai-delegation.mdcCursor rule
- analyzeSkill
- apiSkill
- checkpointingSkill
- debateSkill
- frontend-designSkill
- implementSkill
- mockupSkill
- mockup-swiftSkill
- projectSkill
- requirementsSkill
- researchSkill
- reviewSkill
- specSkill
- testSkill
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
NEVER implement source code directly: when the task matches Codex delegation criteria:
- Distinctive: line 10
Test file creation → MUST delegate to Codex
- Very specific: line 17
Use /requirements and /spec to create them first
- Distinctive: line 60
Always record architecture, technology choices, and design decisions:
- Distinctive: line 68
Before ending a session:
- Distinctive: line 69
Ask "Update CLAUDE.md with today's work"
- Very specific: line 74
Always write requirements in docs/requirements/ before adding new features
- Distinctive: line 75
Default policy: delegate implementation to Codex
- Very specific: line 77
When user says "record this decision", save to docs/decisions/
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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
Claude Workflow Rules
Rule Enforcement (MANDATORY — DO NOT IGNORE)
HARD RULES — These are NOT suggestions. Violations will be BLOCKED by hooks.
- NEVER implement source code directly when the task matches Codex delegation criteria:
- 3+ new source files → MUST delegate to Codex via
/implement - 5+ source file edits → MUST delegate to Codex via
/implement - Test file creation → MUST delegate to Codex
- Boilerplate/repetitive code → MUST delegate to Codex
- Enforced by:
enforce-delegation.sh(PreToolUse hook, exit code 2 = BLOCK)
- 3+ new source files → MUST delegate to Codex via
- NEVER start implementation without design artifacts:
docs/requirements/{feature}.mdMUST exist before writing source codedocs/specs/{feature}.mdMUST exist before writing source code- Use
/requirementsand/specto create them first - Enforced by:
agent-router.sh(design-first warning)
- Claude's allowed domains (NOT blocked):
- Documentation (
.mdfiles) - Configuration (
.json,.yaml,.toml) - Design artifacts (
docs/,.claude/,skills/,scripts/) - Requirements, specs, reviews, API design
- Code review and architecture decisions
- Hook/script infrastructure
- Documentation (
- Override: User can set
export FORCE_CLAUDE=1to bypass all blocks. - Session counters: Reset with
rm .claude/.session_edit_count .claude/.session_new_files .claude/.session_edit_log
Command System
| Command | AI | Purpose |
/project <feature> | All | Complete flow: design -> implementation -> deploy |
/requirements | Claude | Requirements definition |
/spec | Claude | UI specifications |
/implement | Codex | Implementation |
/review | Claude | Review |
/checkpointing | Claude | Save session state |
Claude Code Orchestra
Auto-collaboration suggestions (Hooks)
| Keyword | Suggested AI | Example |
| implement, create | Codex | "Implement authentication" |
| test | Codex | "Write unit tests" |
| research, analyze | Gemini | "Compare React state management" |
| compare, library | Gemini | "Evaluate auth libraries" |
| trend, buzz, viral | Grok | "What's trending in React community" |
| X search, realtime | Grok | "Latest developer reactions to Next.js 15" |
Working Rules
1. Record important decisions
Always record architecture, technology choices, and design decisions:
docs/decisions/YYYY-MM-DD-title.md2. End of session
Before ending a session:
- Ask "Update CLAUDE.md with today's work"
- Or manually update the Work History section
Notes for Claude
- Always write requirements in
docs/requirements/before adding new features - Default policy: delegate implementation to Codex
- Save benchmark results in
benchmarks/ - When user says "record this decision", save to
docs/decisions/ - Record design principles in
.claude/docs/DESIGN.md - Gemini research results →
.claude/docs/research/ - Grok research results →
.claude/docs/research/(prefixed withgrok-)
Important Decisions
Latest important decisions (see docs/decisions/ for details):
- 2026-03-13: Integrated rulesync for unified AI rule management
- 2026-02-14: Added Grok (xAI) as 4th AI - real-time trend & X search specialist
- 2026-02-03: Integrated Claude Code Orchestra (Hooks + Rules + Knowledge Base + Checkpointing)
Work History
2026-05-08
- Added Multi-Agent Debate case study (Solver / Proposer / Checker pattern)
docs/examples/multi-agent-debate-case-study.md— 1ジョブで法律解釈の事実誤認を検出した実例- README に動線追加("Real-world Case" subsection under Case Study)
- 検証手法: Solver(Claude) → Proposer(Gemini) → Checker(Claude+WebSearch)
- 参考研究: MARCH (2026), Microsoft CORE — false positive -25.8%
- 将来の
aiki debate <claim-file>サブコマンド化候補として記録
2026-03-13
- Integrated rulesync for unified AI rules management
.rulesync/rules/- Single source of truth for all AI rulesrulesync generateauto-generates CLAUDE.md, AGENTS.md, GEMINI.mdrulesync installfor declarative skill management- Added rulesync setup to install-fullstack.sh
2026-02-14
- Added Grok (xAI API) integration as 4th AI
2026-02-03
- Integrated Claude Code Orchestra
2025-02-03
- Created CLAUDE.md, established memory persistence rules
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.

