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,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: worktree
|
|
3
|
+
description: "Use when you need workspace isolation for parallel tasks, risky changes, or multi-feature development without branch switching."
|
|
4
|
+
user-invocable: true
|
|
5
|
+
argument-hint: "[task-name]"
|
|
6
|
+
allowed-tools: Read, Bash, Glob, Grep
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /worktree — Git Worktree Isolation
|
|
10
|
+
|
|
11
|
+
Create isolated workspaces for parallel development. Each task gets its own directory — no branch switching, no stashing, no conflicts.
|
|
12
|
+
|
|
13
|
+
**Target:** $ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## When to Use
|
|
16
|
+
|
|
17
|
+
- Working on multiple features simultaneously
|
|
18
|
+
- Risky refactoring that might break things
|
|
19
|
+
- Long-running tasks that shouldn't block other work
|
|
20
|
+
- Testing a fix while keeping current work intact
|
|
21
|
+
- Running parallel agents on different tasks
|
|
22
|
+
- NOT for: simple single-file changes (just use a branch)
|
|
23
|
+
|
|
24
|
+
## Workflow
|
|
25
|
+
|
|
26
|
+
### Step 1: Directory Selection
|
|
27
|
+
|
|
28
|
+
Choose where to create worktrees:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
Priority order:
|
|
32
|
+
1. Existing worktrees directory (if configured)
|
|
33
|
+
2. .claude/worktrees/ (default for Specialist Agent)
|
|
34
|
+
3. ../project-worktrees/ (sibling directory)
|
|
35
|
+
4. Ask user
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Step 2: Create Worktree
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# Create new branch and worktree
|
|
42
|
+
git worktree add .claude/worktrees/$ARGUMENTS -b worktree/$ARGUMENTS
|
|
43
|
+
|
|
44
|
+
# Verify creation
|
|
45
|
+
git worktree list
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Step 3: Setup Workspace
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Enter worktree
|
|
52
|
+
cd .claude/worktrees/$ARGUMENTS
|
|
53
|
+
|
|
54
|
+
# Install dependencies (auto-detect)
|
|
55
|
+
if [ -f "package-lock.json" ]; then npm ci
|
|
56
|
+
elif [ -f "yarn.lock" ]; then yarn install --frozen-lockfile
|
|
57
|
+
elif [ -f "pnpm-lock.yaml" ]; then pnpm install --frozen-lockfile
|
|
58
|
+
elif [ -f "bun.lockb" ]; then bun install
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
# Verify clean baseline
|
|
62
|
+
git status
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Step 4: Work in Isolation
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
The worktree is a full copy of the repo.
|
|
69
|
+
- Changes here do NOT affect the main worktree
|
|
70
|
+
- You can run tests, builds, anything
|
|
71
|
+
- Commits go to the worktree/$ARGUMENTS branch
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Step 5: Merge or Discard
|
|
75
|
+
|
|
76
|
+
When done:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Option 1: Merge back
|
|
80
|
+
cd /path/to/main/repo
|
|
81
|
+
git merge worktree/$ARGUMENTS
|
|
82
|
+
|
|
83
|
+
# Option 2: Create PR from worktree branch
|
|
84
|
+
gh pr create --base main --head worktree/$ARGUMENTS
|
|
85
|
+
|
|
86
|
+
# Option 3: Discard
|
|
87
|
+
git worktree remove .claude/worktrees/$ARGUMENTS
|
|
88
|
+
git branch -D worktree/$ARGUMENTS
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Worktree Management
|
|
92
|
+
|
|
93
|
+
### List Active Worktrees
|
|
94
|
+
```bash
|
|
95
|
+
git worktree list
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Remove a Worktree
|
|
99
|
+
```bash
|
|
100
|
+
git worktree remove .claude/worktrees/$NAME
|
|
101
|
+
git branch -D worktree/$NAME
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Clean All Worktrees
|
|
105
|
+
```bash
|
|
106
|
+
git worktree prune
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Integration with @orchestrator
|
|
110
|
+
|
|
111
|
+
When `@orchestrator` dispatches parallel agents:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
@orchestrator
|
|
115
|
+
├── Worktree: feature-a → @builder (component)
|
|
116
|
+
├── Worktree: feature-b → @builder (service)
|
|
117
|
+
└── Worktree: feature-c → @tester (tests)
|
|
118
|
+
|
|
119
|
+
Each agent works in its own worktree.
|
|
120
|
+
No file conflicts possible.
|
|
121
|
+
Merge when all complete.
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Verification Protocol
|
|
125
|
+
|
|
126
|
+
**Before claiming worktree is ready:**
|
|
127
|
+
|
|
128
|
+
1. `git worktree list` shows the new worktree
|
|
129
|
+
2. Working directory is clean (`git status` shows no untracked files from setup)
|
|
130
|
+
3. Dependencies are installed (if applicable)
|
|
131
|
+
4. Tests pass in the worktree (baseline)
|
|
132
|
+
|
|
133
|
+
## Anti-Rationalization
|
|
134
|
+
|
|
135
|
+
| Excuse | Reality |
|
|
136
|
+
|--------|---------|
|
|
137
|
+
| "Just stash and switch branches" | Stashing loses context and is error-prone. Worktrees keep everything intact. |
|
|
138
|
+
| "I'll remember what I was working on" | You won't. Worktrees preserve state explicitly. |
|
|
139
|
+
| "Too much disk space" | Worktrees share .git objects. Overhead is minimal. |
|
|
140
|
+
| "Merging will be hard" | Merging is the same as any branch. Worktrees don't add merge complexity. |
|
|
141
|
+
| "I'll just do tasks sequentially" | Sequential is slower. Parallel worktrees = parallel development. |
|
|
142
|
+
|
|
143
|
+
## Rules
|
|
144
|
+
|
|
145
|
+
1. **Always name worktrees descriptively** — `worktree/auth-refactor` not `worktree/temp`
|
|
146
|
+
2. **Install dependencies after creation** — Auto-detect package manager
|
|
147
|
+
3. **Verify baseline before working** — Tests must pass in fresh worktree
|
|
148
|
+
4. **Clean up when done** — Remove worktrees and branches after merge
|
|
149
|
+
5. **Never work in .git/** — Worktrees are directories, not git internals
|
|
150
|
+
6. **Gitignore the worktrees directory** — Add `.claude/worktrees/` to `.gitignore`
|
|
151
|
+
|
|
152
|
+
## Output
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
──── /worktree ────
|
|
156
|
+
Action: [create | list | remove | merge]
|
|
157
|
+
Name: $ARGUMENTS
|
|
158
|
+
Path: .claude/worktrees/$ARGUMENTS
|
|
159
|
+
Branch: worktree/$ARGUMENTS
|
|
160
|
+
|
|
161
|
+
Status: Ready
|
|
162
|
+
Dependencies: Installed
|
|
163
|
+
Baseline tests: Passing
|
|
164
|
+
|
|
165
|
+
Active worktrees:
|
|
166
|
+
1. /main/repo (main branch)
|
|
167
|
+
2. .claude/worktrees/$ARGUMENTS (worktree/$ARGUMENTS)
|
|
168
|
+
```
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: write-skill
|
|
3
|
+
description: "Use when creating a new skill, editing an existing skill, or verifying a skill works before deployment."
|
|
4
|
+
user-invocable: true
|
|
5
|
+
argument-hint: "[skill-name]"
|
|
6
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /write-skill — Create or Improve Skills with TDD
|
|
10
|
+
|
|
11
|
+
Writing skills IS Test-Driven Development applied to process documentation.
|
|
12
|
+
|
|
13
|
+
**Target:** $ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## The Iron Law
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
NO SKILL WITHOUT A FAILING TEST FIRST
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
If you didn't verify an agent fails without the skill, you don't know if the skill teaches the right thing.
|
|
22
|
+
|
|
23
|
+
**Violating the letter of this rule is violating the spirit of this rule.**
|
|
24
|
+
|
|
25
|
+
## Skill Structure
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
skills/
|
|
29
|
+
my-skill/
|
|
30
|
+
SKILL.md # Main skill file (required)
|
|
31
|
+
supporting-file.* # Only if needed (heavy reference, tools)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### SKILL.md Template
|
|
35
|
+
|
|
36
|
+
```markdown
|
|
37
|
+
---
|
|
38
|
+
name: my-skill
|
|
39
|
+
description: "Use when [specific triggering conditions and symptoms]"
|
|
40
|
+
user-invocable: true
|
|
41
|
+
argument-hint: "[arguments]"
|
|
42
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
# /my-skill — Title
|
|
46
|
+
|
|
47
|
+
[Core principle in 1-2 sentences.]
|
|
48
|
+
|
|
49
|
+
**Target:** $ARGUMENTS
|
|
50
|
+
|
|
51
|
+
## When to Use
|
|
52
|
+
|
|
53
|
+
- [Symptom or situation 1]
|
|
54
|
+
- [Symptom or situation 2]
|
|
55
|
+
- NOT for: [when not to use]
|
|
56
|
+
|
|
57
|
+
## Workflow
|
|
58
|
+
|
|
59
|
+
### Step 1: [Action]
|
|
60
|
+
[Instructions]
|
|
61
|
+
|
|
62
|
+
### Step 2: [Action]
|
|
63
|
+
[Instructions]
|
|
64
|
+
|
|
65
|
+
## Verification Protocol
|
|
66
|
+
|
|
67
|
+
**Before claiming skill execution is complete:**
|
|
68
|
+
[What commands to run as proof]
|
|
69
|
+
|
|
70
|
+
## Anti-Rationalization
|
|
71
|
+
|
|
72
|
+
| Excuse | Reality |
|
|
73
|
+
|--------|---------|
|
|
74
|
+
| "[common excuse]" | [why it's wrong] |
|
|
75
|
+
|
|
76
|
+
## Rules
|
|
77
|
+
|
|
78
|
+
1. [Rule 1]
|
|
79
|
+
2. [Rule 2]
|
|
80
|
+
|
|
81
|
+
## Output
|
|
82
|
+
|
|
83
|
+
[Expected output format]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## CSO (Claude Search Optimization)
|
|
87
|
+
|
|
88
|
+
**Critical for discovery.** Future Claude reads the description to decide if it should load the skill.
|
|
89
|
+
|
|
90
|
+
### Description Rules
|
|
91
|
+
|
|
92
|
+
1. **Start with "Use when..."** — Focus on triggering conditions
|
|
93
|
+
2. **NEVER summarize the workflow** — Claude will follow the summary and skip the content
|
|
94
|
+
3. **Include symptoms** — Error messages, situations, contexts
|
|
95
|
+
4. **Third person** — Descriptions are injected into system prompts
|
|
96
|
+
5. **Under 500 characters** — Be concise
|
|
97
|
+
|
|
98
|
+
```yaml
|
|
99
|
+
# BAD: Summarizes workflow — Claude may follow this instead of reading skill
|
|
100
|
+
description: "Debug issues using 4-phase methodology: gather, analyze, hypothesize, fix"
|
|
101
|
+
|
|
102
|
+
# GOOD: Just triggering conditions
|
|
103
|
+
description: "Use when encountering any bug, test failure, or unexpected behavior — before proposing fixes"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Name Rules
|
|
107
|
+
|
|
108
|
+
- Use only lowercase letters, numbers, and hyphens
|
|
109
|
+
- Use verb-first, active voice: `write-skill` not `skill-writing`
|
|
110
|
+
- Be descriptive: `condition-based-waiting` not `async-helpers`
|
|
111
|
+
|
|
112
|
+
## TDD Cycle for Skills
|
|
113
|
+
|
|
114
|
+
### RED: Write Failing Test (Baseline)
|
|
115
|
+
|
|
116
|
+
Before writing the skill, test what happens WITHOUT it:
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
1. Create a scenario that the skill should handle
|
|
120
|
+
2. Ask an agent to handle it WITHOUT the skill loaded
|
|
121
|
+
3. Document EXACTLY what the agent does wrong:
|
|
122
|
+
- What choices did it make?
|
|
123
|
+
- What rationalizations did it use?
|
|
124
|
+
- Where did it deviate from best practice?
|
|
125
|
+
4. This is your "failing test" — the baseline behavior
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### GREEN: Write Minimal Skill
|
|
129
|
+
|
|
130
|
+
Write a skill that addresses the specific failures from RED:
|
|
131
|
+
|
|
132
|
+
```markdown
|
|
133
|
+
1. Create skills/[name]/SKILL.md
|
|
134
|
+
2. Address ONLY the failures observed in baseline
|
|
135
|
+
3. Don't add hypothetical cases
|
|
136
|
+
4. Test again WITH the skill loaded
|
|
137
|
+
5. Verify the agent now behaves correctly
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### REFACTOR: Close Loopholes
|
|
141
|
+
|
|
142
|
+
```markdown
|
|
143
|
+
1. Look for NEW rationalizations the agent uses
|
|
144
|
+
2. Add explicit counters for each rationalization
|
|
145
|
+
3. Build the Anti-Rationalization table
|
|
146
|
+
4. Add Red Flags list
|
|
147
|
+
5. Re-test until the skill is bulletproof
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Validation Checklist
|
|
151
|
+
|
|
152
|
+
Before deploying the skill:
|
|
153
|
+
|
|
154
|
+
```markdown
|
|
155
|
+
### Structure
|
|
156
|
+
- [ ] YAML frontmatter with name and description
|
|
157
|
+
- [ ] Description starts with "Use when..."
|
|
158
|
+
- [ ] Description does NOT summarize workflow
|
|
159
|
+
- [ ] Name uses only lowercase, numbers, hyphens
|
|
160
|
+
|
|
161
|
+
### Content
|
|
162
|
+
- [ ] Clear overview with core principle
|
|
163
|
+
- [ ] Workflow with numbered steps
|
|
164
|
+
- [ ] Verification Protocol section
|
|
165
|
+
- [ ] Anti-Rationalization table
|
|
166
|
+
- [ ] Rules section
|
|
167
|
+
- [ ] Output format section
|
|
168
|
+
|
|
169
|
+
### Quality
|
|
170
|
+
- [ ] One excellent example (not multi-language)
|
|
171
|
+
- [ ] No narrative storytelling
|
|
172
|
+
- [ ] Concise (< 500 words for frequently-loaded skills)
|
|
173
|
+
- [ ] Keywords for search throughout
|
|
174
|
+
|
|
175
|
+
### Testing
|
|
176
|
+
- [ ] Baseline tested WITHOUT skill (RED)
|
|
177
|
+
- [ ] Agent complies WITH skill (GREEN)
|
|
178
|
+
- [ ] Rationalizations addressed (REFACTOR)
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Anti-Rationalization
|
|
182
|
+
|
|
183
|
+
| Excuse | Reality |
|
|
184
|
+
|--------|---------|
|
|
185
|
+
| "Skill is obviously clear" | Clear to you is not clear to other agents. Test it. |
|
|
186
|
+
| "It's just a reference" | References can have gaps. Test retrieval. |
|
|
187
|
+
| "Testing is overkill" | Untested skills always have issues. 15 min testing saves hours. |
|
|
188
|
+
| "I'll test if problems emerge" | Test BEFORE deploying, not after. |
|
|
189
|
+
| "Too tedious to test" | Testing is less tedious than debugging a bad skill in production. |
|
|
190
|
+
| "No time to test" | Deploying untested skill wastes more time fixing it later. |
|
|
191
|
+
|
|
192
|
+
## Output
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
──── /write-skill ────
|
|
196
|
+
Skill: [name]
|
|
197
|
+
Status: [created | updated]
|
|
198
|
+
|
|
199
|
+
Structure: ✓ Valid
|
|
200
|
+
CSO: ✓ Description starts with "Use when..."
|
|
201
|
+
Testing: [RED ✓ | GREEN ✓ | REFACTOR ✓]
|
|
202
|
+
|
|
203
|
+
File: skills/[name]/SKILL.md
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Rules
|
|
207
|
+
|
|
208
|
+
1. **No skill without failing test first** — TDD applies to documentation too
|
|
209
|
+
2. **CSO-optimize descriptions** — "Use when..." not "What it does"
|
|
210
|
+
3. **Never summarize workflow in description** — Claude will skip the content
|
|
211
|
+
4. **Address every rationalization** — Build the table from real test failures
|
|
212
|
+
5. **One excellent example** — Beats five mediocre ones
|
|
213
|
+
6. **Verify before deploying** — Run the validation checklist
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# E-Commerce Template
|
|
2
|
+
|
|
3
|
+
Quick start template for e-commerce applications.
|
|
4
|
+
|
|
5
|
+
## Recommended Agents
|
|
6
|
+
|
|
7
|
+
| Agent | Purpose |
|
|
8
|
+
|-------|---------|
|
|
9
|
+
| `@starter` | Scaffold the project |
|
|
10
|
+
| `@builder` | Create modules |
|
|
11
|
+
| `@finance` | Payment integration |
|
|
12
|
+
| `@security` | Auth & checkout security |
|
|
13
|
+
| `@data` | Product catalog & orders DB |
|
|
14
|
+
| `@perf` | Optimize for conversion |
|
|
15
|
+
|
|
16
|
+
## Core Modules
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
src/
|
|
20
|
+
├── modules/
|
|
21
|
+
│ ├── products/ # Product catalog
|
|
22
|
+
│ │ ├── types.ts
|
|
23
|
+
│ │ ├── service.ts
|
|
24
|
+
│ │ ├── adapter.ts
|
|
25
|
+
│ │ └── components/
|
|
26
|
+
│ │ ├── ProductCard.tsx
|
|
27
|
+
│ │ ├── ProductGrid.tsx
|
|
28
|
+
│ │ └── ProductDetail.tsx
|
|
29
|
+
│ │
|
|
30
|
+
│ ├── cart/ # Shopping cart
|
|
31
|
+
│ │ ├── types.ts
|
|
32
|
+
│ │ ├── store.ts # Cart state (Zustand/Pinia)
|
|
33
|
+
│ │ └── components/
|
|
34
|
+
│ │ ├── CartDrawer.tsx
|
|
35
|
+
│ │ ├── CartItem.tsx
|
|
36
|
+
│ │ └── CartSummary.tsx
|
|
37
|
+
│ │
|
|
38
|
+
│ ├── checkout/ # Checkout flow
|
|
39
|
+
│ │ ├── types.ts
|
|
40
|
+
│ │ ├── service.ts
|
|
41
|
+
│ │ └── components/
|
|
42
|
+
│ │ ├── CheckoutForm.tsx
|
|
43
|
+
│ │ ├── AddressForm.tsx
|
|
44
|
+
│ │ ├── PaymentForm.tsx
|
|
45
|
+
│ │ └── OrderConfirmation.tsx
|
|
46
|
+
│ │
|
|
47
|
+
│ ├── orders/ # Order management
|
|
48
|
+
│ │ ├── types.ts
|
|
49
|
+
│ │ ├── service.ts
|
|
50
|
+
│ │ └── components/
|
|
51
|
+
│ │ ├── OrderList.tsx
|
|
52
|
+
│ │ └── OrderDetail.tsx
|
|
53
|
+
│ │
|
|
54
|
+
│ └── auth/ # User authentication
|
|
55
|
+
│ ├── types.ts
|
|
56
|
+
│ ├── service.ts
|
|
57
|
+
│ └── components/
|
|
58
|
+
│ ├── LoginForm.tsx
|
|
59
|
+
│ └── RegisterForm.tsx
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Key Features
|
|
63
|
+
|
|
64
|
+
### Product Catalog
|
|
65
|
+
- Category navigation
|
|
66
|
+
- Search with filters
|
|
67
|
+
- Product variants (size, color)
|
|
68
|
+
- Inventory tracking
|
|
69
|
+
- Image galleries
|
|
70
|
+
|
|
71
|
+
### Shopping Cart
|
|
72
|
+
- Persistent cart (localStorage + server sync)
|
|
73
|
+
- Quantity updates
|
|
74
|
+
- Promo code support
|
|
75
|
+
- Shipping calculator
|
|
76
|
+
|
|
77
|
+
### Checkout
|
|
78
|
+
- Guest checkout option
|
|
79
|
+
- Address validation
|
|
80
|
+
- Multiple payment methods
|
|
81
|
+
- Order confirmation email
|
|
82
|
+
|
|
83
|
+
### User Account
|
|
84
|
+
- Order history
|
|
85
|
+
- Saved addresses
|
|
86
|
+
- Wishlist
|
|
87
|
+
- Profile management
|
|
88
|
+
|
|
89
|
+
## Database Schema
|
|
90
|
+
|
|
91
|
+
```sql
|
|
92
|
+
-- Products
|
|
93
|
+
products (id, name, slug, description, price, compare_price, images, category_id)
|
|
94
|
+
product_variants (id, product_id, sku, price, inventory, attributes)
|
|
95
|
+
categories (id, name, slug, parent_id)
|
|
96
|
+
|
|
97
|
+
-- Orders
|
|
98
|
+
orders (id, user_id, status, subtotal, tax, shipping, total, shipping_address)
|
|
99
|
+
order_items (id, order_id, product_id, variant_id, quantity, price)
|
|
100
|
+
|
|
101
|
+
-- Users
|
|
102
|
+
users (id, email, password_hash, name, created_at)
|
|
103
|
+
addresses (id, user_id, type, street, city, state, zip, country)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Quick Start
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Create project
|
|
110
|
+
"Use @starter to create an e-commerce app with Next.js + PostgreSQL"
|
|
111
|
+
|
|
112
|
+
# Build product catalog
|
|
113
|
+
"Use @builder to create products module with CRUD"
|
|
114
|
+
|
|
115
|
+
# Add payment
|
|
116
|
+
"Use @finance to integrate Stripe checkout"
|
|
117
|
+
|
|
118
|
+
# Security review
|
|
119
|
+
"Use @security to review checkout flow"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Performance Targets
|
|
123
|
+
|
|
124
|
+
- Product page: < 1.5s LCP
|
|
125
|
+
- Add to cart: < 200ms response
|
|
126
|
+
- Checkout: < 3s total flow
|
|
127
|
+
- Search: < 500ms results
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# Fintech Template
|
|
2
|
+
|
|
3
|
+
Quick start template for financial technology applications.
|
|
4
|
+
|
|
5
|
+
## Recommended Agents
|
|
6
|
+
|
|
7
|
+
| Agent | Purpose |
|
|
8
|
+
|-------|---------|
|
|
9
|
+
| `@starter` | Scaffold the project |
|
|
10
|
+
| `@security` | Compliance & encryption |
|
|
11
|
+
| `@finance` | Financial operations |
|
|
12
|
+
| `@legal` | Regulatory compliance |
|
|
13
|
+
| `@data` | Transaction database |
|
|
14
|
+
| `@tester` | Financial accuracy tests |
|
|
15
|
+
|
|
16
|
+
## Core Modules
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
src/
|
|
20
|
+
├── modules/
|
|
21
|
+
│ ├── accounts/ # Account management
|
|
22
|
+
│ │ ├── types.ts
|
|
23
|
+
│ │ ├── service.ts
|
|
24
|
+
│ │ └── components/
|
|
25
|
+
│ │ ├── AccountList.tsx
|
|
26
|
+
│ │ ├── AccountDetail.tsx
|
|
27
|
+
│ │ └── AccountSettings.tsx
|
|
28
|
+
│ │
|
|
29
|
+
│ ├── transactions/ # Transaction processing
|
|
30
|
+
│ │ ├── types.ts
|
|
31
|
+
│ │ ├── service.ts
|
|
32
|
+
│ │ ├── validator.ts
|
|
33
|
+
│ │ └── components/
|
|
34
|
+
│ │ ├── TransactionList.tsx
|
|
35
|
+
│ │ ├── TransactionDetail.tsx
|
|
36
|
+
│ │ └── TransactionFilters.tsx
|
|
37
|
+
│ │
|
|
38
|
+
│ ├── transfers/ # Money transfers
|
|
39
|
+
│ │ ├── types.ts
|
|
40
|
+
│ │ ├── service.ts
|
|
41
|
+
│ │ └── components/
|
|
42
|
+
│ │ ├── TransferForm.tsx
|
|
43
|
+
│ │ ├── RecipientSelector.tsx
|
|
44
|
+
│ │ └── TransferConfirmation.tsx
|
|
45
|
+
│ │
|
|
46
|
+
│ ├── cards/ # Card management
|
|
47
|
+
│ │ ├── types.ts
|
|
48
|
+
│ │ ├── service.ts
|
|
49
|
+
│ │ └── components/
|
|
50
|
+
│ │ ├── CardList.tsx
|
|
51
|
+
│ │ ├── VirtualCard.tsx
|
|
52
|
+
│ │ └── CardControls.tsx
|
|
53
|
+
│ │
|
|
54
|
+
│ ├── compliance/ # KYC/AML
|
|
55
|
+
│ │ ├── types.ts
|
|
56
|
+
│ │ ├── service.ts
|
|
57
|
+
│ │ └── components/
|
|
58
|
+
│ │ ├── KYCForm.tsx
|
|
59
|
+
│ │ ├── DocumentUpload.tsx
|
|
60
|
+
│ │ └── VerificationStatus.tsx
|
|
61
|
+
│ │
|
|
62
|
+
│ └── reports/ # Financial reports
|
|
63
|
+
│ ├── types.ts
|
|
64
|
+
│ ├── service.ts
|
|
65
|
+
│ └── components/
|
|
66
|
+
│ ├── StatementGenerator.tsx
|
|
67
|
+
│ ├── TaxReport.tsx
|
|
68
|
+
│ └── SpendingAnalytics.tsx
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Key Features
|
|
72
|
+
|
|
73
|
+
### Account Management
|
|
74
|
+
- Multi-currency support
|
|
75
|
+
- Account types (checking, savings, investment)
|
|
76
|
+
- Balance tracking
|
|
77
|
+
- Interest calculation
|
|
78
|
+
|
|
79
|
+
### Transaction Processing
|
|
80
|
+
- Real-time transactions
|
|
81
|
+
- Double-entry bookkeeping
|
|
82
|
+
- Transaction categorization
|
|
83
|
+
- Fraud detection triggers
|
|
84
|
+
|
|
85
|
+
### Compliance
|
|
86
|
+
- KYC verification
|
|
87
|
+
- AML screening
|
|
88
|
+
- Transaction limits
|
|
89
|
+
- Audit logging
|
|
90
|
+
|
|
91
|
+
### Security
|
|
92
|
+
- End-to-end encryption
|
|
93
|
+
- PCI DSS compliance
|
|
94
|
+
- 2FA required
|
|
95
|
+
- Session management
|
|
96
|
+
|
|
97
|
+
## Database Schema
|
|
98
|
+
|
|
99
|
+
```sql
|
|
100
|
+
-- Accounts
|
|
101
|
+
accounts (id, user_id, type, currency, balance, status, created_at)
|
|
102
|
+
account_limits (account_id, daily_limit, monthly_limit)
|
|
103
|
+
|
|
104
|
+
-- Transactions (immutable ledger)
|
|
105
|
+
transactions (
|
|
106
|
+
id, account_id, type, amount, currency,
|
|
107
|
+
balance_before, balance_after,
|
|
108
|
+
reference, metadata, created_at
|
|
109
|
+
)
|
|
110
|
+
transaction_categories (transaction_id, category)
|
|
111
|
+
|
|
112
|
+
-- Transfers
|
|
113
|
+
transfers (id, from_account, to_account, amount, currency, status, created_at)
|
|
114
|
+
|
|
115
|
+
-- Compliance
|
|
116
|
+
kyc_records (id, user_id, level, status, verified_at, documents)
|
|
117
|
+
aml_checks (id, transaction_id, risk_score, flags, reviewed_at)
|
|
118
|
+
|
|
119
|
+
-- Audit
|
|
120
|
+
audit_logs (id, user_id, action, resource, details, ip_address, created_at)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Compliance Requirements
|
|
124
|
+
|
|
125
|
+
| Requirement | Implementation |
|
|
126
|
+
|-------------|----------------|
|
|
127
|
+
| PCI DSS | Tokenize card data, secure transmission |
|
|
128
|
+
| KYC | Identity verification, document checks |
|
|
129
|
+
| AML | Transaction monitoring, suspicious activity reports |
|
|
130
|
+
| GDPR/LGPD | Data encryption, deletion rights |
|
|
131
|
+
| SOX | Audit trails, access controls |
|
|
132
|
+
|
|
133
|
+
## Quick Start
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Create project
|
|
137
|
+
"Use @starter to create a fintech app with Next.js + PostgreSQL"
|
|
138
|
+
|
|
139
|
+
# Security first
|
|
140
|
+
"Use @security to implement secure authentication with 2FA"
|
|
141
|
+
|
|
142
|
+
# Compliance
|
|
143
|
+
"Use @legal to review for LGPD/GDPR compliance"
|
|
144
|
+
|
|
145
|
+
# Financial operations
|
|
146
|
+
"Use @finance to implement transaction processing"
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Testing Requirements
|
|
150
|
+
|
|
151
|
+
- Unit tests for all calculations
|
|
152
|
+
- Integration tests for transactions
|
|
153
|
+
- Compliance validation tests
|
|
154
|
+
- Penetration testing (external)
|
|
155
|
+
|
|
156
|
+
## Performance Targets
|
|
157
|
+
|
|
158
|
+
- Transaction processing: < 100ms
|
|
159
|
+
- Balance query: < 50ms
|
|
160
|
+
- Report generation: < 30s
|
|
161
|
+
- 99.99% uptime for transactions
|