@yeongjaeyou/claude-code-config 0.5.0 → 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 +169 -129
- 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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate llms.txt from URL or local directory
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Generate llms.txt
|
|
6
|
+
|
|
7
|
+
Generate well-structured llms.txt documentation following the llms.txt standard specification.
|
|
8
|
+
|
|
9
|
+
## llms.txt Format
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
# Title
|
|
13
|
+
|
|
14
|
+
> Optional description
|
|
15
|
+
|
|
16
|
+
## Section name
|
|
17
|
+
|
|
18
|
+
- [Link title](URL): Brief description (10-15 words)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
### URL Input
|
|
24
|
+
|
|
25
|
+
1. **Map URLs**: Use `firecrawl_map` to discover all URLs on the website
|
|
26
|
+
2. **Scrape Content**: Use `firecrawl_scrape` for each URL (batch of 10-20)
|
|
27
|
+
3. **Synthesize**: Extract key information and organize into sections
|
|
28
|
+
4. **Generate**: Write llms.txt to current directory
|
|
29
|
+
|
|
30
|
+
### Local Directory Input
|
|
31
|
+
|
|
32
|
+
1. **Discover Files**: Use Glob to find all markdown/docs files recursively
|
|
33
|
+
2. **Read Content**: Read relevant files (README, docs/, guides)
|
|
34
|
+
3. **Synthesize**: Extract purpose, key concepts, APIs
|
|
35
|
+
4. **Generate**: Write llms.txt to current directory
|
|
36
|
+
|
|
37
|
+
## Guidelines
|
|
38
|
+
|
|
39
|
+
- **Descriptions**: 10-15 words, specific to content (not generic)
|
|
40
|
+
- **Sections**: Group by type (Documentation, API Reference, Examples, Tools)
|
|
41
|
+
- **URLs**: Prefer official docs URLs over GitHub raw URLs
|
|
42
|
+
- **Errors**: Note failed URLs/files, continue with others
|
|
43
|
+
|
|
44
|
+
## Output
|
|
45
|
+
|
|
46
|
+
Write `llms.txt` to current directory with summary:
|
|
47
|
+
- Number of sources processed
|
|
48
|
+
- Number of sections created
|
|
49
|
+
- Any errors or warnings
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature-planner
|
|
3
|
+
description: Creates phase-based feature plans with quality gates and incremental delivery structure. Use when planning features, organizing work, breaking down tasks, creating roadmaps, or structuring development strategy. Keywords: plan, planning, phases, breakdown, strategy, roadmap, organize, structure, outline.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Feature Planner
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
Generate structured, phase-based plans where:
|
|
10
|
+
- Each phase delivers complete, runnable functionality
|
|
11
|
+
- Quality gates enforce validation before proceeding
|
|
12
|
+
- User approves plan before any work begins
|
|
13
|
+
- Progress tracked via markdown checkboxes
|
|
14
|
+
- Each phase is 1-4 hours maximum
|
|
15
|
+
|
|
16
|
+
## Planning Workflow
|
|
17
|
+
|
|
18
|
+
### Step 1: Requirements Analysis
|
|
19
|
+
1. Read relevant files to understand codebase architecture
|
|
20
|
+
2. Identify dependencies and integration points
|
|
21
|
+
3. Assess complexity and risks
|
|
22
|
+
4. Determine appropriate scope (small/medium/large)
|
|
23
|
+
|
|
24
|
+
### Step 2: Phase Breakdown with TDD Integration
|
|
25
|
+
Break feature into 3-7 phases where each phase:
|
|
26
|
+
- **Test-First**: Write tests BEFORE implementation
|
|
27
|
+
- Delivers working, testable functionality
|
|
28
|
+
- Takes 1-4 hours maximum
|
|
29
|
+
- Follows Red-Green-Refactor cycle
|
|
30
|
+
- Has measurable test coverage requirements
|
|
31
|
+
- Can be rolled back independently
|
|
32
|
+
- Has clear success criteria
|
|
33
|
+
|
|
34
|
+
**Phase Structure**:
|
|
35
|
+
- Phase Name: Clear deliverable
|
|
36
|
+
- Goal: What working functionality this produces
|
|
37
|
+
- **Test Strategy**: What test types, coverage target, test scenarios
|
|
38
|
+
- Tasks (ordered by TDD workflow):
|
|
39
|
+
1. **RED Tasks**: Write failing tests first
|
|
40
|
+
2. **GREEN Tasks**: Implement minimal code to make tests pass
|
|
41
|
+
3. **REFACTOR Tasks**: Improve code quality while tests stay green
|
|
42
|
+
- Quality Gate: TDD compliance + validation criteria
|
|
43
|
+
- Dependencies: What must exist before starting
|
|
44
|
+
- **Coverage Target**: Specific percentage or checklist for this phase
|
|
45
|
+
|
|
46
|
+
### Step 3: Plan Document Creation
|
|
47
|
+
Use plan-template.md to generate: `docs/plans/PLAN_<feature-name>.md`
|
|
48
|
+
|
|
49
|
+
Include:
|
|
50
|
+
- Overview and objectives
|
|
51
|
+
- Architecture decisions with rationale
|
|
52
|
+
- Complete phase breakdown with checkboxes
|
|
53
|
+
- Quality gate checklists
|
|
54
|
+
- Risk assessment table
|
|
55
|
+
- Rollback strategy per phase
|
|
56
|
+
- Progress tracking section
|
|
57
|
+
- Notes & learnings area
|
|
58
|
+
|
|
59
|
+
### Step 4: User Approval
|
|
60
|
+
**CRITICAL**: Use AskUserQuestion to get explicit approval before proceeding.
|
|
61
|
+
|
|
62
|
+
Ask:
|
|
63
|
+
- "Does this phase breakdown make sense for your project?"
|
|
64
|
+
- "Any concerns about the proposed approach?"
|
|
65
|
+
- "Should I proceed with creating the plan document?"
|
|
66
|
+
|
|
67
|
+
Only create plan document after user confirms approval.
|
|
68
|
+
|
|
69
|
+
### Step 5: Document Generation
|
|
70
|
+
1. Create `docs/plans/` directory if not exists
|
|
71
|
+
2. Generate plan document with all checkboxes unchecked
|
|
72
|
+
3. Add clear instructions in header about quality gates
|
|
73
|
+
4. Inform user of plan location and next steps
|
|
74
|
+
|
|
75
|
+
## Quality Gate Standards
|
|
76
|
+
|
|
77
|
+
Each phase MUST validate these items before proceeding to next phase:
|
|
78
|
+
|
|
79
|
+
**Build & Compilation**:
|
|
80
|
+
- [ ] Project builds/compiles without errors
|
|
81
|
+
- [ ] No syntax errors
|
|
82
|
+
|
|
83
|
+
**Test-Driven Development (TDD)**:
|
|
84
|
+
- [ ] Tests written BEFORE production code
|
|
85
|
+
- [ ] Red-Green-Refactor cycle followed
|
|
86
|
+
- [ ] Unit tests: ≥80% coverage for business logic
|
|
87
|
+
- [ ] Integration tests: Critical user flows validated
|
|
88
|
+
- [ ] Test suite runs in acceptable time (<5 minutes)
|
|
89
|
+
|
|
90
|
+
**Testing**:
|
|
91
|
+
- [ ] All existing tests pass
|
|
92
|
+
- [ ] New tests added for new functionality
|
|
93
|
+
- [ ] Test coverage maintained or improved
|
|
94
|
+
|
|
95
|
+
**Code Quality**:
|
|
96
|
+
- [ ] Linting passes with no errors
|
|
97
|
+
- [ ] Type checking passes (if applicable)
|
|
98
|
+
- [ ] Code formatting consistent
|
|
99
|
+
|
|
100
|
+
**Functionality**:
|
|
101
|
+
- [ ] Manual testing confirms feature works
|
|
102
|
+
- [ ] No regressions in existing functionality
|
|
103
|
+
- [ ] Edge cases tested
|
|
104
|
+
|
|
105
|
+
**Security & Performance**:
|
|
106
|
+
- [ ] No new security vulnerabilities
|
|
107
|
+
- [ ] No performance degradation
|
|
108
|
+
- [ ] Resource usage acceptable
|
|
109
|
+
|
|
110
|
+
**Documentation**:
|
|
111
|
+
- [ ] Code comments updated
|
|
112
|
+
- [ ] Documentation reflects changes
|
|
113
|
+
|
|
114
|
+
## Progress Tracking Protocol
|
|
115
|
+
|
|
116
|
+
Add this to plan document header:
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
**CRITICAL INSTRUCTIONS**: After completing each phase:
|
|
120
|
+
1. ✅ Check off completed task checkboxes
|
|
121
|
+
2. 🧪 Run all quality gate validation commands
|
|
122
|
+
3. ⚠️ Verify ALL quality gate items pass
|
|
123
|
+
4. 📅 Update "Last Updated" date
|
|
124
|
+
5. 📝 Document learnings in Notes section
|
|
125
|
+
6. ➡️ Only then proceed to next phase
|
|
126
|
+
|
|
127
|
+
⛔ DO NOT skip quality gates or proceed with failing checks
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Phase Sizing Guidelines
|
|
131
|
+
|
|
132
|
+
**Small Scope** (2-3 phases, 3-6 hours total):
|
|
133
|
+
- Single component or simple feature
|
|
134
|
+
- Minimal dependencies
|
|
135
|
+
- Clear requirements
|
|
136
|
+
- Example: Add dark mode toggle, create new form component
|
|
137
|
+
|
|
138
|
+
**Medium Scope** (4-5 phases, 8-15 hours total):
|
|
139
|
+
- Multiple components or moderate feature
|
|
140
|
+
- Some integration complexity
|
|
141
|
+
- Database changes or API work
|
|
142
|
+
- Example: User authentication system, search functionality
|
|
143
|
+
|
|
144
|
+
**Large Scope** (6-7 phases, 15-25 hours total):
|
|
145
|
+
- Complex feature spanning multiple areas
|
|
146
|
+
- Significant architectural impact
|
|
147
|
+
- Multiple integrations
|
|
148
|
+
- Example: AI-powered search with embeddings, real-time collaboration
|
|
149
|
+
|
|
150
|
+
## Risk Assessment
|
|
151
|
+
|
|
152
|
+
Identify and document:
|
|
153
|
+
- **Technical Risks**: API changes, performance issues, data migration
|
|
154
|
+
- **Dependency Risks**: External library updates, third-party service availability
|
|
155
|
+
- **Timeline Risks**: Complexity unknowns, blocking dependencies
|
|
156
|
+
- **Quality Risks**: Test coverage gaps, regression potential
|
|
157
|
+
|
|
158
|
+
For each risk, specify:
|
|
159
|
+
- Probability: Low/Medium/High
|
|
160
|
+
- Impact: Low/Medium/High
|
|
161
|
+
- Mitigation Strategy: Specific action steps
|
|
162
|
+
|
|
163
|
+
## Rollback Strategy
|
|
164
|
+
|
|
165
|
+
For each phase, document how to revert changes if issues arise.
|
|
166
|
+
Consider:
|
|
167
|
+
- What code changes need to be undone
|
|
168
|
+
- Database migrations to reverse (if applicable)
|
|
169
|
+
- Configuration changes to restore
|
|
170
|
+
- Dependencies to remove
|
|
171
|
+
|
|
172
|
+
## Test Specification Guidelines
|
|
173
|
+
|
|
174
|
+
### Test-First Development Workflow
|
|
175
|
+
|
|
176
|
+
**For Each Feature Component**:
|
|
177
|
+
1. **Specify Test Cases** (before writing ANY code)
|
|
178
|
+
- What inputs will be tested?
|
|
179
|
+
- What outputs are expected?
|
|
180
|
+
- What edge cases must be handled?
|
|
181
|
+
- What error conditions should be tested?
|
|
182
|
+
|
|
183
|
+
2. **Write Tests** (Red Phase)
|
|
184
|
+
- Write tests that WILL fail
|
|
185
|
+
- Verify tests fail for the right reason
|
|
186
|
+
- Run tests to confirm failure
|
|
187
|
+
- Commit failing tests to track TDD compliance
|
|
188
|
+
|
|
189
|
+
3. **Implement Code** (Green Phase)
|
|
190
|
+
- Write minimal code to make tests pass
|
|
191
|
+
- Run tests frequently (every 2-5 minutes)
|
|
192
|
+
- Stop when all tests pass
|
|
193
|
+
- No additional functionality beyond tests
|
|
194
|
+
|
|
195
|
+
4. **Refactor** (Blue Phase)
|
|
196
|
+
- Improve code quality while tests remain green
|
|
197
|
+
- Extract duplicated logic
|
|
198
|
+
- Improve naming and structure
|
|
199
|
+
- Run tests after each refactoring step
|
|
200
|
+
- Commit when refactoring complete
|
|
201
|
+
|
|
202
|
+
### Test Types
|
|
203
|
+
|
|
204
|
+
**Unit Tests**:
|
|
205
|
+
- **Target**: Individual functions, methods, classes
|
|
206
|
+
- **Dependencies**: None or mocked/stubbed
|
|
207
|
+
- **Speed**: Fast (<100ms per test)
|
|
208
|
+
- **Isolation**: Complete isolation from external systems
|
|
209
|
+
- **Coverage**: ≥80% of business logic
|
|
210
|
+
|
|
211
|
+
**Integration Tests**:
|
|
212
|
+
- **Target**: Interaction between components/modules
|
|
213
|
+
- **Dependencies**: May use real dependencies
|
|
214
|
+
- **Speed**: Moderate (<1s per test)
|
|
215
|
+
- **Isolation**: Tests component boundaries
|
|
216
|
+
- **Coverage**: Critical integration points
|
|
217
|
+
|
|
218
|
+
**End-to-End (E2E) Tests**:
|
|
219
|
+
- **Target**: Complete user workflows
|
|
220
|
+
- **Dependencies**: Real or near-real environment
|
|
221
|
+
- **Speed**: Slow (seconds to minutes)
|
|
222
|
+
- **Isolation**: Full system integration
|
|
223
|
+
- **Coverage**: Critical user journeys
|
|
224
|
+
|
|
225
|
+
### Test Coverage Calculation
|
|
226
|
+
|
|
227
|
+
**Coverage Thresholds** (adjust for your project):
|
|
228
|
+
- **Business Logic**: ≥90% (critical code paths)
|
|
229
|
+
- **Data Access Layer**: ≥80% (repositories, DAOs)
|
|
230
|
+
- **API/Controller Layer**: ≥70% (endpoints)
|
|
231
|
+
- **UI/Presentation**: Integration tests preferred over coverage
|
|
232
|
+
|
|
233
|
+
**Coverage Commands by Ecosystem**:
|
|
234
|
+
```bash
|
|
235
|
+
# JavaScript/TypeScript
|
|
236
|
+
jest --coverage
|
|
237
|
+
nyc report --reporter=html
|
|
238
|
+
|
|
239
|
+
# Python
|
|
240
|
+
pytest --cov=src --cov-report=html
|
|
241
|
+
coverage report
|
|
242
|
+
|
|
243
|
+
# Java
|
|
244
|
+
mvn jacoco:report
|
|
245
|
+
gradle jacocoTestReport
|
|
246
|
+
|
|
247
|
+
# Go
|
|
248
|
+
go test -cover ./...
|
|
249
|
+
go tool cover -html=coverage.out
|
|
250
|
+
|
|
251
|
+
# .NET
|
|
252
|
+
dotnet test /p:CollectCoverage=true /p:CoverageReporter=html
|
|
253
|
+
reportgenerator -reports:coverage.xml -targetdir:coverage
|
|
254
|
+
|
|
255
|
+
# Ruby
|
|
256
|
+
bundle exec rspec --coverage
|
|
257
|
+
open coverage/index.html
|
|
258
|
+
|
|
259
|
+
# PHP
|
|
260
|
+
phpunit --coverage-html coverage
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Common Test Patterns
|
|
264
|
+
|
|
265
|
+
**Arrange-Act-Assert (AAA) Pattern**:
|
|
266
|
+
```
|
|
267
|
+
test 'description of behavior':
|
|
268
|
+
// Arrange: Set up test data and dependencies
|
|
269
|
+
input = createTestData()
|
|
270
|
+
|
|
271
|
+
// Act: Execute the behavior being tested
|
|
272
|
+
result = systemUnderTest.method(input)
|
|
273
|
+
|
|
274
|
+
// Assert: Verify expected outcome
|
|
275
|
+
assert result == expectedOutput
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
**Given-When-Then (BDD Style)**:
|
|
279
|
+
```
|
|
280
|
+
test 'feature should behave in specific way':
|
|
281
|
+
// Given: Initial context/state
|
|
282
|
+
given userIsLoggedIn()
|
|
283
|
+
|
|
284
|
+
// When: Action occurs
|
|
285
|
+
when userClicksButton()
|
|
286
|
+
|
|
287
|
+
// Then: Observable outcome
|
|
288
|
+
then shouldSeeConfirmation()
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
**Mocking/Stubbing Dependencies**:
|
|
292
|
+
```
|
|
293
|
+
test 'component should call dependency':
|
|
294
|
+
// Create mock/stub
|
|
295
|
+
mockService = createMock(ExternalService)
|
|
296
|
+
component = new Component(mockService)
|
|
297
|
+
|
|
298
|
+
// Configure mock behavior
|
|
299
|
+
when(mockService.method()).thenReturn(expectedData)
|
|
300
|
+
|
|
301
|
+
// Execute and verify
|
|
302
|
+
component.execute()
|
|
303
|
+
verify(mockService.method()).calledOnce()
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### Test Documentation in Plan
|
|
307
|
+
|
|
308
|
+
**In each phase, specify**:
|
|
309
|
+
1. **Test File Location**: Exact path where tests will be written
|
|
310
|
+
2. **Test Scenarios**: List of specific test cases
|
|
311
|
+
3. **Expected Failures**: What error should tests show initially?
|
|
312
|
+
4. **Coverage Target**: Percentage for this phase
|
|
313
|
+
5. **Dependencies to Mock**: What needs mocking/stubbing?
|
|
314
|
+
6. **Test Data**: What fixtures/factories are needed?
|
|
315
|
+
|
|
316
|
+
## Supporting Files Reference
|
|
317
|
+
- [plan-template.md](plan-template.md) - Complete plan document template
|