specialist-agent 1.6.0 โ†’ 2.0.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
package/README.md CHANGED
@@ -1,384 +1,325 @@
1
1
  <p align="center">
2
- <img src="docs/public/social-preview-banner.svg" alt="Specialist Agent โ€” AI agents for Claude Code" />
2
+ <img src="docs/public/social-preview-banner.svg" alt="Specialist Agent" />
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
- <b>Supercharge <a href="https://docs.anthropic.com/en/docs/claude-code">Claude Code</a> with specialized AI agents for any framework.</b><br/>
7
- Scaffold projects, build features, review architecture, migrate legacy code, and hunt bugs โ€” all following your project's conventions automatically.
6
+ <b>Your AI Development Team</b><br/>
7
+ 25+ specialized agents that build, review, debug, and ship production code.
8
8
  </p>
9
9
 
10
10
  [![CI](https://github.com/HerbertJulio/specialist-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/HerbertJulio/specialist-agent/actions/workflows/ci.yml)
11
11
  [![Release](https://img.shields.io/github/v/release/HerbertJulio/specialist-agent?label=Release)](https://github.com/HerbertJulio/specialist-agent/releases/latest)
12
12
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
13
13
  [![Docs](https://img.shields.io/badge/Docs-VitePress-646cff.svg)](https://herbertjulio.github.io/specialist-agent/)
14
- [![GitHub stars](https://img.shields.io/github/stars/HerbertJulio/specialist-agent?style=flat&logo=github&label=Stars)](https://github.com/HerbertJulio/specialist-agent/stargazers)
15
14
 
16
15
  ---
17
16
 
18
- ## ๐Ÿ“– Table of Contents
19
-
20
- - [๐Ÿ’ก What is Specialist Agent?](#-what-is-specialist-agent)
21
- - [๐Ÿช™ Token Consumption Notice](#-token-consumption-notice)
22
- - [๐Ÿš€ Quick Start](#-quick-start)
23
- - [๐Ÿค– Meet Your AI Team](#-meet-your-ai-team)
24
- - [โšก Skills](#-skills)
25
- - [๐Ÿ›๏ธ Architecture](#๏ธ-architecture)
26
- - [๐Ÿชถ Lite Mode](#-lite-mode--lower-token-usage)
27
- - [๐Ÿ“ Project Structure](#-project-structure)
28
- - [๐Ÿ”Œ Optional: Context7 MCP](#-optional-context7-mcp)
29
- - [๐Ÿ”ง Customization](#-customization)
30
- - [๐Ÿ“š Documentation](#-documentation)
31
- - [๐Ÿ“ซ Contributing](#-contributing)
32
- - [๐Ÿ“ License](#-license)
17
+ ## Why Specialist Agent?
33
18
 
34
- ---
35
-
36
- ## ๐Ÿ’ก What is Specialist Agent?
37
-
38
- Specialist Agent is a collection of **AI agents**, **skills**, and **architectural conventions** for Claude Code. It's not a library โ€” it's a set of markdown instructions that make Claude Code work like a senior developer who knows your codebase.
39
-
40
- **Framework packs** provide stack-specific agents, skills, and architecture patterns:
41
-
42
- | Pack | Stack |
43
- |------|-------|
44
- | **Next.js** | Next.js 14+ (App Router) + TypeScript + Zustand + Server Components |
45
- | **React** | React 18 + TypeScript + Zustand + TanStack React Query |
46
- | **SvelteKit** | SvelteKit 2 + TypeScript + Svelte stores + load functions |
47
- | **Vue 3** | Vue 3 + TypeScript + Pinia + TanStack Vue Query |
48
-
49
- ---
50
-
51
- ## ๐Ÿช™ Token Consumption Notice
52
-
53
- Agents consume tokens proportional to their complexity. Specialist Agent ships with **Lite agents** that use `model: haiku` โ€” significantly cheaper per token.
54
-
55
- | Mode | Model | Module scaffold | Code review | Bug investigation |
56
- |------|-------|-----------------|-------------|-------------------|
57
- | **Full** | Sonnet/Opus | ~15-25k tokens | ~8-15k tokens | ~5-10k tokens |
58
- | **Lite** | Haiku | ~5-10k tokens | ~3-5k tokens | ~2-5k tokens |
19
+ | | Specialist Agent | Others |
20
+ |---|---|---|
21
+ | **Agents** | 25+ specialized | 1-5 generic |
22
+ | **Frameworks** | Next.js, React, Vue, SvelteKit | Generic only |
23
+ | **Cost** | Lite mode (60-80% cheaper) | Full cost always |
24
+ | **Verification** | Proof-based (command output) | Trust-based ("it works") |
25
+ | **Memory** | Cross-session persistence | None |
26
+ | **Rollback** | Git checkpoints | None |
27
+ | **Hooks** | 11 (7 lifecycle + 4 native) | 0-1 |
28
+ | **Platforms** | 6 (Claude, Cursor, VS Code, Windsurf, Codex, OpenCode) | 1-3 |
59
29
 
60
30
  ---
61
31
 
62
- ## ๐Ÿš€ Quick Start
32
+ ## Install
63
33
 
64
- **1. Install into your project**
34
+ **Marketplace:**
35
+ ```
36
+ /plugin install specialist-agent
37
+ ```
65
38
 
39
+ **CLI:**
66
40
  ```bash
67
- cd /path/to/your-project
68
41
  npx specialist-agent init
69
42
  ```
70
43
 
71
- The wizard will:
72
-
73
- 1. **Auto-detect** your framework from `package.json` (or ask)
74
- 2. Choose **Full** or **Lite** mode
75
- 3. Install **@starter** agent (optional)
76
- 4. Install **specialist agents** โ€” @finance, @cloud, @security, etc. (optional)
77
- 5. Install generic agents **globally** to `~/.claude/agents` (optional)
78
-
79
- **2. Start using**
80
-
81
- ```bash
82
- claude
83
-
84
- # Create a new project from scratch
85
- "Use @starter to create a task-manager app with React + Express + PostgreSQL"
86
-
87
- # Build a feature inside an existing project
88
- "Use @builder to create an orders module with CRUD for GET/POST/PATCH/DELETE /v2/orders"
89
- ```
44
+ Done. Start building.
90
45
 
91
46
  ---
92
47
 
93
- ## ๐Ÿค– Meet Your AI Team
48
+ ## Agents
94
49
 
95
- ### Framework-Agnostic
50
+ ### Core
96
51
 
97
- | Agent | What it does |
52
+ | Agent | What it Does |
98
53
  |-------|--------------|
99
- | **@starter** | Create a new project from scratch โ€” any frontend + backend + database |
100
- | **@explorer** | Explore unfamiliar codebases โ€” onboarding, technical assessments, health score |
54
+ | `@starter` | Create projects from scratch |
55
+ | `@builder` | Build modules, components, services |
56
+ | `@reviewer` | Unified 3-in-1 review (spec + quality + architecture) |
57
+ | `@doctor` | Debug issues systematically |
58
+ | `@migrator` | Modernize legacy code |
101
59
 
102
- ### Specialist Agents
60
+ ### Workflow
103
61
 
104
- | Agent | What it does |
62
+ | Agent | What it Does |
105
63
  |-------|--------------|
106
- | **@finance** | Payment integration, billing, invoicing, tax calculation, financial reporting |
107
- | **@cloud** | Cloud architecture, IaC (Terraform/Pulumi), serverless, containers, CI/CD |
108
- | **@security** | Auth flows (OAuth/JWT), OWASP compliance, RBAC/ABAC, encryption |
109
- | **@designer** | Design systems, responsive layouts, accessibility (WCAG), theming |
110
- | **@data** | Database modeling, migrations, caching strategies, query optimization |
111
- | **@devops** | Docker, Kubernetes, CI/CD pipelines, monitoring, logging |
112
- | **@tester** | Test strategies, test suites, coverage analysis, mocking patterns |
64
+ | `@planner` | Plan features adaptively by complexity |
65
+ | `@executor` | Execute with checkpoints and cost tracking |
66
+ | `@tdd` | Test-Driven Development (RED-GREEN-REFACTOR) |
67
+ | `@debugger` | 4-phase systematic debugging |
68
+ | `@pair` | Real-time pair programming |
69
+ | `@analyst` | Requirements to technical specs |
70
+ | `@orchestrator` | Coordinate multiple agents |
113
71
 
114
- ### Day-to-Day Development
72
+ ### Specialists
115
73
 
116
- | Agent | What it does |
74
+ | Agent | What it Does |
117
75
  |-------|--------------|
118
- | **@builder** | Create modules, components, services, state logic, and tests |
119
- | **@reviewer** | Review PRs, explore modules, check performance |
120
- | **@doctor** | Investigate bugs by tracing through architecture layers |
121
-
122
- ### Architecture Migration
123
-
124
- | Agent | What it does |
76
+ | `@api` | REST/GraphQL API design |
77
+ | `@perf` | Performance optimization |
78
+ | `@security` | Auth, OWASP, encryption |
79
+ | `@finance` | Payments, billing, subscriptions |
80
+ | `@cloud` | AWS, GCP, Terraform, serverless |
81
+ | `@data` | Database design, migrations, caching |
82
+ | `@devops` | Docker, K8s, CI/CD |
83
+ | `@i18n` | Internationalization |
84
+ | `@docs` | Documentation generation |
85
+ | `@refactor` | Code refactoring |
86
+ | `@deps` | Dependency management |
87
+ | `@legal` | GDPR, LGPD, CCPA compliance |
88
+ | `@designer` | Design systems, accessibility |
89
+ | `@tester` | Test strategies |
90
+
91
+ ### Support
92
+
93
+ | Agent | What it Does |
125
94
  |-------|--------------|
126
- | **@migrator** | Migrate legacy code to modern patterns (per framework pack) |
127
- | **@reviewer** | Diagnose current state before migration, validate after |
95
+ | `@scout` | Quick project analysis (~500 tokens) |
96
+ | `@explorer` | Deep codebase exploration |
97
+ | `@memory` | Session memory management |
128
98
 
129
- ```bash
130
- # Start a new full-stack project
131
- "Use @starter to create an e-commerce app with Next.js + Fastify + PostgreSQL"
99
+ ---
132
100
 
133
- # Explore an unfamiliar codebase
134
- "Use @explorer to assess this project โ€” I just joined the team"
101
+ ## Skills
135
102
 
136
- # Build features
137
- "Use @builder to create the orders module with CRUD for /v2/orders"
103
+ | Skill | What it Does |
104
+ |-------|--------------|
105
+ | `/brainstorm` | Socratic brainstorming โ€” refine ideas before planning |
106
+ | `/plan` | Plan a feature adaptively |
107
+ | `/tdd` | Test-driven development cycle |
108
+ | `/debug` | 4-phase systematic debugging |
109
+ | `/audit` | Multi-domain code audit (security + perf + architecture + deps) |
110
+ | `/onboard` | Codebase onboarding for new developers |
111
+ | `/checkpoint` | Save/restore progress with git |
112
+ | `/health` | Project health score (0-100) |
113
+ | `/verify` | Verification before completion (proof-based) |
114
+ | `/remember` | Save decisions to memory |
115
+ | `/recall` | Query saved decisions |
116
+ | `/estimate` | Estimate token cost before starting |
117
+ | `/finish` | Finalize branch with metrics |
118
+ | `/learn` | Learning mode โ€” explains while building |
119
+ | `/tutorial` | Interactive tutorial |
120
+ | `/worktree` | Git worktree isolation for parallel tasks |
121
+ | `/write-skill` | Create or improve skills with TDD |
122
+ | `/migrate-framework` | Migrate between frameworks |
138
123
 
139
- # Review before merging
140
- "Use @reviewer to review the changes in the payments module"
124
+ ---
141
125
 
142
- # Debug issues
143
- "Use @doctor to investigate the 500 error on login"
126
+ ## Framework Packs
144
127
 
145
- # Migrate legacy code (6 phases with approval gates)
146
- "Use @migrator to migrate the billing module to the target architecture"
147
- ```
128
+ | Pack | Stack |
129
+ |------|-------|
130
+ | **Next.js** | App Router + TypeScript + Zustand |
131
+ | **React** | React 18 + TypeScript + React Query |
132
+ | **Vue 3** | Vue 3 + TypeScript + Pinia |
133
+ | **SvelteKit** | SvelteKit 2 + TypeScript |
134
+
135
+ Each pack includes framework-specific agents, skills, and architecture patterns.
148
136
 
149
137
  ---
150
138
 
151
- ## โšก Skills
139
+ ## Examples
152
140
 
153
- Quick shortcuts you invoke with `/skill-name` in Claude Code.
141
+ ```bash
142
+ # New project
143
+ "Use @starter to create an e-commerce app with Next.js + PostgreSQL"
154
144
 
155
- ### Development
145
+ # Build a feature
146
+ "Use @builder to create a products module with CRUD"
156
147
 
157
- | Skill | What it does |
158
- |-------|--------------|
159
- | `/dev-create-module [name]` | Full module scaffold (delegates to agents) |
160
- | `/dev-create-component [name]` | Component from framework-specific template |
161
- | `/dev-create-service [resource]` | Types + contracts + adapter + service |
162
- | `/dev-create-hook` or `/dev-create-composable` | Hook/composable/store with server state integration |
163
- | `/dev-create-test [file]` | Tests for adapter, hook/composable, or component |
164
- | `/dev-generate-types [endpoint]` | Types + contracts + adapter from endpoint/JSON |
148
+ # Review code
149
+ "Use @reviewer to review the auth module"
165
150
 
166
- ### Quality
151
+ # Debug
152
+ "Use @doctor to investigate the 500 error"
167
153
 
168
- | Skill | What it does |
169
- |-------|--------------|
170
- | `/review-review [scope]` | Full code review (automated + manual) |
171
- | `/review-check-architecture [module]` | Automated conformance checks |
172
- | `/review-fix-violations [module]` | Auto-fix violations by priority |
154
+ # Plan
155
+ /plan add user authentication
173
156
 
174
- ### Migration
157
+ # TDD
158
+ /tdd implement calculateDiscount
175
159
 
176
- | Skill | What it does |
177
- |-------|--------------|
178
- | `/migration-migrate-component [file]` | Migrate component to target architecture |
179
- | `/migration-migrate-module [path]` | Full module migration (6 phases) |
160
+ # Audit
161
+ /audit src/modules/auth
180
162
 
181
- ### Documentation
163
+ # Onboard
164
+ /onboard
182
165
 
183
- | Skill | What it does |
184
- |-------|--------------|
185
- | `/docs-onboard [module]` | 2-minute module overview for onboarding |
166
+ # Save progress
167
+ /checkpoint create before-refactor
168
+ ```
186
169
 
187
170
  ---
188
171
 
189
- ## ๐Ÿ›๏ธ Architecture
172
+ ## Verification Protocol
190
173
 
191
- All agents enforce the four-layer architecture defined in each pack:
174
+ All agents verify claims with evidence before marking work complete:
192
175
 
193
- ```text
194
- Service (HTTP only) โ†’ Adapter (parse) โ†’ Orchestration โ†’ Component (UI)
195
176
  ```
177
+ CLAIM: "Tests pass"
178
+ PROOF: Must show actual test output in the same message
196
179
 
197
- Each pack adapts the orchestration layer:
180
+ CLAIM: "Build succeeds"
181
+ PROOF: Must show build command output
198
182
 
199
- | Pack | Orchestration | Client State | File Extension |
200
- |------|---------------|--------------|----------------|
201
- | Next.js | Hooks + Server Actions | Zustand | `.tsx` |
202
- | React | Hooks + React Query | Zustand | `.tsx` |
203
- | SvelteKit | Stores + load functions | Svelte stores | `.svelte` |
204
- | Vue 3 | Composables + Vue Query | Pinia | `.vue` |
183
+ CLAIM: "No security issues"
184
+ PROOF: Must show npm audit / lint output
185
+ ```
205
186
 
206
- > Full guide: `docs/ARCHITECTURE.md` โ€” the source of truth that all agents read.
187
+ No "should work" โ€” run the command, show the output.
207
188
 
208
189
  ---
209
190
 
210
- ## ๐Ÿชถ Lite Mode โ€” Lower Token Usage
191
+ ## Hooks
211
192
 
212
- For cost-conscious usage or simpler tasks:
193
+ 7 lifecycle hooks + 4 native Claude Code hooks:
213
194
 
214
- ```bash
215
- npx specialist-agent init # select "Lite" mode in wizard
216
- ```
195
+ | Hook | When |
196
+ |------|------|
197
+ | `session-start` | Session begins |
198
+ | `before-plan` | Before `@planner` creates a plan |
199
+ | `after-task` | After any task completes |
200
+ | `before-review` | Before `@reviewer` starts |
201
+ | `after-review` | After `@reviewer` finishes |
202
+ | `on-error` | When an error occurs |
203
+ | `session-end` | Session ends |
217
204
 
218
- | Aspect | Full | Lite |
219
- |--------|------|------|
220
- | **Model** | Sonnet/Opus (default) | Haiku |
221
- | **First action** | Reads ARCHITECTURE.md | Rules inline |
222
- | **Validation** | tsc, build, vitest | Skipped |
223
- | **Size** | ~80-120 lines | ~30-50 lines |
224
- | **Cost** | ~5-25k tokens | ~2-10k tokens |
205
+ ### Native Hooks (Claude Code)
225
206
 
226
- ---
207
+ | Hook | Event | What it Does |
208
+ |------|-------|-------------|
209
+ | Security Guard | `PreToolUse` | Blocks dangerous commands (`rm -rf /`, force push, `DROP TABLE`) |
210
+ | Auto-Dispatch | `UserPromptSubmit` | Suggests the best agent for your prompt |
211
+ | Session Context | `SessionStart` | Injects project state (branch, agents, memory) |
212
+ | Auto-Format | `PostToolUse` | Auto-formats files after Write/Edit |
227
213
 
228
- ## ๐Ÿ“ Project Structure
229
-
230
- ```text
231
- specialist-agent/
232
- โ”œโ”€โ”€ packs/
233
- โ”‚ โ”œโ”€โ”€ vue/ โ† Vue 3 pack
234
- โ”‚ โ”œโ”€โ”€ react/ โ† React pack
235
- โ”‚ โ”œโ”€โ”€ nextjs/ โ† Next.js pack
236
- โ”‚ โ””โ”€โ”€ svelte/ โ† SvelteKit pack
237
- โ”‚ โ”œโ”€โ”€ agents/ โ† Full agents (4)
238
- โ”‚ โ”œโ”€โ”€ agents-lite/ โ† Lite agents (4)
239
- โ”‚ โ”œโ”€โ”€ skills/ โ† Skills (12)
240
- โ”‚ โ”œโ”€โ”€ ARCHITECTURE.md โ† Architecture patterns
241
- โ”‚ โ””โ”€โ”€ CLAUDE.md โ† Pack-specific config
242
- โ”‚
243
- โ”œโ”€โ”€ agents/ โ† Framework-agnostic agents (9 + 9 lite)
244
- โ”‚
245
- โ”œโ”€โ”€ cli/ โ† CLI installer
246
- โ”‚ โ””โ”€โ”€ index.mjs โ† npx specialist-agent init
247
- โ”‚
248
- โ”œโ”€โ”€ docs/ โ† VitePress documentation
249
- โ””โ”€โ”€ package.json
250
- ```
214
+ Configure lifecycle hooks in `hooks/hooks.json`. Native hooks in `.claude/settings.json`.
251
215
 
252
216
  ---
253
217
 
254
- ## ๐Ÿ”Œ Optional: Context7 MCP
255
-
256
- For up-to-date library documentation when asking Claude about APIs, you can add the [Context7 MCP server](https://github.com/upstash/context7). This benefits you as a developer โ€” agents work fully without it.
218
+ ## Security
257
219
 
258
- ### Setup
220
+ The Security Guard hook blocks dangerous commands **before** they execute:
259
221
 
260
- Add to your Claude Code MCP config (`~/.claude/mcp.json`):
222
+ - **CRITICAL:** `rm -rf /`, fork bombs, disk wipe commands
223
+ - **HIGH:** Force push to main, `git reset --hard`, `DROP TABLE`, `curl | bash`
224
+ - **MEDIUM:** Reading `.env` files, inline secrets in commands
261
225
 
262
- ```json
263
- {
264
- "mcpServers": {
265
- "context7": {
266
- "command": "npx",
267
- "args": ["-y", "@upstash/context7-mcp@latest"]
268
- }
269
- }
270
- }
271
- ```
226
+ Customize rules in `hooks/native/security-config.json`.
272
227
 
273
228
  ---
274
229
 
275
- ## ๐Ÿ”ง Customization
230
+ ## Full vs Lite Mode
276
231
 
277
- ### Add an Agent
232
+ | Mode | Model | Cost |
233
+ |------|-------|------|
234
+ | Full | Sonnet/Opus | Higher accuracy |
235
+ | Lite | Haiku | 60-80% cheaper |
278
236
 
279
- Create `.claude/agents/my-agent.md` following the **5-part blueprint** (Mission, Workflow, Output, Rules, Handoff):
237
+ Choose during installation. All 25+ agents have lite variants.
280
238
 
281
- ```markdown
282
- ---
283
- name: my-agent
284
- description: "MUST BE USED to [do X] when [trigger]. Use PROACTIVELY when [condition]."
285
- tools: Read, Write, Edit, Bash, Glob, Grep
286
239
  ---
287
240
 
288
- # Title
241
+ ## Platforms
289
242
 
290
- ## Mission
291
- One sentence describing what this agent does.
243
+ | Platform | Install |
244
+ |----------|---------|
245
+ | Claude Code | `npx specialist-agent init` or `/plugin install` |
246
+ | Cursor | Copy `.cursor-plugin/` |
247
+ | VS Code | `.vscode/extension.json` |
248
+ | Windsurf | `.windsurf/plugin.json` |
249
+ | Codex | `.codex/INSTALL.md` |
250
+ | OpenCode | `.opencode/INSTALL.md` |
292
251
 
293
- ## Workflow
294
- 1. Step one
295
- 2. Step two
296
-
297
- ## Output
298
- After completing work, provide:
299
- - What was done (files created/modified)
300
- - Key decisions and rationale
301
- - Validation results
302
- - Recommendations for next steps
252
+ ---
303
253
 
304
- ## Rules
305
- - Rule one
306
- - Rule two
254
+ ## CLI
307
255
 
308
- ## Handoff Protocol
309
- - If [condition] โ†’ suggest @agent-name
256
+ ```bash
257
+ npx specialist-agent init # Install
258
+ npx specialist-agent create-agent @my-agent # Create agent
259
+ npx specialist-agent list # List agents
260
+ npx specialist-agent profiles set startup-fast # Set profile
261
+ npx specialist-agent community list # Community skills
310
262
  ```
311
263
 
312
- ### Add a Skill
264
+ ---
265
+
266
+ ## Team Profiles
313
267
 
314
- Create `.claude/skills/my-skill/SKILL.md`:
268
+ | Profile | Description |
269
+ |---------|-------------|
270
+ | `startup-fast` | Move fast, Haiku |
271
+ | `enterprise-strict` | Full validation |
272
+ | `learning-mode` | Explain everything |
273
+ | `cost-optimized` | Minimize tokens |
315
274
 
316
- ```markdown
317
275
  ---
318
- name: my-skill
319
- description: "What this skill does and when to use it"
320
- user-invocable: true
321
- argument-hint: "[arguments]"
322
- allowed-tools: Read, Write, Edit, Bash, Glob, Grep
276
+
277
+ ## Industry Templates
278
+
279
+ | Template | For |
280
+ |----------|-----|
281
+ | E-commerce | Online stores |
282
+ | SaaS | Subscription apps |
283
+ | Fintech | Financial apps |
284
+
323
285
  ---
324
286
 
325
- Instructions for the skill.
287
+ ## Session Memory
326
288
 
327
- Target: $ARGUMENTS
289
+ ```bash
290
+ # Save a decision
291
+ /remember use Zustand for state management
328
292
 
329
- ## Steps
330
- 1. ...
293
+ # Recall later
294
+ /recall state management
331
295
  ```
332
296
 
333
- ### Edit Architecture Patterns
334
-
335
- Edit `docs/ARCHITECTURE.md` โ€” all agents read this file before acting. Changes take effect immediately.
297
+ Decisions persist across sessions.
336
298
 
337
299
  ---
338
300
 
339
- ## ๐Ÿ“š Documentation
301
+ ## Documentation
340
302
 
341
- Full docs are available via VitePress:
303
+ Full docs: [herbertjulio.github.io/specialist-agent](https://herbertjulio.github.io/specialist-agent/)
342
304
 
343
305
  ```bash
344
- cd specialist-agent
345
- npm install && npm run docs:dev
306
+ npm run docs:dev
346
307
  ```
347
308
 
348
- - [Introduction](docs/guide/introduction.md)
349
- - [Installation](docs/guide/installation.md)
350
- - [Quick Start](docs/guide/quick-start.md)
351
- - [Architecture Guide](docs/guide/architecture.md)
352
- - [Agents Reference](docs/reference/agents.md)
353
- - [Skills Reference](docs/reference/skills.md)
354
-
355
309
  ---
356
310
 
357
- ## ๐Ÿ“ซ Contributing
358
-
359
- Contributions are welcome!
311
+ ## Contributing
360
312
 
361
- - Star this repo if you find it useful
362
- - **Issues** โ€” Report bugs or suggest improvements
363
- - **Pull Requests** โ€” New packs, agents, skills, or pattern improvements
364
- - **Discussions** โ€” Share how you've customized Specialist Agent
313
+ Contributions welcome.
365
314
 
366
315
  ```bash
367
316
  git checkout -b feature/my-feature
368
317
  git commit -m 'feat: add my feature'
369
318
  git push origin feature/my-feature
370
- # Open a Pull Request
371
319
  ```
372
320
 
373
321
  ---
374
322
 
375
- ## ๐Ÿ“ License
323
+ ## License
376
324
 
377
- MIT โ€” Use freely. See [LICENSE](LICENSE).
378
-
379
- ---
380
-
381
- <p align="center">
382
- <b>Built for developers who use Claude Code every day.</b><br/>
383
- <a href="https://github.com/HerbertJulio/specialist-agent">GitHub</a> ยท <a href="docs/guide/introduction.md">Docs</a> ยท <a href="https://github.com/HerbertJulio/specialist-agent/issues">Issues</a>
384
- </p>
325
+ MIT
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: analyst
3
+ description: "Use when requirements are ambiguous, incomplete, or need to be translated into technical specifications."
4
+ model: haiku
5
+ tools: Read, Glob, Grep
6
+ ---
7
+
8
+ # @analyst (Lite) โ€” Requirements Analysis
9
+
10
+ ## Mission
11
+ Transform business requirements into technical specifications.
12
+
13
+ ## Workflow
14
+ 1. Clarify requirements
15
+ 2. Analyze existing system
16
+ 3. Produce technical spec
17
+
18
+ ## Output Structure
19
+ ```markdown
20
+ # Technical Specification: [Feature]
21
+
22
+ ## Data Models
23
+ [TypeScript interfaces]
24
+
25
+ ## API Contracts
26
+ [Endpoints]
27
+
28
+ ## User Stories
29
+ [Actionable tasks]
30
+
31
+ ## Acceptance Criteria
32
+ [Testable conditions]
33
+
34
+ ## Estimated Complexity
35
+ - Files: ~N
36
+ - Lines: ~N
37
+ ```
38
+
39
+ ## Questions I Ask
40
+ - Who uses this?
41
+ - What problem does it solve?
42
+ - What's excluded?
43
+ - How do we know it's done?
44
+
45
+ ## Rules
46
+ - Never assume
47
+ - Be specific
48
+ - Think in data and APIs