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.
- package/.claude-plugin/marketplace.json +77 -0
- package/.claude-plugin/plugin.json +43 -0
- package/.codex/INSTALL.md +113 -0
- package/.cursor-plugin/marketplace.json +9 -0
- package/.cursor-plugin/plugin.json +35 -0
- package/.opencode/INSTALL.md +123 -0
- package/README.md +204 -263
- package/agents/analyst-lite.md +48 -0
- package/agents/analyst.md +391 -0
- package/agents/api-lite.md +43 -0
- package/agents/api.md +145 -0
- package/agents/cloud-lite.md +1 -1
- package/agents/cloud.md +1 -1
- package/agents/data-lite.md +1 -1
- package/agents/data.md +1 -1
- package/agents/debugger-lite.md +46 -0
- package/agents/debugger.md +406 -0
- package/agents/deps-lite.md +41 -0
- package/agents/deps.md +206 -0
- package/agents/designer-lite.md +1 -1
- package/agents/designer.md +1 -1
- package/agents/devops-lite.md +1 -1
- package/agents/devops.md +1 -1
- package/agents/docs-lite.md +42 -0
- package/agents/docs.md +197 -0
- package/agents/executor-lite.md +61 -0
- package/agents/executor.md +456 -0
- package/agents/explorer-lite.md +1 -1
- package/agents/explorer.md +1 -1
- package/agents/finance-lite.md +1 -1
- package/agents/finance.md +1 -1
- package/agents/i18n-lite.md +44 -0
- package/agents/i18n.md +198 -0
- package/agents/legal-lite.md +1 -1
- package/agents/legal.md +1 -1
- package/agents/memory.md +240 -0
- package/agents/orchestrator-lite.md +40 -0
- package/agents/orchestrator.md +387 -0
- package/agents/pair-lite.md +38 -0
- package/agents/pair.md +308 -0
- package/agents/perf-lite.md +42 -0
- package/agents/perf.md +141 -0
- package/agents/planner-lite.md +59 -0
- package/agents/planner.md +265 -0
- package/agents/refactor-lite.md +42 -0
- package/agents/refactor.md +178 -0
- package/agents/scout-lite.md +37 -0
- package/agents/scout.md +222 -0
- package/agents/security-lite.md +1 -1
- package/agents/security.md +1 -1
- package/agents/starter-lite.md +1 -1
- package/agents/starter.md +1 -1
- package/agents/tdd-lite.md +43 -0
- package/agents/tdd.md +317 -0
- package/agents/tester-lite.md +1 -1
- package/agents/tester.md +1 -1
- package/cli/index.mjs +636 -15
- package/hooks/after-review.mjs +130 -0
- package/hooks/after-task.mjs +117 -0
- package/hooks/before-plan.mjs +155 -0
- package/hooks/before-review.mjs +139 -0
- package/hooks/hooks.json +81 -0
- package/hooks/native/auto-dispatch.mjs +197 -0
- package/hooks/native/auto-format.mjs +193 -0
- package/hooks/native/security-config.json +31 -0
- package/hooks/native/security-guard.mjs +267 -0
- package/hooks/native/session-context.mjs +136 -0
- package/hooks/native/settings-template.json +50 -0
- package/hooks/native/utils.mjs +62 -0
- package/hooks/on-error.mjs +129 -0
- package/hooks/session-end.mjs +185 -0
- package/hooks/session-start.mjs +154 -0
- package/package.json +16 -3
- package/packs/nextjs/agents/builder.md +24 -1
- package/packs/nextjs/agents/doctor.md +70 -4
- package/packs/nextjs/agents/migrator.md +24 -1
- package/packs/nextjs/agents/reviewer.md +93 -3
- package/packs/nextjs/agents-lite/builder.md +1 -1
- package/packs/nextjs/agents-lite/doctor.md +1 -1
- package/packs/nextjs/agents-lite/migrator.md +1 -1
- package/packs/nextjs/agents-lite/reviewer.md +1 -1
- package/packs/nextjs/skills/dev-create-component/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-module/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-service/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-test/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-generate-types/SKILL.md +1 -1
- package/packs/nextjs/skills/docs-onboard/SKILL.md +1 -1
- package/packs/nextjs/skills/migration-migrate-component/SKILL.md +1 -1
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/nextjs/skills/review-fix-violations/SKILL.md +1 -1
- package/packs/nextjs/skills/review-review/SKILL.md +1 -1
- package/packs/react/agents/builder.md +24 -1
- package/packs/react/agents/doctor.md +107 -13
- package/packs/react/agents/migrator.md +24 -1
- package/packs/react/agents/reviewer.md +113 -9
- package/packs/react/agents-lite/builder.md +1 -1
- package/packs/react/agents-lite/doctor.md +1 -1
- package/packs/react/agents-lite/migrator.md +1 -1
- package/packs/react/agents-lite/reviewer.md +1 -1
- package/packs/react/skills/dev-create-component/SKILL.md +1 -1
- package/packs/react/skills/dev-create-hook/SKILL.md +1 -1
- package/packs/react/skills/dev-create-module/SKILL.md +1 -1
- package/packs/react/skills/dev-create-service/SKILL.md +1 -1
- package/packs/react/skills/dev-create-test/SKILL.md +1 -1
- package/packs/react/skills/dev-generate-types/SKILL.md +1 -1
- package/packs/react/skills/docs-onboard/SKILL.md +1 -1
- package/packs/react/skills/migration-migrate-component/SKILL.md +1 -1
- package/packs/react/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/react/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/react/skills/review-fix-violations/SKILL.md +1 -1
- package/packs/react/skills/review-review/SKILL.md +1 -1
- package/packs/svelte/agents/builder.md +24 -1
- package/packs/svelte/agents/doctor.md +70 -4
- package/packs/svelte/agents/migrator.md +24 -1
- package/packs/svelte/agents/reviewer.md +93 -3
- package/packs/svelte/agents-lite/builder.md +1 -1
- package/packs/svelte/agents-lite/doctor.md +1 -1
- package/packs/svelte/agents-lite/migrator.md +1 -1
- package/packs/svelte/agents-lite/reviewer.md +1 -1
- package/packs/svelte/skills/dev-create-component/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-module/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-service/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-store/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-test/SKILL.md +1 -1
- package/packs/svelte/skills/dev-generate-types/SKILL.md +1 -1
- package/packs/svelte/skills/docs-onboard/SKILL.md +1 -1
- package/packs/svelte/skills/migration-migrate-component/SKILL.md +1 -1
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/svelte/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/svelte/skills/review-fix-violations/SKILL.md +1 -1
- package/packs/svelte/skills/review-review/SKILL.md +1 -1
- package/packs/vue/agents/builder.md +24 -1
- package/packs/vue/agents/doctor.md +107 -13
- package/packs/vue/agents/migrator.md +24 -1
- package/packs/vue/agents/reviewer.md +113 -9
- package/packs/vue/agents-lite/builder.md +1 -1
- package/packs/vue/agents-lite/doctor.md +1 -1
- package/packs/vue/agents-lite/migrator.md +1 -1
- package/packs/vue/agents-lite/reviewer.md +1 -1
- package/packs/vue/skills/dev-create-component/SKILL.md +1 -1
- package/packs/vue/skills/dev-create-composable/SKILL.md +1 -1
- package/packs/vue/skills/dev-create-module/SKILL.md +1 -1
- package/packs/vue/skills/dev-create-service/SKILL.md +1 -1
- package/packs/vue/skills/dev-create-test/SKILL.md +1 -1
- package/packs/vue/skills/dev-generate-types/SKILL.md +1 -1
- package/packs/vue/skills/docs-onboard/SKILL.md +1 -1
- package/packs/vue/skills/migration-migrate-component/SKILL.md +1 -1
- package/packs/vue/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/vue/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/vue/skills/review-fix-violations/SKILL.md +1 -1
- package/packs/vue/skills/review-review/SKILL.md +1 -1
- package/skills/audit/SKILL.md +169 -0
- package/skills/brainstorm/SKILL.md +245 -0
- package/skills/checkpoint/SKILL.md +209 -0
- package/skills/debug/SKILL.md +210 -0
- package/skills/estimate/SKILL.md +145 -0
- package/skills/finish/SKILL.md +211 -0
- package/skills/health/SKILL.md +242 -0
- package/skills/learn/SKILL.md +260 -0
- package/skills/migrate-framework/SKILL.md +172 -0
- package/skills/onboard/SKILL.md +168 -0
- package/skills/plan/SKILL.md +132 -0
- package/skills/recall/SKILL.md +150 -0
- package/skills/remember/SKILL.md +158 -0
- package/skills/tdd/SKILL.md +156 -0
- package/skills/tutorial/SKILL.md +346 -0
- package/skills/verify/SKILL.md +168 -0
- package/skills/worktree/SKILL.md +168 -0
- package/skills/write-skill/SKILL.md +213 -0
- package/templates/industry/ecommerce.md +127 -0
- package/templates/industry/fintech.md +161 -0
- package/templates/industry/saas.md +134 -0
- package/templates/session-memory.json +48 -0
- 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
|