1. CLAUDE.md is for main agent behaviour
CLAUDE.md defines the main agent's role: conversing with users, delegating to sub-agents, and following the promode methodology. It does NOT contain project-specific technical details — those belong in AGENT_ORIENTATION.md.
2. Sub-agents use phase-specific agents
Claude Code sub-agents don't inherit CLAUDE.md. Promode provides phase-specific agents (implementer, reviewer, debugger) with the methodology baked in. Main agents handle brainstorming, planning, and orchestration directly, then delegate execution to the appropriate phase agent.
3. AGENT_ORIENTATION.md is the agent knowledge graph
Each package/directory can have an AGENT_ORIENTATION.md with compact, token-efficient guidance for agents. This is distinct from README.md (which is for humans). Agents read these just-in-time when working in that area.
4. Tests are the documentation
Long-lived markdown should cover architecture and principles only. Detailed behaviour documentation belongs in executable tests. If behaviour isn't tested, it's not guaranteed.
5. CLAUDE.md is standardised
The standard CLAUDE.md (standard/MAIN_AGENT_CLAUDE.md) should be copied exactly into projects. It is designed to work universally. All project-specific content belongs in AGENT_ORIENTATION.md.
- Install — Set up promode in a new project (no existing CLAUDE.md)
- Update — Update an existing promode installation to the latest version
- Migrate — Refactor a non-promode CLAUDE.md, moving content to AGENT_ORIENTATION.md
- Audit — Check if a project follows progressive disclosure principles
Wait for response before proceeding.
Intent-based routing:
- "set up CLAUDE.md", "add agent config", "install promode" → workflows/install.md
- "update promode", "get latest", "upgrade", "update CLAUDE.md" → workflows/update.md
- "CLAUDE.md is too big", "slim down", "refactor existing" → workflows/migrate.md
- "is this right?", "check conformance", "audit" → workflows/audit.md
Key distinction:
- Install = No promode yet, start fresh
- Update = Promode exists, bring to latest version and ensure all components present
- Migrate = Has CLAUDE.md but it's not promode (contains project-specific content)
- Audit = Read-only check, no modifications
After reading the workflow, follow it exactly.
Sub-agents: Main agents delegate execution to phase-specific agents (implementer, reviewer, debugger), which already know the methodology. Brainstorming, planning, and orchestration are done by the main agent.
Promode project structure:
project/
├── CLAUDE.md # Main agent behaviour (promode methodology)
├── KANBAN_BOARD.md # Project tracking across sessions
├── AGENT_ORIENTATION.md # Compact agent guidance (tools, patterns, gotchas)
├── .mcp.json # MCP server configuration
├── README.md # Human documentation (optional, for GitHub etc)
└── packages/
└── {package}/
└── AGENT_ORIENTATION.md # Package-specific agent guidance
| Workflow |
Purpose |
| install.md |
Install promode into new project |
| update.md |
Update existing promode installation to latest version |
| migrate.md |
Migrate non-promode CLAUDE.md content to AGENT_ORIENTATION.md |
| audit.md |
Audit project for progressive disclosure conformance |
|
|
Required:
- CLAUDE.md — exact copy of
standard/MAIN_AGENT_CLAUDE.md
- KANBAN_BOARD.md — project tracking across sessions
- AGENT_ORIENTATION.md — compact agent guidance at project root
- .mcp.json — MCP servers configured (context7, exa, grep_app)
Recommended:
- Package AGENT_ORIENTATION.md files for domain-specific context
- LSP configured for detected languages
- Tests document system behaviour, not markdown files
- README.md exists for humans (GitHub, etc) but is not agent-oriented
1---2name: managing-claude-code-meta3description: MUST be loaded when setting up, installing, migrating, reviewing, auditing, or checking CLAUDE.md files in projects. Covers installing the promode CLAUDE.md into new projects, migrating existing CLAUDE.md content to AGENT_ORIENTATION.md (progressive disclosure), and auditing projects for conformance. Invoke PROACTIVELY when user mentions CLAUDE.md, project setup, agent configuration, or code meta files.4---5
6<essential_principles>
7This skill manages projects that adopt the **promode methodology** — a set of principles and workflows for AI agents to develop software. The methodology emphasises TDD, context conservation, progressive disclosure, and clear delegation patterns.
8
9**1. CLAUDE.md is for main agent behaviour**
10CLAUDE.md defines the main agent's role: conversing with users, delegating to sub-agents, and following the promode methodology. It does NOT contain project-specific technical details — those belong in AGENT_ORIENTATION.md.
11
12**2. Sub-agents use phase-specific agents**
13Claude Code sub-agents don't inherit CLAUDE.md. Promode provides phase-specific agents (implementer, reviewer, debugger) with the methodology baked in. Main agents handle brainstorming, planning, and orchestration directly, then delegate execution to the appropriate phase agent.
14
15**3. AGENT_ORIENTATION.md is the agent knowledge graph**
16Each package/directory can have an AGENT_ORIENTATION.md with compact, token-efficient guidance for agents. This is distinct from README.md (which is for humans). Agents read these just-in-time when working in that area.
17
18**4. Tests are the documentation**
19Long-lived markdown should cover architecture and principles only. Detailed behaviour documentation belongs in executable tests. If behaviour isn't tested, it's not guaranteed.
20
21**5. CLAUDE.md is standardised**
22The standard CLAUDE.md (`standard/MAIN_AGENT_CLAUDE.md`) should be copied exactly into projects. It is designed to work universally. All project-specific content belongs in AGENT_ORIENTATION.md.
23</essential_principles>
24
25<never_do>
26- NEVER modify `standard/MAIN_AGENT_CLAUDE.md` content — it must be copied exactly into projects
27- NEVER add project-specific content to CLAUDE.md (use AGENT_ORIENTATION.md instead)
28- NEVER duplicate content between CLAUDE.md and AGENT_ORIENTATION.md — single source of truth
29- NEVER skip verifying CLAUDE.md matches the standard after installation or migration
30</never_do>
31
32<escalation>
33Stop and ask the user when:
34- Project is not under git version control or has uncommited changes
35- Content doesn't fit KEEP/MOVE/DELETE categories during migration
36- Existing AGENT_ORIENTATION.md conflicts with the suggested structure
37- You've attempted the same step 3+ times without success
38- Changes would affect more than 10 files
39</escalation>
40
41<intake>
42What would you like to do?
43
441. **Install** — Set up promode in a new project (no existing CLAUDE.md)
452. **Update** — Update an existing promode installation to the latest version
463. **Migrate** — Refactor a non-promode CLAUDE.md, moving content to AGENT_ORIENTATION.md
474. **Audit** — Check if a project follows progressive disclosure principles
48
49**Wait for response before proceeding.**
50</intake>
51
52<routing>
53| Response | Next Action | Workflow |
54|----------|-------------|----------|
55| 1, "install", "setup", "new", "create" | Confirm project path | workflows/install.md |
56| 2, "update", "upgrade", "latest", "refresh" | Check existing installation | workflows/update.md |
57| 3, "migrate", "refactor", "move", "convert" | Analyze existing CLAUDE.md | workflows/migrate.md |
58| 4, "audit", "check", "review", "assess" | Scan project structure | workflows/audit.md |
59
60**Intent-based routing:**
61- "set up CLAUDE.md", "add agent config", "install promode" → workflows/install.md
62- "update promode", "get latest", "upgrade", "update CLAUDE.md" → workflows/update.md
63- "CLAUDE.md is too big", "slim down", "refactor existing" → workflows/migrate.md
64- "is this right?", "check conformance", "audit" → workflows/audit.md
65
66**Key distinction:**
67- **Install** = No promode yet, start fresh
68- **Update** = Promode exists, bring to latest version and ensure all components present
69- **Migrate** = Has CLAUDE.md but it's not promode (contains project-specific content)
70- **Audit** = Read-only check, no modifications
71
72**After reading the workflow, follow it exactly.**
73</routing>
74
75<quick_reference>
76**CLAUDE.md**: Copy `standard/MAIN_AGENT_CLAUDE.md` exactly. Do not modify. This configures the main agent with promode methodology.
77
78**Sub-agents**: Main agents delegate execution to phase-specific agents (implementer, reviewer, debugger), which already know the methodology. Brainstorming, planning, and orchestration are done by the main agent.
79
80**Promode project structure:**
81```
82project/
83├── CLAUDE.md # Main agent behaviour (promode methodology)
84├── KANBAN_BOARD.md # Project tracking across sessions
85├── AGENT_ORIENTATION.md # Compact agent guidance (tools, patterns, gotchas)
86├── .mcp.json # MCP server configuration
87├── README.md # Human documentation (optional, for GitHub etc)
88└── packages/
89 └── {package}/
90 └── AGENT_ORIENTATION.md # Package-specific agent guidance
91```
92</quick_reference>
93
94<reference_index>
95- `standard/MAIN_AGENT_CLAUDE.md` — The canonical CLAUDE.md (copy exactly into projects)
96- `references/progressive-disclosure.md` — Why and how to distribute content to AGENT_ORIENTATION.md
97</reference_index>
98
99<workflows_index>
100All in `workflows/`:
101
102| Workflow | Purpose |
103|----------|---------|
104| install.md | Install promode into new project |
105| update.md | Update existing promode installation to latest version |
106| migrate.md | Migrate non-promode CLAUDE.md content to AGENT_ORIENTATION.md |
107| audit.md | Audit project for progressive disclosure conformance |
108</workflows_index>
109
110<success_criteria>
111A well-configured project has these components:
112
113**Required:**
114- CLAUDE.md — exact copy of `standard/MAIN_AGENT_CLAUDE.md`
115- KANBAN_BOARD.md — project tracking across sessions
116- AGENT_ORIENTATION.md — compact agent guidance at project root
117- .mcp.json — MCP servers configured (context7, exa, grep_app)
118
119**Recommended:**
120- Package AGENT_ORIENTATION.md files for domain-specific context
121- LSP configured for detected languages
122- Tests document system behaviour, not markdown files
123- README.md exists for humans (GitHub, etc) but is not agent-oriented
124</success_criteria>