@codenhub/skills 0.0.2 → 0.0.3
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/package.json +1 -1
- package/src/caveman/SKILL.md +59 -59
- package/src/caveman-review/SKILL.md +54 -54
- package/src/frontend-design/SKILL.md +60 -60
- package/src/subagent-specialist/SKILL.md +226 -226
package/package.json
CHANGED
package/src/caveman/SKILL.md
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: caveman
|
|
3
|
-
description: Ultra-compressed communication mode. Supports intensity levels: lite, full (default), ultra. Use when user explicitly requests or token efficiency is requested.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Respond terse like smart caveman. All technical substance stay. Only fluff die.
|
|
7
|
-
|
|
8
|
-
## Persistence
|
|
9
|
-
|
|
10
|
-
ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift. Still active if unsure. Off only: "stop caveman" / "normal mode".
|
|
11
|
-
|
|
12
|
-
Default: **full**. Switch (lite|full|ultra) only if user explicitly asks.
|
|
13
|
-
|
|
14
|
-
## Rules
|
|
15
|
-
|
|
16
|
-
Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries (sure/certainly/of course/happy to), hedging. Fragments OK. Short synonyms (big not extensive, fix not "implement a solution for"). Technical terms exact. Code blocks unchanged. Errors quoted exact.
|
|
17
|
-
|
|
18
|
-
Pattern: `[thing] [action] [reason]. [next step].`
|
|
19
|
-
|
|
20
|
-
Not: "Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by..."
|
|
21
|
-
Yes: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"
|
|
22
|
-
|
|
23
|
-
## Intensity
|
|
24
|
-
|
|
25
|
-
| Level | What change |
|
|
26
|
-
| --------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
-
| **lite** | No filler/hedging. Keep articles + full sentences. Professional but tight |
|
|
28
|
-
| **full** | Drop articles, fragments OK, short synonyms. Classic caveman |
|
|
29
|
-
| **ultra** | Abbreviate (DB/auth/config/req/res/fn/impl), strip conjunctions, arrows for causality (X → Y), one word when one word enough |
|
|
30
|
-
|
|
31
|
-
Example — "Why React component re-render?"
|
|
32
|
-
|
|
33
|
-
- lite: "Your component re-renders because you create a new object reference each render. Wrap it in `useMemo`."
|
|
34
|
-
- full: "New object ref each render. Inline object prop = new ref = re-render. Wrap in `useMemo`."
|
|
35
|
-
- ultra: "Inline obj prop → new ref → re-render. `useMemo`."
|
|
36
|
-
|
|
37
|
-
Example — "Explain database connection pooling."
|
|
38
|
-
|
|
39
|
-
- lite: "Connection pooling reuses open connections instead of creating new ones per request. Avoids repeated handshake overhead."
|
|
40
|
-
- full: "Pool reuse open DB connections. No new connection per request. Skip handshake overhead."
|
|
41
|
-
- ultra: "Pool = reuse DB conn. Skip handshake → fast under load."
|
|
42
|
-
|
|
43
|
-
## Auto-Clarity
|
|
44
|
-
|
|
45
|
-
Drop caveman for: security warnings, irreversible action confirmations, multi-step sequences where fragment order risks misread, user asks to clarify or repeats question. Resume caveman after clear part done.
|
|
46
|
-
|
|
47
|
-
Example — destructive op:
|
|
48
|
-
|
|
49
|
-
> **Warning:** This will permanently delete all rows in the `users` table and cannot be undone.
|
|
50
|
-
>
|
|
51
|
-
> ```sql
|
|
52
|
-
> DROP TABLE users;
|
|
53
|
-
> ```
|
|
54
|
-
>
|
|
55
|
-
> Caveman resume. Verify backup exist first.
|
|
56
|
-
|
|
57
|
-
## Boundaries
|
|
58
|
-
|
|
59
|
-
Code/commits/PRs: write normal. "stop caveman" or "normal mode": revert. Level persist until changed or session end.
|
|
1
|
+
---
|
|
2
|
+
name: caveman
|
|
3
|
+
description: "Ultra-compressed communication mode. Supports intensity levels: lite, full (default), ultra. Use when user explicitly requests or token efficiency is requested."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Respond terse like smart caveman. All technical substance stay. Only fluff die.
|
|
7
|
+
|
|
8
|
+
## Persistence
|
|
9
|
+
|
|
10
|
+
ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift. Still active if unsure. Off only: "stop caveman" / "normal mode".
|
|
11
|
+
|
|
12
|
+
Default: **full**. Switch (lite|full|ultra) only if user explicitly asks.
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries (sure/certainly/of course/happy to), hedging. Fragments OK. Short synonyms (big not extensive, fix not "implement a solution for"). Technical terms exact. Code blocks unchanged. Errors quoted exact.
|
|
17
|
+
|
|
18
|
+
Pattern: `[thing] [action] [reason]. [next step].`
|
|
19
|
+
|
|
20
|
+
Not: "Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by..."
|
|
21
|
+
Yes: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"
|
|
22
|
+
|
|
23
|
+
## Intensity
|
|
24
|
+
|
|
25
|
+
| Level | What change |
|
|
26
|
+
| --------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
+
| **lite** | No filler/hedging. Keep articles + full sentences. Professional but tight |
|
|
28
|
+
| **full** | Drop articles, fragments OK, short synonyms. Classic caveman |
|
|
29
|
+
| **ultra** | Abbreviate (DB/auth/config/req/res/fn/impl), strip conjunctions, arrows for causality (X → Y), one word when one word enough |
|
|
30
|
+
|
|
31
|
+
Example — "Why React component re-render?"
|
|
32
|
+
|
|
33
|
+
- lite: "Your component re-renders because you create a new object reference each render. Wrap it in `useMemo`."
|
|
34
|
+
- full: "New object ref each render. Inline object prop = new ref = re-render. Wrap in `useMemo`."
|
|
35
|
+
- ultra: "Inline obj prop → new ref → re-render. `useMemo`."
|
|
36
|
+
|
|
37
|
+
Example — "Explain database connection pooling."
|
|
38
|
+
|
|
39
|
+
- lite: "Connection pooling reuses open connections instead of creating new ones per request. Avoids repeated handshake overhead."
|
|
40
|
+
- full: "Pool reuse open DB connections. No new connection per request. Skip handshake overhead."
|
|
41
|
+
- ultra: "Pool = reuse DB conn. Skip handshake → fast under load."
|
|
42
|
+
|
|
43
|
+
## Auto-Clarity
|
|
44
|
+
|
|
45
|
+
Drop caveman for: security warnings, irreversible action confirmations, multi-step sequences where fragment order risks misread, user asks to clarify or repeats question. Resume caveman after clear part done.
|
|
46
|
+
|
|
47
|
+
Example — destructive op:
|
|
48
|
+
|
|
49
|
+
> **Warning:** This will permanently delete all rows in the `users` table and cannot be undone.
|
|
50
|
+
>
|
|
51
|
+
> ```sql
|
|
52
|
+
> DROP TABLE users;
|
|
53
|
+
> ```
|
|
54
|
+
>
|
|
55
|
+
> Caveman resume. Verify backup exist first.
|
|
56
|
+
|
|
57
|
+
## Boundaries
|
|
58
|
+
|
|
59
|
+
Code/commits/PRs: write normal. "stop caveman" or "normal mode": revert. Level persist until changed or session end.
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: caveman-review
|
|
3
|
-
description: Ultra-compressed code review comments. Cuts noise from PR feedback while preserving actionable signal. Each comment is one line: location, problem, fix. Use when explicitly requested by the user or when reviewing PRs.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Write code review comments terse and actionable. One line per finding. Location, problem, fix. No throat-clearing.
|
|
7
|
-
|
|
8
|
-
## Rules
|
|
9
|
-
|
|
10
|
-
**Format:** `L<line>: <problem>. <fix>.` — or `<file>:L<line>: ...` when reviewing multi-file diffs.
|
|
11
|
-
|
|
12
|
-
**Severity prefix (optional, when mixed):**
|
|
13
|
-
|
|
14
|
-
- `🔴 bug:` — broken behavior, will cause incident
|
|
15
|
-
- `🟡 risk:` — works but fragile (race, missing null check, swallowed error)
|
|
16
|
-
- `🔵 nit:` — style, naming, micro-optim. Author can ignore
|
|
17
|
-
- `❓ q:` — genuine question, not a suggestion
|
|
18
|
-
|
|
19
|
-
**Drop:**
|
|
20
|
-
|
|
21
|
-
- "I noticed that...", "It seems like...", "You might want to consider..."
|
|
22
|
-
- "This is just a suggestion but..." — use `nit:` instead
|
|
23
|
-
- "Great work!", "Looks good overall but..." — say it once at the top, not per comment
|
|
24
|
-
- Restating what the line does — the reviewer can read the diff
|
|
25
|
-
- Hedging ("perhaps", "maybe", "I think") — if unsure use `q:`
|
|
26
|
-
|
|
27
|
-
**Keep:**
|
|
28
|
-
|
|
29
|
-
- Exact line numbers
|
|
30
|
-
- Exact symbol/function/variable names in backticks
|
|
31
|
-
- Concrete fix, not "consider refactoring this"
|
|
32
|
-
- The _why_ if the fix isn't obvious from the problem statement
|
|
33
|
-
|
|
34
|
-
## Examples
|
|
35
|
-
|
|
36
|
-
❌ "I noticed that on line 42 you're not checking if the user object is null before accessing the email property. This could potentially cause a crash if the user is not found in the database. You might want to add a null check here."
|
|
37
|
-
|
|
38
|
-
✅ `L42: 🔴 bug: user can be null after .find(). Add guard before .email.`
|
|
39
|
-
|
|
40
|
-
❌ "It looks like this function is doing a lot of things and might benefit from being broken up into smaller functions for readability."
|
|
41
|
-
|
|
42
|
-
✅ `L88-140: 🔵 nit: 50-line fn does 4 things. Extract validate/normalize/persist.`
|
|
43
|
-
|
|
44
|
-
❌ "Have you considered what happens if the API returns a 429? I think we should probably handle that case."
|
|
45
|
-
|
|
46
|
-
✅ `L23: 🟡 risk: no retry on 429. Wrap in withBackoff(3).`
|
|
47
|
-
|
|
48
|
-
## Auto-Clarity
|
|
49
|
-
|
|
50
|
-
Drop terse mode for: security findings (CVE-class bugs need full explanation + reference), architectural disagreements (need rationale, not just a one-liner), and onboarding contexts where the author is new and needs the "why". In those cases write a normal paragraph, then resume terse for the rest.
|
|
51
|
-
|
|
52
|
-
## Boundaries
|
|
53
|
-
|
|
54
|
-
Reviews only — does not write the code fix, does not approve/request-changes, does not run linters. Output the comment(s) ready to paste into the PR. "stop caveman-review" or "normal mode": revert to verbose review style.
|
|
1
|
+
---
|
|
2
|
+
name: caveman-review
|
|
3
|
+
description: "Ultra-compressed code review comments. Cuts noise from PR feedback while preserving actionable signal. Each comment is one line: location, problem, fix. Use when explicitly requested by the user or when reviewing PRs."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Write code review comments terse and actionable. One line per finding. Location, problem, fix. No throat-clearing.
|
|
7
|
+
|
|
8
|
+
## Rules
|
|
9
|
+
|
|
10
|
+
**Format:** `L<line>: <problem>. <fix>.` — or `<file>:L<line>: ...` when reviewing multi-file diffs.
|
|
11
|
+
|
|
12
|
+
**Severity prefix (optional, when mixed):**
|
|
13
|
+
|
|
14
|
+
- `🔴 bug:` — broken behavior, will cause incident
|
|
15
|
+
- `🟡 risk:` — works but fragile (race, missing null check, swallowed error)
|
|
16
|
+
- `🔵 nit:` — style, naming, micro-optim. Author can ignore
|
|
17
|
+
- `❓ q:` — genuine question, not a suggestion
|
|
18
|
+
|
|
19
|
+
**Drop:**
|
|
20
|
+
|
|
21
|
+
- "I noticed that...", "It seems like...", "You might want to consider..."
|
|
22
|
+
- "This is just a suggestion but..." — use `nit:` instead
|
|
23
|
+
- "Great work!", "Looks good overall but..." — say it once at the top, not per comment
|
|
24
|
+
- Restating what the line does — the reviewer can read the diff
|
|
25
|
+
- Hedging ("perhaps", "maybe", "I think") — if unsure use `q:`
|
|
26
|
+
|
|
27
|
+
**Keep:**
|
|
28
|
+
|
|
29
|
+
- Exact line numbers
|
|
30
|
+
- Exact symbol/function/variable names in backticks
|
|
31
|
+
- Concrete fix, not "consider refactoring this"
|
|
32
|
+
- The _why_ if the fix isn't obvious from the problem statement
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
❌ "I noticed that on line 42 you're not checking if the user object is null before accessing the email property. This could potentially cause a crash if the user is not found in the database. You might want to add a null check here."
|
|
37
|
+
|
|
38
|
+
✅ `L42: 🔴 bug: user can be null after .find(). Add guard before .email.`
|
|
39
|
+
|
|
40
|
+
❌ "It looks like this function is doing a lot of things and might benefit from being broken up into smaller functions for readability."
|
|
41
|
+
|
|
42
|
+
✅ `L88-140: 🔵 nit: 50-line fn does 4 things. Extract validate/normalize/persist.`
|
|
43
|
+
|
|
44
|
+
❌ "Have you considered what happens if the API returns a 429? I think we should probably handle that case."
|
|
45
|
+
|
|
46
|
+
✅ `L23: 🟡 risk: no retry on 429. Wrap in withBackoff(3).`
|
|
47
|
+
|
|
48
|
+
## Auto-Clarity
|
|
49
|
+
|
|
50
|
+
Drop terse mode for: security findings (CVE-class bugs need full explanation + reference), architectural disagreements (need rationale, not just a one-liner), and onboarding contexts where the author is new and needs the "why". In those cases write a normal paragraph, then resume terse for the rest.
|
|
51
|
+
|
|
52
|
+
## Boundaries
|
|
53
|
+
|
|
54
|
+
Reviews only — does not write the code fix, does not approve/request-changes, does not run linters. Output the comment(s) ready to paste into the PR. "stop caveman-review" or "normal mode": revert to verbose review style.
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: frontend-design
|
|
3
|
-
description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
This skill guides the coding agent in creating distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
|
|
7
|
-
|
|
8
|
-
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
|
|
9
|
-
|
|
10
|
-
## Tool Compatibility
|
|
11
|
-
|
|
12
|
-
- Keep instructions tool-agnostic and avoid provider-specific wording.
|
|
13
|
-
- When behavior differs across tools, resolve conflicts in this order: OpenCode > Claude Code > Codex CLI > Gemini CLI.
|
|
14
|
-
|
|
15
|
-
## Design Thinking
|
|
16
|
-
|
|
17
|
-
Before coding, understand the context and commit to a BOLD aesthetic direction:
|
|
18
|
-
|
|
19
|
-
- **Purpose**: What problem does this interface solve? Who uses it?
|
|
20
|
-
- **Tone**: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
|
|
21
|
-
- **Constraints**: Technical requirements (framework, performance, accessibility).
|
|
22
|
-
- **Differentiation**: What makes this UNFORGETTABLE? What's the one thing someone will remember?
|
|
23
|
-
|
|
24
|
-
**CRITICAL**: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
|
|
25
|
-
|
|
26
|
-
Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
|
|
27
|
-
|
|
28
|
-
- Production-grade and functional
|
|
29
|
-
- Visually striking and memorable
|
|
30
|
-
- Cohesive with a clear aesthetic point-of-view
|
|
31
|
-
- Meticulously refined in every detail
|
|
32
|
-
|
|
33
|
-
## Frontend Aesthetics Guidelines
|
|
34
|
-
|
|
35
|
-
Focus on:
|
|
36
|
-
|
|
37
|
-
- **Typography**: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
|
|
38
|
-
- **Color & Theme**: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
|
|
39
|
-
- **Motion**: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
|
|
40
|
-
- **Spatial Composition**: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
|
|
41
|
-
- **Backgrounds & Visual Details**: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
|
|
42
|
-
|
|
43
|
-
NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character.
|
|
44
|
-
|
|
45
|
-
Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
|
|
46
|
-
|
|
47
|
-
**IMPORTANT**: Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details. Elegance comes from executing the vision well.
|
|
48
|
-
|
|
49
|
-
## Execution Guidance
|
|
50
|
-
|
|
51
|
-
When applying this skill:
|
|
52
|
-
|
|
53
|
-
- Build the requested interface directly instead of stopping at ideas or mock descriptions.
|
|
54
|
-
- Preserve the existing design system, component patterns, and frontend architecture when working inside an established codebase.
|
|
55
|
-
- Use the strongest visual direction that still fits the product and the repository's technical constraints.
|
|
56
|
-
- Refine the result for both desktop and mobile instead of treating responsiveness as a follow-up.
|
|
57
|
-
- Prefer modern, production-ready framework patterns already present in the codebase instead of introducing novelty for its own sake.
|
|
58
|
-
- Push toward concrete design decisions, polished implementation details, and cohesive execution rather than generic safe choices.
|
|
59
|
-
|
|
60
|
-
Remember: strong creative results come from a clear aesthetic direction and enough room to execute it with conviction. Do not hold back; think outside the box and commit fully to a distinctive vision.
|
|
1
|
+
---
|
|
2
|
+
name: frontend-design
|
|
3
|
+
description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This skill guides the coding agent in creating distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
|
|
7
|
+
|
|
8
|
+
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
|
|
9
|
+
|
|
10
|
+
## Tool Compatibility
|
|
11
|
+
|
|
12
|
+
- Keep instructions tool-agnostic and avoid provider-specific wording.
|
|
13
|
+
- When behavior differs across tools, resolve conflicts in this order: OpenCode > Claude Code > Codex CLI > Gemini CLI.
|
|
14
|
+
|
|
15
|
+
## Design Thinking
|
|
16
|
+
|
|
17
|
+
Before coding, understand the context and commit to a BOLD aesthetic direction:
|
|
18
|
+
|
|
19
|
+
- **Purpose**: What problem does this interface solve? Who uses it?
|
|
20
|
+
- **Tone**: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
|
|
21
|
+
- **Constraints**: Technical requirements (framework, performance, accessibility).
|
|
22
|
+
- **Differentiation**: What makes this UNFORGETTABLE? What's the one thing someone will remember?
|
|
23
|
+
|
|
24
|
+
**CRITICAL**: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
|
|
25
|
+
|
|
26
|
+
Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
|
|
27
|
+
|
|
28
|
+
- Production-grade and functional
|
|
29
|
+
- Visually striking and memorable
|
|
30
|
+
- Cohesive with a clear aesthetic point-of-view
|
|
31
|
+
- Meticulously refined in every detail
|
|
32
|
+
|
|
33
|
+
## Frontend Aesthetics Guidelines
|
|
34
|
+
|
|
35
|
+
Focus on:
|
|
36
|
+
|
|
37
|
+
- **Typography**: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
|
|
38
|
+
- **Color & Theme**: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
|
|
39
|
+
- **Motion**: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
|
|
40
|
+
- **Spatial Composition**: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
|
|
41
|
+
- **Backgrounds & Visual Details**: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
|
|
42
|
+
|
|
43
|
+
NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character.
|
|
44
|
+
|
|
45
|
+
Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
|
|
46
|
+
|
|
47
|
+
**IMPORTANT**: Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details. Elegance comes from executing the vision well.
|
|
48
|
+
|
|
49
|
+
## Execution Guidance
|
|
50
|
+
|
|
51
|
+
When applying this skill:
|
|
52
|
+
|
|
53
|
+
- Build the requested interface directly instead of stopping at ideas or mock descriptions.
|
|
54
|
+
- Preserve the existing design system, component patterns, and frontend architecture when working inside an established codebase.
|
|
55
|
+
- Use the strongest visual direction that still fits the product and the repository's technical constraints.
|
|
56
|
+
- Refine the result for both desktop and mobile instead of treating responsiveness as a follow-up.
|
|
57
|
+
- Prefer modern, production-ready framework patterns already present in the codebase instead of introducing novelty for its own sake.
|
|
58
|
+
- Push toward concrete design decisions, polished implementation details, and cohesive execution rather than generic safe choices.
|
|
59
|
+
|
|
60
|
+
Remember: strong creative results come from a clear aesthetic direction and enough room to execute it with conviction. Do not hold back; think outside the box and commit fully to a distinctive vision.
|
|
@@ -1,226 +1,226 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: subagent-specialist
|
|
3
|
-
description: Specialist workflow for planning, dispatching, reviewing, and integrating delegated workers. Use for parallelizable work, independent implementation tasks, multiple unrelated bug investigations, or quality-focused implementer + spec-review + code-review workflows.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Subagent Specialist
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
Use fresh subagents as isolated workers while the main agent stays responsible for decomposition, context curation, coordination, and integration. This skill merges two patterns into one operating guide: structured per-task execution with review gates, and parallel dispatch for independent domains.
|
|
11
|
-
|
|
12
|
-
## Core Principles
|
|
13
|
-
|
|
14
|
-
- Default to isolated context. Give each subagent only the task-local context it needs.
|
|
15
|
-
- Keep the controller responsible for planning, sequencing, tool strategy, and final integration.
|
|
16
|
-
- Use one subagent per task or per independent problem domain.
|
|
17
|
-
- Prefer explicit scope, constraints, and deliverables over open-ended prompts.
|
|
18
|
-
- Review actual artifacts, not just the subagent's report.
|
|
19
|
-
- Preserve the controller's context window for orchestration work.
|
|
20
|
-
|
|
21
|
-
## Tool Compatibility
|
|
22
|
-
|
|
23
|
-
- Keep instructions tool-agnostic and avoid provider-specific wording.
|
|
24
|
-
- When behavior differs across tools, resolve conflicts in this order: OpenCode > Claude Code > Codex CLI > Gemini CLI.
|
|
25
|
-
|
|
26
|
-
## Delegation Lifecycle
|
|
27
|
-
|
|
28
|
-
- Use the host environment's delegation mechanism to start a fresh worker when isolated execution is helpful.
|
|
29
|
-
- Prefer isolated, task-local context over copying the full session unless the task genuinely depends on broader context.
|
|
30
|
-
- Reuse the same worker for follow-up work only when it already holds the right local context and reuse reduces setup cost.
|
|
31
|
-
- Wait for worker results only when the next critical-path step depends on them.
|
|
32
|
-
- End or discard workers that are no longer useful, according to the host environment's workflow.
|
|
33
|
-
- Respect the host environment's delegation policy. If the environment only allows delegated workers after explicit user permission, do not bypass that rule.
|
|
34
|
-
- Adapt to the host's actual capabilities. Do not assume support for background workers, message passing, context forking, or explicit worker shutdown unless the environment provides them.
|
|
35
|
-
|
|
36
|
-
## Choose the Pattern
|
|
37
|
-
|
|
38
|
-
Use the structured per-task workflow when:
|
|
39
|
-
|
|
40
|
-
- you already have a plan or a clearly bounded task list
|
|
41
|
-
- tasks can be executed one at a time in the current session
|
|
42
|
-
- you want strong quality gates after each implementation step
|
|
43
|
-
|
|
44
|
-
Use parallel dispatch when:
|
|
45
|
-
|
|
46
|
-
- 2 or more tasks, failures, or investigations are truly independent
|
|
47
|
-
- each workstream can be understood without hidden context from the others
|
|
48
|
-
- the agents will not collide on the same files, resources, or unresolved design decisions
|
|
49
|
-
|
|
50
|
-
Do local exploration first instead of dispatching immediately when:
|
|
51
|
-
|
|
52
|
-
- the problem is still ambiguous
|
|
53
|
-
- failures are probably symptoms of the same root cause
|
|
54
|
-
- the work depends on one shared architectural decision that has not been made yet
|
|
55
|
-
- multiple agents would compete for the same write scope
|
|
56
|
-
|
|
57
|
-
## Workflow A: Structured Task Execution
|
|
58
|
-
|
|
59
|
-
### 1. Prepare Once
|
|
60
|
-
|
|
61
|
-
- Read the plan once.
|
|
62
|
-
- Extract each task's full text, acceptance criteria, dependencies, and scene-setting context.
|
|
63
|
-
- Track the tasks in the session plan tracker so the controller, not the subagents, owns the global picture.
|
|
64
|
-
- Do not make each subagent rediscover the plan from scratch.
|
|
65
|
-
|
|
66
|
-
### 2. Dispatch One Implementer
|
|
67
|
-
|
|
68
|
-
- Give the full task text directly.
|
|
69
|
-
- Include architectural context, constraints, working directory, and expected report format.
|
|
70
|
-
- Tell the implementer to ask questions before coding if anything is unclear.
|
|
71
|
-
- Prefer reusing the same implementer for follow-up fixes if the review loop stays on the same task.
|
|
72
|
-
|
|
73
|
-
For the prompt structure, read [references/implementer-prompt.md](references/implementer-prompt.md).
|
|
74
|
-
|
|
75
|
-
### 3. Handle Implementer Status Correctly
|
|
76
|
-
|
|
77
|
-
Implementers should report one of four statuses:
|
|
78
|
-
|
|
79
|
-
- `DONE`: Proceed to spec compliance review.
|
|
80
|
-
- `DONE_WITH_CONCERNS`: Read the concerns before review. Resolve correctness or scope doubts before moving on.
|
|
81
|
-
- `NEEDS_CONTEXT`: Provide the missing information and re-dispatch.
|
|
82
|
-
- `BLOCKED`: Change something real before retrying. Add context, break up the task, choose a stronger execution profile, or escalate to the user.
|
|
83
|
-
|
|
84
|
-
Never ignore a subagent that says it is stuck. If it reported `BLOCKED`, the setup, context, or task shape needs to change.
|
|
85
|
-
|
|
86
|
-
### 4. Run Spec Compliance Review First
|
|
87
|
-
|
|
88
|
-
- Verify what was requested against the actual code.
|
|
89
|
-
- Check for missing requirements.
|
|
90
|
-
- Check for over-building and extra features.
|
|
91
|
-
- Check for misunderstandings of the requested behavior.
|
|
92
|
-
|
|
93
|
-
Do not start code quality review until spec compliance is clear.
|
|
94
|
-
|
|
95
|
-
For the reviewer template, read [references/spec-reviewer-prompt.md](references/spec-reviewer-prompt.md).
|
|
96
|
-
|
|
97
|
-
### 5. Run Code Quality Review Second
|
|
98
|
-
|
|
99
|
-
- Review maintainability, decomposition, test quality, and fit with the codebase.
|
|
100
|
-
- Check whether the change created unnecessarily large or tangled files.
|
|
101
|
-
- Check whether the implementation followed the intended structure.
|
|
102
|
-
|
|
103
|
-
For the reviewer template, read [references/code-quality-reviewer-prompt.md](references/code-quality-reviewer-prompt.md).
|
|
104
|
-
|
|
105
|
-
### 6. Fix and Re-Review in Loops
|
|
106
|
-
|
|
107
|
-
- If a reviewer finds issues, send the findings back to the implementer.
|
|
108
|
-
- Re-run the same review after the fixes land.
|
|
109
|
-
- Do not move to the next task while review issues are still open.
|
|
110
|
-
- Do not let implementer self-review replace an actual reviewer pass.
|
|
111
|
-
|
|
112
|
-
### 7. Close the Task Only When Both Gates Pass
|
|
113
|
-
|
|
114
|
-
- Mark the task complete only after spec compliance and code quality are both clear.
|
|
115
|
-
- After all tasks are done, run one final holistic review or verification pass across the full change.
|
|
116
|
-
|
|
117
|
-
## Workflow B: Parallel Dispatch for Independent Domains
|
|
118
|
-
|
|
119
|
-
### 1. Group Work by Independent Domain
|
|
120
|
-
|
|
121
|
-
Good candidates:
|
|
122
|
-
|
|
123
|
-
- different failing test files with unrelated root causes
|
|
124
|
-
- separate subsystems
|
|
125
|
-
- bounded implementation slices with disjoint write scopes
|
|
126
|
-
|
|
127
|
-
Bad candidates:
|
|
128
|
-
|
|
129
|
-
- failures likely caused by one shared bug
|
|
130
|
-
- tasks touching the same core files or the same unresolved design decision
|
|
131
|
-
- work that depends on shared mutable state or one ordered sequence of changes
|
|
132
|
-
|
|
133
|
-
### 2. Give Each Agent One Domain Only
|
|
134
|
-
|
|
135
|
-
Each parallel prompt should include:
|
|
136
|
-
|
|
137
|
-
- exact scope
|
|
138
|
-
- raw failure evidence or task text
|
|
139
|
-
- constraints on what not to change
|
|
140
|
-
- expected output
|
|
141
|
-
|
|
142
|
-
For a reusable template, read [references/parallel-investigator-prompt.md](references/parallel-investigator-prompt.md).
|
|
143
|
-
|
|
144
|
-
### 3. Dispatch Concurrently
|
|
145
|
-
|
|
146
|
-
- Run one subagent per independent domain.
|
|
147
|
-
- Keep the scopes narrow.
|
|
148
|
-
- While the subagents run, continue with non-overlapping controller work instead of waiting by reflex.
|
|
149
|
-
|
|
150
|
-
### 4. Review and Integrate Carefully
|
|
151
|
-
|
|
152
|
-
When results come back:
|
|
153
|
-
|
|
154
|
-
- read each summary
|
|
155
|
-
- inspect file overlap or conceptual conflicts
|
|
156
|
-
- integrate the changes carefully
|
|
157
|
-
- run the combined verification
|
|
158
|
-
|
|
159
|
-
If the domains turn out not to be independent, stop treating them as parallel work and recombine the investigation.
|
|
160
|
-
|
|
161
|
-
## Hybrid Pattern
|
|
162
|
-
|
|
163
|
-
Use parallel dispatch at the top level and the structured review loop inside each workstream when the work is large enough to justify it. A typical example is three unrelated bug clusters investigated in parallel, where each accepted fix still goes through spec review and code quality review before final integration.
|
|
164
|
-
|
|
165
|
-
## Execution Profile Selection
|
|
166
|
-
|
|
167
|
-
- Use a lightweight execution profile for mechanical, well-specified tasks touching 1 or 2 files.
|
|
168
|
-
- Use a standard execution profile for debugging, integration work, or multi-file implementation.
|
|
169
|
-
- Use the strongest available execution profile for architecture, task decomposition, and critical reviews.
|
|
170
|
-
|
|
171
|
-
Signals that you should increase execution depth:
|
|
172
|
-
|
|
173
|
-
- ambiguous requirements
|
|
174
|
-
- many interacting files
|
|
175
|
-
- cross-cutting architectural impact
|
|
176
|
-
- repeated failures after a reasonable attempt
|
|
177
|
-
|
|
178
|
-
## Prompt Construction Rules
|
|
179
|
-
|
|
180
|
-
- Be specific about scope.
|
|
181
|
-
- Paste the relevant task text or failure evidence.
|
|
182
|
-
- Provide enough context to avoid blind guessing.
|
|
183
|
-
- State constraints explicitly.
|
|
184
|
-
- Tell the subagent what to return.
|
|
185
|
-
- Prefer raw artifacts over your diagnosis when asking for validation or review.
|
|
186
|
-
- Do not leak the intended answer into reviewer prompts.
|
|
187
|
-
|
|
188
|
-
## Advantages and Costs
|
|
189
|
-
|
|
190
|
-
Advantages:
|
|
191
|
-
|
|
192
|
-
- fresh context per task keeps subagents focused
|
|
193
|
-
- the controller keeps the big picture instead of drowning in implementation detail
|
|
194
|
-
- questions surface early, before the subagent builds the wrong thing
|
|
195
|
-
- review gates catch under-building, over-building, and maintainability problems sooner
|
|
196
|
-
- parallel investigations can collapse multi-hour debugging into one coordination pass
|
|
197
|
-
|
|
198
|
-
Costs:
|
|
199
|
-
|
|
200
|
-
- more setup work from the controller
|
|
201
|
-
- more subagent invocations
|
|
202
|
-
- more review iterations
|
|
203
|
-
- more integration discipline required when multiple workstreams return together
|
|
204
|
-
|
|
205
|
-
The cost is usually worth paying when the alternative is broad context pollution, slow sequential debugging, or late discovery of quality problems.
|
|
206
|
-
|
|
207
|
-
## Red Flags
|
|
208
|
-
|
|
209
|
-
- Do not start implementation on `main` or `master` without explicit user consent.
|
|
210
|
-
- Do not skip spec compliance review.
|
|
211
|
-
- Do not run code quality review before spec compliance passes.
|
|
212
|
-
- Do not move to the next task while review issues are still open.
|
|
213
|
-
- Do not tell a subagent to "fix everything."
|
|
214
|
-
- Do not dispatch multiple coding subagents against the same write scope unless the integration plan is explicit.
|
|
215
|
-
- Do not ignore a subagent that reports `BLOCKED`.
|
|
216
|
-
- Do not replace actual review with implementer self-review.
|
|
217
|
-
- Do not trust an implementer or reviewer claim without checking the artifacts they produced.
|
|
218
|
-
|
|
219
|
-
## Reference Templates
|
|
220
|
-
|
|
221
|
-
Read these only when needed:
|
|
222
|
-
|
|
223
|
-
- [references/implementer-prompt.md](references/implementer-prompt.md): implementation-worker prompt
|
|
224
|
-
- [references/spec-reviewer-prompt.md](references/spec-reviewer-prompt.md): spec-compliance review prompt
|
|
225
|
-
- [references/code-quality-reviewer-prompt.md](references/code-quality-reviewer-prompt.md): maintainability and quality review prompt
|
|
226
|
-
- [references/parallel-investigator-prompt.md](references/parallel-investigator-prompt.md): focused prompt for independent parallel investigations
|
|
1
|
+
---
|
|
2
|
+
name: subagent-specialist
|
|
3
|
+
description: Specialist workflow for planning, dispatching, reviewing, and integrating delegated workers. Use for parallelizable work, independent implementation tasks, multiple unrelated bug investigations, or quality-focused implementer + spec-review + code-review workflows.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Subagent Specialist
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Use fresh subagents as isolated workers while the main agent stays responsible for decomposition, context curation, coordination, and integration. This skill merges two patterns into one operating guide: structured per-task execution with review gates, and parallel dispatch for independent domains.
|
|
11
|
+
|
|
12
|
+
## Core Principles
|
|
13
|
+
|
|
14
|
+
- Default to isolated context. Give each subagent only the task-local context it needs.
|
|
15
|
+
- Keep the controller responsible for planning, sequencing, tool strategy, and final integration.
|
|
16
|
+
- Use one subagent per task or per independent problem domain.
|
|
17
|
+
- Prefer explicit scope, constraints, and deliverables over open-ended prompts.
|
|
18
|
+
- Review actual artifacts, not just the subagent's report.
|
|
19
|
+
- Preserve the controller's context window for orchestration work.
|
|
20
|
+
|
|
21
|
+
## Tool Compatibility
|
|
22
|
+
|
|
23
|
+
- Keep instructions tool-agnostic and avoid provider-specific wording.
|
|
24
|
+
- When behavior differs across tools, resolve conflicts in this order: OpenCode > Claude Code > Codex CLI > Gemini CLI.
|
|
25
|
+
|
|
26
|
+
## Delegation Lifecycle
|
|
27
|
+
|
|
28
|
+
- Use the host environment's delegation mechanism to start a fresh worker when isolated execution is helpful.
|
|
29
|
+
- Prefer isolated, task-local context over copying the full session unless the task genuinely depends on broader context.
|
|
30
|
+
- Reuse the same worker for follow-up work only when it already holds the right local context and reuse reduces setup cost.
|
|
31
|
+
- Wait for worker results only when the next critical-path step depends on them.
|
|
32
|
+
- End or discard workers that are no longer useful, according to the host environment's workflow.
|
|
33
|
+
- Respect the host environment's delegation policy. If the environment only allows delegated workers after explicit user permission, do not bypass that rule.
|
|
34
|
+
- Adapt to the host's actual capabilities. Do not assume support for background workers, message passing, context forking, or explicit worker shutdown unless the environment provides them.
|
|
35
|
+
|
|
36
|
+
## Choose the Pattern
|
|
37
|
+
|
|
38
|
+
Use the structured per-task workflow when:
|
|
39
|
+
|
|
40
|
+
- you already have a plan or a clearly bounded task list
|
|
41
|
+
- tasks can be executed one at a time in the current session
|
|
42
|
+
- you want strong quality gates after each implementation step
|
|
43
|
+
|
|
44
|
+
Use parallel dispatch when:
|
|
45
|
+
|
|
46
|
+
- 2 or more tasks, failures, or investigations are truly independent
|
|
47
|
+
- each workstream can be understood without hidden context from the others
|
|
48
|
+
- the agents will not collide on the same files, resources, or unresolved design decisions
|
|
49
|
+
|
|
50
|
+
Do local exploration first instead of dispatching immediately when:
|
|
51
|
+
|
|
52
|
+
- the problem is still ambiguous
|
|
53
|
+
- failures are probably symptoms of the same root cause
|
|
54
|
+
- the work depends on one shared architectural decision that has not been made yet
|
|
55
|
+
- multiple agents would compete for the same write scope
|
|
56
|
+
|
|
57
|
+
## Workflow A: Structured Task Execution
|
|
58
|
+
|
|
59
|
+
### 1. Prepare Once
|
|
60
|
+
|
|
61
|
+
- Read the plan once.
|
|
62
|
+
- Extract each task's full text, acceptance criteria, dependencies, and scene-setting context.
|
|
63
|
+
- Track the tasks in the session plan tracker so the controller, not the subagents, owns the global picture.
|
|
64
|
+
- Do not make each subagent rediscover the plan from scratch.
|
|
65
|
+
|
|
66
|
+
### 2. Dispatch One Implementer
|
|
67
|
+
|
|
68
|
+
- Give the full task text directly.
|
|
69
|
+
- Include architectural context, constraints, working directory, and expected report format.
|
|
70
|
+
- Tell the implementer to ask questions before coding if anything is unclear.
|
|
71
|
+
- Prefer reusing the same implementer for follow-up fixes if the review loop stays on the same task.
|
|
72
|
+
|
|
73
|
+
For the prompt structure, read [references/implementer-prompt.md](references/implementer-prompt.md).
|
|
74
|
+
|
|
75
|
+
### 3. Handle Implementer Status Correctly
|
|
76
|
+
|
|
77
|
+
Implementers should report one of four statuses:
|
|
78
|
+
|
|
79
|
+
- `DONE`: Proceed to spec compliance review.
|
|
80
|
+
- `DONE_WITH_CONCERNS`: Read the concerns before review. Resolve correctness or scope doubts before moving on.
|
|
81
|
+
- `NEEDS_CONTEXT`: Provide the missing information and re-dispatch.
|
|
82
|
+
- `BLOCKED`: Change something real before retrying. Add context, break up the task, choose a stronger execution profile, or escalate to the user.
|
|
83
|
+
|
|
84
|
+
Never ignore a subagent that says it is stuck. If it reported `BLOCKED`, the setup, context, or task shape needs to change.
|
|
85
|
+
|
|
86
|
+
### 4. Run Spec Compliance Review First
|
|
87
|
+
|
|
88
|
+
- Verify what was requested against the actual code.
|
|
89
|
+
- Check for missing requirements.
|
|
90
|
+
- Check for over-building and extra features.
|
|
91
|
+
- Check for misunderstandings of the requested behavior.
|
|
92
|
+
|
|
93
|
+
Do not start code quality review until spec compliance is clear.
|
|
94
|
+
|
|
95
|
+
For the reviewer template, read [references/spec-reviewer-prompt.md](references/spec-reviewer-prompt.md).
|
|
96
|
+
|
|
97
|
+
### 5. Run Code Quality Review Second
|
|
98
|
+
|
|
99
|
+
- Review maintainability, decomposition, test quality, and fit with the codebase.
|
|
100
|
+
- Check whether the change created unnecessarily large or tangled files.
|
|
101
|
+
- Check whether the implementation followed the intended structure.
|
|
102
|
+
|
|
103
|
+
For the reviewer template, read [references/code-quality-reviewer-prompt.md](references/code-quality-reviewer-prompt.md).
|
|
104
|
+
|
|
105
|
+
### 6. Fix and Re-Review in Loops
|
|
106
|
+
|
|
107
|
+
- If a reviewer finds issues, send the findings back to the implementer.
|
|
108
|
+
- Re-run the same review after the fixes land.
|
|
109
|
+
- Do not move to the next task while review issues are still open.
|
|
110
|
+
- Do not let implementer self-review replace an actual reviewer pass.
|
|
111
|
+
|
|
112
|
+
### 7. Close the Task Only When Both Gates Pass
|
|
113
|
+
|
|
114
|
+
- Mark the task complete only after spec compliance and code quality are both clear.
|
|
115
|
+
- After all tasks are done, run one final holistic review or verification pass across the full change.
|
|
116
|
+
|
|
117
|
+
## Workflow B: Parallel Dispatch for Independent Domains
|
|
118
|
+
|
|
119
|
+
### 1. Group Work by Independent Domain
|
|
120
|
+
|
|
121
|
+
Good candidates:
|
|
122
|
+
|
|
123
|
+
- different failing test files with unrelated root causes
|
|
124
|
+
- separate subsystems
|
|
125
|
+
- bounded implementation slices with disjoint write scopes
|
|
126
|
+
|
|
127
|
+
Bad candidates:
|
|
128
|
+
|
|
129
|
+
- failures likely caused by one shared bug
|
|
130
|
+
- tasks touching the same core files or the same unresolved design decision
|
|
131
|
+
- work that depends on shared mutable state or one ordered sequence of changes
|
|
132
|
+
|
|
133
|
+
### 2. Give Each Agent One Domain Only
|
|
134
|
+
|
|
135
|
+
Each parallel prompt should include:
|
|
136
|
+
|
|
137
|
+
- exact scope
|
|
138
|
+
- raw failure evidence or task text
|
|
139
|
+
- constraints on what not to change
|
|
140
|
+
- expected output
|
|
141
|
+
|
|
142
|
+
For a reusable template, read [references/parallel-investigator-prompt.md](references/parallel-investigator-prompt.md).
|
|
143
|
+
|
|
144
|
+
### 3. Dispatch Concurrently
|
|
145
|
+
|
|
146
|
+
- Run one subagent per independent domain.
|
|
147
|
+
- Keep the scopes narrow.
|
|
148
|
+
- While the subagents run, continue with non-overlapping controller work instead of waiting by reflex.
|
|
149
|
+
|
|
150
|
+
### 4. Review and Integrate Carefully
|
|
151
|
+
|
|
152
|
+
When results come back:
|
|
153
|
+
|
|
154
|
+
- read each summary
|
|
155
|
+
- inspect file overlap or conceptual conflicts
|
|
156
|
+
- integrate the changes carefully
|
|
157
|
+
- run the combined verification
|
|
158
|
+
|
|
159
|
+
If the domains turn out not to be independent, stop treating them as parallel work and recombine the investigation.
|
|
160
|
+
|
|
161
|
+
## Hybrid Pattern
|
|
162
|
+
|
|
163
|
+
Use parallel dispatch at the top level and the structured review loop inside each workstream when the work is large enough to justify it. A typical example is three unrelated bug clusters investigated in parallel, where each accepted fix still goes through spec review and code quality review before final integration.
|
|
164
|
+
|
|
165
|
+
## Execution Profile Selection
|
|
166
|
+
|
|
167
|
+
- Use a lightweight execution profile for mechanical, well-specified tasks touching 1 or 2 files.
|
|
168
|
+
- Use a standard execution profile for debugging, integration work, or multi-file implementation.
|
|
169
|
+
- Use the strongest available execution profile for architecture, task decomposition, and critical reviews.
|
|
170
|
+
|
|
171
|
+
Signals that you should increase execution depth:
|
|
172
|
+
|
|
173
|
+
- ambiguous requirements
|
|
174
|
+
- many interacting files
|
|
175
|
+
- cross-cutting architectural impact
|
|
176
|
+
- repeated failures after a reasonable attempt
|
|
177
|
+
|
|
178
|
+
## Prompt Construction Rules
|
|
179
|
+
|
|
180
|
+
- Be specific about scope.
|
|
181
|
+
- Paste the relevant task text or failure evidence.
|
|
182
|
+
- Provide enough context to avoid blind guessing.
|
|
183
|
+
- State constraints explicitly.
|
|
184
|
+
- Tell the subagent what to return.
|
|
185
|
+
- Prefer raw artifacts over your diagnosis when asking for validation or review.
|
|
186
|
+
- Do not leak the intended answer into reviewer prompts.
|
|
187
|
+
|
|
188
|
+
## Advantages and Costs
|
|
189
|
+
|
|
190
|
+
Advantages:
|
|
191
|
+
|
|
192
|
+
- fresh context per task keeps subagents focused
|
|
193
|
+
- the controller keeps the big picture instead of drowning in implementation detail
|
|
194
|
+
- questions surface early, before the subagent builds the wrong thing
|
|
195
|
+
- review gates catch under-building, over-building, and maintainability problems sooner
|
|
196
|
+
- parallel investigations can collapse multi-hour debugging into one coordination pass
|
|
197
|
+
|
|
198
|
+
Costs:
|
|
199
|
+
|
|
200
|
+
- more setup work from the controller
|
|
201
|
+
- more subagent invocations
|
|
202
|
+
- more review iterations
|
|
203
|
+
- more integration discipline required when multiple workstreams return together
|
|
204
|
+
|
|
205
|
+
The cost is usually worth paying when the alternative is broad context pollution, slow sequential debugging, or late discovery of quality problems.
|
|
206
|
+
|
|
207
|
+
## Red Flags
|
|
208
|
+
|
|
209
|
+
- Do not start implementation on `main` or `master` without explicit user consent.
|
|
210
|
+
- Do not skip spec compliance review.
|
|
211
|
+
- Do not run code quality review before spec compliance passes.
|
|
212
|
+
- Do not move to the next task while review issues are still open.
|
|
213
|
+
- Do not tell a subagent to "fix everything."
|
|
214
|
+
- Do not dispatch multiple coding subagents against the same write scope unless the integration plan is explicit.
|
|
215
|
+
- Do not ignore a subagent that reports `BLOCKED`.
|
|
216
|
+
- Do not replace actual review with implementer self-review.
|
|
217
|
+
- Do not trust an implementer or reviewer claim without checking the artifacts they produced.
|
|
218
|
+
|
|
219
|
+
## Reference Templates
|
|
220
|
+
|
|
221
|
+
Read these only when needed:
|
|
222
|
+
|
|
223
|
+
- [references/implementer-prompt.md](references/implementer-prompt.md): implementation-worker prompt
|
|
224
|
+
- [references/spec-reviewer-prompt.md](references/spec-reviewer-prompt.md): spec-compliance review prompt
|
|
225
|
+
- [references/code-quality-reviewer-prompt.md](references/code-quality-reviewer-prompt.md): maintainability and quality review prompt
|
|
226
|
+
- [references/parallel-investigator-prompt.md](references/parallel-investigator-prompt.md): focused prompt for independent parallel investigations
|