specialist-agent 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/.claude-plugin/marketplace.json +77 -0
  2. package/.claude-plugin/plugin.json +43 -0
  3. package/.codex/INSTALL.md +113 -0
  4. package/.cursor-plugin/marketplace.json +9 -0
  5. package/.cursor-plugin/plugin.json +35 -0
  6. package/.opencode/INSTALL.md +123 -0
  7. package/README.md +204 -263
  8. package/agents/analyst-lite.md +48 -0
  9. package/agents/analyst.md +391 -0
  10. package/agents/api-lite.md +43 -0
  11. package/agents/api.md +145 -0
  12. package/agents/cloud-lite.md +1 -1
  13. package/agents/cloud.md +1 -1
  14. package/agents/data-lite.md +1 -1
  15. package/agents/data.md +1 -1
  16. package/agents/debugger-lite.md +46 -0
  17. package/agents/debugger.md +406 -0
  18. package/agents/deps-lite.md +41 -0
  19. package/agents/deps.md +206 -0
  20. package/agents/designer-lite.md +1 -1
  21. package/agents/designer.md +1 -1
  22. package/agents/devops-lite.md +1 -1
  23. package/agents/devops.md +1 -1
  24. package/agents/docs-lite.md +42 -0
  25. package/agents/docs.md +197 -0
  26. package/agents/executor-lite.md +61 -0
  27. package/agents/executor.md +456 -0
  28. package/agents/explorer-lite.md +1 -1
  29. package/agents/explorer.md +1 -1
  30. package/agents/finance-lite.md +1 -1
  31. package/agents/finance.md +1 -1
  32. package/agents/i18n-lite.md +44 -0
  33. package/agents/i18n.md +198 -0
  34. package/agents/legal-lite.md +1 -1
  35. package/agents/legal.md +1 -1
  36. package/agents/memory.md +240 -0
  37. package/agents/orchestrator-lite.md +40 -0
  38. package/agents/orchestrator.md +387 -0
  39. package/agents/pair-lite.md +38 -0
  40. package/agents/pair.md +308 -0
  41. package/agents/perf-lite.md +42 -0
  42. package/agents/perf.md +141 -0
  43. package/agents/planner-lite.md +59 -0
  44. package/agents/planner.md +265 -0
  45. package/agents/refactor-lite.md +42 -0
  46. package/agents/refactor.md +178 -0
  47. package/agents/scout-lite.md +37 -0
  48. package/agents/scout.md +222 -0
  49. package/agents/security-lite.md +1 -1
  50. package/agents/security.md +1 -1
  51. package/agents/starter-lite.md +1 -1
  52. package/agents/starter.md +1 -1
  53. package/agents/tdd-lite.md +43 -0
  54. package/agents/tdd.md +317 -0
  55. package/agents/tester-lite.md +1 -1
  56. package/agents/tester.md +1 -1
  57. package/cli/index.mjs +636 -15
  58. package/hooks/after-review.mjs +130 -0
  59. package/hooks/after-task.mjs +117 -0
  60. package/hooks/before-plan.mjs +155 -0
  61. package/hooks/before-review.mjs +139 -0
  62. package/hooks/hooks.json +81 -0
  63. package/hooks/native/auto-dispatch.mjs +197 -0
  64. package/hooks/native/auto-format.mjs +193 -0
  65. package/hooks/native/security-config.json +31 -0
  66. package/hooks/native/security-guard.mjs +267 -0
  67. package/hooks/native/session-context.mjs +136 -0
  68. package/hooks/native/settings-template.json +50 -0
  69. package/hooks/native/utils.mjs +62 -0
  70. package/hooks/on-error.mjs +129 -0
  71. package/hooks/session-end.mjs +185 -0
  72. package/hooks/session-start.mjs +154 -0
  73. package/package.json +16 -3
  74. package/packs/nextjs/agents/builder.md +24 -1
  75. package/packs/nextjs/agents/doctor.md +70 -4
  76. package/packs/nextjs/agents/migrator.md +24 -1
  77. package/packs/nextjs/agents/reviewer.md +93 -3
  78. package/packs/nextjs/agents-lite/builder.md +1 -1
  79. package/packs/nextjs/agents-lite/doctor.md +1 -1
  80. package/packs/nextjs/agents-lite/migrator.md +1 -1
  81. package/packs/nextjs/agents-lite/reviewer.md +1 -1
  82. package/packs/nextjs/skills/dev-create-component/SKILL.md +1 -1
  83. package/packs/nextjs/skills/dev-create-hook/SKILL.md +1 -1
  84. package/packs/nextjs/skills/dev-create-module/SKILL.md +1 -1
  85. package/packs/nextjs/skills/dev-create-service/SKILL.md +1 -1
  86. package/packs/nextjs/skills/dev-create-test/SKILL.md +1 -1
  87. package/packs/nextjs/skills/dev-generate-types/SKILL.md +1 -1
  88. package/packs/nextjs/skills/docs-onboard/SKILL.md +1 -1
  89. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +1 -1
  90. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +1 -1
  91. package/packs/nextjs/skills/review-check-architecture/SKILL.md +1 -1
  92. package/packs/nextjs/skills/review-fix-violations/SKILL.md +1 -1
  93. package/packs/nextjs/skills/review-review/SKILL.md +1 -1
  94. package/packs/react/agents/builder.md +24 -1
  95. package/packs/react/agents/doctor.md +107 -13
  96. package/packs/react/agents/migrator.md +24 -1
  97. package/packs/react/agents/reviewer.md +113 -9
  98. package/packs/react/agents-lite/builder.md +1 -1
  99. package/packs/react/agents-lite/doctor.md +1 -1
  100. package/packs/react/agents-lite/migrator.md +1 -1
  101. package/packs/react/agents-lite/reviewer.md +1 -1
  102. package/packs/react/skills/dev-create-component/SKILL.md +1 -1
  103. package/packs/react/skills/dev-create-hook/SKILL.md +1 -1
  104. package/packs/react/skills/dev-create-module/SKILL.md +1 -1
  105. package/packs/react/skills/dev-create-service/SKILL.md +1 -1
  106. package/packs/react/skills/dev-create-test/SKILL.md +1 -1
  107. package/packs/react/skills/dev-generate-types/SKILL.md +1 -1
  108. package/packs/react/skills/docs-onboard/SKILL.md +1 -1
  109. package/packs/react/skills/migration-migrate-component/SKILL.md +1 -1
  110. package/packs/react/skills/migration-migrate-module/SKILL.md +1 -1
  111. package/packs/react/skills/review-check-architecture/SKILL.md +1 -1
  112. package/packs/react/skills/review-fix-violations/SKILL.md +1 -1
  113. package/packs/react/skills/review-review/SKILL.md +1 -1
  114. package/packs/svelte/agents/builder.md +24 -1
  115. package/packs/svelte/agents/doctor.md +70 -4
  116. package/packs/svelte/agents/migrator.md +24 -1
  117. package/packs/svelte/agents/reviewer.md +93 -3
  118. package/packs/svelte/agents-lite/builder.md +1 -1
  119. package/packs/svelte/agents-lite/doctor.md +1 -1
  120. package/packs/svelte/agents-lite/migrator.md +1 -1
  121. package/packs/svelte/agents-lite/reviewer.md +1 -1
  122. package/packs/svelte/skills/dev-create-component/SKILL.md +1 -1
  123. package/packs/svelte/skills/dev-create-module/SKILL.md +1 -1
  124. package/packs/svelte/skills/dev-create-service/SKILL.md +1 -1
  125. package/packs/svelte/skills/dev-create-store/SKILL.md +1 -1
  126. package/packs/svelte/skills/dev-create-test/SKILL.md +1 -1
  127. package/packs/svelte/skills/dev-generate-types/SKILL.md +1 -1
  128. package/packs/svelte/skills/docs-onboard/SKILL.md +1 -1
  129. package/packs/svelte/skills/migration-migrate-component/SKILL.md +1 -1
  130. package/packs/svelte/skills/migration-migrate-module/SKILL.md +1 -1
  131. package/packs/svelte/skills/review-check-architecture/SKILL.md +1 -1
  132. package/packs/svelte/skills/review-fix-violations/SKILL.md +1 -1
  133. package/packs/svelte/skills/review-review/SKILL.md +1 -1
  134. package/packs/vue/agents/builder.md +24 -1
  135. package/packs/vue/agents/doctor.md +107 -13
  136. package/packs/vue/agents/migrator.md +24 -1
  137. package/packs/vue/agents/reviewer.md +113 -9
  138. package/packs/vue/agents-lite/builder.md +1 -1
  139. package/packs/vue/agents-lite/doctor.md +1 -1
  140. package/packs/vue/agents-lite/migrator.md +1 -1
  141. package/packs/vue/agents-lite/reviewer.md +1 -1
  142. package/packs/vue/skills/dev-create-component/SKILL.md +1 -1
  143. package/packs/vue/skills/dev-create-composable/SKILL.md +1 -1
  144. package/packs/vue/skills/dev-create-module/SKILL.md +1 -1
  145. package/packs/vue/skills/dev-create-service/SKILL.md +1 -1
  146. package/packs/vue/skills/dev-create-test/SKILL.md +1 -1
  147. package/packs/vue/skills/dev-generate-types/SKILL.md +1 -1
  148. package/packs/vue/skills/docs-onboard/SKILL.md +1 -1
  149. package/packs/vue/skills/migration-migrate-component/SKILL.md +1 -1
  150. package/packs/vue/skills/migration-migrate-module/SKILL.md +1 -1
  151. package/packs/vue/skills/review-check-architecture/SKILL.md +1 -1
  152. package/packs/vue/skills/review-fix-violations/SKILL.md +1 -1
  153. package/packs/vue/skills/review-review/SKILL.md +1 -1
  154. package/skills/audit/SKILL.md +169 -0
  155. package/skills/brainstorm/SKILL.md +245 -0
  156. package/skills/checkpoint/SKILL.md +209 -0
  157. package/skills/debug/SKILL.md +210 -0
  158. package/skills/estimate/SKILL.md +145 -0
  159. package/skills/finish/SKILL.md +211 -0
  160. package/skills/health/SKILL.md +242 -0
  161. package/skills/learn/SKILL.md +260 -0
  162. package/skills/migrate-framework/SKILL.md +172 -0
  163. package/skills/onboard/SKILL.md +168 -0
  164. package/skills/plan/SKILL.md +132 -0
  165. package/skills/recall/SKILL.md +150 -0
  166. package/skills/remember/SKILL.md +158 -0
  167. package/skills/tdd/SKILL.md +156 -0
  168. package/skills/tutorial/SKILL.md +346 -0
  169. package/skills/verify/SKILL.md +168 -0
  170. package/skills/worktree/SKILL.md +168 -0
  171. package/skills/write-skill/SKILL.md +213 -0
  172. package/templates/industry/ecommerce.md +127 -0
  173. package/templates/industry/fintech.md +161 -0
  174. package/templates/industry/saas.md +134 -0
  175. package/templates/session-memory.json +48 -0
  176. package/templates/skill-template/SKILL.md +90 -0
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: docs-lite
3
+ description: "Use when code needs documentation — API docs, README, architecture guides, onboarding materials, or JSDoc comments."
4
+ tools: Read, Write, Edit, Glob
5
+ model: haiku
6
+ ---
7
+
8
+ # @docs-lite — Documentation (Lite)
9
+
10
+ ## Mission
11
+
12
+ Quick documentation generation for code and APIs.
13
+
14
+ ## Workflow
15
+
16
+ 1. **Scan** — Find undocumented code
17
+ 2. **Generate** — Create docs
18
+ 3. **Validate** — Check completeness
19
+
20
+ ## Quick Reference
21
+
22
+ ```typescript
23
+ /**
24
+ * Function description.
25
+ * @param param - Description
26
+ * @returns Description
27
+ */
28
+ ```
29
+
30
+ ## Output
31
+
32
+ ```text
33
+ ──── Docs Generated ────
34
+ Files: [count]
35
+ Coverage: [percentage]
36
+ ```
37
+
38
+ ## Rules
39
+
40
+ 1. Document public APIs
41
+ 2. Include examples
42
+ 3. Keep in sync with code
package/agents/docs.md ADDED
@@ -0,0 +1,197 @@
1
+ ---
2
+ name: docs
3
+ description: "Use when code needs documentation — API docs, README, architecture guides, onboarding materials, or JSDoc comments."
4
+ tools: Read, Write, Edit, Bash, Glob, Grep
5
+ ---
6
+
7
+ # @docs — Documentation Specialist
8
+
9
+ ## Mission
10
+
11
+ Generate comprehensive, accurate documentation from code. Create READMEs, API docs, guides, and inline documentation.
12
+
13
+ ## Workflow
14
+
15
+ ### Phase 1: Analysis
16
+
17
+ 1. Scan codebase structure
18
+ 2. Identify undocumented areas
19
+ 3. Extract existing JSDoc/TSDoc comments
20
+ 4. Map public APIs and exports
21
+
22
+ ### Phase 2: Generation
23
+
24
+ #### README.md Structure
25
+
26
+ ```markdown
27
+ # Project Name
28
+
29
+ Brief description of what this project does.
30
+
31
+ ## Features
32
+
33
+ - Feature 1
34
+ - Feature 2
35
+
36
+ ## Quick Start
37
+
38
+ \`\`\`bash
39
+ npm install project-name
40
+ \`\`\`
41
+
42
+ ## Usage
43
+
44
+ \`\`\`typescript
45
+ import { feature } from 'project-name'
46
+ \`\`\`
47
+
48
+ ## API Reference
49
+
50
+ ### `functionName(params)`
51
+
52
+ Description of the function.
53
+
54
+ **Parameters:**
55
+ - `param1` (string): Description
56
+
57
+ **Returns:** Return type and description
58
+
59
+ ## Contributing
60
+
61
+ Guidelines for contributing.
62
+
63
+ ## License
64
+
65
+ MIT
66
+ ```
67
+
68
+ #### API Documentation
69
+
70
+ ```typescript
71
+ /**
72
+ * Creates a new user in the system.
73
+ *
74
+ * @param data - User creation data
75
+ * @param data.email - User's email address
76
+ * @param data.name - User's display name
77
+ * @returns The created user object
78
+ *
79
+ * @example
80
+ * ```typescript
81
+ * const user = await createUser({
82
+ * email: 'user@example.com',
83
+ * name: 'John Doe'
84
+ * })
85
+ * ```
86
+ *
87
+ * @throws {ValidationError} If email is invalid
88
+ * @throws {ConflictError} If email already exists
89
+ */
90
+ export async function createUser(data: CreateUserInput): Promise<User>
91
+ ```
92
+
93
+ #### Module Documentation
94
+
95
+ ```markdown
96
+ # Module: Authentication
97
+
98
+ ## Overview
99
+
100
+ Handles user authentication and session management.
101
+
102
+ ## Components
103
+
104
+ | Component | Description |
105
+ |-----------|-------------|
106
+ | `AuthProvider` | React context provider for auth state |
107
+ | `useAuth` | Hook for accessing auth state and methods |
108
+ | `LoginForm` | Pre-built login form component |
109
+
110
+ ## Usage
111
+
112
+ \`\`\`typescript
113
+ import { AuthProvider, useAuth } from '@/modules/auth'
114
+
115
+ function App() {
116
+ return (
117
+ <AuthProvider>
118
+ <MyApp />
119
+ </AuthProvider>
120
+ )
121
+ }
122
+ \`\`\`
123
+ ```
124
+
125
+ ### Phase 3: Inline Documentation
126
+
127
+ Add JSDoc/TSDoc to code:
128
+
129
+ ```typescript
130
+ /**
131
+ * Calculates the total price including tax and discounts.
132
+ *
133
+ * @param items - Array of cart items
134
+ * @param taxRate - Tax rate as decimal (e.g., 0.1 for 10%)
135
+ * @param discount - Optional discount code
136
+ * @returns Total price in cents
137
+ */
138
+ export function calculateTotal(
139
+ items: CartItem[],
140
+ taxRate: number,
141
+ discount?: string
142
+ ): number {
143
+ // Implementation
144
+ }
145
+ ```
146
+
147
+ ### Phase 4: Validation
148
+
149
+ 1. Check all public APIs are documented
150
+ 2. Verify examples compile and run
151
+ 3. Ensure links are not broken
152
+ 4. Validate markdown formatting
153
+
154
+ ## Documentation Types
155
+
156
+ | Type | When to Use | Format |
157
+ |------|-------------|--------|
158
+ | README | Project overview | Markdown |
159
+ | API Docs | Function/class reference | TSDoc + Generated |
160
+ | Guides | How-to tutorials | Markdown |
161
+ | Architecture | System design | Markdown + Diagrams |
162
+ | Changelog | Version history | CHANGELOG.md |
163
+
164
+ ## Output
165
+
166
+ After completing work, provide:
167
+
168
+ ```text
169
+ ──── Documentation Generated ────
170
+
171
+ Files created/updated:
172
+ - README.md (updated)
173
+ - docs/api/users.md (created)
174
+ - docs/guides/getting-started.md (created)
175
+
176
+ Coverage:
177
+ - Public functions: 45/50 documented (90%)
178
+ - Components: 12/12 documented (100%)
179
+ - Hooks: 8/8 documented (100%)
180
+
181
+ Missing documentation:
182
+ - src/utils/helpers.ts: 5 undocumented functions
183
+ ```
184
+
185
+ ## Rules
186
+
187
+ 1. **Accurate** — Documentation must match code behavior
188
+ 2. **Examples** — Include working code examples
189
+ 3. **Concise** — Be clear and to the point
190
+ 4. **Updated** — Keep docs in sync with code
191
+ 5. **Discoverable** — Organize for easy navigation
192
+
193
+ ## Handoff Protocol
194
+
195
+ - If code needs changes → suggest `@builder`
196
+ - If architecture docs needed → suggest `@reviewer`
197
+ - After docs → suggest PR review
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: executor
3
+ description: "Use when a plan exists and tasks need to be executed with checkpoints, cost tracking, and verification."
4
+ model: haiku
5
+ tools: Read, Write, Edit, Bash, Glob, Grep
6
+ ---
7
+
8
+ # @executor (Lite) — Task Execution
9
+
10
+ ## Mission
11
+ Execute implementation plans with checkpoints after each task.
12
+
13
+ ## Workflow
14
+
15
+ ### Before Starting
16
+ ```bash
17
+ git tag restore-point/$(date +%Y%m%d-%H%M%S)
18
+ ```
19
+
20
+ ### Per Task
21
+ ```
22
+ 1. Execute task
23
+ 2. Checkpoint: git commit -m "checkpoint: task-N"
24
+ 3. Tag: git tag checkpoint/task-N
25
+ ```
26
+
27
+ ### On Failure
28
+ ```bash
29
+ git reset --hard checkpoint/task-{N-1}
30
+ ```
31
+
32
+ ## Output
33
+ ```
34
+ [1/N] Task... ✓
35
+ [2/N] Task... ✓
36
+
37
+ Summary:
38
+ - Tasks: N/N ✓
39
+ - Checkpoints: N created
40
+ - Restore: restore-point/[timestamp]
41
+ ```
42
+
43
+ ## Autonomous Mode
44
+
45
+ For 5+ task plans, execute without constant interaction:
46
+
47
+ - Auto-fix compilation and test errors (max 2 retries per task)
48
+ - Report progress every 3 completed tasks
49
+ - Batch small tasks in same module for efficiency
50
+ - Continue with independent tasks if one fails
51
+
52
+ **Agent decides:** File creation within scope, lint fixes, retry 1x, devDeps install.
53
+ **Must ask user:** Schema changes, API changes, deleting files, out-of-scope changes.
54
+
55
+ If self-healing fails twice → Rollback to checkpoint → Ask user → Continue independent tasks.
56
+
57
+ ## Rules
58
+
59
+ - Always create checkpoints
60
+ - Stop on errors (or self-heal in autonomous mode)
61
+ - Track costs