specialist-agent 1.4.1 → 1.5.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/README.md +12 -12
- package/cli/index.mjs +20 -43
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,10 +41,10 @@ Specialist Agent is a collection of **AI agents**, **skills**, and **architectur
|
|
|
41
41
|
|
|
42
42
|
| Pack | Stack |
|
|
43
43
|
|------|-------|
|
|
44
|
-
| **Vue 3** | Vue 3 + TypeScript + Pinia + TanStack Vue Query |
|
|
45
|
-
| **React** | React 18 + TypeScript + Zustand + TanStack React Query |
|
|
46
44
|
| **Next.js** | Next.js 14+ (App Router) + TypeScript + Zustand + Server Components |
|
|
45
|
+
| **React** | React 18 + TypeScript + Zustand + TanStack React Query |
|
|
47
46
|
| **SvelteKit** | SvelteKit 2 + TypeScript + Svelte stores + load functions |
|
|
47
|
+
| **Vue 3** | Vue 3 + TypeScript + Pinia + TanStack Vue Query |
|
|
48
48
|
|
|
49
49
|
---
|
|
50
50
|
|
|
@@ -82,7 +82,7 @@ The wizard will:
|
|
|
82
82
|
claude
|
|
83
83
|
|
|
84
84
|
# Create a new project from scratch
|
|
85
|
-
"Use @starter to create a task-manager app with
|
|
85
|
+
"Use @starter to create a task-manager app with React + Express + PostgreSQL"
|
|
86
86
|
|
|
87
87
|
# Build a feature inside an existing project
|
|
88
88
|
"Use @builder to create an orders module with CRUD for GET/POST/PATCH/DELETE /v2/orders"
|
|
@@ -115,7 +115,7 @@ claude
|
|
|
115
115
|
|
|
116
116
|
| Agent | What it does |
|
|
117
117
|
|-------|--------------|
|
|
118
|
-
| **@builder** | Create modules, components, services,
|
|
118
|
+
| **@builder** | Create modules, components, services, state logic, and tests |
|
|
119
119
|
| **@reviewer** | Review PRs, explore modules, check performance |
|
|
120
120
|
| **@doctor** | Investigate bugs by tracing through architecture layers |
|
|
121
121
|
|
|
@@ -128,7 +128,7 @@ claude
|
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
# Start a new full-stack project
|
|
131
|
-
"Use @starter to create an e-commerce app with
|
|
131
|
+
"Use @starter to create an e-commerce app with Next.js + Fastify + PostgreSQL"
|
|
132
132
|
|
|
133
133
|
# Explore an unfamiliar codebase
|
|
134
134
|
"Use @explorer to assess this project — I just joined the team"
|
|
@@ -143,7 +143,7 @@ claude
|
|
|
143
143
|
"Use @doctor to investigate the 500 error on login"
|
|
144
144
|
|
|
145
145
|
# Migrate legacy code (6 phases with approval gates)
|
|
146
|
-
"Use @migrator to migrate the billing module
|
|
146
|
+
"Use @migrator to migrate the billing module to the target architecture"
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
---
|
|
@@ -157,10 +157,10 @@ Quick shortcuts you invoke with `/skill-name` in Claude Code.
|
|
|
157
157
|
| Skill | What it does |
|
|
158
158
|
|-------|--------------|
|
|
159
159
|
| `/dev-create-module [name]` | Full module scaffold (delegates to agents) |
|
|
160
|
-
| `/dev-create-component [name]` | Component
|
|
160
|
+
| `/dev-create-component [name]` | Component from framework-specific template |
|
|
161
161
|
| `/dev-create-service [resource]` | Types + contracts + adapter + service |
|
|
162
|
-
| `/dev-create-composable
|
|
163
|
-
| `/dev-create-test [file]` | Tests for adapter, composable, or component |
|
|
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
164
|
| `/dev-generate-types [endpoint]` | Types + contracts + adapter from endpoint/JSON |
|
|
165
165
|
|
|
166
166
|
### Quality
|
|
@@ -175,7 +175,7 @@ Quick shortcuts you invoke with `/skill-name` in Claude Code.
|
|
|
175
175
|
|
|
176
176
|
| Skill | What it does |
|
|
177
177
|
|-------|--------------|
|
|
178
|
-
| `/migration-migrate-component [file]` |
|
|
178
|
+
| `/migration-migrate-component [file]` | Migrate component to target architecture |
|
|
179
179
|
| `/migration-migrate-module [path]` | Full module migration (6 phases) |
|
|
180
180
|
|
|
181
181
|
### Documentation
|
|
@@ -198,10 +198,10 @@ Each pack adapts the orchestration layer:
|
|
|
198
198
|
|
|
199
199
|
| Pack | Orchestration | Client State | File Extension |
|
|
200
200
|
|------|---------------|--------------|----------------|
|
|
201
|
-
| Vue 3 | Composables + Vue Query | Pinia | `.vue` |
|
|
202
|
-
| React | Hooks + React Query | Zustand | `.tsx` |
|
|
203
201
|
| Next.js | Hooks + Server Actions | Zustand | `.tsx` |
|
|
202
|
+
| React | Hooks + React Query | Zustand | `.tsx` |
|
|
204
203
|
| SvelteKit | Stores + load functions | Svelte stores | `.svelte` |
|
|
204
|
+
| Vue 3 | Composables + Vue Query | Pinia | `.vue` |
|
|
205
205
|
|
|
206
206
|
> Full guide: `docs/ARCHITECTURE.md` — the source of truth that all agents read.
|
|
207
207
|
|
package/cli/index.mjs
CHANGED
|
@@ -290,16 +290,16 @@ async function main() {
|
|
|
290
290
|
|
|
291
291
|
if (clack.isCancel(installSpecialists)) handleCancel()
|
|
292
292
|
|
|
293
|
-
// 5.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
293
|
+
// 5. Install scope
|
|
294
|
+
const installScope = await clack.select({
|
|
295
|
+
message: 'Where to install agents?',
|
|
296
|
+
options: [
|
|
297
|
+
{ value: 'project', label: 'This project only', hint: '.claude/agents/' },
|
|
298
|
+
{ value: 'global', label: 'Globally', hint: '~/.claude/agents — available in all projects' },
|
|
299
|
+
],
|
|
300
|
+
})
|
|
300
301
|
|
|
301
|
-
|
|
302
|
-
}
|
|
302
|
+
if (clack.isCancel(installScope)) handleCancel()
|
|
303
303
|
|
|
304
304
|
// ── Install files ──────────────────────────────────
|
|
305
305
|
|
|
@@ -309,15 +309,19 @@ async function main() {
|
|
|
309
309
|
const archSource = join(packDir, 'ARCHITECTURE.md')
|
|
310
310
|
const claudeSource = join(packDir, 'CLAUDE.md')
|
|
311
311
|
|
|
312
|
-
const
|
|
312
|
+
const installGlobal = installScope === 'global'
|
|
313
|
+
const agentsDest = installGlobal
|
|
314
|
+
? join(homedir(), '.claude', 'agents')
|
|
315
|
+
: join(cwd, '.claude', 'agents')
|
|
313
316
|
mkdirSync(agentsDest, { recursive: true })
|
|
314
317
|
|
|
315
318
|
// Detect existing agents
|
|
319
|
+
const agentsLabel = installGlobal ? '~/.claude/agents/' : '.claude/agents/'
|
|
316
320
|
const existingAgents = detectExistingAgents(agentsDest)
|
|
317
321
|
let shouldOverwrite = forceMode
|
|
318
322
|
|
|
319
323
|
if (existingAgents.length > 0 && !forceMode) {
|
|
320
|
-
clack.log.warn(`Existing agents detected in
|
|
324
|
+
clack.log.warn(`Existing agents detected in ${agentsLabel} (${existingAgents.length} files)`)
|
|
321
325
|
const overwriteChoice = await clack.confirm({
|
|
322
326
|
message: 'Overwrite existing agent files?',
|
|
323
327
|
initialValue: false,
|
|
@@ -361,36 +365,6 @@ async function main() {
|
|
|
361
365
|
}
|
|
362
366
|
}
|
|
363
367
|
|
|
364
|
-
// Install agents globally
|
|
365
|
-
let globalAgentCount = 0
|
|
366
|
-
if (installGlobal) {
|
|
367
|
-
const globalAgentsDest = join(homedir(), '.claude', 'agents')
|
|
368
|
-
mkdirSync(globalAgentsDest, { recursive: true })
|
|
369
|
-
|
|
370
|
-
if (installStarter) {
|
|
371
|
-
const starterFile = mode === 'lite' ? 'starter-lite.md' : 'starter.md'
|
|
372
|
-
const starterSource = join(ROOT, 'agents', starterFile)
|
|
373
|
-
const starterGlobalDest = join(globalAgentsDest, 'starter.md')
|
|
374
|
-
if (existsSync(starterSource) && (shouldOverwrite || !existsSync(starterGlobalDest))) {
|
|
375
|
-
cpSync(starterSource, starterGlobalDest)
|
|
376
|
-
globalAgentCount++
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
if (installSpecialists) {
|
|
381
|
-
const specialistNames = ['explorer', 'finance', 'cloud', 'security', 'designer', 'data', 'devops', 'tester']
|
|
382
|
-
for (const name of specialistNames) {
|
|
383
|
-
const suffix = mode === 'lite' ? '-lite.md' : '.md'
|
|
384
|
-
const source = join(ROOT, 'agents', `${name}${suffix}`)
|
|
385
|
-
const dest = join(globalAgentsDest, `${name}.md`)
|
|
386
|
-
if (existsSync(source) && (shouldOverwrite || !existsSync(dest))) {
|
|
387
|
-
cpSync(source, dest)
|
|
388
|
-
globalAgentCount++
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
368
|
// Install skills
|
|
395
369
|
const skillsDest = join(cwd, '.claude', 'skills')
|
|
396
370
|
mkdirSync(skillsDest, { recursive: true })
|
|
@@ -428,9 +402,12 @@ async function main() {
|
|
|
428
402
|
if (archInstalled) summaryLines.push('\u2713 docs/ARCHITECTURE.md')
|
|
429
403
|
if (claudeInstalled) summaryLines.push('\u2713 CLAUDE.md')
|
|
430
404
|
|
|
431
|
-
|
|
405
|
+
const scopeLabel = installGlobal ? 'Global' : 'Project'
|
|
406
|
+
clack.note(summaryLines.join('\n'), `${packLabel} \u00b7 ${mode === 'full' ? 'Full' : 'Lite'} \u00b7 ${scopeLabel}`)
|
|
432
407
|
|
|
433
|
-
|
|
408
|
+
if (installGlobal) {
|
|
409
|
+
clack.log.info(`${DIM}Agents installed to ~/.claude/agents/ (available in all projects)${NC}`)
|
|
410
|
+
}
|
|
434
411
|
|
|
435
412
|
if (existingAgents.length > 0 && !shouldOverwrite) {
|
|
436
413
|
clack.log.info(`${DIM}${existingAgents.length} existing agent(s) preserved. Use --force to overwrite.${NC}`)
|