thanh-kit 2.5.2 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/index.js +30 -0
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/templates/.env.example +100 -0
  5. package/templates/commands/bootstrap/auto/fast.md +111 -0
  6. package/templates/commands/bootstrap/auto/parallel.md +66 -0
  7. package/templates/commands/bootstrap/auto.md +115 -0
  8. package/templates/commands/bootstrap.md +137 -0
  9. package/templates/commands/code/auto.md +203 -0
  10. package/templates/commands/code/no-test.md +174 -0
  11. package/templates/commands/code/parallel.md +100 -0
  12. package/templates/commands/code.md +205 -0
  13. package/templates/commands/content/cro.md +43 -0
  14. package/templates/commands/content/enhance.md +14 -0
  15. package/templates/commands/content/fast.md +13 -0
  16. package/templates/commands/content/good.md +16 -0
  17. package/templates/commands/cook/auto/fast.md +26 -0
  18. package/templates/commands/cook/auto/parallel.md +49 -0
  19. package/templates/commands/cook/auto.md +15 -0
  20. package/templates/commands/cook.md +105 -0
  21. package/templates/commands/debug.md +13 -0
  22. package/templates/commands/design/3d.md +83 -0
  23. package/templates/commands/design/describe.md +23 -0
  24. package/templates/commands/design/fast.md +31 -0
  25. package/templates/commands/design/good.md +35 -0
  26. package/templates/commands/design/screenshot.md +34 -0
  27. package/templates/commands/design/video.md +34 -0
  28. package/templates/commands/fix/ci.md +17 -0
  29. package/templates/commands/fix/fast.md +19 -0
  30. package/templates/commands/fix/hard.md +39 -0
  31. package/templates/commands/fix/logs.md +26 -0
  32. package/templates/commands/fix/parallel.md +54 -0
  33. package/templates/commands/fix/test.md +20 -0
  34. package/templates/commands/fix/types.md +9 -0
  35. package/templates/commands/fix/ui.md +48 -0
  36. package/templates/commands/fix.md +43 -0
  37. package/templates/commands/plan/ci.md +33 -0
  38. package/templates/commands/plan/cro.md +69 -0
  39. package/templates/commands/plan/fast.md +82 -0
  40. package/templates/commands/plan/hard.md +108 -0
  41. package/templates/commands/plan/parallel.md +145 -0
  42. package/templates/commands/plan/two.md +45 -0
  43. package/templates/commands/plan.md +30 -0
  44. package/templates/commands/scout/ext.md +39 -0
  45. package/templates/commands/scout.md +28 -0
  46. package/templates/commands/skill/add.md +36 -0
  47. package/templates/commands/skill/create.md +29 -0
  48. package/templates/commands/skill/fix-logs.md +22 -0
  49. package/templates/commands/skill/optimize/auto.md +25 -0
  50. package/templates/commands/skill/optimize.md +34 -0
  51. package/templates/commands/skill/update.md +36 -0
  52. package/templates/skills/.env.example +1 -0
  53. package/templates/statusline.cjs +0 -0
  54. package/templates/statusline.sh +0 -0
  55. package/templates/AGENTS.md +0 -104
  56. package/templates/README.md +0 -241
  57. package/templates/command-archive/ask.md +0 -56
  58. package/templates/command-archive/ck-help.md +0 -129
  59. package/templates/command-archive/coding-level.md +0 -48
  60. package/templates/command-archive/docs/init.md +0 -38
  61. package/templates/command-archive/docs/summarize.md +0 -22
  62. package/templates/command-archive/docs/update.md +0 -76
  63. package/templates/command-archive/journal.md +0 -18
  64. package/templates/command-archive/kanban.md +0 -99
  65. package/templates/command-archive/plan/archive.md +0 -57
  66. package/templates/command-archive/plan/red-team.md +0 -200
  67. package/templates/command-archive/plan/validate.md +0 -188
  68. package/templates/command-archive/preview.md +0 -283
  69. package/templates/command-archive/review/codebase/parallel.md +0 -122
  70. package/templates/command-archive/review/codebase.md +0 -49
  71. package/templates/command-archive/test/ui.md +0 -92
  72. package/templates/command-archive/test.md +0 -8
  73. package/templates/command-archive/use-mcp.md +0 -38
  74. package/templates/command-archive/watzup.md +0 -8
  75. package/templates/command-archive/worktree.md +0 -109
  76. package/templates/discord/README.md +0 -274
  77. package/templates/discord/config.json5 +0 -87
  78. package/templates/discord/skills/auto-intent-router/SKILL.md +0 -195
  79. package/templates/discord/skills/train-prompt/SKILL.md +0 -306
  80. package/templates/discord/start-bot.sh +0 -47
  81. package/templates/gemini/settings.json +0 -12
@@ -0,0 +1,26 @@
1
+ ---
2
+ description: ⚡ Analyze logs and fix issues
3
+ argument-hint: [issue]
4
+ ---
5
+
6
+ **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
7
+
8
+ ## Mission
9
+ <issue>$ARGUMENTS</issue>
10
+
11
+ ## Workflow
12
+ 1. Check if `./logs.txt` exists:
13
+ - If missing, set up permanent log piping in project's script config (`package.json`, `Makefile`, `pyproject.toml`, etc.):
14
+ - **Bash/Unix**: append `2>&1 | tee logs.txt`
15
+ - **PowerShell**: append `*>&1 | Tee-Object logs.txt`
16
+ - Run the command to generate logs
17
+ 2. Use `debugger` subagent to analyze `./logs.txt` and find root causes:
18
+ - Use `Grep` with `head_limit: 30` to read only last 30 lines (avoid loading entire file)
19
+ - If insufficient context, increase `head_limit` as needed
20
+ 3. Use `scout` subagent to analyze the codebase and find the exact location of the issues, then report back to main agent.
21
+ 4. Use `planner` subagent to create an implementation plan based on the reports, then report back to main agent.
22
+ 5. Start implementing the fix based the reports and solutions.
23
+ 6. Use `tester` agent to test the fix and make sure it works, then report back to main agent.
24
+ 7. Use `code-reviewer` subagent to quickly review the code changes and make sure it meets requirements, then report back to main agent.
25
+ 8. If there are issues or failed tests, repeat from step 3.
26
+ 9. After finishing, respond back to user with a summary of the changes and explain everything briefly, guide user to get started and suggest the next steps.
@@ -0,0 +1,54 @@
1
+ ---
2
+ description: ⚡⚡ Analyze & fix issues with parallel fullstack-developer agents
3
+ argument-hint: [issues]
4
+ ---
5
+
6
+ **Ultrathink parallel** to fix: <issues>$ARGUMENTS</issues>
7
+
8
+ **IMPORTANT:** Activate needed skills. Ensure token efficiency. Sacrifice grammar for concision.
9
+
10
+ ## Workflow
11
+
12
+ ### 1. Issue Analysis
13
+ - Use `debugger` subagent to analyze root causes
14
+ - Use `/scout:ext` to find related files
15
+ - Categorize issues by scope/area (frontend, backend, auth, payments, etc.)
16
+ - Identify dependencies between issues
17
+
18
+ ### 2. Parallel Fix Planning
19
+ - Trigger `/plan:parallel <detailed-fix-instructions>` for parallel-executable fix plan
20
+ - Wait for plan with dependency graph, execution strategy, file ownership matrix
21
+ - Group independent fixes for parallel execution
22
+ - Sequential fixes for dependent issues
23
+
24
+ ### 3. Parallel Fix Implementation
25
+ - Read `plan.md` for dependency graph
26
+ - Launch multiple `fullstack-developer` agents in PARALLEL for independent fixes
27
+ - Example: "Fix auth + Fix payments + Fix UI" → launch 3 agents simultaneously
28
+ - Pass phase file path: `{plan-dir}/phase-XX-*.md`
29
+ - Include environment info
30
+ - Wait for all parallel fixes complete before dependent fixes
31
+ - Sequential fixes: launch one agent at a time
32
+
33
+ ### 4. Testing
34
+ - Use `tester` subagent for full test suite
35
+ - NO fake data/mocks/cheats
36
+ - Verify all issues resolved
37
+ - If fail: use `debugger`, fix, repeat
38
+
39
+ ### 5. Code Review
40
+ - Use `code-reviewer` for all changes
41
+ - Verify fixes don't introduce regressions
42
+ - If critical issues: fix, retest
43
+
44
+ ### 6. Project Management & Docs
45
+ - If approved: use `project-manager` + `docs-manager` in parallel
46
+ - Update plan files, docs, roadmap
47
+ - If rejected: fix and repeat
48
+
49
+ ### 7. Final Report
50
+ - Summary of all fixes from parallel phases
51
+ - Verification status per issue
52
+ - Ask to commit (use `git-manager` if yes)
53
+
54
+ **Example:** Fix 1 (auth) + Fix 2 (payments) + Fix 3 (UI) → Launch 3 fullstack-developer agents → Wait → Fix 4 (integration) sequential
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: ⚡⚡ Run test suite and fix issues
3
+ argument-hint: [issues]
4
+ ---
5
+
6
+ Analyze the skills catalog and activate the skills that are needed for the task during the process.
7
+
8
+ ## Reported Issues:
9
+ <issues>$ARGUMENTS</issues>
10
+
11
+ ## Workflow:
12
+ 1. Use `tester` subagent to compile the code and fix all syntax errors if any.
13
+ 2. Use `tester` subagent to run the tests and report back to main agent.
14
+ 3. If there are issues or failed tests, use `debugger` subagent to find the root cause of the issues, then report back to main agent.
15
+ 4. Use `planner` subagent to create an implementation plan based on the reports, then report back to main agent.
16
+ 5. Use main agent to implement the plan step by step.
17
+ 6. Use `tester` agent to test the fix and make sure it works, then report back to main agent.
18
+ 6. Use `code-reviewer` subagent to quickly review the code changes and make sure it meets requirements, then report back to main agent.
19
+ 7. If there are issues or failed tests, repeat from step 2.
20
+ 8. After finishing, respond back to user with a summary of the changes and explain everything briefly, guide user to get started and suggest the next steps.
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: ⚡ Fix type errors
3
+ ---
4
+
5
+ Run `bun run typecheck` or `tsc` or `npx tsc` and fix all type errors.
6
+
7
+ ## Rules
8
+ - Fix all of type errors and repeat the process until there are no more type errors.
9
+ - Do not use `any` just to pass the type check.
@@ -0,0 +1,48 @@
1
+ ---
2
+ description: ⚡⚡ Analyze and fix UI issues
3
+ argument-hint: [issue]
4
+ ---
5
+
6
+ ## Required Skills (Priority Order)
7
+ 1. **`ui-ux-pro-max`** - Design intelligence database (ALWAYS ACTIVATE FIRST)
8
+ 2. **`aesthetic`** - Design principles
9
+ 3. **`frontend-design`** - Implementation patterns
10
+
11
+ Use `ui-ux-designer` subagent to read and analyze `./docs/design-guidelines.md` then fix the following issues:
12
+ <issue>$ARGUMENTS</issue>
13
+
14
+ ## Workflow
15
+ **FIRST**: Run `ui-ux-pro-max` searches to understand context and common issues:
16
+ ```bash
17
+ python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<product-type>" --domain product
18
+ python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<style-keywords>" --domain style
19
+ python3 .claude/skills/ui-ux-pro-max/scripts/search.py "accessibility" --domain ux
20
+ python3 .claude/skills/ui-ux-pro-max/scripts/search.py "z-index animation" --domain ux
21
+ ```
22
+
23
+ If the user provides a screenshots or videos, use `ai-multimodal` skill to describe as detailed as possible the issue, make sure developers can predict the root causes easily based on the description.
24
+
25
+ 1. Use `ui-ux-designer` subagent to implement the fix step by step.
26
+ 2. Use screenshot capture tools along with `ai-multimodal` skill to take screenshots of the implemented fix (at the exact parent container, don't take screenshot of the whole page) and use the appropriate Gemini analysis skills (`ai-multimodal`, `video-analysis`, or `document-extraction`) to analyze those outputs so the result matches the design guideline and addresses all issues.
27
+ - If the issues are not addressed, repeat the process until all issues are addressed.
28
+ 3. Use `chrome-devtools` skill to analyze the implemented fix and make sure it matches the design guideline.
29
+ 4. Use `tester` agent to test the fix and compile the code to make sure it works, then report back to main agent.
30
+ - If there are issues or failed tests, ask main agent to fix all of them and repeat the process until all tests pass.
31
+ 5. Project Management & Documentation:
32
+ **If user approves the changes:** Use `project-manager` and `docs-manager` subagents in parallel to update the project progress and documentation:
33
+ * Use `project-manager` subagent to update the project progress and task status in the given plan file.
34
+ * Use `docs-manager` subagent to update the docs in `./docs` directory if needed.
35
+ * Use `project-manager` subagent to create a project roadmap at `./docs/project-roadmap.md` file.
36
+ * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
37
+ **If user rejects the changes:** Ask user to explain the issues and ask main agent to fix all of them and repeat the process.
38
+ 6. Final Report:
39
+ * Report back to user with a summary of the changes and explain everything briefly, guide user to get started and suggest the next steps.
40
+ * Ask the user if they want to commit and push to git repository, if yes, use `git-manager` subagent to commit and push to git repository.
41
+ * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
42
+ * **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
43
+
44
+ **REMEMBER**:
45
+ - You can always generate images with `ai-multimodal` skill on the fly for visual assets.
46
+ - You always read and analyze the generated assets with `ai-multimodal` skill to verify they meet requirements.
47
+ - For image editing (removing background, adjusting, cropping), use `ImageMagick` skill or similar tools as needed.
48
+ - **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
@@ -0,0 +1,43 @@
1
+ ---
2
+ description: ⚡⚡ Analyze and fix issues [INTELLIGENT ROUTING]
3
+ argument-hint: [issues]
4
+ ---
5
+
6
+ **Analyze issues and route to specialized fix command:**
7
+ <issues>$ARGUMENTS</issues>
8
+
9
+ ## Decision Tree
10
+
11
+ **1. Check for existing plan:**
12
+ - If markdown plan exists → `/code <path-to-plan>`
13
+
14
+ **2. Route by issue type:**
15
+
16
+ **A) Type Errors** (keywords: type, typescript, tsc, type error)
17
+ → `/fix:types`
18
+
19
+ **B) UI/UX Issues** (keywords: ui, ux, design, layout, style, visual, button, component, css, responsive)
20
+ → `/fix:ui <detailed-description>`
21
+
22
+ **C) CI/CD Issues** (keywords: github actions, pipeline, ci/cd, workflow, deployment, build failed)
23
+ → `/fix:ci <github-actions-url-or-description>`
24
+
25
+ **D) Test Failures** (keywords: test, spec, jest, vitest, failing test, test suite)
26
+ → `/fix:test <detailed-description>`
27
+
28
+ **E) Log Analysis** (keywords: logs, error logs, log file, stack trace)
29
+ → `/fix:logs <detailed-description>`
30
+
31
+ **F) Multiple Independent Issues** (2+ unrelated issues in different areas)
32
+ → `/fix:parallel <detailed-description>`
33
+
34
+ **G) Complex Issues** (keywords: complex, architecture, refactor, major, system-wide, multiple components)
35
+ → `/fix:hard <detailed-description>`
36
+
37
+ **H) Simple/Quick Fixes** (default: small bug, single file, straightforward)
38
+ → `/fix:fast <detailed-description>`
39
+
40
+ ## Notes
41
+ - `detailed-description` = enhanced prompt describing issue in detail
42
+ - If unclear, ask user for clarification before routing
43
+ - Can combine routes: e.g., multiple type errors + UI issue → `/fix:parallel`
@@ -0,0 +1,33 @@
1
+ ---
2
+ description: Analyze Github Actions logs and provide a plan to fix the issues
3
+ argument-hint: [github-actions-url]
4
+ ---
5
+
6
+ Activate `planning` skill.
7
+
8
+ ## Github Actions URL
9
+ $ARGUMENTS
10
+
11
+ Use the `planner` subagent to read the github actions logs, analyze and find the root causes of the issues, then provide a detailed plan for implementing the fixes.
12
+
13
+ **Plan File Specification:**
14
+ - Every `plan.md` MUST start with YAML frontmatter:
15
+ ```yaml
16
+ ---
17
+ title: "{Brief title}"
18
+ description: "{One sentence for card preview}"
19
+ status: pending
20
+ priority: P1
21
+ effort: {estimated fix time}
22
+ branch: {current git branch}
23
+ tags: [ci, bugfix]
24
+ created: {YYYY-MM-DD}
25
+ ---
26
+ ```
27
+
28
+ **Output:**
29
+ Provide at least 2 implementation approaches with clear trade-offs, and explain the pros and cons of each approach, and provide a recommended approach.
30
+
31
+ **IMPORTANT:** Ask the user for confirmation before implementing.
32
+ **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
33
+ **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
@@ -0,0 +1,69 @@
1
+ ---
2
+ description: Create a CRO plan for the given content
3
+ argument-hint: [issues]
4
+ ---
5
+
6
+ You are an expert in conversion optimization. Analyze the content based on the given issues:
7
+ <issues>$ARGUMENTS</issues>
8
+
9
+ Activate `planning` skill.
10
+
11
+ **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
12
+ **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
13
+
14
+ ## Conversion Optimization Framework
15
+
16
+ 1. Headline 4-U Formula: **Useful, Unique, Urgent, Ultra-specific** (80% won't read past this)
17
+ 2. Above-Fold Value Proposition: Customer problem focus, no company story, zero scroll required
18
+ 3. CTA First-Person Psychology: "Get MY Guide" vs "Get YOUR Guide" (90% more clicks)
19
+ 4. 5-Field Form Maximum: Every field kills conversions, progressive profiling for the rest
20
+ 5. Message Match Precision: Ad copy, landing page headline, broken promises = bounce
21
+ 6. Social Proof Near CTAs: Testimonials with faces/names, results, placed at decision points
22
+ 7. Cognitive Bias Stack: Loss aversion (fear), social proof (FOMO), anchoring (pricing)
23
+ 8. PAS Copy Framework: Problem > Agitate > Solve, emotion before logic
24
+ 9. Genuine Urgency Only: Real deadlines, actual limits, fake timers destroy trust forever
25
+ 10. Price Anchoring Display: Show expensive option first, make real price feel like relief
26
+ 11. Trust Signal Clustering: Security badges, guarantees, policies all visible together
27
+ 12. Visual Hierarchy F-Pattern: Eyes scan F-shape, put conversions in the path
28
+ 13. Lead Magnet Hierarchy: Templates > Checklists > Guides (instant > delayed gratification)
29
+ 14. Objection Preemption: Address top 3 concerns before they think them, FAQ near CTA
30
+ 15. Mobile Thumb Zone: CTAs where thumbs naturally rest, not stretching required
31
+ 16. One-Variable Testing: Change one thing, measure impact, compound wins over time
32
+ 17. Post-Conversion Momentum: Thank you page sells next step while excitement peaks
33
+ 18. Cart Recovery Sequence: Email in 1 hour, retarget in 4 hours, incentive at 24 hours
34
+ 19. Reading Level Grade 6: Smart people prefer simple, 11-word sentences, short paragraphs
35
+ 20. TOFU/MOFU/BOFU Logic: Awareness content ≠ decision content, match intent precisely
36
+ 21. White Space = Focus: Empty space makes CTAs impossible to miss, crowded = confused
37
+ 22. Benefit-First Language: Features tell, benefits sell, transformations compel
38
+ 23. Micro-Commitment Ladder: Small yes leads to big yes, start with email only
39
+ 24. Performance Tracking Stack: Heatmaps show problems, recordings show why, events show what
40
+ 25. Weekly Optimization Ritual: Review metrics Monday, test Tuesday, iterate or scale
41
+
42
+ ## Workflow
43
+
44
+ - If the user provides a screenshots or videos, use `ai-multimodal` skill to describe as detailed as possible the issue, make sure fullstack-developer can fully understand the issue easily based on the description.
45
+ - If the user provides a URL, use `web_fetch` tool to fetch the content of the URL and analyze the current issues.
46
+ - You can use screenshot capture tools along with `ai-multimodal` skill to capture screenshots of the exact parent container and analyze the current issues with the appropriate Gemini analysis skills (`ai-multimodal`, `gemini-video-understanding`, or `gemini-document-processing`).
47
+ - Use `/scout:ext` (preferred) or `/scout` (fallback) slash command to search the codebase for files needed to complete the task
48
+ - Use `planner` agent to create a comprehensive CRO plan following the progressive disclosure structure:
49
+ - Create a directory using naming pattern from `## Naming` section.
50
+ - Every `plan.md` MUST start with YAML frontmatter:
51
+ ```yaml
52
+ ---
53
+ title: "{Brief title}"
54
+ description: "{One sentence for card preview}"
55
+ status: pending
56
+ priority: P2
57
+ effort: {sum of phases, e.g., 4h}
58
+ branch: {current git branch}
59
+ tags: [cro, conversion]
60
+ created: {YYYY-MM-DD}
61
+ ---
62
+ ```
63
+ - Save the overview access point at `plan.md`, keep it generic, under 80 lines, and list each phase with status/progress and links.
64
+ - For each phase, add `phase-XX-phase-name.md` files containing sections (Context links, Overview with date/priority/statuses, Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps).
65
+ - Keep every research markdown report concise (≤150 lines) while covering all requested topics and citations.
66
+ - Do not start implementing the CRO plan yet, wait for the user to approve the plan first.
67
+
68
+ **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
69
+ **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
@@ -0,0 +1,82 @@
1
+ ---
2
+ description: ⚡⚡ No research. Only analyze and create an implementation plan
3
+ argument-hint: [task]
4
+ ---
5
+
6
+ Think.
7
+ Activate `planning` skill.
8
+
9
+ ## Your mission
10
+ <task>
11
+ $ARGUMENTS
12
+ </task>
13
+
14
+ ## Pre-Creation Check (Active vs Suggested Plan)
15
+
16
+ Check the `## Plan Context` section in the injected context:
17
+ - If "Plan:" shows a path → Active plan exists. Ask user: "Continue with this? [Y/n]"
18
+ - If "Suggested:" shows a path → Branch-matched hint only. Ask if they want to activate or create new.
19
+ - If "Plan: none" → Create new plan using naming from `## Naming` section.
20
+
21
+ ## Workflow
22
+ Use `planner` subagent to:
23
+ 1. If creating new: Create directory using `Plan dir:` from `## Naming` section, then run `node .claude/scripts/set-active-plan.cjs {plan-dir}`
24
+ If reusing: Use the active plan path from Plan Context.
25
+ Make sure you pass the directory path to every subagent during the process.
26
+ 2. Follow strictly to the "Plan Creation & Organization" rules of `planning` skill.
27
+ 3. Analyze the codebase by reading `codebase-summary.md`, `code-standards.md`, `system-architecture.md` and `project-overview-pdr.md` file.
28
+ 4. Gathers all information and create an implementation plan of this task.
29
+ 5. Ask user to review the plan.
30
+
31
+ ## Context Reminder (MANDATORY)
32
+
33
+ **IMPORTANT:** After plan creation, you MUST remind the user with the **full absolute path**:
34
+
35
+ > **Best Practice:** Run `/clear` before implementing to start with fresh context.
36
+ > Then run:
37
+ > ```
38
+ > /cook --auto {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
39
+ > ```
40
+ > *(Replace with actual absolute path, e.g., `/home/user/project/plans/260203-1234-feature/plan.md`)*
41
+
42
+ **Why `--auto`?** Fast planning pairs with fast execution - skips review gates.
43
+ **Why absolute path?** After `/clear`, the new session loses context. Worktree paths won't be discoverable without the full path.
44
+
45
+ This reminder is **NON-NEGOTIABLE** - always output it after presenting the plan with the actual absolute path.
46
+
47
+ ## Output Requirements
48
+
49
+ **Plan Directory Structure** (use `Plan dir:` from `## Naming` section)
50
+ ```
51
+ {plan-dir}/
52
+ ├── reports/
53
+ │ ├── XX-report.md
54
+ │ └── ...
55
+ ├── plan.md
56
+ ├── phase-XX-phase-name-here.md
57
+ └── ...
58
+ ```
59
+
60
+ **Plan File Specification**
61
+ - Every `plan.md` MUST start with YAML frontmatter:
62
+ ```yaml
63
+ ---
64
+ title: "{Brief title}"
65
+ description: "{One sentence for card preview}"
66
+ status: pending
67
+ priority: P2
68
+ effort: {sum of phases, e.g., 4h}
69
+ branch: {current git branch}
70
+ tags: [relevant, tags]
71
+ created: {YYYY-MM-DD}
72
+ ---
73
+ ```
74
+ - Save the overview access point at `{plan-dir}/plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
75
+ - For each phase, create `{plan-dir}/phase-XX-phase-name-here.md` containing the following sections in order: Context links (reference parent plan, dependencies, docs), Overview (date, description, priority, implementation status, review status), Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps.
76
+
77
+ ## Important Notes
78
+ - **IMPORTANT:** Ensure token consumption efficiency while maintaining high quality.
79
+ - **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
80
+ - **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
81
+ - **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
82
+ - **IMPORTANT**: **Do not** start implementing.
@@ -0,0 +1,108 @@
1
+ ---
2
+ description: ⚡⚡⚡ Research, analyze, and create an implementation plan
3
+ argument-hint: [task]
4
+ ---
5
+
6
+ Think harder.
7
+ Activate `planning` skill.
8
+
9
+ ## Your mission
10
+ <task>
11
+ $ARGUMENTS
12
+ </task>
13
+
14
+ ## Pre-Creation Check (Active vs Suggested Plan)
15
+
16
+ Check the `## Plan Context` section in the injected context:
17
+ - If "Plan:" shows a path → Active plan exists. Ask user: "Continue with this? [Y/n]"
18
+ - If "Suggested:" shows a path → Branch-matched hint only. Ask if they want to activate or create new.
19
+ - If "Plan: none" → Create new plan using naming from `## Naming` section.
20
+
21
+ ## Workflow
22
+ 1. If creating new: Create directory using `Plan dir:` from `## Naming` section, then run `node .claude/scripts/set-active-plan.cjs {plan-dir}`
23
+ If reusing: Use the active plan path from Plan Context.
24
+ Make sure you pass the directory path to every subagent during the process.
25
+ 2. Follow strictly to the "Plan Creation & Organization" rules of `planning` skill.
26
+ 3. Use multiple `researcher` agents (max 2 agents) in parallel to research for this task:
27
+ Each agent research for a different aspect of the task and are allowed to perform max 5 tool calls.
28
+ 4. Analyze the codebase by reading `codebase-summary.md`, `code-standards.md`, `system-architecture.md` and `project-overview-pdr.md` file.
29
+ **ONLY PERFORM THIS FOLLOWING STEP IF `codebase-summary.md` is not available or older than 3 days**: Use `/scout <instructions>` slash command to search the codebase for files needed to complete the task.
30
+ 5. Main agent gathers all research and scout report filepaths, and pass them to `planner` subagent with the prompt to create an implementation plan of this task.
31
+ 6. Main agent receives the implementation plan from `planner` subagent, and ask user to review the plan
32
+
33
+ ## Post-Plan Validation (Optional)
34
+
35
+ After plan creation, offer validation interview to confirm decisions before implementation.
36
+
37
+ **Check `## Plan Context` → `Validation: mode=X, questions=MIN-MAX`:**
38
+
39
+ | Mode | Behavior |
40
+ |------|----------|
41
+ | `prompt` | Ask user: "Validate this plan with a brief interview?" → Yes (Recommended) / No |
42
+ | `auto` | Automatically execute `/plan:validate {plan-path}` |
43
+ | `off` | Skip validation step entirely |
44
+
45
+ **If mode is `prompt`:** Use `AskUserQuestion` tool with options above.
46
+ **If user chooses validation or mode is `auto`:** Execute `/plan:validate {plan-path}` SlashCommand.
47
+
48
+ ## Context Reminder (MANDATORY)
49
+
50
+ **IMPORTANT:** If user skips validation (chooses "No" or mode is `off`), you MUST remind them with the **full absolute path**:
51
+
52
+ > **Best Practice:** Run `/clear` before implementing to start with fresh context.
53
+ > Then run:
54
+ > ```
55
+ > /cook {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
56
+ > ```
57
+ > *(Replace with actual absolute path, e.g., `/home/user/project/plans/260203-1234-feature/plan.md`)*
58
+
59
+ **Why no flag?** Thorough planning without validation needs interactive review gates.
60
+ **Why absolute path?** After `/clear`, the new session loses context. Worktree paths won't be discoverable without the full path.
61
+
62
+ This reminder is **NON-NEGOTIABLE** when validation is skipped - always output with the actual absolute path.
63
+
64
+ ## Output Requirements
65
+
66
+ **Plan Directory Structure** (use `Plan dir:` from `## Naming` section)
67
+ ```
68
+ {plan-dir}/
69
+ ├── research/
70
+ │ ├── researcher-XX-report.md
71
+ │ └── ...
72
+ ├── reports/
73
+ │ ├── XX-report.md
74
+ │ └── ...
75
+ ├── scout/
76
+ │ ├── scout-XX-report.md
77
+ │ └── ...
78
+ ├── plan.md
79
+ ├── phase-XX-phase-name-here.md
80
+ └── ...
81
+ ```
82
+
83
+ **Research Output Requirements**
84
+ - Ensure every research markdown report remains concise (≤150 lines) while covering all requested topics and citations.
85
+
86
+ **Plan File Specification**
87
+ - Every `plan.md` MUST start with YAML frontmatter:
88
+ ```yaml
89
+ ---
90
+ title: "{Brief title}"
91
+ description: "{One sentence for card preview}"
92
+ status: pending
93
+ priority: P2
94
+ effort: {sum of phases, e.g., 4h}
95
+ branch: {current git branch}
96
+ tags: [relevant, tags]
97
+ created: {YYYY-MM-DD}
98
+ ---
99
+ ```
100
+ - Save the overview access point at `{plan-dir}/plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
101
+ - For each phase, create `{plan-dir}/phase-XX-phase-name-here.md` containing the following sections in order: Context links (reference parent plan, dependencies, docs), Overview (date, description, priority, implementation status, review status), Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps.
102
+
103
+ ## Important Notes
104
+ **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
105
+ **IMPORTANT:** Ensure token efficiency while maintaining high quality.
106
+ **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
107
+ **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
108
+ **IMPORTANT**: **Do not** start implementing.
@@ -0,0 +1,145 @@
1
+ ---
2
+ description: ⚡⚡⚡ Create detailed plan with parallel-executable phases
3
+ argument-hint: [task]
4
+ ---
5
+
6
+ Think strategically about parallelization.
7
+ Activate `planning` skill.
8
+
9
+ ## Your mission
10
+ <task>
11
+ $ARGUMENTS
12
+ </task>
13
+
14
+ ## Workflow
15
+ 1. Create a directory using naming pattern from `## Naming` section in injected context.
16
+ Make sure you pass the directory path to every subagent during the process.
17
+ 2. Follow strictly to the "Plan Creation & Organization" rules of `planning` skill.
18
+ 3. Use multiple `researcher` agents (max 2 agents) in parallel to research for this task:
19
+ Each agent research for a different aspect of the task and are allowed to perform max 5 tool calls.
20
+ 4. Analyze the codebase by reading `codebase-summary.md`, `code-standards.md`, `system-architecture.md` and `project-overview-pdr.md` file.
21
+ **ONLY PERFORM THIS FOLLOWING STEP IF `codebase-summary.md` is not available or older than 3 days**: Use `/scout <instructions>` slash command to search the codebase for files needed to complete the task.
22
+ 5. Main agent gathers all research and scout report filepaths, and pass them to `planner` subagent with the prompt to create a parallel-optimized implementation plan.
23
+ 6. Main agent receives the implementation plan from `planner` subagent, and ask user to review the plan
24
+
25
+ ## Post-Plan Validation (Optional)
26
+
27
+ After plan creation, offer validation interview to confirm decisions before implementation.
28
+
29
+ **Check `## Plan Context` → `Validation: mode=X, questions=MIN-MAX`:**
30
+
31
+ | Mode | Behavior |
32
+ |------|----------|
33
+ | `prompt` | Ask user: "Validate this plan with a brief interview?" → Yes (Recommended) / No |
34
+ | `auto` | Automatically execute `/plan:validate {plan-path}` |
35
+ | `off` | Skip validation step entirely |
36
+
37
+ **If mode is `prompt`:** Use `AskUserQuestion` tool with options above.
38
+ **If user chooses validation or mode is `auto`:** Execute `/plan:validate {plan-path}` SlashCommand.
39
+
40
+ ## Special Requirements for Parallel Execution
41
+
42
+ **CRITICAL:** The planner subagent must create phases that:
43
+ 1. **Can be executed independently** - Each phase should be self-contained with no runtime dependencies on other phases
44
+ 2. **Have clear boundaries** - No file overlap between phases (each file should only be modified in ONE phase)
45
+ 3. **Separate concerns logically** - Group by architectural layer, feature domain, or technology stack
46
+ 4. **Minimize coupling** - Phases should communicate through well-defined interfaces only
47
+ 5. **Include dependency matrix** - Clearly document which phases must run sequentially vs in parallel
48
+
49
+ **Parallelization Strategy:**
50
+ - Group frontend/backend/database work into separate phases when possible
51
+ - Separate infrastructure setup from application logic
52
+ - Isolate different feature domains (e.g., auth vs profile vs payments)
53
+ - Split by file type/directory (e.g., components vs services vs models)
54
+ - Create independent test phases per module
55
+
56
+ **Phase Organization Example:**
57
+ ```
58
+ Phase 01: Database Schema (can run independently)
59
+ Phase 02: Backend API Layer (can run independently)
60
+ Phase 03: Frontend Components (can run independently)
61
+ Phase 04: Integration Tests (depends on 01, 02, 03)
62
+ ```
63
+
64
+ ## Output Requirements
65
+
66
+ **Plan Directory Structure** (use `Plan dir:` from `## Naming` section)
67
+ ```
68
+ {plan-dir}/
69
+ ├── research/
70
+ │ ├── researcher-XX-report.md
71
+ │ └── ...
72
+ ├── reports/
73
+ │ ├── XX-report.md
74
+ │ └── ...
75
+ ├── scout/
76
+ │ ├── scout-XX-report.md
77
+ │ └── ...
78
+ ├── plan.md
79
+ ├── phase-XX-phase-name-here.md
80
+ └── ...
81
+ ```
82
+
83
+ **Research Output Requirements**
84
+ - Ensure every research markdown report remains concise (≤150 lines) while covering all requested topics and citations.
85
+
86
+ **Plan File Specification**
87
+ - Every `plan.md` MUST start with YAML frontmatter:
88
+ ```yaml
89
+ ---
90
+ title: "{Brief title}"
91
+ description: "{One sentence for card preview}"
92
+ status: pending
93
+ priority: P2
94
+ effort: {sum of phases, e.g., 4h}
95
+ branch: {current git branch}
96
+ tags: [relevant, tags]
97
+ created: {YYYY-MM-DD}
98
+ ---
99
+ ```
100
+ - Save the overview access point at `{plan-dir}/plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status, progress, parallelization group, and links to phase files.
101
+ - For each phase, create `{plan-dir}/phase-XX-phase-name-here.md` containing the following sections in order:
102
+ - Context links (reference parent plan, dependencies, docs)
103
+ - **Parallelization Info** (which phases can run concurrently, which must wait)
104
+ - Overview (date, description, priority, implementation status, review status)
105
+ - Key Insights
106
+ - Requirements
107
+ - Architecture
108
+ - **Related code files** (MUST be exclusive to this phase - no overlap with other phases)
109
+ - **File Ownership** (explicit list of files this phase owns/modifies)
110
+ - Implementation Steps
111
+ - Todo list
112
+ - Success Criteria
113
+ - **Conflict Prevention** (how this phase avoids conflicts with parallel phases)
114
+ - Risk Assessment
115
+ - Security Considerations
116
+ - Next steps
117
+
118
+ **Main plan.md must include:**
119
+ - Dependency graph showing which phases can run in parallel
120
+ - Execution strategy (e.g., "Phases 1-3 parallel, then Phase 4")
121
+ - File ownership matrix (which phase owns which files)
122
+
123
+ ## Context Reminder (MANDATORY)
124
+
125
+ **IMPORTANT:** After plan creation, you MUST remind the user with the **full absolute path**:
126
+
127
+ > **Best Practice:** Run `/clear` before implementing to start with fresh context.
128
+ > Then run:
129
+ > ```
130
+ > /cook --parallel {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
131
+ > ```
132
+ > *(Replace with actual absolute path, e.g., `/home/user/project/plans/260203-1234-feature/plan.md`)*
133
+
134
+ **Why `--parallel`?** Parallel-optimized plan pairs with parallel execution - multiple agents work on independent phases.
135
+ **Why absolute path?** After `/clear`, the new session loses context. Worktree paths won't be discoverable without the full path.
136
+
137
+ This reminder is **NON-NEGOTIABLE** - always output it after presenting the plan with the actual absolute path.
138
+
139
+ ## Important Notes
140
+ **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
141
+ **IMPORTANT:** Ensure token efficiency while maintaining high quality.
142
+ **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
143
+ **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
144
+ **IMPORTANT:** Do not start implementing.
145
+ **IMPORTANT:** Each phase MUST have exclusive file ownership - no file can be modified by multiple phases.