specialist-agent 1.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.
- package/LICENSE +21 -0
- package/README.md +346 -0
- package/agents/cloud-lite.md +44 -0
- package/agents/cloud.md +122 -0
- package/agents/data-lite.md +44 -0
- package/agents/data.md +136 -0
- package/agents/designer-lite.md +44 -0
- package/agents/designer.md +126 -0
- package/agents/devops-lite.md +44 -0
- package/agents/devops.md +131 -0
- package/agents/finance-lite.md +43 -0
- package/agents/finance.md +108 -0
- package/agents/security-lite.md +43 -0
- package/agents/security.md +123 -0
- package/agents/starter-lite.md +49 -0
- package/agents/starter.md +200 -0
- package/agents/tester-lite.md +48 -0
- package/agents/tester.md +142 -0
- package/cli/index.mjs +232 -0
- package/package.json +45 -0
- package/packs/nextjs/ARCHITECTURE.md +1033 -0
- package/packs/nextjs/CLAUDE.md +70 -0
- package/packs/nextjs/agents/builder.md +145 -0
- package/packs/nextjs/agents/doctor.md +152 -0
- package/packs/nextjs/agents/migrator.md +203 -0
- package/packs/nextjs/agents/reviewer.md +141 -0
- package/packs/nextjs/agents-lite/builder.md +51 -0
- package/packs/nextjs/agents-lite/doctor.md +51 -0
- package/packs/nextjs/agents-lite/migrator.md +52 -0
- package/packs/nextjs/agents-lite/reviewer.md +51 -0
- package/packs/nextjs/skills/dev-create-component/SKILL.md +82 -0
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +90 -0
- package/packs/nextjs/skills/dev-create-module/SKILL.md +63 -0
- package/packs/nextjs/skills/dev-create-service/SKILL.md +35 -0
- package/packs/nextjs/skills/dev-create-test/SKILL.md +106 -0
- package/packs/nextjs/skills/dev-generate-types/SKILL.md +37 -0
- package/packs/nextjs/skills/docs-onboard/SKILL.md +55 -0
- package/packs/nextjs/skills/migration-migrate-component/SKILL.md +58 -0
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +25 -0
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +101 -0
- package/packs/nextjs/skills/review-fix-violations/SKILL.md +48 -0
- package/packs/nextjs/skills/review-review/SKILL.md +46 -0
- package/packs/react/ARCHITECTURE.md +991 -0
- package/packs/react/CLAUDE.md +66 -0
- package/packs/react/agents/builder.md +74 -0
- package/packs/react/agents/doctor.md +100 -0
- package/packs/react/agents/migrator.md +114 -0
- package/packs/react/agents/reviewer.md +116 -0
- package/packs/react/agents-lite/builder.md +42 -0
- package/packs/react/agents-lite/doctor.md +41 -0
- package/packs/react/agents-lite/migrator.md +51 -0
- package/packs/react/agents-lite/reviewer.md +47 -0
- package/packs/react/skills/dev-create-component/SKILL.md +53 -0
- package/packs/react/skills/dev-create-hook/SKILL.md +78 -0
- package/packs/react/skills/dev-create-module/SKILL.md +51 -0
- package/packs/react/skills/dev-create-service/SKILL.md +34 -0
- package/packs/react/skills/dev-create-test/SKILL.md +92 -0
- package/packs/react/skills/dev-generate-types/SKILL.md +37 -0
- package/packs/react/skills/docs-onboard/SKILL.md +42 -0
- package/packs/react/skills/migration-migrate-component/SKILL.md +44 -0
- package/packs/react/skills/migration-migrate-module/SKILL.md +25 -0
- package/packs/react/skills/review-check-architecture/SKILL.md +73 -0
- package/packs/react/skills/review-fix-violations/SKILL.md +45 -0
- package/packs/react/skills/review-review/SKILL.md +43 -0
- package/packs/svelte/ARCHITECTURE.md +975 -0
- package/packs/svelte/CLAUDE.md +66 -0
- package/packs/svelte/agents/builder.md +80 -0
- package/packs/svelte/agents/doctor.md +100 -0
- package/packs/svelte/agents/migrator.md +128 -0
- package/packs/svelte/agents/reviewer.md +104 -0
- package/packs/svelte/agents-lite/builder.md +43 -0
- package/packs/svelte/agents-lite/doctor.md +44 -0
- package/packs/svelte/agents-lite/migrator.md +59 -0
- package/packs/svelte/agents-lite/reviewer.md +48 -0
- package/packs/svelte/skills/dev-create-component/SKILL.md +77 -0
- package/packs/svelte/skills/dev-create-module/SKILL.md +59 -0
- package/packs/svelte/skills/dev-create-service/SKILL.md +35 -0
- package/packs/svelte/skills/dev-create-store/SKILL.md +94 -0
- package/packs/svelte/skills/dev-create-test/SKILL.md +98 -0
- package/packs/svelte/skills/dev-generate-types/SKILL.md +37 -0
- package/packs/svelte/skills/docs-onboard/SKILL.md +47 -0
- package/packs/svelte/skills/migration-migrate-component/SKILL.md +51 -0
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +25 -0
- package/packs/svelte/skills/review-check-architecture/SKILL.md +79 -0
- package/packs/svelte/skills/review-fix-violations/SKILL.md +47 -0
- package/packs/svelte/skills/review-review/SKILL.md +44 -0
- package/packs/vue/ARCHITECTURE.md +798 -0
- package/packs/vue/CLAUDE.md +66 -0
- package/packs/vue/agents/builder.md +73 -0
- package/packs/vue/agents/doctor.md +82 -0
- package/packs/vue/agents/migrator.md +101 -0
- package/packs/vue/agents/reviewer.md +92 -0
- package/packs/vue/agents-lite/builder.md +42 -0
- package/packs/vue/agents-lite/doctor.md +40 -0
- package/packs/vue/agents-lite/migrator.md +50 -0
- package/packs/vue/agents-lite/reviewer.md +46 -0
- package/packs/vue/skills/dev-create-component/SKILL.md +58 -0
- package/packs/vue/skills/dev-create-composable/SKILL.md +31 -0
- package/packs/vue/skills/dev-create-module/SKILL.md +50 -0
- package/packs/vue/skills/dev-create-service/SKILL.md +34 -0
- package/packs/vue/skills/dev-create-test/SKILL.md +62 -0
- package/packs/vue/skills/dev-generate-types/SKILL.md +37 -0
- package/packs/vue/skills/docs-onboard/SKILL.md +42 -0
- package/packs/vue/skills/migration-migrate-component/SKILL.md +41 -0
- package/packs/vue/skills/migration-migrate-module/SKILL.md +25 -0
- package/packs/vue/skills/review-check-architecture/SKILL.md +73 -0
- package/packs/vue/skills/review-fix-violations/SKILL.md +42 -0
- package/packs/vue/skills/review-review/SKILL.md +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/public/logo.svg" alt="Specialist Agent" width="80" height="80" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# Specialist Agent — AI Development Team for Claude Code
|
|
6
|
+
|
|
7
|
+
**Supercharge [Claude Code](https://docs.anthropic.com/en/docs/claude-code) with specialized AI agents for any framework.** Scaffold projects, build features, review architecture, migrate legacy code, and hunt bugs — all following your project's conventions automatically.
|
|
8
|
+
|
|
9
|
+
[](https://github.com/HerbertJulio/specialist-agent/actions/workflows/ci.yml)
|
|
10
|
+
[](https://github.com/HerbertJulio/specialist-agent/releases/latest)
|
|
11
|
+
[](LICENSE)
|
|
12
|
+
[](https://herbertjulio.github.io/specialist-agent/)
|
|
13
|
+
[](https://github.com/HerbertJulio/specialist-agent/stargazers)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## What is Specialist Agent?
|
|
18
|
+
|
|
19
|
+
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.
|
|
20
|
+
|
|
21
|
+
**Framework packs** provide stack-specific agents, skills, and architecture patterns:
|
|
22
|
+
|
|
23
|
+
| Pack | Stack |
|
|
24
|
+
|------|-------|
|
|
25
|
+
| **Vue 3** | Vue 3 + TypeScript + Pinia + TanStack Vue Query |
|
|
26
|
+
| **React** | React 18 + TypeScript + Zustand + TanStack React Query |
|
|
27
|
+
| **Next.js** | Next.js 14+ (App Router) + TypeScript + Zustand + Server Components |
|
|
28
|
+
| **SvelteKit** | SvelteKit 2 + TypeScript + Svelte stores + load functions |
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Token Consumption Notice
|
|
33
|
+
|
|
34
|
+
Agents consume tokens proportional to their complexity. Specialist Agent ships with **Lite agents** that use `model: haiku` — significantly cheaper per token.
|
|
35
|
+
|
|
36
|
+
| Mode | Model | Module scaffold | Code review | Bug investigation |
|
|
37
|
+
|------|-------|-----------------|-------------|-------------------|
|
|
38
|
+
| **Full** | Sonnet/Opus | ~15-25k tokens | ~8-15k tokens | ~5-10k tokens |
|
|
39
|
+
| **Lite** | Haiku | ~5-10k tokens | ~3-5k tokens | ~2-5k tokens |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Quick Start
|
|
44
|
+
|
|
45
|
+
**1. Install into your project**
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cd /path/to/your-project
|
|
49
|
+
npx specialist-agent init
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The wizard asks:
|
|
53
|
+
1. Which framework? (Vue 3, React...)
|
|
54
|
+
2. Full or Lite mode?
|
|
55
|
+
3. Install @starter agent?
|
|
56
|
+
|
|
57
|
+
**2. Start using**
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
claude
|
|
61
|
+
|
|
62
|
+
# Create a new project from scratch
|
|
63
|
+
"Use @starter to create a task-manager app with Vue + Express + PostgreSQL"
|
|
64
|
+
|
|
65
|
+
# Build a feature inside an existing project
|
|
66
|
+
"Use @builder to create a domains module with CRUD"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Meet Your AI Team
|
|
72
|
+
|
|
73
|
+
### Framework-Agnostic
|
|
74
|
+
|
|
75
|
+
| Agent | What it does |
|
|
76
|
+
|-------|--------------|
|
|
77
|
+
| **@starter** | Create a new project from scratch — any frontend + backend + database |
|
|
78
|
+
|
|
79
|
+
### Specialist Agents
|
|
80
|
+
|
|
81
|
+
| Agent | What it does |
|
|
82
|
+
|-------|--------------|
|
|
83
|
+
| **@finance** | Payment integration, billing, invoicing, tax calculation, financial reporting |
|
|
84
|
+
| **@cloud** | Cloud architecture, IaC (Terraform/Pulumi), serverless, containers, CI/CD |
|
|
85
|
+
| **@security** | Auth flows (OAuth/JWT), OWASP compliance, RBAC/ABAC, encryption |
|
|
86
|
+
| **@designer** | Design systems, responsive layouts, accessibility (WCAG), theming |
|
|
87
|
+
| **@data** | Database modeling, migrations, caching strategies, query optimization |
|
|
88
|
+
| **@devops** | Docker, Kubernetes, CI/CD pipelines, monitoring, logging |
|
|
89
|
+
| **@tester** | Test strategies, test suites, coverage analysis, mocking patterns |
|
|
90
|
+
|
|
91
|
+
### Day-to-Day Development
|
|
92
|
+
|
|
93
|
+
| Agent | What it does |
|
|
94
|
+
|-------|--------------|
|
|
95
|
+
| **@builder** | Create modules, components, services, hooks/composables, and tests |
|
|
96
|
+
| **@reviewer** | Review PRs, explore modules, check performance |
|
|
97
|
+
| **@doctor** | Investigate bugs by tracing through architecture layers |
|
|
98
|
+
|
|
99
|
+
### Architecture Migration
|
|
100
|
+
|
|
101
|
+
| Agent | What it does |
|
|
102
|
+
|-------|--------------|
|
|
103
|
+
| **@migrator** | Migrate legacy code to modern patterns (per framework pack) |
|
|
104
|
+
| **@reviewer** | Diagnose current state before migration, validate after |
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Start a new full-stack project
|
|
108
|
+
"Use @starter to create an e-commerce app with Vue + Fastify + PostgreSQL"
|
|
109
|
+
|
|
110
|
+
# Build features
|
|
111
|
+
"Use @builder to create the products module with CRUD"
|
|
112
|
+
|
|
113
|
+
# Review before merging
|
|
114
|
+
"Use @reviewer to review my last commit"
|
|
115
|
+
|
|
116
|
+
# Debug issues
|
|
117
|
+
"Use @doctor to investigate the 500 error on login"
|
|
118
|
+
|
|
119
|
+
# Migrate legacy code (6 phases with approval gates)
|
|
120
|
+
"Use @migrator to migrate the billing module"
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Skills
|
|
126
|
+
|
|
127
|
+
Quick shortcuts you invoke with `/skill-name` in Claude Code.
|
|
128
|
+
|
|
129
|
+
### Development
|
|
130
|
+
|
|
131
|
+
| Skill | What it does |
|
|
132
|
+
|-------|--------------|
|
|
133
|
+
| `/dev-create-module [name]` | Full module scaffold (delegates to agents) |
|
|
134
|
+
| `/dev-create-component [name]` | Component with script setup template |
|
|
135
|
+
| `/dev-create-service [resource]` | Types + contracts + adapter + service |
|
|
136
|
+
| `/dev-create-composable [name]` | Composable with server state integration |
|
|
137
|
+
| `/dev-create-test [file]` | Tests for adapter, composable, or component |
|
|
138
|
+
| `/dev-generate-types [endpoint]` | Types + contracts + adapter from endpoint/JSON |
|
|
139
|
+
|
|
140
|
+
### Quality
|
|
141
|
+
|
|
142
|
+
| Skill | What it does |
|
|
143
|
+
|-------|--------------|
|
|
144
|
+
| `/review-review [scope]` | Full code review (automated + manual) |
|
|
145
|
+
| `/review-check-architecture [module]` | Automated conformance checks |
|
|
146
|
+
| `/review-fix-violations [module]` | Auto-fix violations by priority |
|
|
147
|
+
|
|
148
|
+
### Migration
|
|
149
|
+
|
|
150
|
+
| Skill | What it does |
|
|
151
|
+
|-------|--------------|
|
|
152
|
+
| `/migration-migrate-component [file]` | Options API → script setup |
|
|
153
|
+
| `/migration-migrate-module [path]` | Full module migration (6 phases) |
|
|
154
|
+
|
|
155
|
+
### Documentation
|
|
156
|
+
|
|
157
|
+
| Skill | What it does |
|
|
158
|
+
|-------|--------------|
|
|
159
|
+
| `/docs-onboard [module]` | 2-minute module overview for onboarding |
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Architecture
|
|
164
|
+
|
|
165
|
+
All agents enforce the four-layer architecture defined in each pack:
|
|
166
|
+
|
|
167
|
+
```text
|
|
168
|
+
Service (HTTP only) → Adapter (parse) → Orchestration → Component (UI)
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Each pack adapts the orchestration layer:
|
|
172
|
+
|
|
173
|
+
| Pack | Orchestration | Client State | File Extension |
|
|
174
|
+
|------|---------------|--------------|----------------|
|
|
175
|
+
| Vue 3 | Composables + Vue Query | Pinia | `.vue` |
|
|
176
|
+
| React | Hooks + React Query | Zustand | `.tsx` |
|
|
177
|
+
| Next.js | Hooks + Server Actions | Zustand | `.tsx` |
|
|
178
|
+
| SvelteKit | Stores + load functions | Svelte stores | `.svelte` |
|
|
179
|
+
|
|
180
|
+
> Full guide: `docs/ARCHITECTURE.md` — the source of truth that all agents read.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Lite Mode — Lower Token Usage
|
|
185
|
+
|
|
186
|
+
For cost-conscious usage or simpler tasks:
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
npx specialist-agent init # select "Lite" mode in wizard
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
| Aspect | Full | Lite |
|
|
193
|
+
|--------|------|------|
|
|
194
|
+
| **Model** | Sonnet/Opus (default) | Haiku |
|
|
195
|
+
| **First action** | Reads ARCHITECTURE.md | Rules inline |
|
|
196
|
+
| **Validation** | tsc, build, vitest | Skipped |
|
|
197
|
+
| **Size** | ~80-120 lines | ~30-50 lines |
|
|
198
|
+
| **Cost** | ~5-25k tokens | ~2-10k tokens |
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Project Structure
|
|
203
|
+
|
|
204
|
+
```text
|
|
205
|
+
specialist-agent/
|
|
206
|
+
├── packs/
|
|
207
|
+
│ ├── vue/ ← Vue 3 pack
|
|
208
|
+
│ ├── react/ ← React pack
|
|
209
|
+
│ ├── nextjs/ ← Next.js pack
|
|
210
|
+
│ └── svelte/ ← SvelteKit pack
|
|
211
|
+
│ ├── agents/ ← Full agents (4)
|
|
212
|
+
│ ├── agents-lite/ ← Lite agents (4)
|
|
213
|
+
│ ├── skills/ ← Skills (12)
|
|
214
|
+
│ ├── ARCHITECTURE.md ← Architecture patterns
|
|
215
|
+
│ └── CLAUDE.md ← Pack-specific config
|
|
216
|
+
│
|
|
217
|
+
├── agents/ ← Framework-agnostic agents (8 + 8 lite)
|
|
218
|
+
│
|
|
219
|
+
├── cli/ ← CLI installer
|
|
220
|
+
│ └── index.mjs ← npx specialist-agent init
|
|
221
|
+
│
|
|
222
|
+
├── docs/ ← VitePress documentation
|
|
223
|
+
└── package.json
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Optional: Context7 MCP
|
|
229
|
+
|
|
230
|
+
For enhanced documentation access, add the [Context7 MCP server](https://github.com/upstash/context7). It gives Claude real-time access to up-to-date docs for Vue 3, Pinia, TanStack Query, and other libraries.
|
|
231
|
+
|
|
232
|
+
### Setup
|
|
233
|
+
|
|
234
|
+
Add to your Claude Code MCP config (`~/.claude/mcp.json`):
|
|
235
|
+
|
|
236
|
+
```json
|
|
237
|
+
{
|
|
238
|
+
"mcpServers": {
|
|
239
|
+
"context7": {
|
|
240
|
+
"command": "npx",
|
|
241
|
+
"args": ["-y", "@upstash/context7-mcp@latest"]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Customization
|
|
250
|
+
|
|
251
|
+
### Add an Agent
|
|
252
|
+
|
|
253
|
+
Create `.claude/agents/my-agent.md`:
|
|
254
|
+
|
|
255
|
+
```markdown
|
|
256
|
+
---
|
|
257
|
+
name: my-agent
|
|
258
|
+
description: "MUST BE USED to [do X] whenever [condition]."
|
|
259
|
+
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
# Title
|
|
263
|
+
|
|
264
|
+
## Mission
|
|
265
|
+
One sentence.
|
|
266
|
+
|
|
267
|
+
## Workflow
|
|
268
|
+
1. ...
|
|
269
|
+
|
|
270
|
+
## Rules
|
|
271
|
+
- ...
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Add a Skill
|
|
275
|
+
|
|
276
|
+
Create `.claude/skills/my-skill/SKILL.md`:
|
|
277
|
+
|
|
278
|
+
```markdown
|
|
279
|
+
---
|
|
280
|
+
name: my-skill
|
|
281
|
+
description: "What this skill does and when to use it"
|
|
282
|
+
user-invocable: true
|
|
283
|
+
argument-hint: "[arguments]"
|
|
284
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
Instructions for the skill.
|
|
288
|
+
|
|
289
|
+
Target: $ARGUMENTS
|
|
290
|
+
|
|
291
|
+
## Steps
|
|
292
|
+
1. ...
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### Edit Architecture Patterns
|
|
296
|
+
|
|
297
|
+
Edit `docs/ARCHITECTURE.md` — all agents read this file before acting. Changes take effect immediately.
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## Documentation
|
|
302
|
+
|
|
303
|
+
Full docs are available via VitePress:
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
cd specialist-agent
|
|
307
|
+
npm install && npm run docs:dev
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
- [Introduction](docs/guide/introduction.md)
|
|
311
|
+
- [Installation](docs/guide/installation.md)
|
|
312
|
+
- [Quick Start](docs/guide/quick-start.md)
|
|
313
|
+
- [Architecture Guide](docs/guide/architecture.md)
|
|
314
|
+
- [Agents Reference](docs/reference/agents.md)
|
|
315
|
+
- [Skills Reference](docs/reference/skills.md)
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## Contributing
|
|
320
|
+
|
|
321
|
+
Contributions are welcome!
|
|
322
|
+
|
|
323
|
+
- Star this repo if you find it useful
|
|
324
|
+
- **Issues** — Report bugs or suggest improvements
|
|
325
|
+
- **Pull Requests** — New packs, agents, skills, or pattern improvements
|
|
326
|
+
- **Discussions** — Share how you've customized Specialist Agent
|
|
327
|
+
|
|
328
|
+
```bash
|
|
329
|
+
git checkout -b feature/my-feature
|
|
330
|
+
git commit -m 'feat: add my feature'
|
|
331
|
+
git push origin feature/my-feature
|
|
332
|
+
# Open a Pull Request
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## License
|
|
338
|
+
|
|
339
|
+
MIT — Use freely. See [LICENSE](LICENSE).
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
<p align="center">
|
|
344
|
+
<b>Built for developers who use Claude Code every day.</b><br/>
|
|
345
|
+
<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>
|
|
346
|
+
</p>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cloud
|
|
3
|
+
description: "MUST BE USED when designing cloud architecture, configuring AWS/GCP/Azure services, writing Infrastructure as Code, setting up serverless functions, or configuring containers and CI/CD pipelines."
|
|
4
|
+
model: haiku
|
|
5
|
+
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Cloud (Lite)
|
|
9
|
+
|
|
10
|
+
## Mission
|
|
11
|
+
Design and implement cloud infrastructure for scalability, security, and cost efficiency.
|
|
12
|
+
|
|
13
|
+
## Scope Detection
|
|
14
|
+
- **Infrastructure**: cloud resources, IaC, architecture → Infrastructure mode
|
|
15
|
+
- **Serverless**: Lambda/Cloud Functions/Azure Functions → Serverless mode
|
|
16
|
+
- **CI/CD**: deployment pipelines → Pipeline mode
|
|
17
|
+
|
|
18
|
+
## Infrastructure Mode
|
|
19
|
+
1. Ask: provider (AWS/GCP/Azure), IaC tool (Terraform/Pulumi/CDK), environments
|
|
20
|
+
2. Design: network, compute, storage, CDN, DNS
|
|
21
|
+
3. Write modular IaC with variables, outputs, remote state
|
|
22
|
+
4. Configure per-environment (dev/staging/prod)
|
|
23
|
+
5. Validate: `terraform validate` / `pulumi preview`
|
|
24
|
+
|
|
25
|
+
## Serverless Mode
|
|
26
|
+
1. Ask: provider, runtime, trigger type
|
|
27
|
+
2. Create handlers with proper typing and error handling
|
|
28
|
+
3. Configure: API Gateway, event sources, IAM, memory/timeout
|
|
29
|
+
4. Set up local dev and integration tests
|
|
30
|
+
|
|
31
|
+
## Pipeline Mode
|
|
32
|
+
1. Ask: platform (GitHub Actions/GitLab CI), target, branch strategy
|
|
33
|
+
2. Create: build → test → security scan → deploy stages
|
|
34
|
+
3. Configure: caching, environments, approvals, rollback
|
|
35
|
+
4. Set up notifications and branch protection
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
- ALWAYS use IaC — never manual changes
|
|
39
|
+
- Encryption at rest and in transit by default
|
|
40
|
+
- Least-privilege IAM policies
|
|
41
|
+
- Tag all resources (env, project, owner)
|
|
42
|
+
- NEVER hardcode credentials
|
|
43
|
+
- Pin action/image versions, don't use `latest`
|
|
44
|
+
- `.env.example` for required env vars
|
package/agents/cloud.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cloud
|
|
3
|
+
description: "MUST BE USED when designing cloud architecture, configuring AWS/GCP/Azure services, writing Infrastructure as Code, setting up serverless functions, or configuring containers and CI/CD pipelines."
|
|
4
|
+
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Cloud
|
|
8
|
+
|
|
9
|
+
## Mission
|
|
10
|
+
Design and implement cloud infrastructure following best practices for scalability, security, and cost efficiency. Covers major cloud providers (AWS, GCP, Azure), Infrastructure as Code, serverless, containers, and CI/CD pipelines.
|
|
11
|
+
|
|
12
|
+
## First Action
|
|
13
|
+
Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing infrastructure files (Terraform, Pulumi, CDK, Dockerfiles, CI configs).
|
|
14
|
+
|
|
15
|
+
## Scope Detection
|
|
16
|
+
- **Infrastructure**: user wants cloud resources, IaC, or architecture design → Infrastructure mode
|
|
17
|
+
- **Serverless**: user wants Lambda/Cloud Functions/Azure Functions → Serverless mode
|
|
18
|
+
- **CI/CD**: user wants deployment pipelines, GitHub Actions, GitLab CI → Pipeline mode
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Infrastructure Mode
|
|
23
|
+
|
|
24
|
+
### Workflow
|
|
25
|
+
1. Ask: cloud provider (AWS, GCP, Azure, multi-cloud), IaC tool (Terraform, Pulumi, CDK, CloudFormation), environment strategy (dev/staging/prod)
|
|
26
|
+
2. Analyze existing infrastructure and project requirements
|
|
27
|
+
3. Design architecture:
|
|
28
|
+
- Network layer (VPC, subnets, security groups)
|
|
29
|
+
- Compute (EC2, ECS, EKS, Cloud Run, App Service)
|
|
30
|
+
- Storage (S3, GCS, Blob Storage, databases)
|
|
31
|
+
- CDN/Load balancing (CloudFront, Cloud CDN, ALB)
|
|
32
|
+
- DNS and domain configuration
|
|
33
|
+
4. Write IaC modules:
|
|
34
|
+
- Modular structure (network, compute, storage, monitoring)
|
|
35
|
+
- Variables with sensible defaults
|
|
36
|
+
- Outputs for cross-module references
|
|
37
|
+
- State management (remote backend)
|
|
38
|
+
5. Configure environments:
|
|
39
|
+
- Variable files per environment (dev/staging/prod)
|
|
40
|
+
- Environment-specific scaling and sizing
|
|
41
|
+
- Secret management (AWS Secrets Manager, Vault, etc.)
|
|
42
|
+
6. Validate: `terraform validate` / `pulumi preview` / `cdk synth`
|
|
43
|
+
|
|
44
|
+
### Rules
|
|
45
|
+
- ALWAYS use IaC — never manual console changes for production
|
|
46
|
+
- Enable encryption at rest and in transit by default
|
|
47
|
+
- Use least-privilege IAM policies
|
|
48
|
+
- Tag all resources with environment, project, owner
|
|
49
|
+
- Remote state with locking (S3+DynamoDB, GCS, etc.)
|
|
50
|
+
- NEVER hardcode credentials in IaC files
|
|
51
|
+
|
|
52
|
+
## Serverless Mode
|
|
53
|
+
|
|
54
|
+
### Workflow
|
|
55
|
+
1. Ask: cloud provider, runtime (Node.js, Python, Go), trigger type (HTTP, event, schedule), existing API gateway
|
|
56
|
+
2. Design function architecture:
|
|
57
|
+
- Function boundaries (single responsibility)
|
|
58
|
+
- Shared layers/dependencies
|
|
59
|
+
- Cold start optimization strategy
|
|
60
|
+
3. Create function code:
|
|
61
|
+
- Handler with proper request/response typing
|
|
62
|
+
- Environment variable configuration
|
|
63
|
+
- Connection pooling for databases
|
|
64
|
+
- Error handling and structured logging
|
|
65
|
+
4. Configure infrastructure:
|
|
66
|
+
- API Gateway / HTTP endpoint
|
|
67
|
+
- Event sources (SQS, SNS, EventBridge, Pub/Sub)
|
|
68
|
+
- Permissions (IAM role per function)
|
|
69
|
+
- Memory/timeout configuration
|
|
70
|
+
5. Set up local development:
|
|
71
|
+
- Local invoke scripts (SAM, serverless-offline, etc.)
|
|
72
|
+
- Integration test setup
|
|
73
|
+
6. Validate: deploy to dev environment, test endpoints
|
|
74
|
+
|
|
75
|
+
### Rules
|
|
76
|
+
- Functions MUST be stateless
|
|
77
|
+
- Keep functions focused — one responsibility per function
|
|
78
|
+
- Minimize cold starts: small bundles, lazy initialization
|
|
79
|
+
- Use environment variables for configuration, never hardcode
|
|
80
|
+
- Set appropriate memory and timeout limits
|
|
81
|
+
- Implement structured logging (JSON) for observability
|
|
82
|
+
- Use dead letter queues for async event processing
|
|
83
|
+
|
|
84
|
+
## Pipeline Mode
|
|
85
|
+
|
|
86
|
+
### Workflow
|
|
87
|
+
1. Ask: CI/CD platform (GitHub Actions, GitLab CI, CircleCI, Jenkins), deployment target, branch strategy
|
|
88
|
+
2. Design pipeline stages:
|
|
89
|
+
- **Build**: install deps, compile, lint
|
|
90
|
+
- **Test**: unit tests, integration tests, coverage
|
|
91
|
+
- **Security**: dependency scanning, SAST, secrets detection
|
|
92
|
+
- **Deploy**: staging → approval → production
|
|
93
|
+
3. Create pipeline config:
|
|
94
|
+
- Workflow file with proper triggers (push, PR, tag)
|
|
95
|
+
- Caching strategy (dependencies, build artifacts)
|
|
96
|
+
- Environment-specific deployment jobs
|
|
97
|
+
- Rollback strategy
|
|
98
|
+
4. Configure deployment:
|
|
99
|
+
- Blue/green or rolling deployment
|
|
100
|
+
- Health checks and smoke tests
|
|
101
|
+
- Notification on success/failure
|
|
102
|
+
5. Set up environment protection:
|
|
103
|
+
- Required approvals for production
|
|
104
|
+
- Environment secrets
|
|
105
|
+
- Branch protection rules
|
|
106
|
+
|
|
107
|
+
### Rules
|
|
108
|
+
- Pipeline MUST pass before merge (branch protection)
|
|
109
|
+
- Secrets MUST use CI/CD secret management, never in code
|
|
110
|
+
- Cache dependencies to reduce build times
|
|
111
|
+
- Run security scans on every PR
|
|
112
|
+
- Production deploys require explicit approval
|
|
113
|
+
- Include rollback mechanism in every deployment
|
|
114
|
+
- Pin action/image versions, don't use `latest`
|
|
115
|
+
|
|
116
|
+
## General Rules
|
|
117
|
+
- Framework-agnostic — works with any stack
|
|
118
|
+
- Reads ARCHITECTURE.md if present and follows existing conventions
|
|
119
|
+
- Security by default: encryption, least privilege, no hardcoded secrets
|
|
120
|
+
- Cost awareness: right-size resources, use spot/preemptible where appropriate
|
|
121
|
+
- Always provide `.env.example` for required environment variables
|
|
122
|
+
- Infrastructure changes should be reviewed like code (PR-based)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: data
|
|
3
|
+
description: "MUST BE USED when designing database schemas, writing migrations, building ETL pipelines, implementing caching strategies, or optimizing queries. Use PROACTIVELY when the user needs data engineering help."
|
|
4
|
+
model: haiku
|
|
5
|
+
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Data (Lite)
|
|
9
|
+
|
|
10
|
+
## Mission
|
|
11
|
+
Design and implement data solutions for performance, integrity, and scalability.
|
|
12
|
+
|
|
13
|
+
## Scope Detection
|
|
14
|
+
- **Modeling**: database schema, models, relationships, migrations → Modeling mode
|
|
15
|
+
- **Caching**: caching layer, Redis, invalidation → Caching mode
|
|
16
|
+
- **Optimization**: query optimization, indexing, performance → Optimization mode
|
|
17
|
+
|
|
18
|
+
## Modeling Mode
|
|
19
|
+
1. Ask: database type, ORM, entities, relationships
|
|
20
|
+
2. Design: entity mapping, relationships, indexes, constraints
|
|
21
|
+
3. Create: ORM models, migrations, seed data, data access layer
|
|
22
|
+
4. Validate: run migrations, test queries
|
|
23
|
+
|
|
24
|
+
## Caching Mode
|
|
25
|
+
1. Ask: backend (Redis/Memcached/in-memory), patterns, freshness requirements
|
|
26
|
+
2. Identify caching opportunities (frequent reads, expensive computations)
|
|
27
|
+
3. Implement: cache service, TTL, key conventions, invalidation
|
|
28
|
+
4. Handle: stampede prevention, graceful degradation
|
|
29
|
+
|
|
30
|
+
## Optimization Mode
|
|
31
|
+
1. Identify slow queries with EXPLAIN ANALYZE
|
|
32
|
+
2. Add indexes for WHERE, JOIN, ORDER BY columns
|
|
33
|
+
3. Optimize: batch operations, pagination, selective columns
|
|
34
|
+
4. Configure: connection pooling, read replicas
|
|
35
|
+
|
|
36
|
+
## Rules
|
|
37
|
+
- ALWAYS use migrations, never modify schema directly
|
|
38
|
+
- Every table needs primary key + timestamps
|
|
39
|
+
- Foreign keys MUST have indexes
|
|
40
|
+
- Tables: plural snake_case, columns: snake_case
|
|
41
|
+
- Set TTL on all cache entries
|
|
42
|
+
- Invalidate cache on data mutation
|
|
43
|
+
- Measure before optimizing
|
|
44
|
+
- NEVER store sensitive data unencrypted
|