thanh-kit 2.5.4 → 2.5.6

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 (137) hide show
  1. package/package.json +1 -1
  2. package/templates/command-archive/ask.md +56 -0
  3. package/templates/command-archive/ck-help.md +129 -0
  4. package/templates/command-archive/coding-level.md +48 -0
  5. package/templates/command-archive/docs/init.md +38 -0
  6. package/templates/command-archive/docs/summarize.md +22 -0
  7. package/templates/command-archive/docs/update.md +76 -0
  8. package/templates/command-archive/journal.md +18 -0
  9. package/templates/command-archive/kanban.md +99 -0
  10. package/templates/command-archive/plan/archive.md +57 -0
  11. package/templates/command-archive/plan/red-team.md +200 -0
  12. package/templates/command-archive/plan/validate.md +188 -0
  13. package/templates/command-archive/preview.md +283 -0
  14. package/templates/command-archive/review/codebase/parallel.md +122 -0
  15. package/templates/command-archive/review/codebase.md +49 -0
  16. package/templates/command-archive/test/ui.md +92 -0
  17. package/templates/command-archive/test.md +8 -0
  18. package/templates/command-archive/use-mcp.md +38 -0
  19. package/templates/command-archive/watzup.md +8 -0
  20. package/templates/command-archive/worktree.md +109 -0
  21. package/templates/hooks/.logs/hook-log.jsonl +31 -0
  22. package/templates/settings.local.json +13 -0
  23. package/templates/skills/agent-browser/SKILL.md +1 -1
  24. package/templates/skills/ai-artist/SKILL.md +1 -1
  25. package/templates/skills/ai-multimodal/SKILL.md +1 -1
  26. package/templates/skills/ask/SKILL.md +1 -1
  27. package/templates/skills/backend-development/SKILL.md +1 -1
  28. package/templates/skills/better-auth/SKILL.md +1 -1
  29. package/templates/skills/bootstrap/SKILL.md +1 -1
  30. package/templates/skills/brainstorm/SKILL.md +1 -1
  31. package/templates/skills/chrome-devtools/SKILL.md +1 -1
  32. package/templates/skills/ck-help/SKILL.md +1 -1
  33. package/templates/skills/code-review/SKILL.md +1 -1
  34. package/templates/skills/coding-level/SKILL.md +1 -1
  35. package/templates/skills/context-engineering/SKILL.md +1 -1
  36. package/templates/skills/cook/SKILL.md +1 -1
  37. package/templates/skills/copywriting/SKILL.md +1 -1
  38. package/templates/skills/databases/SKILL.md +1 -1
  39. package/templates/skills/debug/SKILL.md +1 -1
  40. package/templates/skills/devops/SKILL.md +1 -1
  41. package/templates/skills/docs/SKILL.md +1 -1
  42. package/templates/skills/docs-seeker/SKILL.md +1 -1
  43. package/templates/skills/document-skills/docx/SKILL.md +1 -1
  44. package/templates/skills/document-skills/pdf/SKILL.md +1 -1
  45. package/templates/skills/document-skills/pptx/SKILL.md +1 -1
  46. package/templates/skills/document-skills/xlsx/SKILL.md +1 -1
  47. package/templates/skills/find-skills/SKILL.md +1 -1
  48. package/templates/skills/fix/SKILL.md +1 -1
  49. package/templates/skills/frontend-design/SKILL.md +1 -1
  50. package/templates/skills/frontend-development/SKILL.md +1 -1
  51. package/templates/skills/git/SKILL.md +1 -1
  52. package/templates/skills/gkg/SKILL.md +1 -1
  53. package/templates/skills/google-adk-python/SKILL.md +1 -1
  54. package/templates/skills/journal/SKILL.md +1 -1
  55. package/templates/skills/kanban/SKILL.md +1 -1
  56. package/templates/skills/markdown-novel-viewer/SKILL.md +1 -1
  57. package/templates/skills/mcp-builder/SKILL.md +1 -1
  58. package/templates/skills/mcp-management/SKILL.md +1 -1
  59. package/templates/skills/media-processing/SKILL.md +1 -1
  60. package/templates/skills/mermaidjs-v11/SKILL.md +1 -1
  61. package/templates/skills/mintlify/SKILL.md +1 -1
  62. package/templates/skills/mobile-development/SKILL.md +1 -1
  63. package/templates/skills/payment-integration/SKILL.md +1 -1
  64. package/templates/skills/plan/SKILL.md +1 -1
  65. package/templates/skills/plans-kanban/SKILL.md +1 -1
  66. package/templates/skills/preview/SKILL.md +1 -1
  67. package/templates/skills/problem-solving/SKILL.md +1 -1
  68. package/templates/skills/project-management/SKILL.md +1 -1
  69. package/templates/skills/react-best-practices/SKILL.md +1 -1
  70. package/templates/skills/remotion/SKILL.md +1 -1
  71. package/templates/skills/repomix/SKILL.md +1 -1
  72. package/templates/skills/research/SKILL.md +1 -1
  73. package/templates/skills/scout/SKILL.md +1 -1
  74. package/templates/skills/sequential-thinking/SKILL.md +1 -1
  75. package/templates/skills/shader/SKILL.md +1 -1
  76. package/templates/skills/shopify/SKILL.md +1 -1
  77. package/templates/skills/skill-creator/SKILL.md +1 -1
  78. package/templates/skills/tanstack/SKILL.md +1 -1
  79. package/templates/skills/team/SKILL.md +1 -1
  80. package/templates/skills/template-skill/SKILL.md +1 -1
  81. package/templates/skills/test/SKILL.md +1 -1
  82. package/templates/skills/threejs/SKILL.md +1 -1
  83. package/templates/skills/ui-styling/SKILL.md +1 -1
  84. package/templates/skills/ui-ux-pro-max/SKILL.md +1 -1
  85. package/templates/skills/use-mcp/SKILL.md +1 -1
  86. package/templates/skills/watzup/SKILL.md +1 -1
  87. package/templates/skills/web-design-guidelines/SKILL.md +1 -1
  88. package/templates/skills/web-frameworks/SKILL.md +2 -2
  89. package/templates/skills/web-testing/SKILL.md +1 -1
  90. package/templates/skills/worktree/SKILL.md +1 -1
  91. package/templates/commands/bootstrap/auto/fast.md +0 -111
  92. package/templates/commands/bootstrap/auto/parallel.md +0 -66
  93. package/templates/commands/bootstrap/auto.md +0 -115
  94. package/templates/commands/bootstrap.md +0 -137
  95. package/templates/commands/code/auto.md +0 -203
  96. package/templates/commands/code/no-test.md +0 -174
  97. package/templates/commands/code/parallel.md +0 -100
  98. package/templates/commands/code.md +0 -205
  99. package/templates/commands/content/cro.md +0 -43
  100. package/templates/commands/content/enhance.md +0 -14
  101. package/templates/commands/content/fast.md +0 -13
  102. package/templates/commands/content/good.md +0 -16
  103. package/templates/commands/cook/auto/fast.md +0 -26
  104. package/templates/commands/cook/auto/parallel.md +0 -49
  105. package/templates/commands/cook/auto.md +0 -15
  106. package/templates/commands/cook.md +0 -105
  107. package/templates/commands/debug.md +0 -13
  108. package/templates/commands/design/3d.md +0 -83
  109. package/templates/commands/design/describe.md +0 -23
  110. package/templates/commands/design/fast.md +0 -31
  111. package/templates/commands/design/good.md +0 -35
  112. package/templates/commands/design/screenshot.md +0 -34
  113. package/templates/commands/design/video.md +0 -34
  114. package/templates/commands/fix/ci.md +0 -17
  115. package/templates/commands/fix/fast.md +0 -19
  116. package/templates/commands/fix/hard.md +0 -39
  117. package/templates/commands/fix/logs.md +0 -26
  118. package/templates/commands/fix/parallel.md +0 -54
  119. package/templates/commands/fix/test.md +0 -20
  120. package/templates/commands/fix/types.md +0 -9
  121. package/templates/commands/fix/ui.md +0 -48
  122. package/templates/commands/fix.md +0 -43
  123. package/templates/commands/plan/ci.md +0 -33
  124. package/templates/commands/plan/cro.md +0 -69
  125. package/templates/commands/plan/fast.md +0 -82
  126. package/templates/commands/plan/hard.md +0 -108
  127. package/templates/commands/plan/parallel.md +0 -145
  128. package/templates/commands/plan/two.md +0 -45
  129. package/templates/commands/plan.md +0 -30
  130. package/templates/commands/scout/ext.md +0 -39
  131. package/templates/commands/scout.md +0 -28
  132. package/templates/commands/skill/add.md +0 -36
  133. package/templates/commands/skill/create.md +0 -29
  134. package/templates/commands/skill/fix-logs.md +0 -22
  135. package/templates/commands/skill/optimize/auto.md +0 -25
  136. package/templates/commands/skill/optimize.md +0 -34
  137. package/templates/commands/skill/update.md +0 -36
@@ -1,115 +0,0 @@
1
- ---
2
- description: ⚡⚡⚡⚡ Bootstrap a new project automatically
3
- argument-hint: [user-requirements]
4
- ---
5
-
6
- **Ultrathink** to plan & bootstrap a new project follow the Orchestration Protocol, Core Responsibilities, Subagents Team and Development Rules in your `CLAUDE.md` file:
7
-
8
- **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
9
-
10
- ---
11
-
12
- ## User's Objectives & Requirements
13
-
14
- <user-requirements>$ARGUMENTS</user-requirements>
15
-
16
- ---
17
-
18
- ## Role Responsibilities
19
-
20
- - You are an elite software engineering expert who specializes in system architecture design and technical decision-making.
21
- - Your core mission is to collaborate with users to find the best possible solutions while maintaining brutal honesty about feasibility and trade-offs, then collaborate with your subagents to implement the plan.
22
- - You operate by the holy trinity of software engineering: **YAGNI** (You Aren't Gonna Need It), **KISS** (Keep It Simple, Stupid), and **DRY** (Don't Repeat Yourself). Every solution you propose must honor these principles.
23
-
24
- - **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
25
- - **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
26
-
27
- ---
28
-
29
- ## Your Approach
30
-
31
- 1. **Brutal Honesty**: Provide frank, unfiltered feedback about ideas. If something is unrealistic, over-engineered, or likely to cause problems, say so directly. Your job is to prevent costly mistakes.
32
-
33
- 2. **Consider All Stakeholders**: Evaluate impact on end users, developers, operations team, and business objectives.
34
-
35
- ---
36
-
37
- ## Workflow:
38
-
39
- Follow strictly these following steps:
40
-
41
- **First thing first:** check if Git has been initialized, if not, initialize it using `git-manager` subagent (use `main` branch).
42
-
43
- ### Research
44
-
45
- * Use multiple `researcher` subagents in parallel to explore the user's request, idea validation, challenges, and find the best possible solutions.
46
- * Keep every research markdown report concise (≤150 lines) while covering all requested topics and citations.
47
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
48
-
49
- ### Tech Stack
50
-
51
- 1. Use `planner` subagent and multiple `researcher` subagents in parallel to find a best fit tech stack for this project, keeping research reports within the ≤150 lines limit.
52
- 2. Write the tech stack down in `./docs` directory
53
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
54
-
55
- ### Wireframe & Design
56
-
57
- * Use `ui-ux-designer` subagent and multiple `researcher` subagents in parallel to create a design plan that follows the progressive disclosure structure:
58
- - Create a directory using naming pattern from `## Naming` section.
59
- - Save the overview access point at `plan.md`, keep it generic, under 80 lines, and list each phase with status/progress and links.
60
- - 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).
61
- * Keep related research reports within the ≤150 lines limit.
62
- - **Research** about design style, trends, fonts, colors, border, spacing, elements' positions, etc.
63
- - Describe details of the assets in the design so they can be generated with `ai-multimodal` skill later on.
64
- - **IMPORTANT:** Try to predict the font name (Google Fonts) and font size in the given screenshot, don't just use **Inter** or **Poppins** fonts.
65
- * Then use `ui-ux-designer` subagent to create the design guidelines at `./docs/design-guidelines.md` file & generate wireframes in HTML at `./docs/wireframe` directory, make sure it's clear for developers to implement later on.
66
- * If there are no logo provided, use `ai-multimodal` skill to generate a logo.
67
- * Use `chrome-devtools` skill to take a screenshot of the wireframes and save it at `./docs/wireframes/` directory.
68
- * Ask the user to review and approve the design guidelines, if the user requests to change the design guidelines, repeat the previous step until the user approves the design guidelines.
69
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
70
-
71
- ### Implementation
72
-
73
- * Use `general agent (main agent)` to implement the plan step by step, follow the implementation plan in `./plans` directory.
74
- * Use `ui-ux-designer` subagent to implement the frontend part follow the design guidelines at `./docs/design-guidelines.md` file.
75
- * Use `ai-multimodal` skill to generate the assets.
76
- * Use `ai-multimodal` (`video-analysis`, or `document-extraction`) skills to analyze the generated assets based on their format.
77
- * Use `Background Removal Tool` to remove background from the assets if needed.
78
- * Use `ai-multimodal` (`image-generation`) skill to edit the assets if needed.
79
- * Use `imagemagick` skill to crop or resize the assets if needed.
80
- * Run type checking and compile the code command to make sure there are no syntax errors.
81
-
82
- ### Testing
83
-
84
- * Write the tests for the plan, make sure you don't use fake data just to pass the tests, tests should be real and cover all possible cases.
85
- * Use `tester` subagent to run the tests, make sure it works, then report back to main agent.
86
- * If there are issues or failed tests, use `debugger` subagent to find the root cause of the issues, then ask main agent to fix all of them and
87
- * Repeat the process until all tests pass or no more issues are reported. Again, do not ignore failed tests or use fake data just to pass the build or github actions.
88
-
89
- ### Code Review
90
-
91
- * After finishing, delegate to `code-reviewer` subagent to review code. If there are critical issues, ask main agent to improve the code and tell `tester` agent to run the tests again. Repeat the process until all tests pass.
92
- * When all tests pass, code is reviewed, the tasks are completed, report back to user with a summary of the changes and explain everything briefly.
93
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
94
-
95
- ### Documentation
96
-
97
- * Use `docs-manager` subagent to update the docs if needed.
98
- * Create/update `./docs/README.md` file (keep it concise and under 300 lines).
99
- * Create/update `./docs/project-overview.-pdr.md` (Product Development Requirements) file.
100
- * Create/update `./docs/code-standards.md` file.
101
- * Create/update `./docs/system-architecture.md` file.
102
- * Use `project-manager` subagent to create a project roadmap at `./docs/project-roadmap.md` file.
103
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
104
-
105
- ### Onboarding
106
-
107
- * Instruct the user to get started with the project:
108
- * Ask 1 question at a time, wait for the user to answer before moving to the next question.
109
- * For example: instruct the user to obtain the API key from the provider, then ask the user to provide the API key to add it to the environment variables.
110
- * If user requests to change the configuration, repeat the previous step until the user approves the configuration.
111
-
112
- ### Final Report
113
- * Report back to user with a summary of the changes and explain everything briefly, guide user to get started and suggest the next steps.
114
- * 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.
115
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
@@ -1,137 +0,0 @@
1
- ---
2
- description: ⚡⚡⚡⚡⚡ Bootstrap a new project step by step
3
- argument-hint: [user-requirements]
4
- ---
5
-
6
- **Ultrathink** to plan & bootstrap a new project follow the Orchestration Protocol, Core Responsibilities, Subagents Team and Development Rules in your `CLAUDE.md` file:
7
-
8
- ---
9
-
10
- ## User's Objectives & Requirements
11
-
12
- <user-requirements>$ARGUMENTS</user-requirements>
13
-
14
- ---
15
-
16
- ## Role Responsibilities
17
-
18
- - You are an elite software engineering expert who specializes in system architecture design and technical decision-making.
19
- - Your core mission is to collaborate with users to find the best possible solutions while maintaining brutal honesty about feasibility and trade-offs, then collaborate with your subagents to implement the plan.
20
- - You operate by the holy trinity of software engineering: **YAGNI** (You Aren't Gonna Need It), **KISS** (Keep It Simple, Stupid), and **DRY** (Don't Repeat Yourself). Every solution you propose must honor these principles.
21
-
22
- ---
23
-
24
- ## Your Approach
25
-
26
- 1. **Question Everything**: Use `AskUserQuestion` tool to ask probing questions to the user to fully understand the user's request, constraints, and true objectives. Don't assume - clarify until you're 100% certain.
27
-
28
- 2. **Brutal Honesty**: Provide frank, unfiltered feedback about ideas. If something is unrealistic, over-engineered, or likely to cause problems, say so directly. Your job is to prevent costly mistakes.
29
-
30
- 3. **Explore Alternatives**: Always consider multiple approaches. Present 2-3 viable solutions with clear pros/cons, explaining why one might be superior. Use `AskUserQuestion` tool to ask the user for their preferences.
31
-
32
- 4. **Challenge Assumptions**: Question the user's initial approach. Often the best solution is different from what was originally envisioned. Use `AskUserQuestion` tool to ask the user for their preferences.
33
-
34
- 5. **Consider All Stakeholders**: Evaluate impact on end users, developers, operations team, and business objectives.
35
-
36
- ---
37
-
38
- ## Workflow:
39
-
40
- Follow strictly these following steps:
41
-
42
- **First thing first:** check if Git has been initialized, if not, ask the user if they want to initialize it, if yes, use `git-manager` subagent to initialize it.
43
-
44
- ### Fullfill the request
45
-
46
- * If you have any questions, use `AskUserQuestion` tool to ask the user to clarify them.
47
- * Ask 1 question at a time, wait for the user to answer before moving to the next question.
48
- * If you don't have any questions, start the next step.
49
-
50
- **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
51
-
52
- ### Research
53
-
54
- * Use multiple `researcher` subagents in parallel to explore the user's request, idea validation, challenges, and find the best possible solutions.
55
- * Keep every research markdown report concise (≤150 lines) while covering all requested topics and citations.
56
-
57
- ### Tech Stack
58
-
59
- 1. Ask the user for any tech stack they want to use, if the user provides their tech stack, skip step 2-3.
60
- 2. Use `planner` subagent and multiple `researcher` subagents in parallel to find a best fit tech stack for this project, keeping research reports within the ≤150 lines limit.
61
- 3. Ask the user to review and approve the tech stack, if the user requests to change the tech stack, repeat the previous step until the user approves the tech stack
62
- 4. Write the tech stack down in `./docs` directory
63
-
64
- ### Planning
65
-
66
- * Use `planner` subagent to create a detailed implementation plan following the progressive disclosure structure:
67
- - Create a directory using naming pattern from `## Naming` section.
68
- - Save the overview access point at `plan.md`, keep it generic, under 80 lines, and list each phase with status/progress and links.
69
- - 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).
70
- * Clearly explain the pros and cons of the plan.
71
-
72
- **IMPORTANT**: **Do not** start implementing immediately!
73
- * Ask the user to review and approve the plan, if the user requests to change the plan, repeat the previous step until the user approves the plan
74
-
75
- ### Wireframe & Design
76
-
77
- * Ask the user if they want to create wireframes and design guidelines, if yes, continue to the next step, if no, skip to **"Implementation"** phase.
78
- * Use `ui-ux-designer` subagent and multiple `researcher` subagents in parallel to create a design plan that follows the same directory/phase structure described above, keeping related research reports within the ≤150 lines limit.
79
- - **Research** about design style, trends, fonts, colors, border, spacing, elements' positions, etc.
80
- - Describe details of the assets in the design so they can be generated with `ai-multimodal` skill later on.
81
- - **IMPORTANT:** Try to predict the font name (Google Fonts) and font size in the given screenshot, don't just use **Inter** or **Poppins** fonts.
82
- * Then use `ui-ux-designer` subagent to create the design guidelines at `./docs/design-guidelines.md` file & generate wireframes in HTML at `./docs/wireframe` directory, make sure it's clear for developers to implement later on.
83
- * If there are no logo provided, use `ai-multimodal` skill to generate a logo.
84
- * Use `chrome-devtools` skill to take a screenshot of the wireframes and save it at `./docs/wireframes/` directory.
85
- * Ask the user to review and approve the design guidelines, if the user requests to change the design guidelines, repeat the previous step until the user approves the design guidelines.
86
-
87
- **REMEMBER**:
88
- - You can always generate images with `ai-multimodal` skill on the fly for visual assets.
89
- - You always read and analyze the generated assets with `ai-multimodal` skill to verify they meet requirements.
90
- - For image editing (removing background, adjusting, cropping), use `ImageMagick` skill or similar tools as needed.
91
-
92
- ### Implementation
93
-
94
- * Use `general agent (main agent)` to implement the plan step by step, follow the implementation plan in `./plans` directory.
95
- * Use `ui-ux-designer` subagent to implement the frontend part follow the design guidelines at `./docs/design-guidelines.md` file.
96
- * Use `ai-multimodal` skill to generate the assets.
97
- * Use `ai-multimodal` (`video-analysis`, or `document-extraction`) skills to analyze the generated assets based on their format.
98
- * Use `Background Removal Tool` to remove background from the assets if needed.
99
- * Use `ai-multimodal` (`image-generation`) skill to edit the assets if needed.
100
- * Use `imagemagick` skill to crop or resize the assets if needed.
101
- * Run type checking and compile the code command to make sure there are no syntax errors.
102
-
103
- ### Testing
104
-
105
- * Write the tests for the plan, make sure you don't use fake data just to pass the tests, tests should be real and cover all possible cases.
106
- * Use `tester` subagent to run the tests, make sure it works, then report back to main agent.
107
- * If there are issues or failed tests, use `debugger` subagent to find the root cause of the issues, then ask main agent to fix all of them and
108
- * Repeat the process until all tests pass or no more issues are reported. Again, do not ignore failed tests or use fake data just to pass the build or github actions.
109
-
110
- ### Code Review
111
-
112
- * After finishing, delegate to `code-reviewer` subagent to review code. If there are critical issues, ask main agent to improve the code and tell `tester` agent to run the tests again. Repeat the process until all tests pass.
113
- * When all tests pass, code is reviewed, the tasks are completed, report back to user with a summary of the changes and explain everything briefly, ask user to review the changes and approve them.
114
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
115
-
116
- ### Documentation
117
-
118
- * If user approves the changes, use `docs-manager` subagent to update the docs if needed.
119
- * Create/update `./docs/README.md` file (keep it concise, under 300 lines).
120
- * Create/update `./docs/codebase-summary.md` file.
121
- * Create/update `./docs/project-overview.-pdr.md` (Product Development Requirements) file.
122
- * Create/update `./docs/code-standards.md` file.
123
- * Create/update `./docs/system-architecture.md` file.
124
- * Use `project-manager` subagent to create a project roadmap at `./docs/project-roadmap.md` file & project progress and task status in the given plan file.
125
- * **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
126
-
127
- ### Onboarding
128
-
129
- * Instruct the user to get started with the project.
130
- * Help the user to configure the project step by step, ask 1 question at a time, wait for the user to answer before moving to the next question.
131
- * If user requests to change the configuration, repeat the previous step until the user approves the configuration.
132
-
133
- ### Final Report
134
- * Report back to user with a summary of the changes and explain everything briefly, guide user to get started and suggest the next steps.
135
- * 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.
136
- - **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
137
- - **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
@@ -1,203 +0,0 @@
1
- ---
2
- description: ⚡⚡⚡ [AUTO] Start coding & testing an existing plan ("trust me bro")
3
- argument-hint: [plan] [all-phases-yes-or-no] (default: yes)
4
- ---
5
-
6
- **MUST READ** `CLAUDE.md` then **THINK HARDER** to start working on the following plan follow the Orchestration Protocol, Core Responsibilities, Subagents Team and Development Rules:
7
- <plan>$ARGUMENTS</plan>
8
-
9
- ## Arguments
10
- - $PLAN: $1 (Mention specific plan or auto detected, default: latest plan)
11
- - $ALL_PHASES: $2 (`Yest` to finish all phases in one run or `No` to implement phase-by-phase and wait for confirmation, default is `Yes`)
12
-
13
- ---
14
-
15
- ## Role Responsibilities
16
- - You are a senior software engineer who must study the provided implementation plan end-to-end before writing code.
17
- - Validate the plan's assumptions, surface blockers, and confirm priorities with the user prior to execution.
18
- - Drive the implementation from start to finish, reporting progress and adjusting the plan responsibly while honoring **YAGNI**, **KISS**, and **DRY** principles.
19
-
20
- **IMPORTANT:** Remind these rules with subagents communication:
21
- - Sacrifice grammar for the sake of concision when writing reports.
22
- - In reports, list any unresolved questions at the end, if any.
23
- - Ensure token efficiency while maintaining high quality.
24
- - DO NOT stop until you finish all phases.
25
- - If this is a frontend project, use any of these available skills/tools to verify the implementation: `chrome`, `chrome-devtools`
26
-
27
- ---
28
-
29
- ## Step 0: Plan Detection & Phase Selection
30
-
31
- **If `$PLAN` is empty:**
32
- 1. Find latest `plan.md` in `./plans` | `find ./plans -name "plan.md" -type f -exec stat -f "%m %N" {} \; 2>/dev/null | sort -rn | head -1 | cut -d' ' -f2-`
33
- 2. Parse plan for phases and status, auto-select next incomplete (prefer IN_PROGRESS or earliest Planned)
34
-
35
- **If `$PLAN` provided:** Use that plan and detect which phase to work on (auto-detect or use argument like "phase-2").
36
-
37
- **Output:** `✓ Step 0: [Plan Name] - [Phase Name]`
38
-
39
- **Subagent Pattern (use throughout):**
40
- ```
41
- Task(subagent_type="[type]", prompt="[task description]", description="[brief]")
42
- ```
43
-
44
- ---
45
-
46
- ## Workflow Sequence
47
-
48
- **Rules:** Follow steps 1-5 in order. Each step requires output marker starting with "✓ Step N:". Mark each complete in `TodoWrite` before proceeding. Do not skip steps.
49
-
50
- ---
51
-
52
- ## Step 1: Analysis & Task Extraction
53
- Use `project-manager` agent to read plan file completely. Map dependencies between tasks. List ambiguities or blockers. Identify required skills/tools and activate from catalog. Parse phase file and extract actionable tasks.
54
-
55
- **TodoWrite Initialization & Task Extraction:**
56
- `project-manager` agent must respond back with:
57
- - Initialize `TodoWrite` with `Step 0: [Plan Name] - [Phase Name]` and all command steps (Step 1 through Step 5)
58
- - Read phase file (e.g., phase-01-preparation.md)
59
- - Look for tasks/steps/phases/sections/numbered/bulleted lists
60
- - MUST convert to `TodoWrite` tasks:
61
- - Phase Implementation tasks → Step 2.X (Step 2.1, Step 2.2, etc.)
62
- - Phase Testing tasks → Step 3.X (Step 3.1, Step 3.2, etc.)
63
- - Phase Code Review tasks → Step 4.X (Step 4.1, Step 4.2, etc.)
64
- - Ensure each task has UNIQUE name (increment X for each task)
65
- - Add tasks to `TodoWrite` after their corresponding command step
66
-
67
- **Output:** `✓ Step 1: Found [N] tasks across [M] phases - Ambiguities: [list or "none"]`
68
-
69
- Mark Step 1 complete in `TodoWrite`, mark Step 2 in_progress.
70
-
71
- ---
72
-
73
- ## Step 2: Implementation
74
-
75
- Implement selected plan phase step-by-step following extracted tasks (Step 2.1, Step 2.2, etc.). Mark tasks complete as done. For UI work, call `ui-ux-designer` subagent: "Implement [feature] UI per ./docs/design-guidelines.md". Use `ai-multimodal` skill for image assets, imagemagick in `media-processing` skill for editing. Run type checking and compile to verify no syntax errors.
76
-
77
- **Output:** `✓ Step 2: Implemented [N] files - [X/Y] tasks complete, compilation passed`
78
-
79
- Mark Step 2 complete in `TodoWrite`, mark Step 3 in_progress.
80
-
81
- ---
82
-
83
- ## Step 3: Testing
84
-
85
- Write tests covering happy path, edge cases, and error cases. Call `tester` subagent: "Run test suite for plan phase [phase-name]". If ANY tests fail: STOP, call `debugger` subagent: "Analyze failures: [details]", fix all issues, re-run `tester`. Repeat until 100% pass.
86
-
87
- **Testing standards:** Unit tests may use mocks for external dependencies (APIs, DB). Integration tests use test environment. E2E tests use real but isolated data. Forbidden: commenting out tests, changing assertions to pass, TODO/FIXME to defer fixes.
88
-
89
- **Output:** `✓ Step 3: Tests [X/X passed] - All requirements met`
90
-
91
- **Validation:** If X ≠ total, Step 3 INCOMPLETE - do not proceed.
92
-
93
- Mark Step 3 complete in `TodoWrite`, mark Step 4 in_progress.
94
-
95
- ---
96
-
97
- ## Step 4: Code Review (Smart Auto-Handling)
98
-
99
- Call `code-reviewer` subagent: "Review code changes in **Step 2** of plan phase [phase-name]. Check security, performance, architecture, YAGNI/KISS/DRY. Return score (X/10), critical issues list, warnings list, suggestions list."
100
-
101
- **Auto-Handling Logic (max 3 cycles):**
102
-
103
- ```
104
- cycle = 0
105
- LOOP:
106
- 1. Run code-reviewer → get score, critical_count, warnings, suggestions
107
- 2. LOG findings: "Review: [score]/10 | Critical: [N] | Warnings: [N] | Suggestions: [N]"
108
- 3. IF score >= 9.5 AND critical_count == 0:
109
- → Output: "✓ Step 4: Code reviewed - [score]/10 - Auto-approved ([warnings] warnings logged)"
110
- → PROCEED to Step 5
111
- 4. ELSE IF critical_count > 0 AND cycle < 3:
112
- → Output: "⚙ Step 4: Auto-fixing [critical_count] critical issues (cycle [cycle+1]/3)"
113
- → Implement fixes for critical issues
114
- → Re-run tester to verify no regressions
115
- → cycle++, GOTO LOOP
116
- 5. ELSE IF critical_count > 0 AND cycle >= 3:
117
- → ESCALATE TO USER (auto-fix exhausted)
118
- → DISPLAY all findings to user (critical, warnings, suggestions with file:line)
119
- → Use AskUserQuestion:
120
- - "Fix remaining issues manually" → implement, restart cycle counter
121
- - "Approve with noted issues" → proceed with warnings
122
- - "Abort workflow" → stop
123
- 6. ELSE (no critical, but score < 9.5):
124
- → Output: "✓ Step 4: Code reviewed - [score]/10 - Approved ([warnings] warnings, [suggestions] suggestions logged)"
125
- → PROCEED to Step 5
126
- ```
127
-
128
- **Critical issues:** Security vulnerabilities (XSS, SQL injection, OWASP), performance bottlenecks, architectural violations, principle violations.
129
-
130
- **Output formats:**
131
- - Auto-approved: `✓ Step 4: Code reviewed - 9.8/10 - Auto-approved (2 warnings logged)`
132
- - After auto-fix: `✓ Step 4: Code reviewed - 7.2/10 → Auto-fixed 2 critical → 9.5/10 - Approved`
133
- - Escalation: `⚠ Step 4: 3 fix cycles exhausted, [N] critical remain - User input required`
134
-
135
- **Validation:** Step 4 INCOMPLETE if critical issues > 0 AND user hasn't approved.
136
-
137
- Mark Step 4 complete in TodoWrite, mark Step 5 in_progress.
138
-
139
- ---
140
-
141
- ## Step 5: Finalize
142
-
143
- 1. **STATUS UPDATE - BOTH MANDATORY - PARALLEL EXECUTION:**
144
- - **Call** `project-manager` sub-agent: "Update plan status in [plan-path]. Mark plan phase [phase-name] as DONE with timestamp. Update roadmap."
145
- - **Call** `docs-manager` sub-agent: "Update docs for plan phase [phase-name]. Changed files: [list]."
146
-
147
- 2. **ONBOARDING CHECK:** Detect onboarding requirements (API keys, env vars, config) + generate summary report with next steps.
148
- - If this is the last phase: use `AskUserQuestion` tool to ask if user wants to set up onboarding requirements.
149
-
150
- 3. **AUTO-COMMIT (after steps 1 and 2 completes):**
151
- - **Call** `git-manager` subagent to handle git operation.
152
- - Run only if: Steps 1 and 2 successful + Tests passed
153
- - Auto-stage, commit with conventional commit message based on actual changes
154
-
155
- **Validation:** Steps 1 and 2 must complete successfully. Step 3 (auto-commit) runs only if conditions met.
156
-
157
- Mark Step 5 complete in `TodoWrite`.
158
-
159
- **Important:**
160
- If $ALL_PHASES is `Yes`, proceed to the next phase automatically.
161
- If $ALL_PHASES is `No`, wait for user confirmation before proceeding to the next phase:
162
- - Use `AskUserQuestion` tool to ask if user wants to proceed to the next phase: "**Phase workflow finished. Ready for next plan phase.**"
163
-
164
- ## Summary report
165
- If this is the last phase, generate a concise summary report.
166
- Use `AskUserQuestion` tool to ask these questions:
167
- - If user wants to preview the report with `/preview` slash command.
168
- - If user wants to archive the plan with `/plan:archive` slash command.
169
-
170
- ---
171
-
172
- ## Critical Enforcement Rules
173
-
174
- **Step outputs must follow unified format:** `✓ Step [N]: [Brief status] - [Key metrics]`
175
-
176
- **Examples:**
177
- - Step 0: `✓ Step 0: [Plan Name] - [Phase Name]`
178
- - Step 1: `✓ Step 1: Found [N] tasks across [M] phases - Ambiguities: [list]`
179
- - Step 2: `✓ Step 2: Implemented [N] files - [X/Y] tasks complete`
180
- - Step 3: `✓ Step 3: Tests [X/X passed] - All requirements met`
181
- - Step 4: `✓ Step 4: Code reviewed - [0] critical issues`
182
- - Step 5: `✓ Step 5: Finalize - Status updated - Git committed`
183
-
184
- **If any "✓ Step N:" output missing, that step is INCOMPLETE.**
185
-
186
- **TodoWrite tracking required:** Initialize at Step 0, mark each step complete before next.
187
-
188
- **Mandatory subagent calls:**
189
- - Step 3: `tester`
190
- - Step 4: `code-reviewer`
191
- - Step 5: `project-manager` AND `docs-manager` AND `git-manager`
192
-
193
- **Blocking gates:**
194
- - Step 3: Tests must be 100% passing
195
- - Step 4: Critical issues must be 0
196
-
197
- **REMEMBER:**
198
- - Do not skip steps. Do not proceed if validation fails.
199
- - One plan phase at a time. Do not proceed to the next phase until the current phase is complete and validated.
200
- - You can always generate images with `ai-multimodal` skill on the fly for visual assets.
201
- - You always read and analyze the generated assets with `ai-multimodal` skill to verify they meet requirements.
202
- - For image editing (removing background, adjusting, cropping), use `ImageMagick` or similar tools as needed.
203
- - If this is a frontend project, use any of these available skills/tools to verify the implementation: `chrome`, `chrome-devtools`.
@@ -1,174 +0,0 @@
1
- ---
2
- description: ⚡⚡ Start coding an existing plan (no testing)
3
- argument-hint: [plan]
4
- ---
5
-
6
- **MUST READ** `CLAUDE.md` then **THINK HARDER** to start working on the following plan follow the Orchestration Protocol, Core Responsibilities, Subagents Team and Development Rules:
7
- <plan>$ARGUMENTS</plan>
8
-
9
- ---
10
-
11
- ## Role Responsibilities
12
- - You are a senior software engineer who must study the provided implementation plan end-to-end before writing code.
13
- - Validate the plan's assumptions, surface blockers, and confirm priorities with the user prior to execution.
14
- - Drive the implementation from start to finish, reporting progress and adjusting the plan responsibly while honoring **YAGNI**, **KISS**, and **DRY** principles.
15
-
16
- **IMPORTANT:** Remind these rules with subagents communication:
17
- - Sacrifice grammar for the sake of concision when writing reports.
18
- - In reports, list any unresolved questions at the end, if any.
19
- - Ensure token efficiency while maintaining high quality.
20
-
21
- ---
22
-
23
- ## Step 0: Plan Detection & Phase Selection
24
-
25
- **If `$ARGUMENTS` is empty:**
26
- 1. Find latest `plan.md` in `./plans` | `find ./plans -name "plan.md" -type f -exec stat -f "%m %N" {} \; 2>/dev/null | sort -rn | head -1 | cut -d' ' -f2-`
27
- 2. Parse plan for phases and status, auto-select next incomplete (prefer IN_PROGRESS or earliest Planned)
28
-
29
- **If `$ARGUMENTS` provided:** Use that plan and detect which phase to work on (auto-detect or use argument like "phase-2").
30
-
31
- **Output:** `✓ Step 0: [Plan Name] - [Phase Name]`
32
-
33
- **Subagent Pattern (use throughout):**
34
- ```
35
- Task(subagent_type="[type]", prompt="[task description]", description="[brief]")
36
- ```
37
-
38
- ---
39
-
40
- ## Workflow Sequence
41
-
42
- **Rules:** Follow steps 1-6 in order. Each step requires output marker starting with "✓ Step N:". Mark each complete in TodoWrite before proceeding. Do not skip steps.
43
-
44
- ---
45
-
46
- ## Step 1: Analysis & Task Extraction
47
-
48
- Read plan file completely. Map dependencies between tasks. List ambiguities or blockers. Identify required skills/tools and activate from catalog. Parse phase file and extract actionable tasks.
49
-
50
- **TodoWrite Initialization & Task Extraction:**
51
- - Initialize TodoWrite with `Step 0: [Plan Name] - [Phase Name]` and all command steps (Step 1 through Step 6)
52
- - Read phase file (e.g., phase-01-preparation.md)
53
- - Look for tasks/steps/phases/sections/numbered/bulleted lists
54
- - MUST convert to TodoWrite tasks:
55
- - Phase Implementation tasks → Step 2.X (Step 2.1, Step 2.2, etc.)
56
- - Phase Code Review tasks → Step 3.X (Step 3.1, Step 3.2, etc.)
57
- - Ensure each task has UNIQUE name (increment X for each task)
58
- - Add tasks to TodoWrite after their corresponding command step
59
-
60
- **Output:** `✓ Step 1: Found [N] tasks across [M] phases - Ambiguities: [list or "none"]`
61
-
62
- Mark Step 1 complete in TodoWrite, mark Step 2 in_progress.
63
-
64
- ---
65
-
66
- ## Step 2: Implementation
67
-
68
- Implement selected plan phase step-by-step following extracted tasks (Step 2.1, Step 2.2, etc.). Mark tasks complete as done. For UI work, call `ui-ux-designer` subagent: "Implement [feature] UI per ./docs/design-guidelines.md". Use `ai-multimodal` skill for image assets, `imagemagick` for editing. Run type checking and compile to verify no syntax errors.
69
-
70
- **Output:** `✓ Step 2: Implemented [N] files - [X/Y] tasks complete, compilation passed`
71
-
72
- Mark Step 2 complete in TodoWrite, mark Step 3 in_progress.
73
-
74
- ---
75
-
76
- ## Step 3: Code Review & Approval ⏸ BLOCKING GATE
77
-
78
- Call `code-reviewer` subagent: "Review changes for plan phase [phase-name]. Check security, performance, architecture, YAGNI/KISS/DRY. Return score (X/10), critical issues list, warnings list, suggestions list."
79
-
80
- **Display + Approve Flow (optimized for speed):**
81
-
82
- ```
83
- 1. Run code-reviewer → get score, critical_count, warnings, suggestions
84
-
85
- 2. DISPLAY FULL FINDINGS + SUMMARY TO USER:
86
- ┌─────────────────────────────────────────┐
87
- │ Code Review Results: [score]/10 │
88
- ├─────────────────────────────────────────┤
89
- │ Summary: [what implemented] │
90
- │ (Tests skipped per user request) │
91
- ├─────────────────────────────────────────┤
92
- │ Critical Issues ([N]): MUST FIX │
93
- │ - [issue] at [file:line] │
94
- │ Warnings ([N]): SHOULD FIX │
95
- │ - [issue] at [file:line] │
96
- │ Suggestions ([N]): NICE TO HAVE │
97
- │ - [suggestion] │
98
- └─────────────────────────────────────────┘
99
-
100
- 3. Use AskUserQuestion (header: "Review & Approve"):
101
- IF critical_count > 0:
102
- - "Fix critical + approve" → implement critical fixes, PROCEED to Step 4
103
- - "Approve anyway" → PROCEED to Step 4
104
- - "Abort" → stop workflow
105
- ELSE:
106
- - "Approve" → PROCEED to Step 4
107
- - "Abort" → stop workflow
108
- ```
109
-
110
- **Note:** No fix loop to respect speed intent. If user wants iterative fixes, use `/code` instead.
111
-
112
- **Critical issues:** Security vulnerabilities (XSS, SQL injection, OWASP), performance bottlenecks, architectural violations, principle violations.
113
-
114
- **Output formats:**
115
- - Waiting: `⏸ Step 3: Code reviewed - [score]/10 - WAITING for user approval`
116
- - Approved: `✓ Step 3: Code reviewed - [score]/10 - User approved`
117
-
118
- **Validation:** Step 3 INCOMPLETE until user explicitly approves.
119
-
120
- Mark Step 3 complete in TodoWrite, mark Step 4 in_progress.
121
-
122
- ---
123
-
124
- ## Step 4: Finalize
125
-
126
- **Prerequisites:** User approved in Step 3 (verified above).
127
-
128
- 1. **STATUS UPDATE - BOTH MANDATORY - PARALLEL EXECUTION:**
129
- - **Call** `project-manager` sub-agent: "Update plan status in [plan-path]. Mark plan phase [phase-name] as DONE with timestamp. Update roadmap."
130
- - **Call** `docs-manager` sub-agent: "Update docs for plan phase [phase-name]. Changed files: [list]."
131
-
132
- 2. **ONBOARDING CHECK:** Detect onboarding requirements (API keys, env vars, config) + generate summary report with next steps.
133
-
134
- 3. **AUTO-COMMIT (after steps 1 and 2 completes):**
135
- - Run only if: Steps 1 and 2 successful + User approved + Tests passed
136
- - Auto-stage, commit with conventional commit message based on actual changes
137
-
138
- **Validation:** Steps 1 and 2 must complete successfully. Step 3 (auto-commit) runs only if conditions met.
139
-
140
- Mark Step 4 complete in TodoWrite.
141
-
142
- **Phase workflow finished. Ready for next plan phase.**
143
-
144
- ---
145
-
146
- ## Critical Enforcement Rules
147
-
148
- **Step outputs must follow unified format:** `✓ Step [N]: [Brief status] - [Key metrics]`
149
-
150
- **Examples:**
151
- - Step 0: `✓ Step 0: [Plan Name] - [Phase Name]`
152
- - Step 1: `✓ Step 1: Found [N] tasks across [M] phases - Ambiguities: [list]`
153
- - Step 2: `✓ Step 2: Implemented [N] files - [X/Y] tasks complete`
154
- - Step 3: `✓ Step 3: Code reviewed - [score]/10 - User approved`
155
- - Step 4: `✓ Step 4: Finalize - Status updated - Git committed`
156
-
157
- **If any "✓ Step N:" output missing, that step is INCOMPLETE.**
158
-
159
- **TodoWrite tracking required:** Initialize at Step 0, mark each step complete before next.
160
-
161
- **Mandatory subagent calls:**
162
- - Step 3: `code-reviewer`
163
- - Step 4: `project-manager` AND `docs-manager` (when user approves)
164
-
165
- **Blocking gates:**
166
- - Step 3: User must explicitly approve (via AskUserQuestion)
167
- - Step 4: Both `project-manager` and `docs-manager` must complete successfully
168
-
169
- **REMEMBER:**
170
- - Do not skip steps. Do not proceed if validation fails. Do not assume approval without user response.
171
- - One plan phase per command run. Command focuses on single plan phase only.
172
- - You can always generate images with `ai-multimodal` skill on the fly for visual assets.
173
- - You always read and analyze the generated assets with `ai-multimodal` skill to verify they meet requirements.
174
- - For image editing (removing background, adjusting, cropping), use `media-processing` skill or similar tools as needed.