claude-dev-kit 2.1.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/.claude/agents/angelic-workshop-energy-clearing.md +113 -0
- package/.claude/agents/angelic-workshop-intake.md +84 -0
- package/.claude/agents/angelic-workshop-integration.md +140 -0
- package/.claude/agents/angelic-workshop-invocation.md +92 -0
- package/.claude/agents/angelic-workshop-lead.md +225 -0
- package/.claude/agents/angelic-workshop-transmission.md +108 -0
- package/.claude/agents/deep-think-partner.md +41 -0
- package/.claude/agents/dev-backend.md +74 -0
- package/.claude/agents/dev-e2e.md +101 -0
- package/.claude/agents/dev-frontend.md +82 -0
- package/.claude/agents/dev-lead.md +144 -0
- package/.claude/agents/dev-reviewer.md +122 -0
- package/.claude/agents/dev-test.md +88 -0
- package/.claude/agents/documentation-manager.md +73 -0
- package/.claude/agents/haiku-executor.md +8 -0
- package/.claude/agents/pm-groomer.md +98 -0
- package/.claude/agents/pm-prp-writer.md +144 -0
- package/.claude/agents/pm-sizer.md +84 -0
- package/.claude/agents/project-manager.md +91 -0
- package/.claude/agents/system-architect.md +98 -0
- package/.claude/agents/validation-gates.md +121 -0
- package/.claude/agents/workflow-builder.md +416 -0
- package/.claude/commands/ai/detect.md +117 -0
- package/.claude/commands/ai/route.md +128 -0
- package/.claude/commands/ai/switch.md +121 -0
- package/.claude/commands/bs/brainstorm_full.md +149 -0
- package/.claude/commands/bs/claude.md +37 -0
- package/.claude/commands/bs/codex.md +37 -0
- package/.claude/commands/bs/gemini.md +37 -0
- package/.claude/commands/bs/glm.md +37 -0
- package/.claude/commands/bs/grok.md +37 -0
- package/.claude/commands/bs/kimi.md +37 -0
- package/.claude/commands/bs/minimax.md +37 -0
- package/.claude/commands/bs/ollama.md +71 -0
- package/.claude/commands/code/build-and-fix.md +80 -0
- package/.claude/commands/code/simplify.md +77 -0
- package/.claude/commands/dev/backend.md +47 -0
- package/.claude/commands/dev/e2e.md +49 -0
- package/.claude/commands/dev/frontend.md +45 -0
- package/.claude/commands/dev/review.md +48 -0
- package/.claude/commands/dev/test.md +54 -0
- package/.claude/commands/dev-epic.md +121 -0
- package/.claude/commands/dev-issue.md +79 -0
- package/.claude/commands/dev.md +134 -0
- package/.claude/commands/execute-prp.md +113 -0
- package/.claude/commands/fix-github-issue.md +14 -0
- package/.claude/commands/generate-prp.md +73 -0
- package/.claude/commands/git/status.md +14 -0
- package/.claude/commands/haiku.md +13 -0
- package/.claude/commands/improve.md +178 -0
- package/.claude/commands/init.md +311 -0
- package/.claude/commands/pm/groom.md +58 -0
- package/.claude/commands/pm/plan-epic.md +74 -0
- package/.claude/commands/pm/size.md +46 -0
- package/.claude/commands/pm.md +47 -0
- package/.claude/commands/primer.md +16 -0
- package/.claude/commands/self-improve.md +243 -0
- package/.claude/commands/think.md +68 -0
- package/.claude/commands/workflow/angelic-workshop.md +89 -0
- package/.claude/commands/workflow/build.md +91 -0
- package/.claude/hooks/pre-tool-use/block-dangerous-commands.js +196 -0
- package/.claude/hooks/skill-activation-prompt/package-lock.json +560 -0
- package/.claude/hooks/skill-activation-prompt/package.json +16 -0
- package/.claude/hooks/skill-activation-prompt/skill-activation-prompt.ts +135 -0
- package/.claude/hooks/skill-activation-prompt/skill-rules.json +50 -0
- package/.claude/hooks/stop/context_monitor.py +155 -0
- package/.claude/hooks/stop/learning_logger.py +218 -0
- package/.claude/skills/ai-router/SKILL.md +119 -0
- package/.claude/skills/build-and-fix/SKILL.md +271 -0
- package/.claude/skills/build-and-fix/examples/javascript-lint-fix.md +37 -0
- package/.claude/skills/build-and-fix/language-configs/javascript.yaml +139 -0
- package/.claude/skills/build-and-fix/references/config-schema.md +120 -0
- package/.claude/skills/build-and-fix/references/error-patterns.md +273 -0
- package/.claude/skills/code-investigator/SKILL.md +299 -0
- package/.claude/skills/code-investigator/references/investigation-workflows.md +542 -0
- package/.claude/skills/code-investigator/references/language-specific.md +761 -0
- package/.claude/skills/code-investigator/references/search-patterns.md +258 -0
- package/.claude/skills/code-investigator/references/serena-patterns.md +328 -0
- package/.claude/skills/stack-detector/SKILL.md +153 -0
- package/.claude/skills/verification-before-completion/SKILL.md +143 -0
- package/.claude/templates/claude-md-template.md +56 -0
- package/.claude/templates/stacks/express-node.md +134 -0
- package/.claude/templates/stacks/fastapi.md +152 -0
- package/.claude/templates/stacks/generic.md +101 -0
- package/.claude/templates/stacks/nextjs-prisma.md +235 -0
- package/README.md +499 -0
- package/bin/claude-dev-kit.js +11 -0
- package/package.json +31 -0
- package/scripts/install.sh +448 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run opencode cli with grok llm to execute current promt
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Run Grok LLM
|
|
6
|
+
|
|
7
|
+
Execute the prompt using Grok LLM via opencode CLI in background mode.
|
|
8
|
+
|
|
9
|
+
## Instructions
|
|
10
|
+
|
|
11
|
+
1. If `$ARGUMENTS` is **empty**, ask the user for their prompt and wait for their response.
|
|
12
|
+
|
|
13
|
+
2. Set `PROMPT` to `$ARGUMENTS` (or the user's response if arguments were empty).
|
|
14
|
+
|
|
15
|
+
`PROMPT_ESCAPED` is properly shell-escaped `PROMPT`.
|
|
16
|
+
|
|
17
|
+
3. **Launch in background** using **Bash** tool:
|
|
18
|
+
- `command`: `opencode run --model openrouter/x-ai/grok-4.1-fast "PROMPT_ESCAPED"`
|
|
19
|
+
- `run_in_background`: `true`
|
|
20
|
+
- `description`: `Grok execution`
|
|
21
|
+
|
|
22
|
+
4. **Wait for completion** using **TaskOutput** tool:
|
|
23
|
+
- `task_id`: the task ID returned from step 3
|
|
24
|
+
- `block`: `true`
|
|
25
|
+
- Do NOT set any timeout - let it run as long as necessary
|
|
26
|
+
|
|
27
|
+
5. Display the result clearly:
|
|
28
|
+
```
|
|
29
|
+
### Grok Response
|
|
30
|
+
[paste the response here]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Behavior Notes
|
|
34
|
+
|
|
35
|
+
- Do **not** impose any timeouts. Let the LLM work as long as necessary.
|
|
36
|
+
- Do **not** check intermediate output. Wait for full completion.
|
|
37
|
+
- Do **not** make any code changes or modify files unless the response explicitly requires it and user confirms.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run opencode cli with Kimi K2.5 llm to execute current promt
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Run Kimi K2.5 LLM
|
|
6
|
+
|
|
7
|
+
Execute the prompt using Kimi K2.5 LLM via opencode CLI in background mode.
|
|
8
|
+
|
|
9
|
+
## Instructions
|
|
10
|
+
|
|
11
|
+
1. If `$ARGUMENTS` is **empty**, ask the user for their prompt and wait for their response.
|
|
12
|
+
|
|
13
|
+
2. Set `PROMPT` to `$ARGUMENTS` (or the user's response if arguments were empty).
|
|
14
|
+
|
|
15
|
+
`PROMPT_ESCAPED` is properly shell-escaped `PROMPT`.
|
|
16
|
+
|
|
17
|
+
3. **Launch in background** using **Bash** tool:
|
|
18
|
+
- `command`: `opencode run --model openrouter/moonshotai/kimi-k2.5 "PROMPT_ESCAPED"`
|
|
19
|
+
- `run_in_background`: `true`
|
|
20
|
+
- `description`: `Kimi execution`
|
|
21
|
+
|
|
22
|
+
4. **Wait for completion** using **TaskOutput** tool:
|
|
23
|
+
- `task_id`: the task ID returned from step 3
|
|
24
|
+
- `block`: `true`
|
|
25
|
+
- Do NOT set any timeout - let it run as long as necessary
|
|
26
|
+
|
|
27
|
+
5. Display the result clearly:
|
|
28
|
+
```
|
|
29
|
+
### Kimi Response
|
|
30
|
+
[paste the response here]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Behavior Notes
|
|
34
|
+
|
|
35
|
+
- Do **not** impose any timeouts. Let the LLM work as long as necessary.
|
|
36
|
+
- Do **not** check intermediate output. Wait for full completion.
|
|
37
|
+
- Do **not** make any code changes or modify files unless the response explicitly requires it and user confirms.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run claude cli with MiniMax LLM to execute current promt
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Run Claude LLM
|
|
6
|
+
|
|
7
|
+
Execute the prompt using Claude CLI with MiniMax LLM in background mode.
|
|
8
|
+
|
|
9
|
+
## Instructions
|
|
10
|
+
|
|
11
|
+
1. If `$ARGUMENTS` is **empty**, ask the user for their prompt and wait for their response.
|
|
12
|
+
|
|
13
|
+
2. Set `PROMPT` to `$ARGUMENTS` (or the user's response if arguments were empty).
|
|
14
|
+
|
|
15
|
+
`PROMPT_ESCAPED` is properly shell-escaped `PROMPT`.
|
|
16
|
+
|
|
17
|
+
3. **Launch in background** using **Bash** tool:
|
|
18
|
+
- `command`: `echo "PROMPT_ESCAPED" | env -u CLAUDECODE ccmy -p`
|
|
19
|
+
- `run_in_background`: `true`
|
|
20
|
+
- `description`: `MiniMax execution`
|
|
21
|
+
|
|
22
|
+
4. **Wait for completion** using **TaskOutput** tool:
|
|
23
|
+
- `task_id`: the task ID returned from step 3
|
|
24
|
+
- `block`: `true`
|
|
25
|
+
- Do NOT set any timeout - let it run as long as necessary
|
|
26
|
+
|
|
27
|
+
5. Display the result clearly:
|
|
28
|
+
```
|
|
29
|
+
### Claude with MiniMax LLM Response
|
|
30
|
+
[paste the response here]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Behavior Notes
|
|
34
|
+
|
|
35
|
+
- Do **not** impose any timeouts. Let the LLM work as long as necessary.
|
|
36
|
+
- Do **not** check intermediate output. Wait for full completion.
|
|
37
|
+
- Do **not** make any code changes or modify files unless the response explicitly requires it and user confirms.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run a prompt with a local Ollama model. Data stays on your machine — no cloud calls. Optionally specify a model with 'model:name prompt'."
|
|
3
|
+
argument-hint: [prompt | model:<name> prompt]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Run Ollama (Local LLM)
|
|
7
|
+
|
|
8
|
+
Execute the prompt using a locally running Ollama model. Nothing leaves your machine.
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
1. If `$ARGUMENTS` is **empty**, ask the user for their prompt and wait for their response.
|
|
13
|
+
|
|
14
|
+
2. Set `PROMPT` to `$ARGUMENTS` (or the user's response if arguments were empty).
|
|
15
|
+
|
|
16
|
+
3. **Check for model override in PROMPT:**
|
|
17
|
+
- If PROMPT starts with `model:` (e.g. `model:codellama explain this code`):
|
|
18
|
+
- Extract `MODEL` = word after `model:` (e.g. `codellama`)
|
|
19
|
+
- Set `PROMPT` = rest of the string after the model word
|
|
20
|
+
- Otherwise, read the active model from providers.json:
|
|
21
|
+
```bash
|
|
22
|
+
python3 -c "import json; d=json.load(open('.claude/providers.json')); print(d['providers']['ollama'].get('model','llama3.2'))" 2>/dev/null || echo "llama3.2"
|
|
23
|
+
```
|
|
24
|
+
Set `MODEL` = result (default: `llama3.2`)
|
|
25
|
+
|
|
26
|
+
4. **Verify Ollama is running:**
|
|
27
|
+
```bash
|
|
28
|
+
ollama list 2>/dev/null | head -1 || echo "OLLAMA_DOWN"
|
|
29
|
+
```
|
|
30
|
+
If output is `OLLAMA_DOWN` or contains an error:
|
|
31
|
+
```
|
|
32
|
+
Ollama is not running. Start it first:
|
|
33
|
+
ollama serve
|
|
34
|
+
|
|
35
|
+
Then pull a model if you haven't:
|
|
36
|
+
ollama pull llama3.2
|
|
37
|
+
ollama pull codellama
|
|
38
|
+
ollama pull qwen2.5-coder
|
|
39
|
+
|
|
40
|
+
Install Ollama: https://ollama.ai
|
|
41
|
+
```
|
|
42
|
+
Stop.
|
|
43
|
+
|
|
44
|
+
5. **Launch in background** using **Bash** tool:
|
|
45
|
+
- `command`: `ollama run MODEL "PROMPT_ESCAPED"`
|
|
46
|
+
- `run_in_background`: `true`
|
|
47
|
+
- `description`: `Ollama (<MODEL>) execution`
|
|
48
|
+
|
|
49
|
+
Replace `MODEL` with the actual model name and `PROMPT_ESCAPED` with the properly shell-escaped prompt.
|
|
50
|
+
|
|
51
|
+
6. **Wait for completion** using **TaskOutput** tool:
|
|
52
|
+
- `task_id`: the task ID returned from step 5
|
|
53
|
+
- `block`: `true`
|
|
54
|
+
- Do NOT set any timeout — local models can take time on first run
|
|
55
|
+
|
|
56
|
+
7. Display the result clearly:
|
|
57
|
+
```
|
|
58
|
+
### Ollama Response [model: <MODEL>] [LOCAL — no cloud]
|
|
59
|
+
|
|
60
|
+
[paste the response here]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Behavior Notes
|
|
64
|
+
|
|
65
|
+
- **Private by design**: all computation happens on your machine, no data is sent to any API
|
|
66
|
+
- Do **not** impose any timeouts — first runs may be slow while the model loads into memory
|
|
67
|
+
- If the model isn't pulled yet, Ollama will automatically download it (this can take several minutes)
|
|
68
|
+
- Use `model:` prefix to override the active model for a one-off: `/bs:ollama model:codellama explain this function`
|
|
69
|
+
- To permanently switch models: `/ai:switch ollama:codellama`
|
|
70
|
+
- To see available models: `ollama list`
|
|
71
|
+
- Do **not** make any code changes or modify files unless explicitly confirmed by the user
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Build project and automatically fix simple errors (formatting, linting)
|
|
3
|
+
allowed-tools: Bash(realpath:*), Bash(test:*), Bash(ls:*), Bash(pwd:*)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Build & Fix Project
|
|
7
|
+
|
|
8
|
+
Invoke the **build-and-fix** skill to automatically build the project and fix simple compilation errors like formatting and linting issues.
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
|
|
12
|
+
- Build the project and ensure successful compilation
|
|
13
|
+
- Automatically fix simple build errors (formatting, linting)
|
|
14
|
+
- Validate code changes before committing
|
|
15
|
+
- Efficiently debug build failures
|
|
16
|
+
|
|
17
|
+
## Supported Languages
|
|
18
|
+
|
|
19
|
+
- JavaScript/TypeScript (npm/yarn/pnpm)
|
|
20
|
+
- Python (pip/poetry/pipenv)
|
|
21
|
+
- Rust (cargo)
|
|
22
|
+
- C++ (cmake)
|
|
23
|
+
|
|
24
|
+
## Process
|
|
25
|
+
|
|
26
|
+
1. **Parse arguments** (optional)
|
|
27
|
+
- If `$ARGUMENTS` is provided, change to that directory first
|
|
28
|
+
- Otherwise, operate in current working directory
|
|
29
|
+
- Example: `/code:build-and-fix ./backend` or just `/code:build-and-fix`
|
|
30
|
+
|
|
31
|
+
2. **Change directory if needed**
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
if [ -n "$ARGUMENTS" ]; then
|
|
35
|
+
# Resolve to absolute path
|
|
36
|
+
TARGET_DIR=$(realpath "$ARGUMENTS" 2>/dev/null)
|
|
37
|
+
|
|
38
|
+
# Verify directory exists
|
|
39
|
+
if [ ! -d "$TARGET_DIR" ]; then
|
|
40
|
+
echo "Error: Directory '$ARGUMENTS' does not exist"
|
|
41
|
+
exit 1
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
cd "$TARGET_DIR"
|
|
45
|
+
echo "Changed to directory: $TARGET_DIR"
|
|
46
|
+
fi
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
3. **Invoke the build-and-fix skill**
|
|
50
|
+
- Use the Skill tool to invoke: `skill: "build-and-fix"`
|
|
51
|
+
- The skill will:
|
|
52
|
+
- Auto-detect project type
|
|
53
|
+
- Run build
|
|
54
|
+
- Parse errors and apply auto-fixes (formatting, linting)
|
|
55
|
+
- Retry build until success or max retries reached
|
|
56
|
+
|
|
57
|
+
4. **Report results**
|
|
58
|
+
- The skill handles all output and reporting
|
|
59
|
+
- Success: Shows fixes applied and build time
|
|
60
|
+
- Failure: Shows remaining errors and suggested manual actions
|
|
61
|
+
|
|
62
|
+
## Examples
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Build current directory
|
|
66
|
+
/code:build-and-fix
|
|
67
|
+
|
|
68
|
+
# Build specific project directory
|
|
69
|
+
/code:build-and-fix ./backend
|
|
70
|
+
|
|
71
|
+
# Build relative path
|
|
72
|
+
/code:build-and-fix ../api-service
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Notes
|
|
76
|
+
|
|
77
|
+
- Requires build tools to be pre-installed (npm/cargo/cmake/etc.)
|
|
78
|
+
- Only fixes simple errors (formatting, linting)
|
|
79
|
+
- Cannot fix semantic/logic errors or missing dependencies
|
|
80
|
+
- Max 2 retry cycles for efficiency
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Simplify and refine code for clarity and maintainability
|
|
3
|
+
argument-hint: [file-or-pattern]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Simplifier
|
|
7
|
+
|
|
8
|
+
Invoke the **@"code-simplifier:code-simplifier (agent)"** to simplify and refine code for clarity, consistency, and maintainability while preserving all functionality.
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
|
|
12
|
+
- Simplify code structure and reduce unnecessary complexity
|
|
13
|
+
- Apply project coding standards from CLAUDE.md
|
|
14
|
+
- Enhance readability through clear naming and organization
|
|
15
|
+
- Remove redundant code and abstractions
|
|
16
|
+
- Maintain balance - avoid over-simplification
|
|
17
|
+
|
|
18
|
+
## Process
|
|
19
|
+
|
|
20
|
+
1. **Determine scope**
|
|
21
|
+
- If `$ARGUMENTS` is provided, focus on those specific files/patterns
|
|
22
|
+
- Otherwise, review the whole project in its current state
|
|
23
|
+
|
|
24
|
+
2. **Launch the code-simplifier agent**
|
|
25
|
+
- Use the Task tool with `subagent_type: "code-simplifier:code-simplifier"`
|
|
26
|
+
- Pass the target scope: `$ARGUMENTS`
|
|
27
|
+
|
|
28
|
+
3. **The agent will:**
|
|
29
|
+
- Identify target code sections
|
|
30
|
+
- Analyze for opportunities to improve clarity and consistency
|
|
31
|
+
- Apply project-specific best practices
|
|
32
|
+
- Ensure all functionality remains unchanged
|
|
33
|
+
|
|
34
|
+
4. **Verify results**
|
|
35
|
+
- Run tests if available
|
|
36
|
+
- Run linting/formatting checks
|
|
37
|
+
- Confirm no behavioral changes
|
|
38
|
+
|
|
39
|
+
5. **Report statistics**
|
|
40
|
+
- Lines simplified/removed
|
|
41
|
+
- Functions refactored
|
|
42
|
+
- Patterns standardized
|
|
43
|
+
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Simplify entire project
|
|
48
|
+
/code:simplify
|
|
49
|
+
|
|
50
|
+
# Simplify specific file
|
|
51
|
+
/code:simplify src/utils.ts
|
|
52
|
+
|
|
53
|
+
# Simplify multiple files
|
|
54
|
+
/code:simplify src/utils.ts src/helpers.ts lib/core.ts
|
|
55
|
+
|
|
56
|
+
# Simplify matching pattern
|
|
57
|
+
/code:simplify **/*.tsx
|
|
58
|
+
|
|
59
|
+
# Simplify a directory
|
|
60
|
+
/code:simplify src/components/
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Notes
|
|
64
|
+
|
|
65
|
+
- Preserves exact functionality - only changes how code is written
|
|
66
|
+
- Follows CLAUDE.md project standards
|
|
67
|
+
- Prefers clarity over brevity
|
|
68
|
+
- Avoids nested ternaries - uses switch/if-else instead
|
|
69
|
+
- Does not over-simplify or create overly clever solutions
|
|
70
|
+
|
|
71
|
+
## Error Handling
|
|
72
|
+
|
|
73
|
+
- If no files match the pattern, reports back without making changes
|
|
74
|
+
- Invalid paths are reported explicitly, not silently ignored
|
|
75
|
+
- Syntax errors in target code are flagged before attempting simplification
|
|
76
|
+
- If tests fail after changes, reverts and reports the issue
|
|
77
|
+
- If CLAUDE.md is missing, proceeds with general best practices
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Targeted backend work only. API routes, services, DB queries, auth. Spawns dev-backend → dev-test → dev-reviewer via dev-lead. Pass an issue number or free-text task description."
|
|
3
|
+
argument-hint: [issue-number | task description]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /dev:backend
|
|
7
|
+
|
|
8
|
+
Run targeted backend implementation through the dev-lead orchestrator (backend path only).
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
### 1. Parse the task
|
|
13
|
+
|
|
14
|
+
If `$ARGUMENTS` looks like a number → `gh issue view $ARGUMENTS`
|
|
15
|
+
Otherwise → use the text as the task description
|
|
16
|
+
|
|
17
|
+
### 2. Find relevant backend files
|
|
18
|
+
|
|
19
|
+
Search for files related to the task domain:
|
|
20
|
+
```bash
|
|
21
|
+
# Find related route handlers, services, schema
|
|
22
|
+
grep -r "<domain-keyword>" app/api/ lib/ prisma/ --include="*.ts" -l 2>/dev/null | head -10
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 3. Spawn dev-lead with backend-only flag
|
|
26
|
+
|
|
27
|
+
Use the Task tool:
|
|
28
|
+
```
|
|
29
|
+
description: "Backend implementation only"
|
|
30
|
+
agent: dev-lead
|
|
31
|
+
prompt: |
|
|
32
|
+
## Task (backend-only)
|
|
33
|
+
[issue body or free-text task]
|
|
34
|
+
|
|
35
|
+
## Scope: backend-only
|
|
36
|
+
Do NOT spawn dev-frontend.
|
|
37
|
+
Spawn: dev-backend → dev-test → dev-reviewer → validate
|
|
38
|
+
|
|
39
|
+
## Relevant files found
|
|
40
|
+
[list from step 2]
|
|
41
|
+
|
|
42
|
+
## Validation commands (from CLAUDE.md)
|
|
43
|
+
[lint, test, build commands]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 4. Report
|
|
47
|
+
Return the list of files created/modified and validation gate results.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Write E2E tests for a user flow. Pass a description of the flow or an issue number. Spawns dev-e2e via dev-lead."
|
|
3
|
+
argument-hint: [flow description | issue-number]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /dev:e2e
|
|
7
|
+
|
|
8
|
+
Write Playwright or Cypress E2E tests for a user journey.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
### 1. Parse the task
|
|
13
|
+
|
|
14
|
+
If `$ARGUMENTS` is an issue number → `gh issue view <N>` to get acceptance criteria
|
|
15
|
+
Otherwise → use the text as the flow description
|
|
16
|
+
|
|
17
|
+
### 2. Find existing E2E spec as pattern
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
find . -name "*.spec.ts" -path "*/e2e/*" -o -name "*.cy.ts" 2>/dev/null | head -2
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 3. Detect E2E runner
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
ls playwright.config.* cypress.config.* 2>/dev/null
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### 4. Spawn dev-lead with e2e-only flag
|
|
30
|
+
|
|
31
|
+
Use the Task tool:
|
|
32
|
+
```
|
|
33
|
+
description: "Write E2E tests for flow"
|
|
34
|
+
agent: dev-lead
|
|
35
|
+
prompt: |
|
|
36
|
+
## Task (e2e-only)
|
|
37
|
+
Write E2E tests for this user journey:
|
|
38
|
+
[acceptance criteria or flow description]
|
|
39
|
+
|
|
40
|
+
## Scope: e2e-only
|
|
41
|
+
Spawn: dev-e2e → dev-reviewer
|
|
42
|
+
|
|
43
|
+
## E2E runner: [playwright | cypress]
|
|
44
|
+
## Pattern reference: [existing spec file path]
|
|
45
|
+
## Base URL: [from CLAUDE.md or ask]
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 5. Report
|
|
49
|
+
Return test files created and selector additions.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Targeted frontend work only. Components, pages, state, styling. Spawns dev-frontend → dev-test → dev-e2e → dev-reviewer via dev-lead. Pass an issue number or task description."
|
|
3
|
+
argument-hint: [issue-number | task description]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /dev:frontend
|
|
7
|
+
|
|
8
|
+
Run targeted frontend implementation through the dev-lead orchestrator (frontend path only).
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
### 1. Parse the task
|
|
13
|
+
|
|
14
|
+
If `$ARGUMENTS` looks like a number → `gh issue view $ARGUMENTS`
|
|
15
|
+
Otherwise → use the text as the task description
|
|
16
|
+
|
|
17
|
+
### 2. Find relevant frontend files
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
grep -r "<domain-keyword>" app/ components/ src/ --include="*.tsx" --include="*.vue" --include="*.svelte" -l 2>/dev/null | head -10
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 3. Spawn dev-lead with frontend-only flag
|
|
24
|
+
|
|
25
|
+
Use the Task tool:
|
|
26
|
+
```
|
|
27
|
+
description: "Frontend implementation only"
|
|
28
|
+
agent: dev-lead
|
|
29
|
+
prompt: |
|
|
30
|
+
## Task (frontend-only)
|
|
31
|
+
[issue body or free-text task]
|
|
32
|
+
|
|
33
|
+
## Scope: frontend-only
|
|
34
|
+
Do NOT spawn dev-backend.
|
|
35
|
+
Spawn: dev-frontend → dev-test → dev-e2e → dev-reviewer → validate
|
|
36
|
+
|
|
37
|
+
## Relevant files found
|
|
38
|
+
[list from step 2]
|
|
39
|
+
|
|
40
|
+
## Validation commands (from CLAUDE.md)
|
|
41
|
+
[lint, test, E2E, build commands]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 4. Report
|
|
45
|
+
Return files created/modified and gate results.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Review the current branch's changes. Returns a structured PASS/FAIL report with security, correctness, pattern, type safety, and test quality checks."
|
|
3
|
+
argument-hint: [issue-number for context | empty]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /dev:review
|
|
7
|
+
|
|
8
|
+
Run a structured code review on the current branch via the `dev-reviewer` sub-agent.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
### 1. Get fresh diff
|
|
13
|
+
```bash
|
|
14
|
+
git diff main...HEAD --stat
|
|
15
|
+
git diff main...HEAD
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### 2. Get issue context (optional)
|
|
19
|
+
If `$ARGUMENTS` is an issue number → `gh issue view <N>` to get acceptance criteria for correctness review.
|
|
20
|
+
|
|
21
|
+
### 3. Spawn dev-lead with review-only flag
|
|
22
|
+
|
|
23
|
+
Use the Task tool:
|
|
24
|
+
```
|
|
25
|
+
description: "Review current branch changes"
|
|
26
|
+
agent: dev-lead
|
|
27
|
+
prompt: |
|
|
28
|
+
## Task (review-only)
|
|
29
|
+
Review the changes on the current branch. Do NOT implement anything.
|
|
30
|
+
|
|
31
|
+
## Scope: review-only
|
|
32
|
+
Spawn ONLY: dev-reviewer
|
|
33
|
+
|
|
34
|
+
## Git diff
|
|
35
|
+
[paste full diff here]
|
|
36
|
+
|
|
37
|
+
## Acceptance Criteria (for correctness check)
|
|
38
|
+
[from issue if available, otherwise "N/A"]
|
|
39
|
+
|
|
40
|
+
## Domain context
|
|
41
|
+
[note if changes touch payments, auth, or data migration — for risk scoring]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 4. Present report
|
|
45
|
+
Return the full review report with PASS/FAIL verdict and issue table.
|
|
46
|
+
|
|
47
|
+
If FAIL: list the BLOCKERs that must be resolved.
|
|
48
|
+
If PASS with WARNINGs: show warnings but confirm it is safe to merge.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Write unit/integration tests for specific files. Pass file paths or an issue number. Spawns dev-test via dev-lead."
|
|
3
|
+
argument-hint: [file-paths | issue-number]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /dev:test
|
|
7
|
+
|
|
8
|
+
Write tests for existing files that lack coverage.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
### 1. Identify files to test
|
|
13
|
+
|
|
14
|
+
If `$ARGUMENTS` looks like file paths → use them directly
|
|
15
|
+
If `$ARGUMENTS` is an issue number → `gh issue view <N>`, then find the implementation files
|
|
16
|
+
Otherwise → ask: "Which files need tests?"
|
|
17
|
+
|
|
18
|
+
### 2. Find existing test patterns
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Find 1-2 representative test files as pattern reference
|
|
22
|
+
find . -name "*.test.ts" -o -name "*.spec.ts" -o -name "*_test.py" 2>/dev/null | head -3
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 3. Read CLAUDE.md for test command
|
|
26
|
+
|
|
27
|
+
### 4. Spawn dev-lead with test-only flag
|
|
28
|
+
|
|
29
|
+
Use the Task tool:
|
|
30
|
+
```
|
|
31
|
+
description: "Write tests for listed files"
|
|
32
|
+
agent: dev-lead
|
|
33
|
+
prompt: |
|
|
34
|
+
## Task (tests-only)
|
|
35
|
+
Write comprehensive unit tests for the following files:
|
|
36
|
+
[file list]
|
|
37
|
+
|
|
38
|
+
## Scope: tests-only
|
|
39
|
+
Do NOT spawn dev-backend or dev-frontend.
|
|
40
|
+
Spawn: dev-test → dev-reviewer
|
|
41
|
+
|
|
42
|
+
## Pattern reference files
|
|
43
|
+
[1-2 example test file paths]
|
|
44
|
+
|
|
45
|
+
## Test command
|
|
46
|
+
[from CLAUDE.md]
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 5. Run tests to verify
|
|
50
|
+
```bash
|
|
51
|
+
[TEST_CMD] --testPathPatterns='<pattern>'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Report coverage results.
|