@yeongjaeyou/claude-code-config 0.5.1 → 0.5.2
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/.claude/commands/generate-llmstxt.md +49 -0
- package/.claude/skills/feature-implementer/SKILL.md +317 -0
- package/.claude/skills/feature-implementer/plan-template.md +605 -0
- package/README.md +26 -16
- package/package.json +1 -1
- package/.claude/agents/generate-llmstxt.md +0 -165
- package/.claude/agents/langconnect-rag-expert.md +0 -98
- package/.claude/commands/plan.md +0 -26
- package/.claude/commands/tm/review-prd-with-codex.md +0 -442
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
# PRD Review with Codex (review-prd-with-codex)
|
|
2
|
-
|
|
3
|
-
Review the generated PRD using Codex MCP, with Claude performing cross-check validation to deliver a consensus conclusion.
|
|
4
|
-
Ping-pong up to 3 times until consensus is reached.
|
|
5
|
-
|
|
6
|
-
**Core Principles:**
|
|
7
|
-
- Codex has limited context/tools, so Claude must verify
|
|
8
|
-
- On disagreement, re-query Codex (with context re-transmission)
|
|
9
|
-
- No emoji usage
|
|
10
|
-
- Use generic expressions (avoid project-specific terminology)
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Arguments
|
|
15
|
-
|
|
16
|
-
`$ARGUMENTS` receives the PRD file path.
|
|
17
|
-
- Example: `/tm:review-prd-with-codex .taskmaster/docs/prd.md`
|
|
18
|
-
- If missing, request path input via AskUserQuestion
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Codex Context Configuration Principles
|
|
23
|
-
|
|
24
|
-
### 1. Codex Usage Scope for This Workflow
|
|
25
|
-
- This command uses **Codex MCP tool** (`mcp__codex__codex`)
|
|
26
|
-
- Set sandbox to `read-only`
|
|
27
|
-
- **No network/web search** (for reproducibility and safety)
|
|
28
|
-
- Include PRD/context directly in prompt for reproducibility (don't rely on file exploration)
|
|
29
|
-
- Git history not accessible (Claude cross-check compensates)
|
|
30
|
-
|
|
31
|
-
### 2. Required Information (Rich Context)
|
|
32
|
-
- Full PRD text (with line numbers - `nl -ba` format)
|
|
33
|
-
- **Full CLAUDE.md** (include entire content without limits)
|
|
34
|
-
- **Detailed project tech stack** (package.json, requirements.txt contents)
|
|
35
|
-
- **Directory structure** (main folder layout)
|
|
36
|
-
- **PRD-related code summary** (optional: symbol overview of files mentioned in PRD)
|
|
37
|
-
- Explicit review criteria
|
|
38
|
-
- Enforced output format
|
|
39
|
-
|
|
40
|
-
### 3. Information to Exclude
|
|
41
|
-
- Claude-specific tools (AskUserQuestion, TodoWrite, etc.)
|
|
42
|
-
- Internal workflow details
|
|
43
|
-
|
|
44
|
-
### 4. Prompt Construction Principles
|
|
45
|
-
- **Include full CLAUDE.md** (remove 1000 character limit)
|
|
46
|
-
- Review entire PRD at once (don't split)
|
|
47
|
-
- Provide project context with tech stack and directory structure
|
|
48
|
-
- Consider prompt reduction only on timeout
|
|
49
|
-
|
|
50
|
-
### 5. Enforced Output Format
|
|
51
|
-
- Specify structured format (tables, lists)
|
|
52
|
-
- State "Must use this format"
|
|
53
|
-
- Require line number references
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## Workflow Steps
|
|
58
|
-
|
|
59
|
-
### Step 1: Gather Pre-requisite Information (Rich Context)
|
|
60
|
-
|
|
61
|
-
#### 1.1 Read PRD File (with line numbers)
|
|
62
|
-
```bash
|
|
63
|
-
nl -ba $ARGUMENTS
|
|
64
|
-
```
|
|
65
|
-
- `nl -ba`: Numbers all lines including blank lines (more consistent than cat -n)
|
|
66
|
-
- Output error message and exit if file doesn't exist
|
|
67
|
-
|
|
68
|
-
#### 1.2 Verify PRD File Exists
|
|
69
|
-
```bash
|
|
70
|
-
test -f $ARGUMENTS && echo "File exists" || echo "File not found"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
#### 1.3 Read Full CLAUDE.md
|
|
74
|
-
- Check CLAUDE.md in project root
|
|
75
|
-
- **Include entire content in prompt** (no 1000 character limit)
|
|
76
|
-
- Convey all project conventions, tech stack, and caveats
|
|
77
|
-
|
|
78
|
-
#### 1.4 Collect Detailed Project Tech Stack
|
|
79
|
-
Claude reads and summarizes these files:
|
|
80
|
-
- `package.json` (frontend dependencies)
|
|
81
|
-
- `requirements.txt` (backend dependencies)
|
|
82
|
-
- `go.mod`, `Cargo.toml`, etc. (if applicable)
|
|
83
|
-
- Specify major framework/library versions
|
|
84
|
-
|
|
85
|
-
#### 1.5 Collect Directory Structure
|
|
86
|
-
```bash
|
|
87
|
-
# Main directory structure (depth 2-3)
|
|
88
|
-
tree -L 3 --dirsfirst -I 'node_modules|__pycache__|.git|dist|build|.next'
|
|
89
|
-
```
|
|
90
|
-
Or use `ls -la` combinations to understand structure
|
|
91
|
-
|
|
92
|
-
#### 1.6 Summarize PRD-Related Code Files (Optional)
|
|
93
|
-
- If major files/modules are mentioned in PRD, collect symbol overview
|
|
94
|
-
- Example: For "Authentication System Improvement" PRD, check `routes/auth.py`, `middleware.ts`, etc.
|
|
95
|
-
- Helps understand relationship between existing implementation and PRD design
|
|
96
|
-
|
|
97
|
-
#### 1.7 Reference TaskMaster PRD Template
|
|
98
|
-
`.taskmaster/templates/example_prd.txt` structure:
|
|
99
|
-
```
|
|
100
|
-
<context>
|
|
101
|
-
# Overview
|
|
102
|
-
# Core Features
|
|
103
|
-
# User Experience
|
|
104
|
-
</context>
|
|
105
|
-
<PRD>
|
|
106
|
-
# Technical Architecture
|
|
107
|
-
# Development Roadmap
|
|
108
|
-
# Logical Dependency Chain
|
|
109
|
-
# Risks and Mitigations
|
|
110
|
-
# Appendix
|
|
111
|
-
</PRD>
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Step 2: Construct Codex Prompt (Rich Context)
|
|
115
|
-
|
|
116
|
-
Use this template to write the prompt:
|
|
117
|
-
|
|
118
|
-
```
|
|
119
|
-
## Role
|
|
120
|
-
You are a PRD (Product Requirements Document) review expert.
|
|
121
|
-
|
|
122
|
-
## Project Context
|
|
123
|
-
|
|
124
|
-
### Tech Stack
|
|
125
|
-
[Summary of package.json / requirements.txt contents]
|
|
126
|
-
Example:
|
|
127
|
-
- Frontend: Next.js 15, React 19, Tailwind CSS v4, shadcn/ui
|
|
128
|
-
- Backend: FastAPI, Google Gemini API, Decord
|
|
129
|
-
- Deployment: Docker + Cloudflare Tunnel
|
|
130
|
-
|
|
131
|
-
### Project Structure
|
|
132
|
-
[tree or ls output]
|
|
133
|
-
```
|
|
134
|
-
frontend/
|
|
135
|
-
├── src/app/ # App Router
|
|
136
|
-
├── src/components/ # UI components
|
|
137
|
-
└── src/hooks/ # Custom hooks
|
|
138
|
-
|
|
139
|
-
services/
|
|
140
|
-
├── base_video_processor.py
|
|
141
|
-
├── video_processor.py
|
|
142
|
-
└── child_safety_processor.py
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Project Guidelines (CLAUDE.md)
|
|
146
|
-
[Full CLAUDE.md - include entire content without limits]
|
|
147
|
-
|
|
148
|
-
### Existing Code Related to PRD (Optional)
|
|
149
|
-
[Symbol overview of major files mentioned in PRD]
|
|
150
|
-
|
|
151
|
-
## Review Target
|
|
152
|
-
File: [PRD file path]
|
|
153
|
-
|
|
154
|
-
### PRD Content (with line numbers)
|
|
155
|
-
[Full PRD - in nl -ba format]
|
|
156
|
-
|
|
157
|
-
## TaskMaster PRD Format Criteria
|
|
158
|
-
<context>: Overview, Core Features, User Experience
|
|
159
|
-
<PRD>: Technical Architecture, Development Roadmap (by Phase),
|
|
160
|
-
Logical Dependency Chain, Risks and Mitigations, Appendix
|
|
161
|
-
|
|
162
|
-
## Review Criteria
|
|
163
|
-
1. Structure: Compliance with TaskMaster PRD format
|
|
164
|
-
2. Clarity: Ambiguous expressions, undefined terms, unmeasurable goals
|
|
165
|
-
3. Feasibility: Implementation-level specificity, technical realism
|
|
166
|
-
4. Completeness: Missing sections (User Stories, Acceptance Criteria,
|
|
167
|
-
Success Metrics, Risk/Dependencies, etc.)
|
|
168
|
-
5. Consistency: Internal contradictions, duplicate definitions, version mismatches
|
|
169
|
-
|
|
170
|
-
## Output Format (Must use this format)
|
|
171
|
-
|
|
172
|
-
### Strengths
|
|
173
|
-
- [Item]: [Description] (line number)
|
|
174
|
-
|
|
175
|
-
### Issues
|
|
176
|
-
| Item | Location (line) | Problem | Recommended Fix |
|
|
177
|
-
|------|-----------------|---------|-----------------|
|
|
178
|
-
|
|
179
|
-
### Open Questions
|
|
180
|
-
- [Question 1]
|
|
181
|
-
- [Question 2]
|
|
182
|
-
|
|
183
|
-
### Overall Assessment
|
|
184
|
-
[1-2 sentence summary]
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Step 3: Execute Codex MCP (First Run)
|
|
188
|
-
|
|
189
|
-
**Call mcp__codex__codex tool:**
|
|
190
|
-
|
|
191
|
-
Parameters:
|
|
192
|
-
- `prompt`: Full prompt constructed in Step 2
|
|
193
|
-
- `sandbox`: "read-only"
|
|
194
|
-
- `cwd`: Project root path (optional)
|
|
195
|
-
|
|
196
|
-
**Call example:**
|
|
197
|
-
```
|
|
198
|
-
mcp__codex__codex tool call:
|
|
199
|
-
- prompt: [constructed prompt]
|
|
200
|
-
- sandbox: "read-only"
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
**Notes:**
|
|
204
|
-
- Parse text results from MCP tool response
|
|
205
|
-
- Reduce prompt length on timeout
|
|
206
|
-
|
|
207
|
-
### Step 4: Receive and Parse Codex Feedback
|
|
208
|
-
|
|
209
|
-
Organize Codex response into this structure:
|
|
210
|
-
- Strengths: List of valid points
|
|
211
|
-
- Issues: Table of items needing improvement
|
|
212
|
-
- Open Questions: List of open questions
|
|
213
|
-
- Summary: Overall assessment
|
|
214
|
-
|
|
215
|
-
### Step 5: Claude Cross-check
|
|
216
|
-
|
|
217
|
-
**Verify items Codex may have missed:**
|
|
218
|
-
|
|
219
|
-
1. **Check for already-resolved issues**
|
|
220
|
-
```bash
|
|
221
|
-
git log --oneline -20
|
|
222
|
-
```
|
|
223
|
-
- Verify if issues mentioned in PRD were already resolved via commits
|
|
224
|
-
|
|
225
|
-
2. **Validate package/dependency existence**
|
|
226
|
-
- npm: `npm view [package-name]`
|
|
227
|
-
- pip: `pip show [package-name]` or PyPI search
|
|
228
|
-
- Check for mentions of non-existent packages
|
|
229
|
-
|
|
230
|
-
3. **Verify codebase-PRD synchronization**
|
|
231
|
-
- Confirm files/modules mentioned in PRD actually exist
|
|
232
|
-
- Check alignment between existing implementation and PRD design
|
|
233
|
-
|
|
234
|
-
4. **Verify CLAUDE.md guideline compliance**
|
|
235
|
-
- Project convention adherence
|
|
236
|
-
- TaskMaster workflow compatibility
|
|
237
|
-
|
|
238
|
-
5. **Identify Codex errors**
|
|
239
|
-
- List incorrect items from validation
|
|
240
|
-
- Prepare evidence (git commit, actual files, etc.)
|
|
241
|
-
|
|
242
|
-
### Step 6: Disagreement Check and Re-review (Context Re-transmission)
|
|
243
|
-
|
|
244
|
-
**If there are disagreements:**
|
|
245
|
-
|
|
246
|
-
Call `mcp__codex__codex` as new session, **including previous conversation context in prompt**:
|
|
247
|
-
|
|
248
|
-
#### Re-review Prompt Template:
|
|
249
|
-
```
|
|
250
|
-
## Role
|
|
251
|
-
You are a PRD review expert.
|
|
252
|
-
|
|
253
|
-
## Previous Review Context
|
|
254
|
-
|
|
255
|
-
### First Review Summary
|
|
256
|
-
[Key content from Codex first response - Strengths, Issues, Questions, Summary]
|
|
257
|
-
|
|
258
|
-
### Claude Cross-check Results
|
|
259
|
-
[Disagreement items and evidence]
|
|
260
|
-
|
|
261
|
-
## Re-review Request
|
|
262
|
-
Please re-review only the following items reflecting the cross-check results:
|
|
263
|
-
1. [Disagreement item 1]
|
|
264
|
-
2. [Disagreement item 2]
|
|
265
|
-
|
|
266
|
-
Respond only with modified sections from the original assessment.
|
|
267
|
-
|
|
268
|
-
## Reference Information
|
|
269
|
-
[Additional context if needed - related code, git log, etc.]
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
**MCP Call:**
|
|
273
|
-
```
|
|
274
|
-
mcp__codex__codex tool call:
|
|
275
|
-
- prompt: [re-review prompt]
|
|
276
|
-
- sandbox: "read-only"
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
**Ping-pong termination conditions:**
|
|
280
|
-
- Consensus reached (no disagreement items)
|
|
281
|
-
- Maximum 3 iterations reached
|
|
282
|
-
- Codex accepts Claude's evidence
|
|
283
|
-
|
|
284
|
-
**Iteration tracking:**
|
|
285
|
-
- Round 1: Initial review
|
|
286
|
-
- Round 2: First re-review (includes previous context)
|
|
287
|
-
- Round 3: Second re-review (final)
|
|
288
|
-
|
|
289
|
-
### Step 7: Reach Consensus and Deliver Results
|
|
290
|
-
|
|
291
|
-
**Output Format:**
|
|
292
|
-
|
|
293
|
-
```markdown
|
|
294
|
-
## PRD Review Results (Codex + Claude Consensus)
|
|
295
|
-
|
|
296
|
-
### Review Process
|
|
297
|
-
- Ping-pong iterations: [N]
|
|
298
|
-
- Consensus status: [Full consensus / Partial consensus / Claude determination]
|
|
299
|
-
|
|
300
|
-
### [VALID] Valid Feedback
|
|
301
|
-
| Item | Description | Source |
|
|
302
|
-
|------|-------------|--------|
|
|
303
|
-
|
|
304
|
-
### [ISSUE] Items Needing Improvement
|
|
305
|
-
| Item | Problem | Recommended Fix | Source |
|
|
306
|
-
|------|---------|-----------------|--------|
|
|
307
|
-
|
|
308
|
-
### [CORRECTION] Codex Error Corrections
|
|
309
|
-
| Codex Claim | Actual Situation | Evidence |
|
|
310
|
-
|-------------|------------------|----------|
|
|
311
|
-
|
|
312
|
-
### [DECISION] Items Requiring Decision
|
|
313
|
-
(If there are options, ask via AskUserQuestion)
|
|
314
|
-
|
|
315
|
-
### [SUMMARY] Final Conclusion
|
|
316
|
-
[Final summary]
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
---
|
|
320
|
-
|
|
321
|
-
> See [Work Guidelines](../guidelines/work-guidelines.md)
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
## Error Handling
|
|
326
|
-
|
|
327
|
-
- **PRD file not found**: "File not found. Please verify the path."
|
|
328
|
-
- **Codex MCP call failed**: "Codex MCP tool call failed. Please check MCP server status."
|
|
329
|
-
- **Timeout**: "Codex response timeout. Please reduce prompt length or try again."
|
|
330
|
-
- **Re-review needed**: "Proceeding with re-review in new session including previous context."
|
|
331
|
-
|
|
332
|
-
---
|
|
333
|
-
|
|
334
|
-
## Codex MCP Tool Reference
|
|
335
|
-
|
|
336
|
-
### MCP Tools Used by Claude
|
|
337
|
-
| Tool | Parameters | Description |
|
|
338
|
-
|------|------------|-------------|
|
|
339
|
-
| `mcp__codex__codex` | `prompt`, `sandbox`, `cwd`, `model`, etc. | Start new Codex session |
|
|
340
|
-
|
|
341
|
-
**Key Parameters:**
|
|
342
|
-
- `prompt` (required): Initial prompt
|
|
343
|
-
- `sandbox`: "read-only" (only file reading allowed, safe)
|
|
344
|
-
- `cwd`: Working directory (optional)
|
|
345
|
-
- `model`: Model specification (optional, e.g., "o3", "o4-mini")
|
|
346
|
-
|
|
347
|
-
**Notes:**
|
|
348
|
-
- For ping-pong, call new session with previous context included in prompt
|
|
349
|
-
- Unlike CLI's `codex resume`, MCP uses context re-transmission method
|
|
350
|
-
|
|
351
|
-
---
|
|
352
|
-
|
|
353
|
-
## Cross-check Checklist
|
|
354
|
-
|
|
355
|
-
| Verification Item | Method | Example |
|
|
356
|
-
|-------------------|--------|---------|
|
|
357
|
-
| Already resolved issues | `git log --grep="issue-number"` | Specific issue already resolved via commit |
|
|
358
|
-
| Package existence | `npm view` / `pip show` | Non-existent SDK mentioned |
|
|
359
|
-
| File/module existence | `ls`, `find`, `grep` | Specific adapter file location |
|
|
360
|
-
| Version match | `package.json`, `requirements.txt` | Specified version vs actual version |
|
|
361
|
-
|
|
362
|
-
---
|
|
363
|
-
|
|
364
|
-
## Usage Examples
|
|
365
|
-
|
|
366
|
-
```bash
|
|
367
|
-
# Review after PRD generation
|
|
368
|
-
/tm:convert-prd .taskmaster/docs/my-idea.md
|
|
369
|
-
# prd.md generated
|
|
370
|
-
|
|
371
|
-
/tm:review-prd-with-codex .taskmaster/docs/prd.md
|
|
372
|
-
# Codex MCP review + Claude cross-check + ping-pong + consensus results output
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
---
|
|
376
|
-
|
|
377
|
-
## Workflow Diagram
|
|
378
|
-
|
|
379
|
-
```
|
|
380
|
-
[Step 1: Gather Rich Context]
|
|
381
|
-
|
|
|
382
|
-
v
|
|
383
|
-
[Step 2: Construct Prompt]
|
|
384
|
-
|
|
|
385
|
-
v
|
|
386
|
-
[Step 3: Codex MCP First Review] ──────────────────────────┐
|
|
387
|
-
| (mcp__codex__codex) |
|
|
388
|
-
v |
|
|
389
|
-
[Step 4: Parse Feedback] |
|
|
390
|
-
| |
|
|
391
|
-
v |
|
|
392
|
-
[Step 5: Claude Cross-check] |
|
|
393
|
-
| |
|
|
394
|
-
v |
|
|
395
|
-
[Step 6: Disagreements?] |
|
|
396
|
-
| |
|
|
397
|
-
├─ YES & iterations < 3 ─> [New MCP call + context]────┘
|
|
398
|
-
| (includes conversation summary)
|
|
399
|
-
|
|
|
400
|
-
└─ NO or iterations >= 3 ─> [Step 7: Deliver Consensus]
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
**Core Flow:**
|
|
404
|
-
1. Execute Codex MCP review
|
|
405
|
-
2. Claude validates via cross-check
|
|
406
|
-
3. On disagreement, new MCP call (include previous context in prompt)
|
|
407
|
-
4. Repeat until consensus or maximum 3 iterations
|
|
408
|
-
5. Deliver final results
|
|
409
|
-
|
|
410
|
-
---
|
|
411
|
-
|
|
412
|
-
## Expected Output Example
|
|
413
|
-
|
|
414
|
-
```markdown
|
|
415
|
-
## PRD Review Results (Codex + Claude Consensus)
|
|
416
|
-
|
|
417
|
-
### Review Process
|
|
418
|
-
- Ping-pong iterations: 2
|
|
419
|
-
- Consensus status: Full consensus
|
|
420
|
-
|
|
421
|
-
### [VALID] Valid Feedback
|
|
422
|
-
| Item | Description | Source |
|
|
423
|
-
|------|-------------|--------|
|
|
424
|
-
| No success metrics | Goals only list functional goals, no performance/cost criteria defined | Codex |
|
|
425
|
-
| Missing error handling | No exception handling in API call code | Codex + Claude |
|
|
426
|
-
| Test scenarios | Only happy-path exists, no failure cases | Codex |
|
|
427
|
-
|
|
428
|
-
### [ISSUE] Items Needing Improvement
|
|
429
|
-
| Item | Problem | Recommended Fix | Source |
|
|
430
|
-
|------|---------|-----------------|--------|
|
|
431
|
-
| Dependency list | Non-existent package mentioned | Update to actual package | Claude verification |
|
|
432
|
-
| Milestone status | Includes already-resolved issues | Mark complete or remove | Claude verification |
|
|
433
|
-
|
|
434
|
-
### [CORRECTION] Codex Error Corrections
|
|
435
|
-
| Codex Claim | Actual Situation | Evidence |
|
|
436
|
-
|-------------|------------------|----------|
|
|
437
|
-
| Feature not implemented | Feature already exists | Verified in src/modules/ folder |
|
|
438
|
-
|
|
439
|
-
### [SUMMARY] Final Conclusion
|
|
440
|
-
PRD is structurally sound, but non-functional requirements (performance, security, error handling)
|
|
441
|
-
and dependency information need updates. Recommend removing already-resolved issues from Milestone.
|
|
442
|
-
```
|