thanh-kit 2.5.1 → 2.5.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.
Files changed (123) hide show
  1. package/dist/index.js +50 -61
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/templates/{commands → command-archive}/ask.md +5 -5
  5. package/templates/{commands → command-archive}/ck-help.md +18 -2
  6. package/templates/command-archive/docs/init.md +38 -0
  7. package/templates/command-archive/docs/summarize.md +22 -0
  8. package/templates/command-archive/docs/update.md +76 -0
  9. package/templates/command-archive/journal.md +18 -0
  10. package/templates/{commands → command-archive}/kanban.md +5 -7
  11. package/templates/{commands → command-archive}/plan/archive.md +2 -2
  12. package/templates/command-archive/plan/red-team.md +200 -0
  13. package/templates/command-archive/plan/validate.md +188 -0
  14. package/templates/command-archive/preview.md +283 -0
  15. package/templates/command-archive/review/codebase/parallel.md +122 -0
  16. package/templates/{commands → command-archive}/test/ui.md +3 -3
  17. package/templates/{commands → command-archive}/use-mcp.md +6 -2
  18. package/templates/command-archive/worktree.md +109 -0
  19. package/templates/{workflows → rules}/development-rules.md +12 -53
  20. package/templates/rules/orchestration-protocol.md +43 -0
  21. package/templates/{workflows → rules}/primary-workflow.md +16 -4
  22. package/templates/rules/team-coordination-rules.md +90 -0
  23. package/templates/schemas/ck-config.schema.json +381 -0
  24. package/templates/commands/README.md +0 -251
  25. package/templates/commands/bootstrap/auto/fast.md +0 -111
  26. package/templates/commands/bootstrap/auto/parallel.md +0 -66
  27. package/templates/commands/bootstrap/auto.md +0 -115
  28. package/templates/commands/bootstrap.md +0 -137
  29. package/templates/commands/brainstorm.md +0 -74
  30. package/templates/commands/build.md +0 -39
  31. package/templates/commands/checkpoint.md +0 -156
  32. package/templates/commands/code/auto.md +0 -170
  33. package/templates/commands/code/no-test.md +0 -158
  34. package/templates/commands/code/parallel.md +0 -55
  35. package/templates/commands/code-simplifier.md +0 -71
  36. package/templates/commands/code.md +0 -176
  37. package/templates/commands/compact.md +0 -57
  38. package/templates/commands/content/cro.md +0 -43
  39. package/templates/commands/content/enhance.md +0 -14
  40. package/templates/commands/content/fast.md +0 -13
  41. package/templates/commands/content/good.md +0 -16
  42. package/templates/commands/context.md +0 -48
  43. package/templates/commands/cook/auto/fast.md +0 -26
  44. package/templates/commands/cook/auto/parallel.md +0 -49
  45. package/templates/commands/cook/auto.md +0 -15
  46. package/templates/commands/cook/fast.md +0 -47
  47. package/templates/commands/cook/hard.md +0 -80
  48. package/templates/commands/cook/parallel.md +0 -90
  49. package/templates/commands/cook.md +0 -105
  50. package/templates/commands/create-feature.md +0 -48
  51. package/templates/commands/db-migrate.md +0 -52
  52. package/templates/commands/debug.md +0 -13
  53. package/templates/commands/design/3d.md +0 -83
  54. package/templates/commands/design/describe.md +0 -23
  55. package/templates/commands/design/fast.md +0 -31
  56. package/templates/commands/design/good.md +0 -35
  57. package/templates/commands/design/screenshot.md +0 -34
  58. package/templates/commands/design/video.md +0 -34
  59. package/templates/commands/docs/init.md +0 -39
  60. package/templates/commands/docs/summarize.md +0 -31
  61. package/templates/commands/docs/update.md +0 -57
  62. package/templates/commands/feature.md +0 -62
  63. package/templates/commands/fix/ci.md +0 -17
  64. package/templates/commands/fix/fast.md +0 -19
  65. package/templates/commands/fix/hard.md +0 -39
  66. package/templates/commands/fix/logs.md +0 -26
  67. package/templates/commands/fix/parallel.md +0 -54
  68. package/templates/commands/fix/test.md +0 -20
  69. package/templates/commands/fix/types.md +0 -9
  70. package/templates/commands/fix/ui.md +0 -48
  71. package/templates/commands/fix-issue.md +0 -177
  72. package/templates/commands/fix.md +0 -43
  73. package/templates/commands/generate-dto.md +0 -67
  74. package/templates/commands/git/cm.md +0 -5
  75. package/templates/commands/git/cp.md +0 -4
  76. package/templates/commands/git/merge.md +0 -40
  77. package/templates/commands/git/pr.md +0 -48
  78. package/templates/commands/integrate/polar.md +0 -28
  79. package/templates/commands/integrate/sepay.md +0 -28
  80. package/templates/commands/investigate.md +0 -324
  81. package/templates/commands/journal.md +0 -7
  82. package/templates/commands/lint.md +0 -47
  83. package/templates/commands/migration.md +0 -111
  84. package/templates/commands/performance.md +0 -110
  85. package/templates/commands/plan/ci.md +0 -33
  86. package/templates/commands/plan/cro.md +0 -69
  87. package/templates/commands/plan/fast.md +0 -86
  88. package/templates/commands/plan/hard.md +0 -103
  89. package/templates/commands/plan/parallel.md +0 -152
  90. package/templates/commands/plan/preview.md +0 -40
  91. package/templates/commands/plan/two.md +0 -52
  92. package/templates/commands/plan/validate.md +0 -132
  93. package/templates/commands/plan.md +0 -36
  94. package/templates/commands/pr.md +0 -49
  95. package/templates/commands/preview.md +0 -87
  96. package/templates/commands/release-notes.md +0 -144
  97. package/templates/commands/review/post-task.md +0 -157
  98. package/templates/commands/review-changes.md +0 -46
  99. package/templates/commands/review.md +0 -56
  100. package/templates/commands/scout/ext.md +0 -35
  101. package/templates/commands/scout.md +0 -283
  102. package/templates/commands/security.md +0 -119
  103. package/templates/commands/skill/add.md +0 -36
  104. package/templates/commands/skill/create.md +0 -29
  105. package/templates/commands/skill/fix-logs.md +0 -22
  106. package/templates/commands/skill/optimize/auto.md +0 -25
  107. package/templates/commands/skill/optimize.md +0 -34
  108. package/templates/commands/skill/plan.md +0 -45
  109. package/templates/commands/worktree.md +0 -126
  110. package/templates/memory/session-log.md +0 -186
  111. package/templates/router/README.md +0 -294
  112. package/templates/router/agents-guide.md +0 -38
  113. package/templates/router/commands-guide.md +0 -122
  114. package/templates/router/decision-flow.md +0 -92
  115. package/templates/router/skills-guide.md +0 -127
  116. package/templates/router/workflows-guide.md +0 -68
  117. package/templates/workflows/README.md +0 -241
  118. package/templates/workflows/orchestration-protocol.md +0 -16
  119. /package/templates/{commands → command-archive}/coding-level.md +0 -0
  120. /package/templates/{commands → command-archive}/review/codebase.md +0 -0
  121. /package/templates/{commands → command-archive}/test.md +0 -0
  122. /package/templates/{commands → command-archive}/watzup.md +0 -0
  123. /package/templates/{workflows → rules}/documentation-management.md +0 -0
@@ -1,283 +0,0 @@
1
- ---
2
- description: ⚡⚡ Scout codebase with priority-based file discovery and structured output
3
- argument-hint: [user-prompt] [scale]
4
- ---
5
-
6
- ## Purpose
7
-
8
- Search the codebase for files needed to complete the task using fast, token-efficient parallel agents with **priority-based categorization**.
9
-
10
- ## Variables
11
-
12
- - **USER_PROMPT**: $1
13
- - **SCALE**: $2 (defaults to 3)
14
- - **REPORT_OUTPUT_DIR**: Use `Report:` from `## Naming` section
15
-
16
- ---
17
-
18
- ## PHASE 1: ANALYZE AND PLAN
19
-
20
- ### Step 1: Parse Search Request
21
-
22
- Extract from USER_PROMPT:
23
- - **Keywords**: Entity names, feature names, patterns
24
- - **Intent**: CRUD, investigation, debugging, implementation
25
- - **Scope**: Backend, Frontend, Cross-service, Full-stack
26
-
27
- ### Step 2: Generate Search Patterns
28
-
29
- **HIGH PRIORITY (Always Search):**
30
- ```
31
- # Domain Entities
32
- **/Domain/Entities/**/*{keyword}*.cs
33
- **/{Entity}.cs
34
-
35
- # CQRS Commands & Queries
36
- **/UseCaseCommands/**/*{keyword}*.cs
37
- **/UseCaseQueries/**/*{keyword}*.cs
38
- **/Save{Entity}Command.cs
39
- **/Get{Entity}*Query.cs
40
-
41
- # Event Handlers & Consumers
42
- **/UseCaseEvents/**/*{keyword}*.cs
43
- **/*{keyword}*EventHandler.cs
44
- **/*{keyword}*Consumer.cs
45
-
46
- # Controllers
47
- **/Controllers/**/*{keyword}*.cs
48
- **/{Entity}Controller.cs
49
-
50
- # Background Jobs
51
- **/*{keyword}*BackgroundJob*.cs
52
- **/*{keyword}*Job.cs
53
- ```
54
-
55
- **MEDIUM PRIORITY:**
56
- ```
57
- # Services & Helpers
58
- **/*{keyword}*Service.cs
59
- **/*{keyword}*Helper.cs
60
-
61
- # DTOs & Shared
62
- **/*{keyword}*Dto.cs
63
- **/Shared/**/*{keyword}*.cs
64
-
65
- # Frontend Components
66
- **/*{keyword}*.component.ts
67
- **/*{keyword}*.store.ts
68
- **/*{keyword}*-api.service.ts
69
- ```
70
-
71
- **LOW PRIORITY:**
72
- ```
73
- # Tests & Config
74
- **/*{keyword}*.spec.ts
75
- **/*{keyword}*Test*.cs
76
- **/appsettings*.json
77
- ```
78
-
79
- ---
80
-
81
- ## PHASE 2: PARALLEL EXECUTION
82
-
83
- ### Step 1: Divide Work
84
-
85
- Split directories intelligently for SCALE agents:
86
-
87
- | Agent | Focus Area | Directories |
88
- |-------|------------|-------------|
89
- | 1 | Backend Core | `src/PlatformExampleApp/*/Domain/`, `*/Application/UseCaseCommands/`, `*/Application/UseCaseQueries/` |
90
- | 2 | Backend Events/Jobs | `*/Application/UseCaseEvents/`, `*BackgroundJob*`, `*Consumer*`, `Controllers/` |
91
- | 3 | Frontend | `src/PlatformExampleAppWeb/`, `libs/apps-domains/`, `libs/platform-core/` |
92
-
93
- ### Step 2: Launch Agents
94
-
95
- Spawn SCALE number of `Explore` subagents in **parallel** using Task tool:
96
-
97
- ```
98
- For each agent:
99
- - Assign specific directories from division above
100
- - Include HIGH PRIORITY patterns for assigned area
101
- - Set 3-minute timeout
102
- - Request file paths only (no content)
103
- ```
104
-
105
- **Agent Prompt Template:**
106
- ```
107
- Search [directories] for files related to "[USER_PROMPT]".
108
- Patterns: [relevant patterns for this agent's focus]
109
- Return ONLY file paths, categorized by type.
110
- Timeout: 3 minutes. Be fast and focused.
111
- ```
112
-
113
- ---
114
-
115
- ## PHASE 3: SYNTHESIZE RESULTS
116
-
117
- ### Step 1: Collect and Deduplicate
118
-
119
- - Gather results from all agents that complete within timeout
120
- - Skip timed-out agents (note coverage gaps)
121
- - Remove duplicate file paths
122
-
123
- ### Step 2: Categorize by Priority
124
-
125
- Organize files into structured output:
126
-
127
- ```markdown
128
- ## Scout Results: [USER_PROMPT]
129
-
130
- ### Summary
131
- - **Total Files Found**: X
132
- - **Agents Completed**: X/SCALE
133
- - **Coverage Gaps**: [list any timed-out agent areas]
134
-
135
- ---
136
-
137
- ### HIGH PRIORITY (Analyze First)
138
-
139
- #### Domain Entities
140
- | # | File | Purpose |
141
- |---|------|---------|
142
- | 1 | `path/Entity.cs` | Core domain entity |
143
-
144
- #### Commands & Handlers
145
- | # | File | Purpose |
146
- |---|------|---------|
147
- | 1 | `path/SaveEntityCommand.cs` | Create/Update logic |
148
-
149
- #### Queries
150
- | # | File | Purpose |
151
- |---|------|---------|
152
- | 1 | `path/GetEntityListQuery.cs` | List retrieval |
153
-
154
- #### Event Handlers
155
- | # | File | Purpose |
156
- |---|------|---------|
157
- | 1 | `path/EntityEventHandler.cs` | Side effect handling |
158
-
159
- #### Consumers (Cross-Service)
160
- | # | File | Message Type | Source Service |
161
- |---|------|--------------|----------------|
162
- | 1 | `path/EntityConsumer.cs` | `EntityBusMessage` | [grep for producer] |
163
-
164
- #### Controllers
165
- | # | File | Purpose |
166
- |---|------|---------|
167
- | 1 | `path/EntityController.cs` | API endpoints |
168
-
169
- #### Background Jobs
170
- | # | File | Purpose |
171
- |---|------|---------|
172
- | 1 | `path/EntityBackgroundJob.cs` | Scheduled processing |
173
-
174
- ---
175
-
176
- ### MEDIUM PRIORITY
177
-
178
- #### Services & Helpers
179
- | # | File | Purpose |
180
- |---|------|---------|
181
- | 1 | `path/EntityService.cs` | Business logic |
182
-
183
- #### Frontend Components
184
- | # | File | Purpose |
185
- |---|------|---------|
186
- | 1 | `path/entity-list.component.ts` | UI component |
187
-
188
- #### API Services
189
- | # | File | Purpose |
190
- |---|------|---------|
191
- | 1 | `path/entity-api.service.ts` | HTTP client |
192
-
193
- ---
194
-
195
- ### LOW PRIORITY
196
-
197
- #### Tests & Config
198
- | # | File | Purpose |
199
- |---|------|---------|
200
- | 1 | `path/EntityTest.cs` | Unit tests |
201
-
202
- ---
203
-
204
- ### Suggested Starting Points
205
-
206
- 1. **[Most relevant file]** - [Why start here]
207
- 2. **[Second most relevant]** - [Why]
208
- 3. **[Third most relevant]** - [Why]
209
-
210
- ### Cross-Service Integration (if applicable)
211
-
212
- | Source Service | Message | Target Service | Consumer File |
213
- |----------------|---------|----------------|---------------|
214
- | ... | ... | ... | ... |
215
-
216
- ### Unresolved Questions
217
-
218
- - [Any gaps or uncertainties]
219
- ```
220
-
221
- ---
222
-
223
- ## OUTPUT: Handoff to Investigate
224
-
225
- **When followed by `/investigate`:**
226
-
227
- Your numbered file list becomes the analysis target. The Investigate command will:
228
- 1. **Use your HIGH PRIORITY files** as primary analysis targets
229
- 2. **Reference your file numbers** (e.g., "File #3 from Scout")
230
- 3. **Skip redundant discovery** - trusts your search results
231
- 4. **Follow your Suggested Starting Points** for analysis order
232
-
233
- **Ensure your output includes:**
234
- - ✅ Numbered files in priority tables
235
- - ✅ Clear "Suggested Starting Points" section
236
- - ✅ Cross-Service Integration table (for message bus flows)
237
- - ✅ Purpose column explaining each file's role
238
-
239
- ---
240
-
241
- ## PHASE 4: CONSUMER CROSS-SERVICE ANALYSIS
242
-
243
- **CRITICAL**: For any `*Consumer.cs` files found:
244
-
245
- 1. Identify the `*BusMessage` type being consumed
246
- 2. Run additional grep across ALL services:
247
- ```
248
- grep -r "BusMessage" --include="*.cs" src/
249
- ```
250
- 3. Find files that **produce/publish** the message
251
- 4. Document in Cross-Service Integration table
252
-
253
- ---
254
-
255
- ## Quality Standards
256
-
257
- | Metric | Target |
258
- |--------|--------|
259
- | Speed | < 5 minutes total |
260
- | Coverage | All relevant directories searched |
261
- | Accuracy | Only directly relevant files |
262
- | Structure | Organized by priority category |
263
- | Actionable | Clear starting points |
264
-
265
- ---
266
-
267
- ## Error Handling
268
-
269
- | Scenario | Action |
270
- |----------|--------|
271
- | Agent timeout | Skip, note gap, continue |
272
- | All agents timeout | Manual fallback with Glob/Grep |
273
- | Sparse results | Expand patterns, try synonyms |
274
- | Overwhelming results | Filter to HIGH PRIORITY only |
275
-
276
- ---
277
-
278
- ## Output Standards
279
-
280
- - **IMPORTANT:** Sacrifice grammar for concision
281
- - **IMPORTANT:** List unresolved questions at end
282
- - **IMPORTANT:** Number all files for easy reference
283
- - Use `file:line` format where possible
@@ -1,119 +0,0 @@
1
- # Security Review: $ARGUMENTS
2
-
3
- Perform security review on: $ARGUMENTS
4
-
5
- ## Phase 1: Scope Identification
6
-
7
- 1. **Parse target** from: $ARGUMENTS
8
- 2. **Identify components:**
9
- - API endpoints (Controllers)
10
- - Command/Query handlers
11
- - Frontend forms and inputs
12
- - Data handling and storage
13
- - External integrations
14
-
15
- ## Phase 2: Security Checklist
16
-
17
- ### Input Validation
18
-
19
- - [ ] All user inputs validated in Commands/Queries `Validate()` method
20
- - [ ] XSS protection - no raw HTML rendering of user content
21
- - [ ] SQL/NoSQL injection prevention (parameterized via EF Core/MongoDB driver)
22
- - [ ] File upload validation (type whitelist, size limits, content scanning)
23
- - [ ] URL validation for redirects (prevent open redirect)
24
-
25
- ### Authorization
26
-
27
- - [ ] `[PlatformAuthorize]` attribute on sensitive endpoints
28
- - [ ] Entity-level access checks (company ownership, user permissions)
29
- - [ ] Role-based permissions verified in handlers:
30
- ```csharp
31
- RequestContext.HasRole(PlatformRoles.Admin)
32
- RequestContext.HasRequestAdminRoleInCompany()
33
- ```
34
- - [ ] Multi-tenancy boundaries respected (CompanyId filtering)
35
- - [ ] Resource ownership validation before modification
36
-
37
- ### Sensitive Data Protection
38
-
39
- - [ ] No secrets in logs or error messages
40
- - [ ] PII properly encrypted at rest
41
- - [ ] Sensitive fields excluded from DTOs/responses
42
- - [ ] Audit logging for sensitive operations
43
- - [ ] No credentials in source code or config files
44
-
45
- ### API Security
46
-
47
- - [ ] CORS properly configured (not `*` in production)
48
- - [ ] Rate limiting on public endpoints
49
- - [ ] Request size limits configured
50
- - [ ] Timeout handling to prevent DoS
51
- - [ ] HTTPS enforced
52
-
53
- ### Frontend Security
54
-
55
- - [ ] No sensitive data in localStorage (use sessionStorage or memory)
56
- - [ ] XSS-safe rendering (no `innerHTML` with user data, use `[textContent]`)
57
- - [ ] CSRF tokens for state-changing operations
58
- - [ ] Proper error messages (no stack traces exposed to users)
59
- - [ ] Secure cookie flags (HttpOnly, Secure, SameSite)
60
-
61
- ### Authentication
62
-
63
- - [ ] Strong password requirements enforced
64
- - [ ] Account lockout after failed attempts
65
- - [ ] Session timeout configured
66
- - [ ] Secure token storage and transmission
67
- - [ ] Password reset flow secure (time-limited tokens)
68
-
69
- ## Phase 3: Common Vulnerability Patterns
70
-
71
- ### Look for these anti-patterns:
72
-
73
- ```csharp
74
- // ❌ Missing authorization
75
- [HttpPost]
76
- public async Task<IActionResult> DeleteUser(string userId) // No [PlatformAuthorize]
77
-
78
- // ❌ Missing ownership check
79
- await repository.DeleteAsync(request.Id); // Should verify ownership first
80
-
81
- // ❌ Logging sensitive data
82
- logger.LogInformation($"User {email} logged in with password {password}");
83
-
84
- // ❌ SQL injection (rare with EF but check raw queries)
85
- context.Database.ExecuteSqlRaw($"SELECT * FROM Users WHERE Id = '{id}'");
86
- ```
87
-
88
- ```typescript
89
- // ❌ XSS vulnerability
90
- element.innerHTML = userInput; // Use textContent instead
91
-
92
- // ❌ Sensitive data in localStorage
93
- localStorage.setItem('authToken', token); // Use memory or secure storage
94
- ```
95
-
96
- ## Phase 4: Report
97
-
98
- Present findings with:
99
-
100
- - **Severity rating:** Critical / High / Medium / Low / Informational
101
- - **Affected code locations** with file:line references
102
- - **Recommended fixes** with code examples
103
- - **OWASP reference** if applicable
104
-
105
- ### Severity Guidelines:
106
-
107
- - **Critical:** Direct data breach, authentication bypass, RCE
108
- - **High:** Privilege escalation, sensitive data exposure
109
- - **Medium:** Missing security controls, information disclosure
110
- - **Low:** Security best practice violations
111
- - **Informational:** Suggestions for defense-in-depth
112
-
113
- ## Phase 5: Wait for Approval
114
-
115
- **CRITICAL:** Present your security findings. Wait for explicit user approval before implementing fixes.
116
-
117
- ---
118
-
119
- Use `arch-security-review` skill for comprehensive analysis.
@@ -1,36 +0,0 @@
1
- ---
2
- description: Add new reference files or scripts to a skill
3
- argument-hint: [skill-name] [reference-or-script-prompt]
4
- ---
5
-
6
- Think harder.
7
- Use `skill-creator` and `claude-code` skills.
8
- Use `docs-seeker` skills to search for documentation if needed.
9
-
10
- ## Arguments
11
- $1: skill name (required, default: "")
12
- $2: reference or script prompt (required, default: "")
13
- If $1 or $2 is not provided, ask the user to provide it.
14
-
15
- ## Your mission
16
- Add new reference files or scripts to a skill at `.claude/skills/$1` directory.
17
-
18
- ## Requirements
19
- <reference-or-script-prompt>
20
- $2
21
- </reference-or-script-prompt>
22
-
23
- ## Rules of Skill Creation:
24
- Base on the requirements:
25
- - Always keep in mind that `SKILL.md` and reference files should be token consumption efficient, so that **progressive disclosure** can be leveraged at best.
26
- - `SKILL.md` is always short and concise, straight to the point, treat it as a quick reference guide.
27
- - If you're given nothing, use `AskUserQuestion` tool for clarifications and `researcher` subagent to research about the topic.
28
- - If you're given an URL, it's documentation page, use `Explore` subagent to explore every internal link and report back to main agent, don't skip any link.
29
- - If you receive a lot of URLs, use multiple `Explore` subagents to explore them in parallel, then report back to main agent.
30
- - If you receive a lot of files, use multiple `Explore` subagents to explore them in parallel, then report back to main agent.
31
- - If you're given a Github URL, use [`repomix`](https://repomix.com/guide/usage) command to summarize ([install it](https://repomix.com/guide/installation) if needed) and spawn multiple `Explore` subagents to explore it in parallel, then report back to main agent.
32
-
33
- **IMPORTANT:**
34
- - Skills are not documentation, they are practical instructions for Claude Code to use the tools, packages, plugins or APIs to achieve the tasks.
35
- - Each skill teaches Claude how to perform a specific development task, not what a tool does.
36
- - Claude Code can activate multiple skills automatically to achieve the user's request.
@@ -1,29 +0,0 @@
1
- ---
2
- description: Create a new agent skill
3
- argument-hint: [prompt-or-llms-or-github-url]
4
- ---
5
-
6
- Ultrathink.
7
- Use `skill-creator` and `claude-code` skills.
8
- Use `docs-seeker` skills to search for documentation if needed.
9
-
10
- ## Your mission
11
- Create a new skill in `.claude/skills/` directory.
12
-
13
- ## Requirements
14
- <user-prompt>$ARGUMENTS</user-prompt>
15
-
16
- ## Rules of Skill Creation:
17
- Base on the requirements:
18
- - Always keep in mind that `SKILL.md` and reference files should be token consumption efficient, so that **progressive disclosure** can be leveraged at best.
19
- - `SKILL.md` is always short and concise, straight to the point, treat it as a quick reference guide.
20
- - If you're given nothing, use `AskUserQuestion` tool for clarifications and `researcher` subagent to research about the topic.
21
- - If you're given an URL, it's documentation page, use `Explore` subagent to explore every internal link and report back to main agent, don't skip any link.
22
- - If you receive a lot of URLs, use multiple `Explore` subagents to explore them in parallel, then report back to main agent.
23
- - If you receive a lot of files, use multiple `Explore` subagents to explore them in parallel, then report back to main agent.
24
- - If you're given a Github URL, use [`repomix`](https://repomix.com/guide/usage) command to summarize ([install it](https://repomix.com/guide/installation) if needed) and spawn multiple `Explore` subagents to explore it in parallel, then report back to main agent.
25
-
26
- **IMPORTANT:**
27
- - Skills are not documentation, they are practical instructions for Claude Code to use the tools, packages, plugins or APIs to achieve the tasks.
28
- - Each skill teaches Claude how to perform a specific development task, not what a tool does.
29
- - Claude Code can activate multiple skills automatically to achieve the user's request.
@@ -1,22 +0,0 @@
1
- ---
2
- description: Fix the agent skill based on `logs.txt` file.
3
- argument-hint: [prompt-or-path-to-skill]
4
- ---
5
-
6
- Think harder.
7
- Use `skill-creator` and `claude-code` skills.
8
- Use `docs-seeker` skills to search for documentation if needed.
9
-
10
- ## Your mission
11
- Fix the agent skill based on the current `logs.txt` file (in the project root directory).
12
-
13
- ## Requirements
14
- <user-prompt>$ARGUMENTS</user-prompt>
15
-
16
- ## Rules of Skill Fixing:
17
- Base on the requirements:
18
- - If you're given nothing, use `AskUserQuestion` tool for clarifications and `researcher` subagent to research about the topic.
19
- - If you're given an URL, it's documentation page, use `Explorer` subagent to explore every internal link and report back to main agent, don't skip any link.
20
- - If you receive a lot of URLs, use multiple `Explorer` subagents to explore them in parallel, then report back to main agent.
21
- - If you receive a lot of files, use multiple `Explorer` subagents to explore them in parallel, then report back to main agent.
22
- - If you're given a Github URL, use [`repomix`](https://repomix.com/guide/usage) command to summarize ([install it](https://repomix.com/guide/installation) if needed) and spawn multiple `Explorer` subagents to explore it in parallel, then report back to main agent.
@@ -1,25 +0,0 @@
1
- ---
2
- description: Optimize an existing agent skill [auto]
3
- argument-hint: [skill-name] [prompt]
4
- ---
5
-
6
- Think harder.
7
- Use `skill-creator` and `claude-code` skills.
8
- Use `docs-seeker` skills to search for documentation if needed.
9
-
10
- ## Arguments
11
- SKILL: $1 (default: `*`)
12
- PROMPT: $2 (default: empty)
13
-
14
- ## Your mission
15
- Optimize an existing skill in `.claude/skills/${SKILL}` directory.
16
- Always keep in mind that `SKILL.md` and reference files should be token consumption efficient, so that **progressive disclosure** can be leveraged at best.
17
- `SKILL.md` is always short and concise, straight to the point, treat it as a quick reference guide.
18
-
19
- **IMPORTANT:**
20
- - Skills are not documentation, they are practical instructions for Claude Code to use the tools, packages, plugins or APIs to achieve the tasks.
21
- - Each skill teaches Claude how to perform a specific development task, not what a tool does.
22
- - Claude Code can activate multiple skills automatically to achieve the user's request.
23
-
24
- ## Additional instructions
25
- <additional-instructions>$PROMPT</additional-instructions>
@@ -1,34 +0,0 @@
1
- ---
2
- description: Optimize an existing agent skill
3
- argument-hint: [skill-name] [prompt]
4
- ---
5
-
6
- Think harder.
7
- Use `skill-creator` and `claude-code` skills.
8
- Use `docs-seeker` skills to search for documentation if needed.
9
-
10
- ## Arguments
11
- SKILL: $1 (default: `*`)
12
- PROMPT: $2 (default: empty)
13
-
14
- ## Your mission
15
- Propose a plan to optimize an existing skill in `.claude/skills/${SKILL}` directory.
16
- When you finish, ask user to review your plan:
17
- - If the user approve: Write down a plan follow "Output Requirements", then ask user if they want to start implementing.
18
- - If the user reject: Revise the plan or ask more questions to clarify more about the user's request (ask one question at the time), then repeat the review process.
19
-
20
- ## Additional instructions
21
- <additional-instructions>$PROMPT</additional-instructions>
22
-
23
- ## Output Requirements
24
- An output implementation plan must also follow the progressive disclosure structure:
25
- - Always keep in mind that `SKILL.md` and reference files should be token consumption efficient, so that **progressive disclosure** can be leveraged at best.
26
- - `SKILL.md` is always short and concise, straight to the point, treat it as a quick reference guide.
27
- - Create a directory using naming pattern from `## Naming` section.
28
- - Save the overview access point at `plan.md`, keep it generic, under 80 lines, and list each phase with status/progress and links.
29
- - 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).
30
-
31
- **IMPORTANT:**
32
- - Skills are not documentation, they are practical instructions for Claude Code to use the tools, packages, plugins or APIs to achieve the tasks.
33
- - Each skill teaches Claude how to perform a specific development task, not what a tool does.
34
- - Claude Code can activate multiple skills automatically to achieve the user's request.
@@ -1,45 +0,0 @@
1
- ---
2
- description: Plan to create a new agent skill
3
- argument-hint: [skill-name] [prompt]
4
- ---
5
-
6
- Think harder.
7
- First: Activate `skill-creator` and `claude-code` skills.
8
- Use `docs-seeker` skills to search for documentation if needed.
9
- Employ `sequential-thinking` or `problem-solving` skills for complex problem-solving that requires structured analysis
10
- Finally, when creating a plan, activate `planning` skill.
11
-
12
- ## Arguments
13
- SKILL: $1 (default: `*`)
14
- PROMPT: $2 (default: empty)
15
-
16
- ## Your mission
17
- Propose a plan to create a new skill in `.claude/skills/${SKILL}` directory.
18
- When you finish, ask user to review your plan:
19
- - If the user approve: Write down a plan follow "Output Requirements", then ask user if they want to start implementing.
20
- - If the user reject: Revise the plan or ask more questions to clarify more about the user's request (ask one question at the time), then repeat the review process.
21
-
22
- ## Additional instructions
23
- <additional-instructions>$PROMPT</additional-instructions>
24
-
25
- ## Your Approach
26
- 1. **Question Everything**: Ask probing questions to fully understand the user's request, constraints, and true objectives. Don't assume - clarify until you're 100% certain.
27
- 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.
28
- 3. **Explore Alternatives**: Always consider multiple approaches. Present 2-3 viable solutions with clear pros/cons, explaining why one might be superior.
29
- 4. **Challenge Assumptions**: Question the user's initial approach. Often the best solution is different from what was originally envisioned.
30
- 5. **Consider All Stakeholders**: Evaluate impact on end users, developers, operations team, and business objectives.
31
-
32
- ## Output Requirements
33
- An output implementation plan must also follow the progressive disclosure structure:
34
- - Always keep in mind that `SKILL.md` and reference files should be token consumption efficient, so that **progressive disclosure** can be leveraged at best.
35
- - `SKILL.md` is always short and concise, straight to the point, treat it as a quick reference guide.
36
- - Create a directory using naming pattern from `## Naming` section.
37
- - Save the overview access point at `plan.md`, keep it generic, under 80 lines, and list each phase with status/progress and links.
38
- - 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).
39
-
40
- **IMPORTANT:**
41
- - Analyze the given task and use `AskUserQuestion` tool to ask for more details if needed.
42
- - Ensure token consumption efficiency while maintaining high quality.
43
- - Skills are not documentation, they are practical instructions for Claude Code to use the tools, packages, plugins or APIs to achieve the tasks.
44
- - Each skill teaches Claude how to perform a specific development task, not what a tool does.
45
- - Claude Code can activate multiple skills automatically to achieve the user's request.