namnam-skills 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/cli.js +544 -0
- package/src/conversation.js +447 -0
- package/src/indexer.js +793 -0
- package/src/templates/core/namnam.md +493 -237
- package/src/templates/platforms/AGENTS.md +47 -0
- package/src/templates/core/code-review.md +0 -70
- package/src/templates/core/git-commit.md +0 -57
- package/src/templates/core/git-push.md +0 -53
- package/src/templates/core/git-status.md +0 -48
- package/src/templates/core/validate-and-fix.md +0 -69
|
@@ -1,324 +1,580 @@
|
|
|
1
|
-
# /namnam - Universal AI Mega
|
|
1
|
+
# /namnam - Universal AI Mega Command
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **One Command to Rule Them All** - Orchestrate, Git, Review, Validate, Index, and Manage Conversations.
|
|
4
4
|
> Supports: Claude, Codex, Cursor, Windsurf, Cline, Aider, Gemini, and more.
|
|
5
5
|
|
|
6
6
|
## Description
|
|
7
7
|
|
|
8
|
-
`/namnam` is
|
|
8
|
+
`/namnam` is the **single unified command** for all AI operations:
|
|
9
9
|
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
10
|
+
- **Codebase Indexing** - Deep code understanding with auto-index
|
|
11
|
+
- **Orchestration** - Spawn parallel agents for complex tasks
|
|
12
|
+
- **Git Operations** - commit, push, status with smart defaults
|
|
13
|
+
- **Code Review** - Multi-aspect parallel code review
|
|
14
|
+
- **Validation** - Lint, type-check, format with auto-fix
|
|
15
|
+
- **Conversations** - Save and reference cross-session context
|
|
16
|
+
|
|
17
|
+
## Quick Reference
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# FIRST RUN - Auto-indexes codebase
|
|
21
|
+
/namnam # Check/build index, show status
|
|
22
|
+
|
|
23
|
+
# Codebase Indexing
|
|
24
|
+
namnam index build # Build/rebuild codebase index
|
|
25
|
+
namnam index status # Show index status
|
|
26
|
+
namnam index search <query> # Search functions, classes, types
|
|
27
|
+
|
|
28
|
+
# Orchestration (default) - use as /namnam in AI assistants
|
|
29
|
+
/namnam <task> # Intelligent agent orchestration
|
|
30
|
+
/namnam --full <task> # Maximum power mode
|
|
31
|
+
/namnam --quick <task> # Speed priority
|
|
32
|
+
|
|
33
|
+
# Git Operations
|
|
34
|
+
/namnam commit # Smart git commit
|
|
35
|
+
/namnam push # Safe git push
|
|
36
|
+
/namnam status # Enhanced git status
|
|
37
|
+
|
|
38
|
+
# Code Quality
|
|
39
|
+
/namnam review # Multi-aspect code review
|
|
40
|
+
/namnam review src/auth # Review specific path
|
|
41
|
+
/namnam validate # Run all checks + auto-fix
|
|
42
|
+
|
|
43
|
+
# Conversations - use as CLI commands
|
|
44
|
+
namnam conv save # Save conversation context
|
|
45
|
+
namnam conv list # List saved conversations
|
|
46
|
+
namnam conv show <id> # View conversation
|
|
47
|
+
namnam conv update <id> # Update conversation
|
|
48
|
+
namnam conv context <id> # Get raw context
|
|
49
|
+
|
|
50
|
+
# Special Modes
|
|
51
|
+
/namnam --test # Focus on testing
|
|
52
|
+
/namnam --docs # Focus on documentation
|
|
53
|
+
/namnam --security # Security audit
|
|
54
|
+
/namnam --game # Game development mode
|
|
55
|
+
/namnam --creative # Creative/innovation mode
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
16
59
|
|
|
17
60
|
## Supported AI Platforms
|
|
18
61
|
|
|
19
62
|
| Platform | Config File | Status |
|
|
20
63
|
|----------|------------|--------|
|
|
21
|
-
| Claude Code | `.claude/`, `CLAUDE.md` |
|
|
22
|
-
| OpenAI Codex | `codex.md`, `CODEX.md` |
|
|
23
|
-
| Cursor | `.cursorrules` |
|
|
24
|
-
| Windsurf | `.windsurfrules` |
|
|
25
|
-
| Cline | `.clinerules` |
|
|
26
|
-
| Aider | `.aider.conf.yml` |
|
|
27
|
-
| Gemini | `GEMINI.md` |
|
|
28
|
-
| Universal | `AGENTS.md` |
|
|
64
|
+
| Claude Code | `.claude/`, `CLAUDE.md` | Full Support |
|
|
65
|
+
| OpenAI Codex | `codex.md`, `CODEX.md` | Full Support |
|
|
66
|
+
| Cursor | `.cursorrules` | Full Support |
|
|
67
|
+
| Windsurf | `.windsurfrules` | Full Support |
|
|
68
|
+
| Cline | `.clinerules` | Full Support |
|
|
69
|
+
| Aider | `.aider.conf.yml` | Full Support |
|
|
70
|
+
| Gemini | `GEMINI.md` | Full Support |
|
|
71
|
+
| Universal | `AGENTS.md` | All Platforms |
|
|
72
|
+
|
|
73
|
+
---
|
|
29
74
|
|
|
30
|
-
##
|
|
75
|
+
## Instructions
|
|
31
76
|
|
|
32
|
-
|
|
33
|
-
/namnam <your task description>
|
|
34
|
-
```
|
|
77
|
+
You are **NAMNAM** - the Universal Mega Command. Parse the user's input and execute the appropriate action.
|
|
35
78
|
|
|
36
|
-
|
|
79
|
+
### CRITICAL: Auto-Index on First Run
|
|
37
80
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
81
|
+
**Before ANY task**, check if codebase is indexed:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Check if .claude/index/ exists
|
|
85
|
+
# If NOT exists → Run: namnam index build
|
|
86
|
+
# If exists → Load index context for deep understanding
|
|
44
87
|
```
|
|
45
88
|
|
|
89
|
+
When index exists, you have access to:
|
|
90
|
+
- **All functions, classes, types** in the codebase
|
|
91
|
+
- **Import/dependency graph** - who imports what
|
|
92
|
+
- **File summaries** - quick understanding of each file
|
|
93
|
+
- **Patterns** - framework, language, styling, testing tools
|
|
94
|
+
|
|
95
|
+
**Use this knowledge** to make informed decisions about:
|
|
96
|
+
- Where to add new code
|
|
97
|
+
- What existing patterns to follow
|
|
98
|
+
- Which files will be affected by changes
|
|
99
|
+
- How to maintain consistency
|
|
100
|
+
|
|
101
|
+
### Command Routing
|
|
102
|
+
|
|
103
|
+
Parse the first argument after `/namnam`:
|
|
104
|
+
|
|
105
|
+
| Input Pattern | Action |
|
|
106
|
+
|---------------|--------|
|
|
107
|
+
| (no args) | Check/build index, show codebase status |
|
|
108
|
+
| `index <subcmd>` | Execute Index Command |
|
|
109
|
+
| `commit` | Execute Git Commit |
|
|
110
|
+
| `push` | Execute Git Push |
|
|
111
|
+
| `status` | Execute Git Status |
|
|
112
|
+
| `review [path]` | Execute Code Review |
|
|
113
|
+
| `validate` or `fix` | Execute Validate & Fix |
|
|
114
|
+
| `conv <subcommand>` | Execute Conversation Command |
|
|
115
|
+
| `--<mode> <task>` | Execute Orchestration with mode |
|
|
116
|
+
| `<any other text>` | Execute Orchestration (default) |
|
|
117
|
+
|
|
46
118
|
---
|
|
47
119
|
|
|
48
|
-
##
|
|
120
|
+
## 0. Codebase Index (Auto-loaded)
|
|
49
121
|
|
|
50
|
-
|
|
122
|
+
The index provides deep code understanding. Located at `.claude/index/`:
|
|
51
123
|
|
|
52
|
-
|
|
124
|
+
```
|
|
125
|
+
.claude/index/
|
|
126
|
+
├── meta.json # Stats, patterns, timestamps
|
|
127
|
+
├── files.json # All files with hashes
|
|
128
|
+
├── symbols.json # Functions, classes, exports
|
|
129
|
+
├── imports.json # Dependency graph
|
|
130
|
+
├── patterns.json # Framework, language detection
|
|
131
|
+
└── summaries/ # Per-file AI summaries
|
|
132
|
+
```
|
|
53
133
|
|
|
54
|
-
|
|
134
|
+
### Using the Index
|
|
55
135
|
|
|
136
|
+
**Search for symbols:**
|
|
56
137
|
```bash
|
|
57
|
-
|
|
58
|
-
|
|
138
|
+
namnam index search "handleAuth"
|
|
139
|
+
# Returns: function handleAuth - src/auth/handler.ts:42 [exported]
|
|
59
140
|
```
|
|
60
141
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
| `.clinerules` | Cline |
|
|
67
|
-
| `.aider.conf.yml` | Aider |
|
|
68
|
-
| `GEMINI.md` | Gemini |
|
|
69
|
-
| `codex.md` | Codex |
|
|
70
|
-
| `AGENTS.md` | Universal (all platforms) |
|
|
142
|
+
**Generate AI context:**
|
|
143
|
+
```bash
|
|
144
|
+
namnam index context -q "authentication"
|
|
145
|
+
# Returns: Relevant file summaries for AI consumption
|
|
146
|
+
```
|
|
71
147
|
|
|
72
|
-
|
|
148
|
+
**Check for changes:**
|
|
149
|
+
```bash
|
|
150
|
+
namnam index status
|
|
151
|
+
# Shows: new/modified/deleted files since last index
|
|
152
|
+
```
|
|
73
153
|
|
|
74
|
-
|
|
154
|
+
### Auto-Rebuild on Changes
|
|
75
155
|
|
|
76
|
-
|
|
77
|
-
|--------|------------|
|
|
78
|
-
| **Code Development** | implement, create, build, add feature, code |
|
|
79
|
-
| **Code Review** | review, check, audit, analyze code |
|
|
80
|
-
| **Debugging** | fix, debug, error, bug, issue |
|
|
81
|
-
| **Testing** | test, coverage, unit test, e2e |
|
|
82
|
-
| **Git Operations** | commit, push, branch, merge, PR |
|
|
83
|
-
| **Documentation** | document, readme, docs, explain |
|
|
84
|
-
| **Architecture** | design, architect, structure, plan |
|
|
85
|
-
| **Research** | research, investigate, explore, understand |
|
|
86
|
-
| **Performance** | optimize, performance, speed, memory |
|
|
87
|
-
| **Security** | security, vulnerability, audit |
|
|
88
|
-
| **UI/UX** | design, ui, ux, styling, css |
|
|
89
|
-
| **Database** | database, query, schema, migration |
|
|
90
|
-
| **DevOps** | deploy, ci/cd, docker, infrastructure |
|
|
91
|
-
| **Game Dev** | game, unity, unreal, godot |
|
|
92
|
-
| **Creative** | brainstorm, ideate, innovate |
|
|
93
|
-
| **AI/ML** | model, training, inference, prompt |
|
|
94
|
-
|
|
95
|
-
### Step 3: Select Agents
|
|
96
|
-
|
|
97
|
-
Based on the task analysis, select the appropriate agents:
|
|
98
|
-
|
|
99
|
-
#### Claude Code Built-in Agents
|
|
156
|
+
When you detect the index is stale (modified files), suggest:
|
|
100
157
|
```
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
- oracle: Complex debugging, deep analysis
|
|
104
|
-
- react-expert: React patterns, hooks, performance
|
|
105
|
-
- nextjs-expert: Next.js App Router, SSR, SSG
|
|
106
|
-
- typescript-expert: TypeScript deep knowledge
|
|
107
|
-
- nodejs-expert: Node.js runtime, async patterns
|
|
108
|
-
- git-expert: Git workflows, merge conflicts
|
|
109
|
-
- docker-expert: Containerization
|
|
110
|
-
- database-expert: Database optimization
|
|
111
|
-
- postgres-expert: PostgreSQL specific
|
|
112
|
-
- mongodb-expert: MongoDB patterns
|
|
113
|
-
- testing-expert: Test strategies
|
|
114
|
-
- jest-testing-expert: Jest framework
|
|
115
|
-
- vitest-testing-expert: Vitest framework
|
|
116
|
-
- playwright-expert: E2E testing
|
|
117
|
-
- css-styling-expert: CSS architecture
|
|
118
|
-
- accessibility-expert: WCAG compliance
|
|
119
|
-
- devops-expert: CI/CD, infrastructure
|
|
120
|
-
- github-actions-expert: GitHub Actions
|
|
121
|
-
- vite-expert: Vite bundler
|
|
122
|
-
- webpack-expert: Webpack config
|
|
123
|
-
- nestjs-expert: NestJS framework
|
|
124
|
-
- ai-sdk-expert: Vercel AI SDK
|
|
125
|
-
- refactoring-expert: Code refactoring
|
|
126
|
-
- code-review-expert: Comprehensive code review
|
|
127
|
-
- research-expert: Research tasks
|
|
128
|
-
- triage-expert: Problem diagnosis
|
|
129
|
-
- documentation-expert: Documentation
|
|
130
|
-
- typescript-build-expert: Build optimization
|
|
131
|
-
- typescript-type-expert: Advanced types
|
|
158
|
+
Index has changes. Rebuilding for accurate understanding...
|
|
159
|
+
namnam index build
|
|
132
160
|
```
|
|
133
161
|
|
|
134
|
-
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## 1. Orchestration Mode (Default)
|
|
165
|
+
|
|
166
|
+
When no specific command is recognized, run as orchestrator.
|
|
167
|
+
|
|
168
|
+
### Step 1: Analyze Task
|
|
169
|
+
|
|
170
|
+
Categorize into domains:
|
|
171
|
+
|
|
172
|
+
| Domain | Indicators |
|
|
173
|
+
|--------|------------|
|
|
174
|
+
| Code Development | implement, create, build, add feature |
|
|
175
|
+
| Code Review | review, check, audit, analyze |
|
|
176
|
+
| Debugging | fix, debug, error, bug |
|
|
177
|
+
| Testing | test, coverage, unit, e2e |
|
|
178
|
+
| Git Operations | commit, push, branch, merge |
|
|
179
|
+
| Documentation | document, readme, docs |
|
|
180
|
+
| Architecture | design, architect, structure |
|
|
181
|
+
| Research | research, investigate, explore |
|
|
182
|
+
| Performance | optimize, speed, memory |
|
|
183
|
+
| Security | security, vulnerability |
|
|
184
|
+
| UI/UX | design, ui, styling, css |
|
|
185
|
+
| Database | database, query, schema |
|
|
186
|
+
| DevOps | deploy, ci/cd, docker |
|
|
187
|
+
| Game Dev | game, unity, unreal, godot |
|
|
188
|
+
| Creative | brainstorm, ideate, innovate |
|
|
189
|
+
|
|
190
|
+
### Step 2: Select Agents
|
|
191
|
+
|
|
192
|
+
**Claude Code Built-in Agents:**
|
|
135
193
|
```
|
|
136
|
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
|
|
194
|
+
Explore, Plan, oracle, react-expert, nextjs-expert, typescript-expert,
|
|
195
|
+
nodejs-expert, git-expert, docker-expert, database-expert, postgres-expert,
|
|
196
|
+
mongodb-expert, testing-expert, jest-testing-expert, vitest-testing-expert,
|
|
197
|
+
playwright-expert, css-styling-expert, accessibility-expert, devops-expert,
|
|
198
|
+
github-actions-expert, vite-expert, webpack-expert, nestjs-expert,
|
|
199
|
+
ai-sdk-expert, refactoring-expert, code-review-expert, research-expert,
|
|
200
|
+
triage-expert, documentation-expert, typescript-build-expert, typescript-type-expert
|
|
142
201
|
```
|
|
143
202
|
|
|
144
|
-
|
|
203
|
+
**BMAD Agents:**
|
|
145
204
|
```
|
|
146
|
-
|
|
147
|
-
-
|
|
205
|
+
bmad:bmm:agents:* (analyst, architect, dev, pm, sm, tea, tech-writer, ux-designer)
|
|
206
|
+
bmad:bmgd:agents:* (game-architect, game-designer, game-dev, game-qa)
|
|
207
|
+
bmad:cis:agents:* (brainstorming-coach, creative-problem-solver, design-thinking-coach)
|
|
148
208
|
```
|
|
149
209
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
210
|
+
### Step 3: Execute in Phases
|
|
211
|
+
|
|
212
|
+
1. **Phase 1 - Analysis** (parallel): Explore, Triage, Research
|
|
213
|
+
2. **Phase 2 - Planning**: Plan, Architecture agents
|
|
214
|
+
3. **Phase 3 - Execution** (parallel): Development, Testing, Docs
|
|
215
|
+
4. **Phase 4 - Finalization**: Review, Git, DevOps
|
|
216
|
+
|
|
217
|
+
### Step 4: Aggregate Results
|
|
218
|
+
|
|
219
|
+
```markdown
|
|
220
|
+
## NAMNAM Orchestration Complete
|
|
221
|
+
|
|
222
|
+
### Agents Deployed
|
|
223
|
+
- [List of agents]
|
|
224
|
+
|
|
225
|
+
### Tasks Completed
|
|
226
|
+
- [Summary per agent]
|
|
227
|
+
|
|
228
|
+
### Results
|
|
229
|
+
- [Combined output]
|
|
230
|
+
|
|
231
|
+
### Next Steps
|
|
232
|
+
- [Follow-up actions]
|
|
161
233
|
```
|
|
162
234
|
|
|
163
|
-
|
|
235
|
+
### Orchestration Modes
|
|
236
|
+
|
|
237
|
+
| Mode | Flag | Focus |
|
|
238
|
+
|------|------|-------|
|
|
239
|
+
| Full Power | `--full` | All relevant agents |
|
|
240
|
+
| Quick | `--quick` | Minimal agents |
|
|
241
|
+
| Review | `--review` | Code review focus |
|
|
242
|
+
| Build | `--build` | Development focus |
|
|
243
|
+
| Test | `--test` | Testing focus |
|
|
244
|
+
| Docs | `--docs` | Documentation focus |
|
|
245
|
+
| Security | `--security` | Security audit |
|
|
246
|
+
| Performance | `--performance` | Optimization |
|
|
247
|
+
| Game | `--game` | Game dev (BMGD) |
|
|
248
|
+
| Creative | `--creative` | Innovation (CIS) |
|
|
249
|
+
| Multi-Platform | `--multi-platform` | Sync all AI configs |
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## 2. Git Commands
|
|
254
|
+
|
|
255
|
+
### /namnam commit
|
|
256
|
+
|
|
257
|
+
Smart git commit with conventional format.
|
|
258
|
+
|
|
259
|
+
**Process:**
|
|
260
|
+
1. Check git status
|
|
261
|
+
2. If no staged changes, show options
|
|
262
|
+
3. Analyze diff
|
|
263
|
+
4. Generate commit message
|
|
264
|
+
5. Execute commit
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
git status --porcelain
|
|
268
|
+
git diff --staged --stat
|
|
269
|
+
git commit -m "$(cat <<'EOF'
|
|
270
|
+
<type>(<scope>): <subject>
|
|
271
|
+
|
|
272
|
+
<body>
|
|
273
|
+
|
|
274
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
275
|
+
EOF
|
|
276
|
+
)"
|
|
164
277
|
```
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
278
|
+
|
|
279
|
+
**Commit Types:**
|
|
280
|
+
| Type | When |
|
|
281
|
+
|------|------|
|
|
282
|
+
| `feat` | New feature |
|
|
283
|
+
| `fix` | Bug fix |
|
|
284
|
+
| `docs` | Documentation |
|
|
285
|
+
| `refactor` | Code restructure |
|
|
286
|
+
| `test` | Tests |
|
|
287
|
+
| `chore` | Maintenance |
|
|
288
|
+
|
|
289
|
+
### /namnam push
|
|
290
|
+
|
|
291
|
+
Safe git push with checks.
|
|
292
|
+
|
|
293
|
+
**Process:**
|
|
294
|
+
1. Check status and unpushed commits
|
|
295
|
+
2. Validate branch (warn on main/master)
|
|
296
|
+
3. Check for uncommitted changes
|
|
297
|
+
4. Execute push
|
|
298
|
+
|
|
299
|
+
```bash
|
|
300
|
+
git status
|
|
301
|
+
git log origin/HEAD..HEAD --oneline
|
|
302
|
+
git push -u origin <branch>
|
|
171
303
|
```
|
|
172
304
|
|
|
173
|
-
|
|
305
|
+
**Output:**
|
|
306
|
+
```markdown
|
|
307
|
+
## Push Complete
|
|
308
|
+
|
|
309
|
+
**Branch**: feature/auth → origin/feature/auth
|
|
310
|
+
**Commits pushed**: 3
|
|
311
|
+
|
|
312
|
+
### Next Steps
|
|
313
|
+
- Create PR: `gh pr create`
|
|
174
314
|
```
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
315
|
+
|
|
316
|
+
### /namnam status
|
|
317
|
+
|
|
318
|
+
Enhanced git status with insights.
|
|
319
|
+
|
|
320
|
+
**Output:**
|
|
321
|
+
```markdown
|
|
322
|
+
## Git Status
|
|
323
|
+
|
|
324
|
+
### Branch
|
|
325
|
+
**Current**: feature/auth
|
|
326
|
+
**Tracking**: origin/feature/auth (2 ahead, 1 behind)
|
|
327
|
+
|
|
328
|
+
### Changes
|
|
329
|
+
|
|
330
|
+
#### Staged
|
|
331
|
+
- src/auth/login.ts (+42, -15)
|
|
332
|
+
|
|
333
|
+
#### Modified (not staged)
|
|
334
|
+
- src/components/Form.tsx
|
|
335
|
+
|
|
336
|
+
#### Untracked
|
|
337
|
+
- src/new-file.ts
|
|
338
|
+
|
|
339
|
+
### Suggestions
|
|
340
|
+
- Run `/namnam commit` to commit
|
|
341
|
+
- Run `/namnam push` to push
|
|
181
342
|
```
|
|
182
343
|
|
|
183
|
-
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
## 3. Code Review
|
|
184
347
|
|
|
185
|
-
|
|
348
|
+
### /namnam review [path]
|
|
186
349
|
|
|
187
|
-
|
|
350
|
+
Multi-aspect code review using parallel agents.
|
|
188
351
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
-
|
|
352
|
+
**Process:**
|
|
353
|
+
1. If no path, review recent changes: `git diff --name-only HEAD~1`
|
|
354
|
+
2. Spawn review agents in parallel:
|
|
355
|
+
- Architecture Reviewer
|
|
356
|
+
- Code Quality Reviewer
|
|
357
|
+
- Security Reviewer
|
|
358
|
+
- Performance Reviewer
|
|
359
|
+
- Testing Reviewer
|
|
360
|
+
- Documentation Reviewer
|
|
361
|
+
3. Aggregate results
|
|
362
|
+
|
|
363
|
+
**Output:**
|
|
364
|
+
```markdown
|
|
365
|
+
## Code Review Report
|
|
366
|
+
|
|
367
|
+
### Summary
|
|
368
|
+
- **Files reviewed**: 12
|
|
369
|
+
- **Issues found**: 8
|
|
370
|
+
- **Severity**: 2 Critical, 3 High, 3 Medium
|
|
371
|
+
|
|
372
|
+
### Critical Issues
|
|
373
|
+
| File:Line | Issue | Fix |
|
|
374
|
+
|-----------|-------|-----|
|
|
375
|
+
| auth.ts:42 | SQL injection | Use parameterized query |
|
|
376
|
+
|
|
377
|
+
### High Priority
|
|
378
|
+
| File:Line | Issue | Fix |
|
|
379
|
+
|-----------|-------|-----|
|
|
380
|
+
| utils.ts:15 | No validation | Add input validation |
|
|
381
|
+
|
|
382
|
+
### Strengths
|
|
383
|
+
- Good separation of concerns
|
|
384
|
+
- Consistent naming
|
|
385
|
+
|
|
386
|
+
### Recommendations
|
|
387
|
+
1. Fix critical security issues
|
|
388
|
+
2. Add input validation
|
|
389
|
+
3. Increase test coverage
|
|
390
|
+
```
|
|
193
391
|
|
|
194
|
-
|
|
195
|
-
- Plan agent for implementation strategy
|
|
196
|
-
- Architecture agents if structural changes needed
|
|
392
|
+
---
|
|
197
393
|
|
|
198
|
-
|
|
199
|
-
- Development agents (react, nextjs, typescript, etc.)
|
|
200
|
-
- Testing agents
|
|
201
|
-
- Documentation agents
|
|
394
|
+
## 4. Validate & Fix
|
|
202
395
|
|
|
203
|
-
|
|
204
|
-
- Code review agents
|
|
205
|
-
- Git operations
|
|
206
|
-
- DevOps if deployment needed
|
|
396
|
+
### /namnam validate
|
|
207
397
|
|
|
208
|
-
|
|
398
|
+
Run quality checks and auto-fix.
|
|
209
399
|
|
|
210
|
-
|
|
400
|
+
**Process:**
|
|
401
|
+
1. Detect project type (package.json, tsconfig, eslint, prettier)
|
|
402
|
+
2. Run checks in parallel:
|
|
403
|
+
- Lint: `npm run lint`
|
|
404
|
+
- Types: `npx tsc --noEmit`
|
|
405
|
+
- Format: `npx prettier --check .`
|
|
406
|
+
- Tests: `npm test`
|
|
407
|
+
3. Auto-fix what's possible
|
|
408
|
+
4. Report results
|
|
211
409
|
|
|
410
|
+
**Output:**
|
|
212
411
|
```markdown
|
|
213
|
-
##
|
|
412
|
+
## Validation Results
|
|
214
413
|
|
|
215
|
-
###
|
|
216
|
-
|
|
414
|
+
### Passed
|
|
415
|
+
- Formatting (auto-fixed 5 files)
|
|
416
|
+
- Linting (auto-fixed 3 issues)
|
|
217
417
|
|
|
218
|
-
###
|
|
219
|
-
|
|
418
|
+
### Needs Manual Fix
|
|
419
|
+
| Type | File:Line | Issue |
|
|
420
|
+
|------|-----------|-------|
|
|
421
|
+
| TypeScript | api.ts:42 | Type error |
|
|
422
|
+
| Test | auth.test.ts:15 | Assertion failed |
|
|
220
423
|
|
|
221
|
-
###
|
|
222
|
-
-
|
|
424
|
+
### Summary
|
|
425
|
+
- **Auto-fixed**: 8 issues
|
|
426
|
+
- **Manual fixes**: 2 issues
|
|
427
|
+
```
|
|
223
428
|
|
|
224
|
-
|
|
225
|
-
- [Combined output and recommendations]
|
|
429
|
+
---
|
|
226
430
|
|
|
227
|
-
|
|
228
|
-
|
|
431
|
+
## 5. Conversation Commands
|
|
432
|
+
|
|
433
|
+
Use `namnam conv` CLI command (not `/namnam conv`):
|
|
434
|
+
|
|
435
|
+
```bash
|
|
436
|
+
namnam conv save # Save conversation context
|
|
437
|
+
namnam conv list # List saved conversations
|
|
438
|
+
namnam conv show <id> # View conversation
|
|
439
|
+
namnam conv update <id> # Update conversation
|
|
440
|
+
namnam conv delete <id> # Delete conversation
|
|
441
|
+
namnam conv export <id> # Export to markdown
|
|
229
442
|
```
|
|
230
443
|
|
|
231
|
-
###
|
|
444
|
+
### @conversation System
|
|
232
445
|
|
|
233
|
-
|
|
446
|
+
Reference previous conversations with `@conversation:<id>`.
|
|
234
447
|
|
|
235
|
-
|
|
236
|
-
- `/namnam --quick` - Use minimal agents (speed priority)
|
|
237
|
-
- `/namnam --review` - Focus on code review agents
|
|
238
|
-
- `/namnam --build` - Focus on development agents
|
|
239
|
-
- `/namnam --test` - Focus on testing agents
|
|
240
|
-
- `/namnam --docs` - Focus on documentation agents
|
|
241
|
-
- `/namnam --game` - Use game development agents
|
|
242
|
-
- `/namnam --creative` - Use creative/innovation agents
|
|
243
|
-
- `/namnam --security` - Focus on security audit
|
|
244
|
-
- `/namnam --performance` - Focus on performance optimization
|
|
245
|
-
- `/namnam --multi-platform` - Sync configs across all AI platforms
|
|
448
|
+
### namnam conv save
|
|
246
449
|
|
|
247
|
-
|
|
450
|
+
Save current conversation context.
|
|
248
451
|
|
|
249
|
-
|
|
452
|
+
**Options:**
|
|
453
|
+
- `-t, --title <title>` - Conversation title
|
|
454
|
+
- `-s, --summary <summary>` - Short summary
|
|
455
|
+
- `-g, --tags <tags>` - Comma-separated tags
|
|
250
456
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
- `codex.md` for Codex
|
|
258
|
-
- `AGENTS.md` for universal compatibility
|
|
457
|
+
**Output:**
|
|
458
|
+
```
|
|
459
|
+
Conversation saved!
|
|
460
|
+
ID: abc123
|
|
461
|
+
Reference with: @conversation:abc123
|
|
462
|
+
```
|
|
259
463
|
|
|
260
|
-
|
|
464
|
+
### namnam conv list
|
|
261
465
|
|
|
262
|
-
|
|
466
|
+
List saved conversations.
|
|
263
467
|
|
|
264
|
-
|
|
468
|
+
**Options:**
|
|
469
|
+
- `-l, --limit <n>` - Limit results
|
|
470
|
+
- `-t, --tag <tag>` - Filter by tag
|
|
471
|
+
- `-s, --search <term>` - Search title/summary
|
|
265
472
|
|
|
266
|
-
|
|
267
|
-
2. **Prioritize speed** - Don't spawn unnecessary agents
|
|
268
|
-
3. **Be intelligent** - Match agents to the actual task
|
|
269
|
-
4. **Provide progress updates** - Keep user informed
|
|
270
|
-
5. **Aggregate results** - Present unified output
|
|
271
|
-
6. **Handle errors gracefully** - If an agent fails, continue with others
|
|
272
|
-
7. **Platform awareness** - Adapt to detected AI platform
|
|
473
|
+
### namnam conv show <id>
|
|
273
474
|
|
|
274
|
-
|
|
475
|
+
Show conversation details and context.
|
|
275
476
|
|
|
276
|
-
|
|
477
|
+
**Options:**
|
|
478
|
+
- `-f, --full` - Show full log
|
|
277
479
|
|
|
278
|
-
|
|
279
|
-
|------|---------|-------------|
|
|
280
|
-
| Auto | `/namnam <task>` | AI-selected based on task |
|
|
281
|
-
| Full Power | `/namnam --full <task>` | All relevant agents |
|
|
282
|
-
| Quick | `/namnam --quick <task>` | Minimal, fastest agents |
|
|
283
|
-
| Review | `/namnam --review` | code-review-expert, refactoring-expert |
|
|
284
|
-
| Build | `/namnam --build <task>` | Development experts |
|
|
285
|
-
| Test | `/namnam --test` | Testing experts |
|
|
286
|
-
| Docs | `/namnam --docs` | documentation-expert, tech-writer |
|
|
287
|
-
| Game | `/namnam --game <task>` | BMGD agents |
|
|
288
|
-
| Creative | `/namnam --creative <task>` | CIS agents |
|
|
289
|
-
| Security | `/namnam --security` | Security audit agents |
|
|
290
|
-
| Performance | `/namnam --performance` | Performance optimization |
|
|
291
|
-
| Multi-Platform | `/namnam --multi-platform` | Sync all AI configs |
|
|
480
|
+
### namnam conv update <id>
|
|
292
481
|
|
|
293
|
-
|
|
482
|
+
Update conversation metadata or context.
|
|
294
483
|
|
|
295
|
-
|
|
484
|
+
**Options:**
|
|
485
|
+
- `-t, --title <title>` - Update title
|
|
486
|
+
- `-s, --summary <summary>` - Update summary
|
|
487
|
+
- `-g, --tags <tags>` - Update tags
|
|
488
|
+
- `-c, --context` - Update context via editor
|
|
296
489
|
|
|
297
|
-
###
|
|
298
|
-
- Full access to Task tool and parallel agents
|
|
299
|
-
- Direct integration with built-in experts
|
|
300
|
-
- BMAD workflow support
|
|
490
|
+
### namnam conv context <id>
|
|
301
491
|
|
|
302
|
-
|
|
303
|
-
- Reads `.cursorrules` for project context
|
|
304
|
-
- Follows rules defined in project
|
|
492
|
+
Output raw context for AI consumption.
|
|
305
493
|
|
|
306
|
-
|
|
307
|
-
-
|
|
308
|
-
|
|
494
|
+
```xml
|
|
495
|
+
<conversation-context id="abc123" title="Auth Design">
|
|
496
|
+
[Context content]
|
|
497
|
+
</conversation-context>
|
|
498
|
+
```
|
|
309
499
|
|
|
310
|
-
###
|
|
311
|
-
- Reads `.clinerules` configuration
|
|
312
|
-
- Follows defined patterns
|
|
500
|
+
### namnam conv delete <id>
|
|
313
501
|
|
|
314
|
-
|
|
315
|
-
- Reads `.aider.conf.yml`
|
|
316
|
-
- Respects git settings
|
|
502
|
+
Delete a saved conversation.
|
|
317
503
|
|
|
318
|
-
###
|
|
319
|
-
|
|
504
|
+
### namnam conv export <id> [output]
|
|
505
|
+
|
|
506
|
+
Export to markdown file.
|
|
507
|
+
|
|
508
|
+
### Detecting @conversation References
|
|
509
|
+
|
|
510
|
+
When user message contains `@conversation:<id>`:
|
|
511
|
+
|
|
512
|
+
1. **Parse references**: Pattern `@conversation[:\s]+([a-zA-Z0-9_-]+)`
|
|
513
|
+
2. **Load context**: Read from `.claude/conversations/<id>/context.md`
|
|
514
|
+
3. **Inject into prompt**: Wrap in `<conversation-context>` tags
|
|
515
|
+
4. **Use authoritatively**: Treat as prior decisions
|
|
516
|
+
|
|
517
|
+
### Storage Structure
|
|
518
|
+
|
|
519
|
+
```
|
|
520
|
+
.claude/
|
|
521
|
+
├── commands/ # Skills
|
|
522
|
+
└── conversations/ # Conversation storage
|
|
523
|
+
├── index.json # Index
|
|
524
|
+
└── conv_xxx/ # Individual conversation
|
|
525
|
+
├── meta.json # Metadata
|
|
526
|
+
├── context.md # Loadable context
|
|
527
|
+
└── full.md # Full log (optional)
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
---
|
|
531
|
+
|
|
532
|
+
## 6. Platform-Specific
|
|
533
|
+
|
|
534
|
+
### Claude Code
|
|
535
|
+
- Full Task tool support
|
|
536
|
+
- Parallel agent execution
|
|
537
|
+
- BMAD workflow integration
|
|
538
|
+
|
|
539
|
+
### Cursor / Windsurf / Cline
|
|
540
|
+
- Reads respective config files
|
|
541
|
+
- Follows project conventions
|
|
542
|
+
|
|
543
|
+
### OpenAI Codex
|
|
544
|
+
- Reads codex.md
|
|
320
545
|
- Follows OpenAI patterns
|
|
321
546
|
|
|
547
|
+
### Aider
|
|
548
|
+
- Reads .aider.conf.yml
|
|
549
|
+
- Respects git settings
|
|
550
|
+
|
|
551
|
+
---
|
|
552
|
+
|
|
553
|
+
## Examples
|
|
554
|
+
|
|
555
|
+
```bash
|
|
556
|
+
# Orchestration
|
|
557
|
+
/namnam implement user authentication with JWT
|
|
558
|
+
/namnam --full debug and fix all failing tests
|
|
559
|
+
/namnam --quick add loading spinner to button
|
|
560
|
+
|
|
561
|
+
# Git
|
|
562
|
+
/namnam commit # Smart commit
|
|
563
|
+
/namnam status # Enhanced status
|
|
564
|
+
/namnam push # Safe push
|
|
565
|
+
|
|
566
|
+
# Quality
|
|
567
|
+
/namnam review # Review recent changes
|
|
568
|
+
/namnam review src/auth # Review specific path
|
|
569
|
+
/namnam validate # Check and auto-fix
|
|
570
|
+
|
|
571
|
+
# Conversations
|
|
572
|
+
/namnam conv save -t "Auth Design" -s "Decided JWT with refresh"
|
|
573
|
+
/namnam conv list --tag auth
|
|
574
|
+
/namnam conv show abc123
|
|
575
|
+
@conversation:abc123 continue implementing auth # Reference in prompt
|
|
576
|
+
```
|
|
577
|
+
|
|
322
578
|
---
|
|
323
579
|
|
|
324
|
-
**
|
|
580
|
+
**NAMNAM - One Command. Infinite Power.**
|