claude-cli-advanced-starter-pack 1.0.16 → 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.
- package/OVERVIEW.md +5 -1
- package/README.md +241 -132
- package/bin/gtask.js +53 -0
- package/package.json +1 -1
- package/src/cli/menu.js +27 -0
- package/src/commands/explore-mcp/mcp-registry.js +99 -0
- package/src/commands/init.js +309 -80
- package/src/commands/install-panel-hook.js +108 -0
- package/src/commands/install-scripts.js +232 -0
- package/src/commands/install-skill.js +220 -0
- package/src/commands/panel.js +297 -0
- package/src/commands/setup-wizard.js +4 -3
- package/src/commands/test-setup.js +4 -5
- package/src/data/releases.json +209 -0
- package/src/panel/queue.js +188 -0
- package/templates/commands/ask-claude.template.md +118 -0
- package/templates/commands/ccasp-panel.template.md +72 -0
- package/templates/commands/ccasp-setup.template.md +470 -79
- package/templates/commands/create-smoke-test.template.md +186 -0
- package/templates/commands/project-impl.template.md +9 -113
- package/templates/commands/refactor-check.template.md +112 -0
- package/templates/commands/refactor-cleanup.template.md +144 -0
- package/templates/commands/refactor-prep.template.md +192 -0
- package/templates/docs/AI_ARCHITECTURE_CONSTITUTION.template.md +198 -0
- package/templates/docs/DETAILED_GOTCHAS.template.md +347 -0
- package/templates/docs/PHASE-DEV-CHECKLIST.template.md +241 -0
- package/templates/docs/PROGRESS_JSON_TEMPLATE.json +117 -0
- package/templates/docs/background-agent.template.md +264 -0
- package/templates/hooks/autonomous-decision-logger.template.js +207 -0
- package/templates/hooks/branch-merge-checker.template.js +272 -0
- package/templates/hooks/context-injector.template.js +261 -0
- package/templates/hooks/git-commit-tracker.template.js +267 -0
- package/templates/hooks/happy-mode-detector.template.js +214 -0
- package/templates/hooks/happy-title-generator.template.js +260 -0
- package/templates/hooks/issue-completion-detector.template.js +205 -0
- package/templates/hooks/panel-queue-reader.template.js +83 -0
- package/templates/hooks/phase-validation-gates.template.js +307 -0
- package/templates/hooks/session-id-generator.template.js +236 -0
- package/templates/hooks/token-budget-loader.template.js +234 -0
- package/templates/hooks/token-usage-monitor.template.js +193 -0
- package/templates/hooks/tool-output-cacher.template.js +219 -0
- package/templates/patterns/README.md +129 -0
- package/templates/patterns/l1-l2-orchestration.md +189 -0
- package/templates/patterns/multi-phase-orchestration.md +258 -0
- package/templates/patterns/two-tier-query-pipeline.md +192 -0
- package/templates/scripts/README.md +109 -0
- package/templates/scripts/analyze-delegation-log.js +299 -0
- package/templates/scripts/autonomous-decision-logger.js +277 -0
- package/templates/scripts/git-history-analyzer.py +269 -0
- package/templates/scripts/phase-validation-gates.js +307 -0
- package/templates/scripts/poll-deployment-status.js +260 -0
- package/templates/scripts/roadmap-scanner.js +263 -0
- package/templates/scripts/validate-deployment.js +293 -0
- package/templates/skills/agent-creator/skill.json +18 -0
- package/templates/skills/agent-creator/skill.md +335 -0
- package/templates/skills/hook-creator/skill.json +18 -0
- package/templates/skills/hook-creator/skill.md +318 -0
- package/templates/skills/panel/skill.json +18 -0
- package/templates/skills/panel/skill.md +90 -0
- package/templates/skills/rag-agent-creator/skill.json +18 -0
- package/templates/skills/rag-agent-creator/skill.md +307 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# CCASP Control Panel
|
|
2
|
+
|
|
3
|
+
Launch the CCASP Control Panel in a new terminal window for persistent command access.
|
|
4
|
+
|
|
5
|
+
## Instructions for Claude
|
|
6
|
+
|
|
7
|
+
**EXECUTE IMMEDIATELY**: Launch the panel in a new terminal window using the appropriate command for the detected platform.
|
|
8
|
+
|
|
9
|
+
### Platform Detection
|
|
10
|
+
|
|
11
|
+
Check the platform and run the appropriate command:
|
|
12
|
+
|
|
13
|
+
**Windows** (default - check for `COMSPEC` or `windir` environment variable):
|
|
14
|
+
```bash
|
|
15
|
+
start powershell -NoExit -Command "ccasp panel"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**macOS** (check for `TERM_PROGRAM=Apple_Terminal` or Darwin):
|
|
19
|
+
```bash
|
|
20
|
+
osascript -e 'tell application "Terminal" to do script "ccasp panel"'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Linux** (gnome-terminal):
|
|
24
|
+
```bash
|
|
25
|
+
gnome-terminal -- ccasp panel &
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### After Launch
|
|
29
|
+
|
|
30
|
+
Display this confirmation:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
✅ CCASP Control Panel launched in a new terminal window!
|
|
34
|
+
|
|
35
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
36
|
+
│ CCASP Control Panel (NEW WINDOW) │
|
|
37
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
38
|
+
│ │
|
|
39
|
+
│ Agents & Skills: │
|
|
40
|
+
│ [A] Create Agent [H] Create Hook [S] Create Skill │
|
|
41
|
+
│ [M] Explore MCP [C] Claude Audit [E] Explore Code │
|
|
42
|
+
│ │
|
|
43
|
+
│ Quick Actions: │
|
|
44
|
+
│ [P] Phase Dev Plan [G] GitHub Task [T] Run E2E Tests │
|
|
45
|
+
│ [U] Update Check │
|
|
46
|
+
│ │
|
|
47
|
+
│ Controls: │
|
|
48
|
+
│ [Q] Quit [R] Refresh [X] Clear Queue [?] Help │
|
|
49
|
+
│ │
|
|
50
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
51
|
+
|
|
52
|
+
How to use:
|
|
53
|
+
1. Switch to the new terminal window with the panel
|
|
54
|
+
2. Press a single key to select a command (e.g., 'A' for Create Agent)
|
|
55
|
+
3. Return to this Claude Code session
|
|
56
|
+
4. Press Enter on an empty prompt - the command will execute automatically
|
|
57
|
+
|
|
58
|
+
Note: If commands don't auto-execute, run: ccasp install-panel-hook --global
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### First-Time Setup
|
|
62
|
+
|
|
63
|
+
If the user hasn't used the panel before, also mention:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
First time using the panel? Install the hook for auto-execution:
|
|
67
|
+
ccasp install-panel-hook --global
|
|
68
|
+
|
|
69
|
+
Then restart Claude Code CLI for the hook to take effect.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## How It Works
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
76
|
+
│ Panel (NEW terminal) │ Claude Code (THIS terminal) │
|
|
77
|
+
├───────────────────────────────┼─────────────────────────────────┤
|
|
78
|
+
│ User presses 'A' │ │
|
|
79
|
+
│ ↓ │ │
|
|
80
|
+
│ Queue: /create-agent │ │
|
|
81
|
+
│ ↓ │ │
|
|
82
|
+
│ │ User presses Enter │
|
|
83
|
+
│ │ ↓ │
|
|
84
|
+
│ │ Hook reads queue │
|
|
85
|
+
│ │ ↓ │
|
|
86
|
+
│ │ Executes /create-agent │
|
|
87
|
+
└───────────────────────────────┴─────────────────────────────────┘
|
|
88
|
+
|
|
89
|
+
Queue file: ~/.claude/ccasp-panel/command-queue.json
|
|
90
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rag-agent-creator",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Create RAG-enhanced Claude Code agents with knowledge bases",
|
|
5
|
+
"category": "development",
|
|
6
|
+
"portability": 100,
|
|
7
|
+
"features": [
|
|
8
|
+
"Knowledge base design",
|
|
9
|
+
"Retrieval strategies",
|
|
10
|
+
"Context organization",
|
|
11
|
+
"Protocol-based workflows"
|
|
12
|
+
],
|
|
13
|
+
"entryPoint": "skill.md",
|
|
14
|
+
"context": [],
|
|
15
|
+
"workflows": [],
|
|
16
|
+
"requiredTools": ["Read", "Write", "Glob", "Grep"],
|
|
17
|
+
"suggestedModel": "sonnet"
|
|
18
|
+
}
|
|
@@ -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`
|