@ngxtm/devkit 3.19.0 → 3.21.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/merged-commands/application-performance-performance-optimization.md +13 -13
- package/merged-commands/ask/fast.md +14 -57
- package/merged-commands/ask/hard.md +22 -79
- package/merged-commands/auto.md +6 -33
- package/merged-commands/backend-development-feature-development.md +12 -12
- package/merged-commands/bootstrap/auto/fast.md +15 -15
- package/merged-commands/bootstrap/auto/parallel.md +12 -12
- package/merged-commands/bootstrap/auto.md +14 -14
- package/merged-commands/bootstrap.md +15 -15
- package/merged-commands/brainstorm/fast.md +19 -72
- package/merged-commands/brainstorm/hard.md +23 -84
- package/merged-commands/c4-architecture-c4-architecture.md +5 -5
- package/merged-commands/code/auto.md +16 -16
- package/merged-commands/code/fast.md +19 -72
- package/merged-commands/code/hard.md +38 -122
- package/merged-commands/code/no-test.md +12 -12
- package/merged-commands/code/parallel.md +9 -9
- package/merged-commands/code.md +14 -14
- package/merged-commands/comprehensive-review-full-review.md +8 -8
- package/merged-commands/context-degradation.md +2 -2
- package/merged-commands/context-engineering.md +4 -4
- package/merged-commands/context-optimization.md +3 -3
- package/merged-commands/cook/auto/fast.md +3 -3
- package/merged-commands/cook/auto/parallel.md +9 -9
- package/merged-commands/cook/auto.md +1 -1
- package/merged-commands/cook/fast.md +38 -47
- package/merged-commands/cook/hard.md +46 -41
- package/merged-commands/cook.md +13 -13
- package/merged-commands/daily-news-report.md +15 -15
- package/merged-commands/data-engineering-data-driven-feature.md +16 -16
- package/merged-commands/debug/fast.md +13 -29
- package/merged-commands/debug/hard.md +47 -49
- package/merged-commands/debug.md +1 -1
- package/merged-commands/debugging-toolkit-smart-debug.md +1 -1
- package/merged-commands/deploy/check.md +22 -71
- package/merged-commands/deploy/preview.md +18 -62
- package/merged-commands/deploy/production.md +22 -71
- package/merged-commands/deploy/rollback.md +22 -71
- package/merged-commands/deploy.md +0 -11
- package/merged-commands/design/3d.md +3 -3
- package/merged-commands/design/describe.md +1 -1
- package/merged-commands/design/fast.md +2 -2
- package/merged-commands/design/good.md +3 -3
- package/merged-commands/design/hard.md +15 -85
- package/merged-commands/design/screenshot.md +1 -1
- package/merged-commands/design/video.md +1 -1
- package/merged-commands/design.md +0 -11
- package/merged-commands/doc-coauthoring.md +5 -5
- package/merged-commands/docker-expert.md +1 -1
- package/merged-commands/docs/audit.md +26 -77
- package/merged-commands/docs/business.md +26 -77
- package/merged-commands/docs/core.md +24 -68
- package/merged-commands/docs/init.md +8 -8
- package/merged-commands/docs/update.md +13 -13
- package/merged-commands/docs.md +0 -12
- package/merged-commands/error-debugging-multi-agent-review.md +1 -1
- package/merged-commands/error-diagnostics-smart-debug.md +1 -1
- package/merged-commands/finishing-a-development-branch.md +1 -1
- package/merged-commands/fix/ci.md +2 -2
- package/merged-commands/fix/fast.md +2 -2
- package/merged-commands/fix/hard.md +6 -6
- package/merged-commands/fix/logs.md +5 -5
- package/merged-commands/fix/parallel.md +9 -9
- package/merged-commands/fix/test.md +6 -6
- package/merged-commands/fix/ui.md +8 -8
- package/merged-commands/fixing.md +3 -3
- package/merged-commands/framework-migration-legacy-modernize.md +13 -13
- package/merged-commands/full-stack-orchestration-full-stack-feature.md +12 -12
- package/merged-commands/git/cm.md +1 -1
- package/merged-commands/git/cp.md +1 -1
- package/merged-commands/git/merge.md +1 -1
- package/merged-commands/git/pr.md +1 -1
- package/merged-commands/git-pr-workflows-git-workflow.md +10 -10
- package/merged-commands/google-adk-python.md +1 -1
- package/merged-commands/hr-pro.md +1 -1
- package/merged-commands/incident-response-incident-response.md +13 -13
- package/merged-commands/integrate/polar.md +3 -3
- package/merged-commands/integrate/sepay.md +3 -3
- package/merged-commands/journal.md +1 -1
- package/merged-commands/linear-claude-skill.md +2 -2
- package/merged-commands/loki-mode.md +14 -14
- package/merged-commands/machine-learning-ops-ml-pipeline.md +7 -7
- package/merged-commands/mcp-management.md +8 -8
- package/merged-commands/multi-agent-patterns.md +14 -14
- package/merged-commands/multi-platform-apps-multi-platform.md +10 -10
- package/merged-commands/nestjs-expert.md +1 -1
- package/merged-commands/performance-testing-review-multi-agent-review.md +1 -1
- package/merged-commands/plan/archive.md +1 -1
- package/merged-commands/plan/ci.md +1 -1
- package/merged-commands/plan/fast.md +2 -2
- package/merged-commands/plan/hard.md +4 -4
- package/merged-commands/plan/parallel.md +5 -5
- package/merged-commands/plan/two.md +6 -6
- package/merged-commands/recover.md +22 -0
- package/merged-commands/requesting-code-review.md +6 -6
- package/merged-commands/review/codebase/parallel.md +5 -5
- package/merged-commands/review/codebase.md +5 -5
- package/merged-commands/review/fast.md +13 -29
- package/merged-commands/review/hard.md +48 -49
- package/merged-commands/review.md +0 -11
- package/merged-commands/security-scanning-security-hardening.md +13 -13
- package/merged-commands/skill/add.md +6 -6
- package/merged-commands/skill/create.md +6 -6
- package/merged-commands/skill/fix-logs.md +6 -6
- package/merged-commands/skill/optimize/auto.md +1 -1
- package/merged-commands/skill/optimize.md +1 -1
- package/merged-commands/skill/plan.md +1 -1
- package/merged-commands/skill/sync.md +29 -5
- package/merged-commands/skill/update.md +6 -6
- package/merged-commands/subagent-driven-development.md +53 -53
- package/merged-commands/tdd-workflows-tdd-cycle.md +12 -12
- package/merged-commands/tdd-workflows-tdd-red.md +1 -1
- package/merged-commands/tdd-workflows-tdd-refactor.md +1 -1
- package/merged-commands/test/fast.md +22 -33
- package/merged-commands/test/hard.md +59 -56
- package/merged-commands/test/ui.md +1 -1
- package/merged-commands/test.md +1 -1
- package/merged-commands/typescript-expert.md +1 -1
- package/merged-commands/use-mcp.md +5 -5
- package/merged-commands/writing-plans.md +3 -3
- package/merged-commands/writing-skills.md +8 -8
- package/package.json +1 -1
- package/rules/base/auto-skill.md +60 -0
- package/rules/base/command-routing.md +58 -0
- package/rules/base/context-checkpoint.md +38 -0
- package/rules-index.json +1 -1
- package/scripts/organize-rules.js +9 -0
- package/skills/application-performance-performance-optimization/SKILL.md +13 -13
- package/skills/azure-ai-agents-python/references/tools.md +1 -1
- package/skills/backend-development-feature-development/SKILL.md +12 -12
- package/skills/best-practices/references/anti-patterns.md +2 -2
- package/skills/best-practices/references/best-practices-guide.md +14 -14
- package/skills/c4-architecture-c4-architecture/SKILL.md +5 -5
- package/skills/comprehensive-review-full-review/SKILL.md +8 -8
- package/skills/context-degradation/SKILL.md +2 -2
- package/skills/context-engineering/SKILL.md +4 -4
- package/skills/context-engineering/references/context-degradation.md +1 -1
- package/skills/context-engineering/references/context-optimization.md +1 -1
- package/skills/context-engineering/references/multi-agent-patterns.md +1 -1
- package/skills/context-engineering/references/runtime-awareness.md +1 -1
- package/skills/context-optimization/SKILL.md +3 -3
- package/skills/daily-news-report/SKILL.md +15 -15
- package/skills/data-engineering-data-driven-feature/SKILL.md +16 -16
- package/skills/debugging-toolkit-smart-debug/SKILL.md +1 -1
- package/skills/doc-coauthoring/SKILL.md +5 -5
- package/skills/docker-expert/SKILL.md +1 -1
- package/skills/error-debugging-multi-agent-review/SKILL.md +1 -1
- package/skills/error-diagnostics-smart-debug/SKILL.md +1 -1
- package/skills/finishing-a-development-branch/SKILL.md +1 -1
- package/skills/fixing/SKILL.md +3 -3
- package/skills/fixing/references/parallel-exploration.md +4 -4
- package/skills/fixing/references/skill-activation-matrix.md +3 -3
- package/skills/fixing/references/workflow-deep.md +11 -11
- package/skills/fixing/references/workflow-quick.md +4 -4
- package/skills/fixing/references/workflow-standard.md +12 -12
- package/skills/framework-migration-legacy-modernize/SKILL.md +13 -13
- package/skills/full-stack-orchestration-full-stack-feature/SKILL.md +12 -12
- package/skills/git-pr-workflows-git-workflow/SKILL.md +10 -10
- package/skills/google-adk-python/SKILL.md +1 -1
- package/skills/hr-pro/SKILL.md +1 -1
- package/skills/incident-response-incident-response/SKILL.md +13 -13
- package/skills/incident-response-smart-fix/resources/implementation-playbook.md +17 -17
- package/skills/linear-claude-skill/SKILL.md +2 -2
- package/skills/loki-mode/ACKNOWLEDGEMENTS.md +4 -4
- package/skills/loki-mode/CHANGELOG.md +9 -9
- package/skills/loki-mode/CONTEXT-EXPORT.md +1 -1
- package/skills/loki-mode/README.md +2 -2
- package/skills/loki-mode/SKILL.md +14 -14
- package/skills/loki-mode/autonomy/run.sh +1 -1
- package/skills/loki-mode/integrations/vibe-kanban.md +1 -1
- package/skills/loki-mode/references/core-workflow.md +4 -4
- package/skills/loki-mode/references/production-patterns.md +6 -6
- package/skills/loki-mode/references/quality-control.md +2 -2
- package/skills/loki-mode/references/sdlc-phases.md +3 -3
- package/skills/machine-learning-ops-ml-pipeline/SKILL.md +7 -7
- package/skills/mcp-builder/reference/evaluation.md +3 -3
- package/skills/mcp-management/README.md +6 -6
- package/skills/mcp-management/SKILL.md +8 -8
- package/skills/mcp-management/references/gemini-cli-integration.md +1 -1
- package/skills/multi-agent-patterns/SKILL.md +14 -14
- package/skills/multi-platform-apps-multi-platform/SKILL.md +10 -10
- package/skills/nestjs-expert/SKILL.md +1 -1
- package/skills/performance-testing-review-multi-agent-review/SKILL.md +1 -1
- package/skills/planning-with-files/reference.md +2 -2
- package/skills/requesting-code-review/SKILL.md +6 -6
- package/skills/security-scanning-security-hardening/SKILL.md +13 -13
- package/skills/subagent-driven-development/SKILL.md +53 -53
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +1 -1
- package/skills/subagent-driven-development/implementer-prompt.md +3 -3
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +1 -1
- package/skills/tdd-workflows-tdd-cycle/SKILL.md +12 -12
- package/skills/tdd-workflows-tdd-green/resources/implementation-playbook.md +1 -1
- package/skills/tdd-workflows-tdd-red/SKILL.md +1 -1
- package/skills/tdd-workflows-tdd-refactor/SKILL.md +1 -1
- package/skills/typescript-expert/SKILL.md +1 -1
- package/skills/writing-plans/SKILL.md +3 -3
- package/skills/writing-skills/SKILL.md +8 -8
- package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +1 -1
- package/skills/writing-skills/references/cso/README.md +3 -3
- package/skills/writing-skills/testing-skills-with-subagents.md +1 -1
- package/skills-graph.json +1 -1
- package/templates/base/rules/auto-skill.md +16 -96
- package/templates/base/rules/command-routing.md +0 -13
- package/templates/base/rules/context-checkpoint.md +38 -0
|
@@ -4,7 +4,7 @@ argument-hint: [skill-name] [prompt]
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Think harder.
|
|
7
|
-
Use `skill-creator` skill and
|
|
7
|
+
Use `skill-creator` skill and Task agent for Claude Code guidance: Task(subagent_type="general-purpose", prompt="You are a claude-code-guide...", description="Claude Code guidance").
|
|
8
8
|
Use `docs-seeker` skills to search for documentation if needed.
|
|
9
9
|
|
|
10
10
|
## Arguments
|
|
@@ -4,7 +4,7 @@ argument-hint: [skill-name] [prompt]
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Think harder.
|
|
7
|
-
First: Activate `skill-creator` skill and
|
|
7
|
+
First: Activate `skill-creator` skill and Task agent for Claude Code guidance: Task(subagent_type="general-purpose", prompt="You are a claude-code-guide...", description="Claude Code guidance").
|
|
8
8
|
Use `docs-seeker` skills to search for documentation if needed.
|
|
9
9
|
Employ `sequential-thinking` or `problem-solving` skills for complex problem-solving that requires structured analysis
|
|
10
10
|
Finally, when creating a plan, activate `planning` skill.
|
|
@@ -95,15 +95,31 @@ For each item in `external-skills`:
|
|
|
95
95
|
|
|
96
96
|
### Step 5: Evaluate Rules
|
|
97
97
|
|
|
98
|
+
**IMPORTANT:** Never overwrite or sync rules in `rules/base/`. Base rules are devkit-native and managed manually. Only evaluate rules in tech-specific directories.
|
|
99
|
+
|
|
98
100
|
For each item in `rules.new`:
|
|
99
101
|
1. Read the rule content from `path` field
|
|
100
102
|
2. Classify: useful (covers new pattern) or skip (duplicate/too generic)
|
|
101
|
-
3.
|
|
102
|
-
4. In
|
|
103
|
+
3. Count lines — if > 50 lines, flag as "verbose, needs compaction"
|
|
104
|
+
4. In `--auto` mode: sync all useful (compact verbose ones automatically)
|
|
105
|
+
5. In interactive mode: ask user
|
|
103
106
|
|
|
104
107
|
For each item in `rules.updated`:
|
|
105
108
|
1. Compare upstream and local content
|
|
106
109
|
2. Accept meaningful updates, skip trivial ones
|
|
110
|
+
3. Count lines — if > 50 lines, flag as "verbose, needs compaction"
|
|
111
|
+
|
|
112
|
+
**Note:** Size-based compaction applies to RULES only. Skills are loaded on-demand and do not need compaction.
|
|
113
|
+
|
|
114
|
+
### Step 5.5: Compact Verbose Rules
|
|
115
|
+
|
|
116
|
+
For each rule flagged as verbose (> 50 lines):
|
|
117
|
+
1. Read full content
|
|
118
|
+
2. Compact while preserving: core patterns, conventions, do's/don'ts, lookup tables, key code examples (max 1-2)
|
|
119
|
+
3. Remove: redundant explanations, excessive examples, sections repeating what Claude already knows, full example interactions/dialogs
|
|
120
|
+
4. Target: ≤ 50 lines for tech rules
|
|
121
|
+
5. In `--auto` mode: compact automatically
|
|
122
|
+
6. In interactive mode: show line count before/after, ask user
|
|
107
123
|
|
|
108
124
|
### Step 6: Apply Changes
|
|
109
125
|
|
|
@@ -134,7 +150,7 @@ npm run build
|
|
|
134
150
|
|
|
135
151
|
Stage and commit the changes:
|
|
136
152
|
```bash
|
|
137
|
-
git add skills/ rules/ merged-commands/ SKILLS_INDEX.md skills-index.json skills-compact.json skills-graph.json rules-index.json
|
|
153
|
+
git add skills/ rules/ merged-commands/ templates/ SKILLS_INDEX.md skills-index.json skills-compact.json skills-graph.json rules-index.json
|
|
138
154
|
```
|
|
139
155
|
|
|
140
156
|
Commit message format:
|
|
@@ -162,9 +178,17 @@ If stash was created earlier: `git stash pop` to restore user's changes.
|
|
|
162
178
|
- Always update version tracking
|
|
163
179
|
- Never overwrite devkit-specific frontmatter (`triggers`, `role`, `scope`, `output-format`)
|
|
164
180
|
|
|
165
|
-
### Rules
|
|
166
|
-
- **Accept**:
|
|
181
|
+
### Rules (loaded every turn — context cost matters)
|
|
182
|
+
- **Accept**: Useful pattern, ≤ 50 lines
|
|
183
|
+
- **Compact**: Useful but > 50 lines → reduce while preserving core content
|
|
167
184
|
- **Skip**: Duplicate or too generic
|
|
185
|
+
- **Protect**: Never touch rules/base/ (devkit-native)
|
|
186
|
+
|
|
187
|
+
### Skills (loaded on-demand — no compaction needed)
|
|
188
|
+
- **Useful**: Covers distinct domain, well-structured SKILL.md, actionable patterns/commands
|
|
189
|
+
- **Duplicate**: Similar name or description to existing skill in skills-compact.json
|
|
190
|
+
- **Skip**: Too niche, low quality, just "be a senior X engineer" boilerplate
|
|
191
|
+
- No size-based compaction — verbose skills are acceptable
|
|
168
192
|
|
|
169
193
|
## Important
|
|
170
194
|
|
|
@@ -4,7 +4,7 @@ argument-hint: [skill-name] [prompt]
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Think harder.
|
|
7
|
-
Use `skill-creator` skill and
|
|
7
|
+
Use `skill-creator` skill and Task agent for Claude Code guidance: Task(subagent_type="general-purpose", prompt="You are a claude-code-guide...", description="Claude Code guidance").
|
|
8
8
|
Use `docs-seeker` skills to search for documentation if needed.
|
|
9
9
|
|
|
10
10
|
## Arguments
|
|
@@ -23,11 +23,11 @@ Always keep in mind that `SKILL.md` and reference files should be token consumpt
|
|
|
23
23
|
## IMPORTANT NOTES:
|
|
24
24
|
- ALWAYS make changes to skills in the project-scope `.claude/skills/` directory (UNLESS you're allowed to).
|
|
25
25
|
- DO NOT make any changes to skills in the home/user-scope `~/.claude/skills/` directory (UNLESS you're allowed to).
|
|
26
|
-
- If you're given nothing, use `AskUserQuestion` tool for clarifications and
|
|
27
|
-
- If you're given an URL, it's documentation page, use
|
|
28
|
-
- If you receive a lot of URLs, use multiple
|
|
29
|
-
- If you receive a lot of files, use multiple
|
|
30
|
-
- If you're given a Github URL, use [`repomix`](https://repomix.com/guide/usage) command to summarize ([install it](https://repomix.com/guide/installation) if needed) and spawn multiple
|
|
26
|
+
- If you're given nothing, use `AskUserQuestion` tool for clarifications and Task agent for research to research about the topic: Task(subagent_type="general-purpose", prompt="You are a researcher. Research...", description="Research topic").
|
|
27
|
+
- If you're given an URL, it's documentation page, use Task agent for exploration to explore every internal link and report back to main agent, don't skip any link: Task(subagent_type="general-purpose", prompt="You are an explorer. Explore all internal links...", description="Explore URL").
|
|
28
|
+
- If you receive a lot of URLs, use multiple Task agents for exploration to explore them in parallel, then report back to main agent.
|
|
29
|
+
- If you receive a lot of files, use multiple Task agents for exploration to explore them in parallel, then report back to main agent.
|
|
30
|
+
- If you're given a Github URL, use [`repomix`](https://repomix.com/guide/usage) command to summarize ([install it](https://repomix.com/guide/installation) if needed) and spawn multiple Task agents for exploration to explore it in parallel, then report back to main agent.
|
|
31
31
|
- Skills are not documentation, they are practical instructions for Claude Code to use the tools, packages, plugins or APIs to achieve the tasks.
|
|
32
32
|
- Each skill teaches Claude how to perform a specific development task, not what a tool does.
|
|
33
33
|
- Claude Code can activate multiple skills automatically to achieve the user's request.
|
|
@@ -5,11 +5,11 @@ risk: unknown
|
|
|
5
5
|
source: community
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Task Agent-Driven Development
|
|
9
9
|
|
|
10
|
-
Execute plan by dispatching fresh
|
|
10
|
+
Execute plan by dispatching fresh Task agent per task, with two-stage review after each: spec compliance review first, then code quality review.
|
|
11
11
|
|
|
12
|
-
**Core principle:** Fresh
|
|
12
|
+
**Core principle:** Fresh Task agent per task + two-stage review (spec then quality) = high quality, fast iteration
|
|
13
13
|
|
|
14
14
|
## When to Use
|
|
15
15
|
|
|
@@ -33,7 +33,7 @@ digraph when_to_use {
|
|
|
33
33
|
|
|
34
34
|
**vs. Executing Plans (parallel session):**
|
|
35
35
|
- Same session (no context switch)
|
|
36
|
-
- Fresh
|
|
36
|
+
- Fresh Task agent per task (no context pollution)
|
|
37
37
|
- Two-stage review after each task: spec compliance first, then code quality
|
|
38
38
|
- Faster iteration (no human-in-loop between tasks)
|
|
39
39
|
|
|
@@ -45,55 +45,55 @@ digraph process {
|
|
|
45
45
|
|
|
46
46
|
subgraph cluster_per_task {
|
|
47
47
|
label="Per Task";
|
|
48
|
-
"Dispatch implementer
|
|
49
|
-
"Implementer
|
|
48
|
+
"Dispatch implementer Task agent (./implementer-prompt.md)" [shape=box];
|
|
49
|
+
"Implementer Task agent asks questions?" [shape=diamond];
|
|
50
50
|
"Answer questions, provide context" [shape=box];
|
|
51
|
-
"Implementer
|
|
52
|
-
"Dispatch spec reviewer
|
|
53
|
-
"Spec reviewer
|
|
54
|
-
"Implementer
|
|
55
|
-
"Dispatch code quality reviewer
|
|
56
|
-
"Code quality reviewer
|
|
57
|
-
"Implementer
|
|
51
|
+
"Implementer Task agent implements, tests, commits, self-reviews" [shape=box];
|
|
52
|
+
"Dispatch spec reviewer Task agent (./spec-reviewer-prompt.md)" [shape=box];
|
|
53
|
+
"Spec reviewer Task agent confirms code matches spec?" [shape=diamond];
|
|
54
|
+
"Implementer Task agent fixes spec gaps" [shape=box];
|
|
55
|
+
"Dispatch code quality reviewer Task agent (./code-quality-reviewer-prompt.md)" [shape=box];
|
|
56
|
+
"Code quality reviewer Task agent approves?" [shape=diamond];
|
|
57
|
+
"Implementer Task agent fixes quality issues" [shape=box];
|
|
58
58
|
"Mark task complete in TodoWrite" [shape=box];
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
"Read plan, extract all tasks with full text, note context, create TodoWrite" [shape=box];
|
|
62
62
|
"More tasks remain?" [shape=diamond];
|
|
63
|
-
"Dispatch final code reviewer
|
|
63
|
+
"Dispatch final code reviewer Task agent for entire implementation" [shape=box];
|
|
64
64
|
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
|
|
65
65
|
|
|
66
|
-
"Read plan, extract all tasks with full text, note context, create TodoWrite" -> "Dispatch implementer
|
|
67
|
-
"Dispatch implementer
|
|
68
|
-
"Implementer
|
|
69
|
-
"Answer questions, provide context" -> "Dispatch implementer
|
|
70
|
-
"Implementer
|
|
71
|
-
"Implementer
|
|
72
|
-
"Dispatch spec reviewer
|
|
73
|
-
"Spec reviewer
|
|
74
|
-
"Implementer
|
|
75
|
-
"Spec reviewer
|
|
76
|
-
"Dispatch code quality reviewer
|
|
77
|
-
"Code quality reviewer
|
|
78
|
-
"Implementer
|
|
79
|
-
"Code quality reviewer
|
|
66
|
+
"Read plan, extract all tasks with full text, note context, create TodoWrite" -> "Dispatch implementer Task agent (./implementer-prompt.md)";
|
|
67
|
+
"Dispatch implementer Task agent (./implementer-prompt.md)" -> "Implementer Task agent asks questions?";
|
|
68
|
+
"Implementer Task agent asks questions?" -> "Answer questions, provide context" [label="yes"];
|
|
69
|
+
"Answer questions, provide context" -> "Dispatch implementer Task agent (./implementer-prompt.md)";
|
|
70
|
+
"Implementer Task agent asks questions?" -> "Implementer Task agent implements, tests, commits, self-reviews" [label="no"];
|
|
71
|
+
"Implementer Task agent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer Task agent (./spec-reviewer-prompt.md)";
|
|
72
|
+
"Dispatch spec reviewer Task agent (./spec-reviewer-prompt.md)" -> "Spec reviewer Task agent confirms code matches spec?";
|
|
73
|
+
"Spec reviewer Task agent confirms code matches spec?" -> "Implementer Task agent fixes spec gaps" [label="no"];
|
|
74
|
+
"Implementer Task agent fixes spec gaps" -> "Dispatch spec reviewer Task agent (./spec-reviewer-prompt.md)" [label="re-review"];
|
|
75
|
+
"Spec reviewer Task agent confirms code matches spec?" -> "Dispatch code quality reviewer Task agent (./code-quality-reviewer-prompt.md)" [label="yes"];
|
|
76
|
+
"Dispatch code quality reviewer Task agent (./code-quality-reviewer-prompt.md)" -> "Code quality reviewer Task agent approves?";
|
|
77
|
+
"Code quality reviewer Task agent approves?" -> "Implementer Task agent fixes quality issues" [label="no"];
|
|
78
|
+
"Implementer Task agent fixes quality issues" -> "Dispatch code quality reviewer Task agent (./code-quality-reviewer-prompt.md)" [label="re-review"];
|
|
79
|
+
"Code quality reviewer Task agent approves?" -> "Mark task complete in TodoWrite" [label="yes"];
|
|
80
80
|
"Mark task complete in TodoWrite" -> "More tasks remain?";
|
|
81
|
-
"More tasks remain?" -> "Dispatch implementer
|
|
82
|
-
"More tasks remain?" -> "Dispatch final code reviewer
|
|
83
|
-
"Dispatch final code reviewer
|
|
81
|
+
"More tasks remain?" -> "Dispatch implementer Task agent (./implementer-prompt.md)" [label="yes"];
|
|
82
|
+
"More tasks remain?" -> "Dispatch final code reviewer Task agent for entire implementation" [label="no"];
|
|
83
|
+
"Dispatch final code reviewer Task agent for entire implementation" -> "Use superpowers:finishing-a-development-branch";
|
|
84
84
|
}
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
## Prompt Templates
|
|
88
88
|
|
|
89
|
-
- `./implementer-prompt.md` - Dispatch implementer
|
|
90
|
-
- `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer
|
|
91
|
-
- `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer
|
|
89
|
+
- `./implementer-prompt.md` - Dispatch implementer Task agent
|
|
90
|
+
- `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer Task agent
|
|
91
|
+
- `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer Task agent
|
|
92
92
|
|
|
93
93
|
## Example Workflow
|
|
94
94
|
|
|
95
95
|
```
|
|
96
|
-
You: I'm using
|
|
96
|
+
You: I'm using Task Agent-Driven Development to execute this plan.
|
|
97
97
|
|
|
98
98
|
[Read plan file once: docs/plans/feature-plan.md]
|
|
99
99
|
[Extract all 5 tasks with full text and context]
|
|
@@ -102,7 +102,7 @@ You: I'm using Subagent-Driven Development to execute this plan.
|
|
|
102
102
|
Task 1: Hook installation script
|
|
103
103
|
|
|
104
104
|
[Get Task 1 text and context (already extracted)]
|
|
105
|
-
[Dispatch implementation
|
|
105
|
+
[Dispatch implementation Task agent with full task text + context]
|
|
106
106
|
|
|
107
107
|
Implementer: "Before I begin - should the hook be installed at user or system level?"
|
|
108
108
|
|
|
@@ -126,7 +126,7 @@ Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
|
|
|
126
126
|
Task 2: Recovery modes
|
|
127
127
|
|
|
128
128
|
[Get Task 2 text and context (already extracted)]
|
|
129
|
-
[Dispatch implementation
|
|
129
|
+
[Dispatch implementation Task agent with full task text + context]
|
|
130
130
|
|
|
131
131
|
Implementer: [No questions, proceeds]
|
|
132
132
|
Implementer:
|
|
@@ -169,10 +169,10 @@ Done!
|
|
|
169
169
|
## Advantages
|
|
170
170
|
|
|
171
171
|
**vs. Manual execution:**
|
|
172
|
-
-
|
|
172
|
+
- Task agents follow TDD naturally
|
|
173
173
|
- Fresh context per task (no confusion)
|
|
174
|
-
- Parallel-safe (
|
|
175
|
-
-
|
|
174
|
+
- Parallel-safe (Task agents don't interfere)
|
|
175
|
+
- Task agent can ask questions (before AND during work)
|
|
176
176
|
|
|
177
177
|
**vs. Executing Plans:**
|
|
178
178
|
- Same session (no handoff)
|
|
@@ -182,7 +182,7 @@ Done!
|
|
|
182
182
|
**Efficiency gains:**
|
|
183
183
|
- No file reading overhead (controller provides full text)
|
|
184
184
|
- Controller curates exactly what context is needed
|
|
185
|
-
-
|
|
185
|
+
- Task agent gets complete information upfront
|
|
186
186
|
- Questions surfaced before work begins (not after)
|
|
187
187
|
|
|
188
188
|
**Quality gates:**
|
|
@@ -193,7 +193,7 @@ Done!
|
|
|
193
193
|
- Code quality ensures implementation is well-built
|
|
194
194
|
|
|
195
195
|
**Cost:**
|
|
196
|
-
- More
|
|
196
|
+
- More Task agent invocations (implementer + 2 reviewers per task)
|
|
197
197
|
- Controller does more prep work (extracting all tasks upfront)
|
|
198
198
|
- Review loops add iterations
|
|
199
199
|
- But catches issues early (cheaper than debugging later)
|
|
@@ -203,40 +203,40 @@ Done!
|
|
|
203
203
|
**Never:**
|
|
204
204
|
- Skip reviews (spec compliance OR code quality)
|
|
205
205
|
- Proceed with unfixed issues
|
|
206
|
-
- Dispatch multiple implementation
|
|
207
|
-
- Make
|
|
208
|
-
- Skip scene-setting context (
|
|
209
|
-
- Ignore
|
|
206
|
+
- Dispatch multiple implementation Task agents in parallel (conflicts)
|
|
207
|
+
- Make Task agent read plan file (provide full text instead)
|
|
208
|
+
- Skip scene-setting context (Task agent needs to understand where task fits)
|
|
209
|
+
- Ignore Task agent questions (answer before letting them proceed)
|
|
210
210
|
- Accept "close enough" on spec compliance (spec reviewer found issues = not done)
|
|
211
211
|
- Skip review loops (reviewer found issues = implementer fixes = review again)
|
|
212
212
|
- Let implementer self-review replace actual review (both are needed)
|
|
213
213
|
- **Start code quality review before spec compliance is ✅** (wrong order)
|
|
214
214
|
- Move to next task while either review has open issues
|
|
215
215
|
|
|
216
|
-
**If
|
|
216
|
+
**If Task agent asks questions:**
|
|
217
217
|
- Answer clearly and completely
|
|
218
218
|
- Provide additional context if needed
|
|
219
219
|
- Don't rush them into implementation
|
|
220
220
|
|
|
221
221
|
**If reviewer finds issues:**
|
|
222
|
-
- Implementer (same
|
|
222
|
+
- Implementer (same Task agent) fixes them
|
|
223
223
|
- Reviewer reviews again
|
|
224
224
|
- Repeat until approved
|
|
225
225
|
- Don't skip the re-review
|
|
226
226
|
|
|
227
|
-
**If
|
|
228
|
-
- Dispatch fix
|
|
227
|
+
**If Task agent fails task:**
|
|
228
|
+
- Dispatch fix Task agent with specific instructions
|
|
229
229
|
- Don't try to fix manually (context pollution)
|
|
230
230
|
|
|
231
231
|
## Integration
|
|
232
232
|
|
|
233
233
|
**Required workflow skills:**
|
|
234
234
|
- **superpowers:writing-plans** - Creates the plan this skill executes
|
|
235
|
-
- **superpowers:requesting-code-review** - Code review template for reviewer
|
|
235
|
+
- **superpowers:requesting-code-review** - Code review template for reviewer Task agents
|
|
236
236
|
- **superpowers:finishing-a-development-branch** - Complete development after all tasks
|
|
237
237
|
|
|
238
|
-
**
|
|
239
|
-
- **superpowers:test-driven-development** -
|
|
238
|
+
**Task agents should use:**
|
|
239
|
+
- **superpowers:test-driven-development** - Task agents follow TDD for each task
|
|
240
240
|
|
|
241
241
|
**Alternative workflow:**
|
|
242
242
|
- **superpowers:executing-plans** - Use for parallel session instead of same-session execution
|
|
@@ -42,13 +42,13 @@ Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-g
|
|
|
42
42
|
## Phase 1: Test Specification and Design
|
|
43
43
|
|
|
44
44
|
### 1. Requirements Analysis
|
|
45
|
-
- Use Task tool with subagent_type="
|
|
45
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
46
46
|
- Prompt: "Analyze requirements for: $ARGUMENTS. Define acceptance criteria, identify edge cases, and create test scenarios. Output a comprehensive test specification."
|
|
47
47
|
- Output: Test specification, acceptance criteria, edge case matrix
|
|
48
48
|
- Validation: Ensure all requirements have corresponding test scenarios
|
|
49
49
|
|
|
50
50
|
### 2. Test Architecture Design
|
|
51
|
-
- Use Task tool with subagent_type="
|
|
51
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
52
52
|
- Prompt: "Design test architecture for: $ARGUMENTS based on test specification. Define test structure, fixtures, mocks, and test data strategy. Ensure testability and maintainability."
|
|
53
53
|
- Output: Test architecture, fixture design, mock strategy
|
|
54
54
|
- Validation: Architecture supports isolated, fast, reliable tests
|
|
@@ -56,13 +56,13 @@ Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-g
|
|
|
56
56
|
## Phase 2: RED - Write Failing Tests
|
|
57
57
|
|
|
58
58
|
### 3. Write Unit Tests (Failing)
|
|
59
|
-
- Use Task tool with subagent_type="
|
|
59
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
60
60
|
- Prompt: "Write FAILING unit tests for: $ARGUMENTS. Tests must fail initially. Include edge cases, error scenarios, and happy paths. DO NOT implement production code."
|
|
61
61
|
- Output: Failing unit tests, test documentation
|
|
62
62
|
- **CRITICAL**: Verify all tests fail with expected error messages
|
|
63
63
|
|
|
64
64
|
### 4. Verify Test Failure
|
|
65
|
-
- Use Task tool with subagent_type="
|
|
65
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
66
66
|
- Prompt: "Verify that all tests for: $ARGUMENTS are failing correctly. Ensure failures are for the right reasons (missing implementation, not test errors). Confirm no false positives."
|
|
67
67
|
- Output: Test failure verification report
|
|
68
68
|
- **GATE**: Do not proceed until all tests fail appropriately
|
|
@@ -70,13 +70,13 @@ Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-g
|
|
|
70
70
|
## Phase 3: GREEN - Make Tests Pass
|
|
71
71
|
|
|
72
72
|
### 5. Minimal Implementation
|
|
73
|
-
- Use Task tool with subagent_type="
|
|
73
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
74
74
|
- Prompt: "Implement MINIMAL code to make tests pass for: $ARGUMENTS. Focus only on making tests green. Do not add extra features or optimizations. Keep it simple."
|
|
75
75
|
- Output: Minimal working implementation
|
|
76
76
|
- Constraint: No code beyond what's needed to pass tests
|
|
77
77
|
|
|
78
78
|
### 6. Verify Test Success
|
|
79
|
-
- Use Task tool with subagent_type="
|
|
79
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
80
80
|
- Prompt: "Run all tests for: $ARGUMENTS and verify they pass. Check test coverage metrics. Ensure no tests were accidentally broken."
|
|
81
81
|
- Output: Test execution report, coverage metrics
|
|
82
82
|
- **GATE**: All tests must pass before proceeding
|
|
@@ -84,13 +84,13 @@ Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-g
|
|
|
84
84
|
## Phase 4: REFACTOR - Improve Code Quality
|
|
85
85
|
|
|
86
86
|
### 7. Code Refactoring
|
|
87
|
-
- Use Task tool with subagent_type="
|
|
87
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
88
88
|
- Prompt: "Refactor implementation for: $ARGUMENTS while keeping tests green. Apply SOLID principles, remove duplication, improve naming, and optimize performance. Run tests after each refactoring."
|
|
89
89
|
- Output: Refactored code, refactoring report
|
|
90
90
|
- Constraint: Tests must remain green throughout
|
|
91
91
|
|
|
92
92
|
### 8. Test Refactoring
|
|
93
|
-
- Use Task tool with subagent_type="
|
|
93
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
94
94
|
- Prompt: "Refactor tests for: $ARGUMENTS. Remove test duplication, improve test names, extract common fixtures, and enhance test readability. Ensure tests still provide same coverage."
|
|
95
95
|
- Output: Refactored tests, improved test structure
|
|
96
96
|
- Validation: Coverage metrics unchanged or improved
|
|
@@ -98,13 +98,13 @@ Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-g
|
|
|
98
98
|
## Phase 5: Integration and System Tests
|
|
99
99
|
|
|
100
100
|
### 9. Write Integration Tests (Failing First)
|
|
101
|
-
- Use Task tool with subagent_type="
|
|
101
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
102
102
|
- Prompt: "Write FAILING integration tests for: $ARGUMENTS. Test component interactions, API contracts, and data flow. Tests must fail initially."
|
|
103
103
|
- Output: Failing integration tests
|
|
104
104
|
- Validation: Tests fail due to missing integration logic
|
|
105
105
|
|
|
106
106
|
### 10. Implement Integration
|
|
107
|
-
- Use Task tool with subagent_type="
|
|
107
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
108
108
|
- Prompt: "Implement integration code for: $ARGUMENTS to make integration tests pass. Focus on component interaction and data flow."
|
|
109
109
|
- Output: Integration implementation
|
|
110
110
|
- Validation: All integration tests pass
|
|
@@ -112,13 +112,13 @@ Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-g
|
|
|
112
112
|
## Phase 6: Continuous Improvement Cycle
|
|
113
113
|
|
|
114
114
|
### 11. Performance and Edge Case Tests
|
|
115
|
-
- Use Task tool with subagent_type="
|
|
115
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
116
116
|
- Prompt: "Add performance tests and additional edge case tests for: $ARGUMENTS. Include stress tests, boundary tests, and error recovery tests."
|
|
117
117
|
- Output: Extended test suite
|
|
118
118
|
- Metric: Increased test coverage and scenario coverage
|
|
119
119
|
|
|
120
120
|
### 12. Final Code Review
|
|
121
|
-
- Use Task tool with subagent_type="
|
|
121
|
+
- Use Task tool with subagent_type="general-purpose"
|
|
122
122
|
- Prompt: "Perform comprehensive review of: $ARGUMENTS. Verify TDD process was followed, check code quality, test quality, and coverage. Suggest improvements."
|
|
123
123
|
- Output: Review report, improvement suggestions
|
|
124
124
|
- Action: Implement critical suggestions while maintaining green tests
|
|
@@ -35,7 +35,7 @@ Write comprehensive failing tests following TDD red phase principles.
|
|
|
35
35
|
|
|
36
36
|
## Role
|
|
37
37
|
|
|
38
|
-
Generate failing tests using Task tool with subagent_type="
|
|
38
|
+
Generate failing tests using Task tool with subagent_type="general-purpose".
|
|
39
39
|
|
|
40
40
|
## Prompt Template
|
|
41
41
|
|
|
@@ -28,7 +28,7 @@ Refactor code with confidence using comprehensive test safety net:
|
|
|
28
28
|
|
|
29
29
|
## Usage
|
|
30
30
|
|
|
31
|
-
Use Task tool with subagent_type="
|
|
31
|
+
Use Task tool with subagent_type="general-purpose" to perform safe refactoring.
|
|
32
32
|
|
|
33
33
|
Prompt: "Refactor this code while keeping all tests green: $ARGUMENTS. Apply TDD refactor phase:
|
|
34
34
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Quick Test — Fast testing for specific scope
|
|
3
3
|
version: "1.0"
|
|
4
4
|
category: validation
|
|
5
5
|
execution-mode: execute
|
|
@@ -13,48 +13,37 @@ execution-mode: execute
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
**LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
|
|
19
|
-
1. ORCHESTRATION-LAWS.md
|
|
20
|
-
2. ADAPTIVE-EXECUTION.md
|
|
21
|
-
3. EXECUTION-PROTOCOL.md
|
|
22
|
-
|
|
23
|
-
**⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
|
|
16
|
+
## Execution
|
|
17
|
+
One phase at a time, sequential. Each phase must complete before next begins.
|
|
24
18
|
|
|
25
19
|
---
|
|
26
20
|
|
|
27
|
-
##
|
|
28
|
-
|
|
29
|
-
| Tier | When | Action |
|
|
30
|
-
|------|------|--------|
|
|
31
|
-
| **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
|
|
32
|
-
| **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
|
|
21
|
+
## Phase 1: TEST EXECUTION
|
|
33
22
|
|
|
34
|
-
|
|
23
|
+
| Attribute | Value |
|
|
24
|
+
|-----------|-------|
|
|
25
|
+
| **Role** | `tester` |
|
|
26
|
+
| **Goal** | Run focused tests |
|
|
27
|
+
| **Exit** | Tests run, results recorded |
|
|
35
28
|
|
|
36
|
-
|
|
29
|
+
### Delegation
|
|
37
30
|
|
|
38
|
-
|
|
31
|
+
> Task(subagent_type="general-purpose", prompt="You are a tester. Run focused tests for the given scope. Exit when tests are run and results are recorded.", description="tester: Run focused tests")
|
|
39
32
|
|
|
40
33
|
---
|
|
41
34
|
|
|
42
|
-
##
|
|
43
|
-
|
|
44
|
-
| Agent | `tester` |
|
|
45
|
-
|-------|----------|
|
|
46
|
-
| Goal | Run focused tests |
|
|
47
|
-
| Exit | Tests run, results recorded |
|
|
35
|
+
## Phase 2: QUICK ANALYSIS (IF FAILURES)
|
|
48
36
|
|
|
49
|
-
|
|
37
|
+
| Attribute | Value |
|
|
38
|
+
|-----------|-------|
|
|
39
|
+
| **Role** | `debugger` |
|
|
40
|
+
| **Trigger** | If failures exist |
|
|
41
|
+
| **Goal** | Quick failure analysis |
|
|
42
|
+
| **Exit** | Root causes identified |
|
|
50
43
|
|
|
51
|
-
|
|
44
|
+
### Delegation
|
|
52
45
|
|
|
53
|
-
|
|
54
|
-
|-------|------------|
|
|
55
|
-
| Trigger | If failures exist |
|
|
56
|
-
| Goal | Quick failure analysis |
|
|
57
|
-
| Exit | Root causes identified |
|
|
46
|
+
> Task(subagent_type="general-purpose", prompt="You are a debugger. Perform quick failure analysis on test failures. Exit when root causes are identified.", description="debugger: Quick failure analysis")
|
|
58
47
|
|
|
59
48
|
---
|
|
60
49
|
|
|
@@ -71,5 +60,5 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
|
|
|
71
60
|
|
|
72
61
|
Present results with:
|
|
73
62
|
|
|
74
|
-
1.
|
|
75
|
-
2.
|
|
63
|
+
1. **Pass** — Tests green
|
|
64
|
+
2. **Fix** → `/fix:fast`
|