1- # Rummage : Multi-Agent Code Analysis & Proposal System
1+ # Team : Multi-Agent Code Analysis & Proposal System
22
33## Arguments
4+
45- ` query ` : The feature or task description to analyze
56- ` subagents ` : Number of elite coding agents to spawn (default: 3)
6- - ` output_dir ` : Directory for spec artifacts (default: ` .claude/ specs/<auto-generated-name>/ ` )
7+ - ` output_dir ` : Directory for spec artifacts (default: ` .specs/<auto-generated-name>/ ` )
78
89** Usage:** ` /team query="<feature description>" subagents=<N> output_dir="<path>" `
910
1617Store the contents as ` INITIAL_REPORT ` . This context MUST be provided to all subagents in Phase 1. Do NOT proceed without completing this step.
1718
1819### Output Directory Setup
20+
1921- IF ` $ARGUMENTS.output_dir ` is provided, use that path
20- - ELSE auto-generate: ` .claude/ specs/<feature-slug>/ ` (derive slug from query)
22+ - ELSE auto-generate: ` .specs/<feature-slug>/ ` (derive slug from query)
2123- RUN ` mkdir -p $ARGUMENTS.output_dir ` to ensure directory exists
22- - All artifacts (PROPOSAL _ * .md, REVIEW.md, TASKS.md) will be written to this directory
24+ - All artifacts (PROPOSAL \_\ * .md, REVIEW.md, TASKS.md) will be written to this directory
2325
2426---
2527
@@ -32,71 +34,89 @@ Generate exactly `$ARGUMENTS.subagents` elite coding agent perspectives. Each ag
3234For each agent (1 through N), adopt a distinct elite architect persona and execute:
3335
3436``` markdown
35- You are AGENT _ <N >: <PERSONA_NAME> — an elite software architect with deep expertise in <SPECIALIZATION >.
37+ You are AGENT \_ <N >: <PERSONA_NAME> — an elite software architect with deep expertise in <SPECIALIZATION >.
3638
3739## Your Mission
40+
3841Analyze the codebase and produce a comprehensive implementation proposal for:
3942
4043** Feature:** $ARGUMENTS.query
4144
4245## Context Provided
46+
4347<INSERT INITIAL_REPORT HERE >
4448
4549## Your Expertise Lens
50+
4651- <SPECIALIZATION_1>: How you approach this domain
47- - <SPECIALIZATION_2>: Your design philosophy
52+ - <SPECIALIZATION_2>: Your design philosophy
4853- <SPECIALIZATION_3>: Your quality standards
4954
5055## Research Phase
56+
51571 . Examine the codebase structure and patterns
52582 . Identify integration points relevant to the feature
53593 . Assess existing conventions and architectural decisions
54604 . Note potential risks, edge cases, and dependencies
5561
5662## Deliverable Requirements
63+
5764Produce a detailed proposal covering:
5865
5966### 1. Executive Summary
67+
6068Brief overview of your recommended approach (2-3 sentences)
6169
6270### 2. Architectural Analysis
71+
6372- Current state assessment
6473- Proposed changes and their rationale
6574- Integration points and dependencies
6675
6776### 3. Implementation Strategy
77+
6878- Step-by-step implementation plan
6979- File changes required (new files, modifications)
7080- Key code patterns to follow
7181
7282### 4. Design Decisions
83+
7384- Trade-offs considered
7485- Why this approach over alternatives
7586- Alignment with existing codebase patterns
7687
7788### 5. Risk Assessment
89+
7890- Potential pitfalls
7991- Edge cases to handle
8092- Testing considerations
8193
8294### 6. Estimated Complexity
95+
8396- Scope: [ Small | Medium | Large]
8497- Risk Level: [ Low | Medium | High]
8598- Suggested priority order for implementation
8699
87100## Output
101+
88102Write your complete proposal to: ` $ARGUMENTS.output_dir/PROPOSAL_<PERSONA_NAME>.md `
89103```
90104
91- ### Suggested Agent Personas (scale to $ARGUMENTS.subagents)
105+ ### Dynamic Persona Generation (REQUIRED)
106+
107+ Generate ` $ARGUMENTS.subagents ` personas ** derived from ` $ARGUMENTS.query ` ** . Store as ` AGENT_PERSONAS ` .
108+
109+ | Agent | Persona | Query-Specific Focus |
110+ | ----- | ----------------- | -------------------------------------- |
111+ | 1-N | ` <DOMAIN>_<ROLE> ` | Critical dimension of ** this feature** |
112+
113+ ** Format:** Compound names only (e.g., ` AUTH_SENTINEL ` , ` CACHE_STRATEGIST ` ). No generic roles.
92114
93- | Agent | Persona | Specialization |
94- | -------| ---------| ----------------|
95- | 1 | ARCHITECT | System design, scalability, architectural patterns |
96- | 2 | CRAFTSMAN | Clean code, maintainability, SOLID principles |
97- | 3 | GUARDIAN | Security, error handling, edge cases, testing |
98- | 4 | OPTIMIZER | Performance, efficiency, resource management |
99- | 5 | INTEGRATOR | APIs, interfaces, system boundaries |
115+ ** Inject per agent:**
116+
117+ ```
118+ You are <PERSONA> — specialist in <FOCUS>. Analyze "$ARGUMENTS.query" through YOUR lens.
119+ ```
100120
101121---
102122
@@ -108,54 +128,65 @@ After all `$ARGUMENTS.subagents` proposals are generated, convene the AI Council
108128You are the ELITE COUNCIL — a panel of distinguished software architects reviewing implementation proposals.
109129
110130## Context
131+
111132** Feature Under Review:** $ARGUMENTS.query
112133
113134** Initial Project Context:**
114135<INSERT INITIAL_REPORT HERE >
115136
116137## Proposals to Review
117- You have received $ARGUMENTS.subagents independent proposals from ` $ARGUMENTS.output_dir/ ` :
118- <LIST ALL PROPOSAL_ <NAME >.md FILES>
138+
139+ You have received $ARGUMENTS.subagents independent proposals from ` $ARGUMENTS.output*dir/ ` :
140+ <LIST ALL PROPOSAL* <NAME >.md FILES>
119141
120142## Council Directive
143+
121144Synthesize all proposals into a unified, actionable implementation plan. Your review must be thorough, fair, and focused on delivering the best possible solution.
122145
123146## Review Framework
124147
125148### 1. Proposal Comparison Matrix
126- | Aspect | Agent 1 | Agent 2 | Agent N | Council Verdict |
127- | --------| ---------| ---------| ---------| -----------------|
128- | Architecture | | | | |
129- | Maintainability | | | | |
130- | Risk Level | | | | |
131- | Completeness | | | | |
149+
150+ | Aspect | Agent 1 | Agent 2 | Agent N | Council Verdict |
151+ | --------------- | ------- | ------- | ------- | --------------- |
152+ | Architecture | | | | |
153+ | Maintainability | | | | |
154+ | Risk Level | | | | |
155+ | Completeness | | | | |
132156
133157### 2. Consensus Points
158+
134159- What do all/most proposals agree on?
135160- Which patterns are universally recommended?
136161
137162### 3. Divergence Analysis
163+
138164- Where do proposals conflict?
139165- What are the trade-offs between approaches?
140166- Council's reasoned decision on each conflict
141167
142168### 4. Unified Implementation Plan
169+
143170Synthesize the best elements into a single coherent plan:
171+
144172- Recommended architecture
145173- Implementation sequence
146174- Critical path items
147175- Non-negotiable requirements
148176
149177### 5. Risk Consolidation
178+
150179- Combined risk assessment from all perspectives
151180- Mitigation strategies
152181
153182### 6. Final Verdict
183+
154184- GO / NO-GO / CONDITIONAL recommendation
155185- Required conditions if CONDITIONAL
156186- Confidence level: [ High | Medium | Low]
157187
158188## Output
189+
159190Write the complete council review to: ` $ARGUMENTS.output_dir/REVIEW.md `
160191```
161192
@@ -165,15 +196,18 @@ Write the complete council review to: `$ARGUMENTS.output_dir/REVIEW.md`
165196
166197After council review, generate the implementation contract:
167198
168- ``` markdown
199+ ```` markdown
169200You are the TASK ARCHITECT — responsible for converting the council's unified plan into an actionable task checklist.
170201
171202## Input
203+
172204- Council Review: ` $ARGUMENTS.output_dir/REVIEW.md `
173205- Original Feature: $ARGUMENTS.query
174206
175207## Directive
208+
176209Create a precise, atomic task list that serves as the binding contract for implementation. Each task must be:
210+
177211- ** Binary** : Clearly done or not done
178212- ** Atomic** : Single responsibility
179213- ** Ordered** : Correct dependency sequence
@@ -185,47 +219,57 @@ Create a precise, atomic task list that serves as the binding contract for imple
185219# Implementation Tasks: <Feature Title >
186220
187221## Pre-Implementation
222+
188223- [ ] Verify development environment setup
189224- [ ] Create feature branch: ` feature/<short-name> `
190225- [ ] Review REVIEW.md council decisions
191226
192227## Core Implementation
228+
193229- [ ] Task 1: <specific action >
194- - Files: ` path/to/file.ext `
195- - Acceptance: <how to verify >
230+ - Files: ` path/to/file.ext `
231+ - Acceptance: <how to verify >
196232- [ ] Task 2: <specific action >
197- ...
233+ ...
198234
199235## Integration
236+
200237- [ ] Wire up components
201238- [ ] Update configuration files
202239- [ ] Add necessary imports/exports
203240
204241## Testing
242+
205243- [ ] Unit tests for <component >
206244- [ ] Integration tests for <flow >
207245- [ ] Edge case coverage per REVIEW.md
208246
209247## Documentation
248+
210249- [ ] Update relevant documentation
211250- [ ] Add inline code comments for complex logic
212251- [ ] Update CHANGELOG if applicable
213252
214253## Verification
254+
215255- [ ] All tests passing
216256- [ ] Linting/formatting clean
217257- [ ] Self-review against REVIEW.md
218258- [ ] Ready for PR
219259
220260## Completion Signature
261+
221262- Total Tasks: <N >
222263- Estimated Effort: <T >
223264- Dependencies: <list >
224265```
266+ ````
225267
226268## Output
269+
227270Write the complete task contract to: ` $ARGUMENTS.output_dir/TASKS.md `
228- ```
271+
272+ ````
229273
230274---
231275
@@ -258,15 +302,18 @@ After each task:
258302## Progress Log
259303- [x] Task N: Completed <timestamp>
260304 - Notes: <any relevant observations>
261- ```
305+ ````
262306
263307## Completion
308+
264309When all tasks are checked:
310+
2653111 . Final verification against ` $ARGUMENTS.output_dir/REVIEW.md `
2663122 . Run full test suite
2673133 . Update ` $ARGUMENTS.output_dir/TASKS.md ` with completion status
2683144 . Report ready for review
269- ```
315+
316+ ````
270317
271318---
272319
@@ -306,17 +353,17 @@ Generate a brief validation summary:
306353
307354## Output
308355Append validation results to: `$ARGUMENTS.output_dir/TASKS.md` under `## Validation Results`
309- ```
356+ ````
310357
311358---
312359
313360## Quick Reference
314361
315- | Phase | Input | Output | Key Action |
316- | ------- | -------| --------| ------------|
317- | 0 | — | INITIAL_REPORT + output_dir setup | Read CLAUDE.md, create output dir |
318- | 1 | INITIAL_REPORT + query | ` output_dir/PROPOSAL_*.md ` | Generate N agent proposals |
319- | 2 | All proposals | ` output_dir/REVIEW.md ` | Council synthesis |
320- | 3 | REVIEW.md | ` output_dir/TASKS.md ` | Create task contract |
321- | 4 | TASKS.md | Code changes | Implement features |
322- | 5 | Implementation | Validation in TASKS.md | Verify & document |
362+ | Phase | Input | Output | Key Action |
363+ | ----- | -- -------------------- | --------------------------------- | --------------------------------- |
364+ | 0 | — | INITIAL_REPORT + output_dir setup | Read CLAUDE.md, create output dir |
365+ | 1 | INITIAL_REPORT + query | ` output_dir/PROPOSAL_*.md ` | Generate N agent proposals |
366+ | 2 | All proposals | ` output_dir/REVIEW.md ` | Council synthesis |
367+ | 3 | REVIEW.md | ` output_dir/TASKS.md ` | Create task contract |
368+ | 4 | TASKS.md | Code changes | Implement features |
369+ | 5 | Implementation | Validation in TASKS.md | Verify & document |
0 commit comments