claude-cli-advanced-starter-pack 1.1.0 → 1.8.0

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.
Files changed (56) hide show
  1. package/OVERVIEW.md +5 -1
  2. package/README.md +241 -132
  3. package/bin/gtask.js +53 -0
  4. package/package.json +1 -1
  5. package/src/cli/menu.js +27 -0
  6. package/src/commands/explore-mcp/mcp-registry.js +99 -0
  7. package/src/commands/init.js +306 -77
  8. package/src/commands/install-panel-hook.js +108 -0
  9. package/src/commands/install-scripts.js +232 -0
  10. package/src/commands/install-skill.js +220 -0
  11. package/src/commands/panel.js +297 -0
  12. package/src/commands/setup-wizard.js +4 -3
  13. package/src/commands/test-setup.js +4 -5
  14. package/src/data/releases.json +164 -0
  15. package/src/panel/queue.js +188 -0
  16. package/templates/commands/ask-claude.template.md +118 -0
  17. package/templates/commands/ccasp-panel.template.md +72 -0
  18. package/templates/commands/ccasp-setup.template.md +470 -79
  19. package/templates/commands/create-smoke-test.template.md +186 -0
  20. package/templates/commands/project-impl.template.md +9 -113
  21. package/templates/commands/refactor-check.template.md +112 -0
  22. package/templates/commands/refactor-cleanup.template.md +144 -0
  23. package/templates/commands/refactor-prep.template.md +192 -0
  24. package/templates/docs/AI_ARCHITECTURE_CONSTITUTION.template.md +198 -0
  25. package/templates/docs/DETAILED_GOTCHAS.template.md +347 -0
  26. package/templates/docs/PHASE-DEV-CHECKLIST.template.md +241 -0
  27. package/templates/docs/PROGRESS_JSON_TEMPLATE.json +117 -0
  28. package/templates/docs/background-agent.template.md +264 -0
  29. package/templates/hooks/autonomous-decision-logger.template.js +207 -0
  30. package/templates/hooks/branch-merge-checker.template.js +272 -0
  31. package/templates/hooks/git-commit-tracker.template.js +267 -0
  32. package/templates/hooks/issue-completion-detector.template.js +205 -0
  33. package/templates/hooks/panel-queue-reader.template.js +83 -0
  34. package/templates/hooks/phase-validation-gates.template.js +307 -0
  35. package/templates/hooks/session-id-generator.template.js +236 -0
  36. package/templates/hooks/token-usage-monitor.template.js +193 -0
  37. package/templates/patterns/README.md +129 -0
  38. package/templates/patterns/l1-l2-orchestration.md +189 -0
  39. package/templates/patterns/multi-phase-orchestration.md +258 -0
  40. package/templates/patterns/two-tier-query-pipeline.md +192 -0
  41. package/templates/scripts/README.md +109 -0
  42. package/templates/scripts/analyze-delegation-log.js +299 -0
  43. package/templates/scripts/autonomous-decision-logger.js +277 -0
  44. package/templates/scripts/git-history-analyzer.py +269 -0
  45. package/templates/scripts/phase-validation-gates.js +307 -0
  46. package/templates/scripts/poll-deployment-status.js +260 -0
  47. package/templates/scripts/roadmap-scanner.js +263 -0
  48. package/templates/scripts/validate-deployment.js +293 -0
  49. package/templates/skills/agent-creator/skill.json +18 -0
  50. package/templates/skills/agent-creator/skill.md +335 -0
  51. package/templates/skills/hook-creator/skill.json +18 -0
  52. package/templates/skills/hook-creator/skill.md +318 -0
  53. package/templates/skills/panel/skill.json +18 -0
  54. package/templates/skills/panel/skill.md +90 -0
  55. package/templates/skills/rag-agent-creator/skill.json +18 -0
  56. package/templates/skills/rag-agent-creator/skill.md +307 -0
@@ -0,0 +1,307 @@
1
+ ---
2
+ name: rag-agent-creator
3
+ description: Create RAG-enhanced Claude Code agents with structured knowledge bases, retrieval strategies, and domain expertise
4
+ ---
5
+
6
+ # RAG Agent Creator Skill
7
+
8
+ Expert-level RAG (Retrieval-Augmented Generation) agent creation for Claude Code CLI.
9
+
10
+ ## When to Use This Skill
11
+
12
+ This skill is automatically invoked when:
13
+
14
+ - Creating agents that need domain-specific expertise
15
+ - Setting up knowledge bases for agent reference
16
+ - Designing retrieval strategies for agent context
17
+ - Building multi-source knowledge systems
18
+
19
+ ## What is RAG for Claude Code?
20
+
21
+ RAG (Retrieval-Augmented Generation) agents combine:
22
+
23
+ 1. **Retrieval** - Find relevant context from knowledge base
24
+ 2. **Augmentation** - Inject context into agent prompt
25
+ 3. **Generation** - Agent produces informed responses
26
+
27
+ ### When to Add RAG Capabilities
28
+
29
+ Add RAG when your agent needs:
30
+
31
+ - **Domain-specific expertise** - Specialized knowledge
32
+ - **Large knowledge base** - Multiple docs, patterns, examples
33
+ - **Consistent retrieval** - Predictable keyword-to-file mappings
34
+ - **Protocol-based workflows** - Documented procedures
35
+
36
+ ## RAG Directory Structure
37
+
38
+ ```
39
+ .claude/skills/{agent-name}/
40
+ skill.md # Main skill definition
41
+ context/ # Knowledge base
42
+ README.md # Knowledge index
43
+ PROTOCOL.md # Agent protocols (optional)
44
+ architecture/ # Architecture docs
45
+ patterns/ # Code/workflow patterns
46
+ examples/ # Example implementations
47
+ rag/ # RAG-specific config
48
+ README.md # Retrieval strategy
49
+ RETRIEVAL_MATRIX.md # Keyword mappings
50
+ workflows/
51
+ README.md
52
+ rag-orchestrator-agent.md # RAG coordination
53
+ rag-implementation-agent.md # RAG implementation
54
+ ```
55
+
56
+ ## Knowledge Base Design
57
+
58
+ ### Key Principles
59
+
60
+ 1. **Atomic Files** - One concept per file for precise retrieval
61
+ 2. **Clear Naming** - Descriptive names (e.g., `basetab-pattern.md`)
62
+ 3. **Indexed** - Maintain README.md with file descriptions
63
+ 4. **Cross-Referenced** - Link related documents
64
+
65
+ ### Example Knowledge Organization
66
+
67
+ ```
68
+ context/
69
+ README.md # Index: lists all files
70
+ PROTOCOL.md # Core rules for agent
71
+
72
+ architecture/
73
+ README.md # Architecture overview
74
+ database-schema.md # Database structure
75
+ api-design.md # API patterns
76
+
77
+ patterns/
78
+ README.md # Pattern index
79
+ error-handling.md # Error patterns
80
+ validation.md # Input validation
81
+ caching.md # Cache strategies
82
+
83
+ examples/
84
+ README.md # Example index
85
+ feature-implementation.md # Complete feature
86
+ api-endpoint.md # API example
87
+ test-suite.md # Testing example
88
+ ```
89
+
90
+ ## Retrieval Patterns
91
+
92
+ ### Pattern 1: Keyword Matching
93
+
94
+ Map keywords to specific knowledge files:
95
+
96
+ ```markdown
97
+ ## Retrieval Matrix
98
+
99
+ | Keyword Pattern | Files to Load | Priority |
100
+ |-----------------|---------------|----------|
101
+ | "authentication" | `patterns/auth.md`, `examples/auth.md` | High |
102
+ | "database" | `architecture/database.md`, `patterns/repository.md` | Medium |
103
+ | "testing" | `patterns/testing.md`, `examples/test-example.md` | High |
104
+ | "error" | `patterns/error-handling.md` | Medium |
105
+ ```
106
+
107
+ ### Pattern 2: Hierarchical Retrieval
108
+
109
+ Start specific, broaden if needed:
110
+
111
+ 1. Load specific pattern file (e.g., `patterns/auth.md`)
112
+ 2. If insufficient, load architecture file (e.g., `architecture/security.md`)
113
+ 3. If still needed, load examples (e.g., `examples/auth-implementation.md`)
114
+
115
+ ### Pattern 3: Category-Based
116
+
117
+ Group knowledge by domain:
118
+
119
+ ```markdown
120
+ ## Categories
121
+
122
+ ### Backend
123
+ - `architecture/api-design.md`
124
+ - `patterns/repository.md`
125
+ - `patterns/service-layer.md`
126
+
127
+ ### Frontend
128
+ - `architecture/component-structure.md`
129
+ - `patterns/state-management.md`
130
+ - `patterns/form-handling.md`
131
+
132
+ ### Testing
133
+ - `patterns/unit-testing.md`
134
+ - `patterns/e2e-testing.md`
135
+ - `examples/test-suite.md`
136
+ ```
137
+
138
+ ### Pattern 4: Priority-Based
139
+
140
+ Load based on task importance:
141
+
142
+ ```markdown
143
+ ## Priority Levels
144
+
145
+ ### Always Load (P1)
146
+ - `PROTOCOL.md` - Core rules
147
+ - `architecture/README.md` - Overview
148
+
149
+ ### Load for Implementation (P2)
150
+ - Relevant `patterns/*.md`
151
+ - Relevant `architecture/*.md`
152
+
153
+ ### Load for Examples (P3)
154
+ - `examples/*.md` - When needed
155
+ ```
156
+
157
+ ## Creating a RAG Agent
158
+
159
+ ### Step 1: Define Knowledge Domain
160
+
161
+ What expertise does this agent need?
162
+
163
+ ```markdown
164
+ ## Domain: E-commerce Backend
165
+
166
+ ### Topics Covered
167
+ - Product management
168
+ - Order processing
169
+ - Inventory tracking
170
+ - Payment integration
171
+ - User authentication
172
+ ```
173
+
174
+ ### Step 2: Create Knowledge Structure
175
+
176
+ ```bash
177
+ mkdir -p .claude/skills/my-agent/context/{architecture,patterns,examples,rag}
178
+ ```
179
+
180
+ ### Step 3: Write Knowledge Files
181
+
182
+ Each file should be self-contained:
183
+
184
+ ```markdown
185
+ # Pattern: Repository
186
+
187
+ ## Purpose
188
+ Encapsulate data access logic.
189
+
190
+ ## Implementation
191
+ [Code examples]
192
+
193
+ ## When to Use
194
+ [Scenarios]
195
+
196
+ ## Anti-patterns
197
+ [What to avoid]
198
+ ```
199
+
200
+ ### Step 4: Create Index (README.md)
201
+
202
+ ```markdown
203
+ # Knowledge Base Index
204
+
205
+ ## Architecture
206
+ | File | Description |
207
+ |------|-------------|
208
+ | `database.md` | Database schema and relationships |
209
+ | `api-design.md` | REST API conventions |
210
+
211
+ ## Patterns
212
+ | File | Description |
213
+ |------|-------------|
214
+ | `repository.md` | Data access layer pattern |
215
+ | `service.md` | Business logic layer |
216
+
217
+ ## Examples
218
+ | File | Description |
219
+ |------|-------------|
220
+ | `crud-endpoint.md` | Complete CRUD example |
221
+ ```
222
+
223
+ ### Step 5: Define Retrieval Strategy
224
+
225
+ Create `context/rag/RETRIEVAL_MATRIX.md`:
226
+
227
+ ```markdown
228
+ # Retrieval Matrix
229
+
230
+ ## Keyword Mappings
231
+
232
+ | User Says | Load Files | Priority |
233
+ |-----------|------------|----------|
234
+ | "add endpoint" | `patterns/api-design.md`, `examples/crud-endpoint.md` | High |
235
+ | "database query" | `architecture/database.md`, `patterns/repository.md` | High |
236
+ | "fix bug" | `patterns/error-handling.md`, `patterns/debugging.md` | Medium |
237
+ ```
238
+
239
+ ### Step 6: Create Skill Definition
240
+
241
+ ```markdown
242
+ ---
243
+ name: my-rag-agent
244
+ description: Domain expert for [area]
245
+ ---
246
+
247
+ # My RAG Agent
248
+
249
+ ## Knowledge Base
250
+
251
+ This agent has access to:
252
+ - Architecture documentation
253
+ - Implementation patterns
254
+ - Working examples
255
+
256
+ ## Retrieval Strategy
257
+
258
+ 1. Parse user request for keywords
259
+ 2. Load matching knowledge files
260
+ 3. Apply to current context
261
+ 4. Generate informed response
262
+
263
+ ## Available Knowledge
264
+
265
+ See `context/README.md` for full index.
266
+ ```
267
+
268
+ ## Best Practices
269
+
270
+ ### Knowledge Quality
271
+
272
+ 1. **Keep files focused** - One concept per file
273
+ 2. **Include examples** - Show, don't just tell
274
+ 3. **Update regularly** - Keep knowledge current
275
+ 4. **Test retrieval** - Verify keyword mappings work
276
+
277
+ ### Retrieval Efficiency
278
+
279
+ 1. **Optimize index** - Fast keyword lookup
280
+ 2. **Limit context** - Don't overload with irrelevant info
281
+ 3. **Prioritize** - Most relevant first
282
+ 4. **Cache common patterns** - Speed up frequent retrievals
283
+
284
+ ### Maintenance
285
+
286
+ 1. **Review quarterly** - Audit knowledge accuracy
287
+ 2. **Remove stale docs** - Delete outdated information
288
+ 3. **Add new patterns** - Capture learnings
289
+ 4. **Track usage** - Monitor which files are used
290
+
291
+ ## RAG Agent Checklist
292
+
293
+ - [ ] Knowledge domain defined
294
+ - [ ] Context directory structure created
295
+ - [ ] README.md with knowledge index
296
+ - [ ] PROTOCOL.md with retrieval rules (if needed)
297
+ - [ ] Retrieval matrix documented
298
+ - [ ] Examples included
299
+ - [ ] skill.md references context files
300
+ - [ ] Workflows defined (orchestrator + implementation)
301
+ - [ ] Tested with sample queries
302
+
303
+ ## References
304
+
305
+ - Agent Creator: `.claude/skills/agent-creator/`
306
+ - Claude Code Docs: https://docs.anthropic.com/en/docs/claude-code
307
+ - Skills System: `.claude/skills/README.md`