specialist-agent 2.13.0 → 3.2.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 +1 -1
- package/README.md +33 -207
- package/dist/catalog.json +15529 -0
- package/dist/hw-worker.mjs +254 -0
- package/dist/icones/icone.ico +0 -0
- package/dist/icones/icone.png +0 -0
- package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
- package/dist/interface/assets/index-BIyqZkro.css +1 -0
- package/dist/interface/assets/index-zAegy908.js +13 -0
- package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
- package/dist/interface/icones/apple-touch-icon.png +0 -0
- package/dist/interface/icones/favicon-32.png +0 -0
- package/dist/interface/icones/icone-192.png +0 -0
- package/dist/interface/icones/icone-512.png +0 -0
- package/dist/interface/icones/icone-mascara-512.png +0 -0
- package/dist/interface/index.html +19 -0
- package/dist/interface/manifest.webmanifest +19 -0
- package/dist/interface/sw.js +63 -0
- package/dist/specialist-agent.mjs +6919 -0
- package/dist/usage-worker.mjs +174 -0
- package/package.json +32 -57
- package/.claude-plugin/marketplace.json +0 -52
- package/.claude-plugin/plugin.json +0 -37
- package/.codex/INSTALL.md +0 -145
- package/.cursor-plugin/marketplace.json +0 -52
- package/.cursor-plugin/plugin.json +0 -37
- package/.opencode/INSTALL.md +0 -127
- package/.opencode/opencode.json +0 -186
- package/agents/analyst-lite.md +0 -48
- package/agents/analyst.md +0 -396
- package/agents/api-lite.md +0 -43
- package/agents/api.md +0 -427
- package/agents/architect-lite.md +0 -104
- package/agents/architect.md +0 -571
- package/agents/autopilot-lite.md +0 -46
- package/agents/autopilot.md +0 -196
- package/agents/cloud-lite.md +0 -75
- package/agents/cloud.md +0 -213
- package/agents/data-lite.md +0 -67
- package/agents/data.md +0 -306
- package/agents/debugger-lite.md +0 -46
- package/agents/debugger.md +0 -410
- package/agents/deps-lite.md +0 -41
- package/agents/deps.md +0 -363
- package/agents/designer-lite.md +0 -67
- package/agents/designer.md +0 -195
- package/agents/devops-lite.md +0 -67
- package/agents/devops.md +0 -205
- package/agents/docs-lite.md +0 -42
- package/agents/docs.md +0 -454
- package/agents/executor-lite.md +0 -61
- package/agents/executor.md +0 -695
- package/agents/explorer-lite.md +0 -55
- package/agents/explorer.md +0 -152
- package/agents/finance-lite.md +0 -66
- package/agents/finance.md +0 -255
- package/agents/i18n-lite.md +0 -44
- package/agents/i18n.md +0 -594
- package/agents/legal-lite.md +0 -113
- package/agents/legal.md +0 -302
- package/agents/marketing-lite.md +0 -25
- package/agents/marketing.md +0 -188
- package/agents/memory.md +0 -166
- package/agents/orchestrator-lite.md +0 -40
- package/agents/orchestrator.md +0 -512
- package/agents/pair-lite.md +0 -38
- package/agents/pair.md +0 -310
- package/agents/perf-lite.md +0 -42
- package/agents/perf.md +0 -320
- package/agents/planner-lite.md +0 -59
- package/agents/planner.md +0 -272
- package/agents/product-lite.md +0 -25
- package/agents/product.md +0 -195
- package/agents/refactor-lite.md +0 -42
- package/agents/refactor.md +0 -467
- package/agents/ripple-lite.md +0 -106
- package/agents/ripple.md +0 -166
- package/agents/scout-lite.md +0 -37
- package/agents/scout.md +0 -224
- package/agents/security-lite.md +0 -66
- package/agents/security.md +0 -252
- package/agents/sentry-triage-lite.md +0 -54
- package/agents/sentry-triage.md +0 -217
- package/agents/starter-lite.md +0 -80
- package/agents/starter.md +0 -300
- package/agents/support-lite.md +0 -24
- package/agents/support.md +0 -191
- package/agents/tdd-lite.md +0 -43
- package/agents/tdd.md +0 -329
- package/agents/tester-lite.md +0 -71
- package/agents/tester.md +0 -237
- package/cli/architectures.mjs +0 -713
- package/cli/detect-architecture.mjs +0 -752
- package/cli/generate-architecture.mjs +0 -1096
- package/cli/index.mjs +0 -1217
- package/cli/recommend-architecture.mjs +0 -870
- package/hooks/after-review.mjs +0 -130
- package/hooks/after-task.mjs +0 -117
- package/hooks/before-plan.mjs +0 -155
- package/hooks/before-review.mjs +0 -139
- package/hooks/hooks.json +0 -66
- package/hooks/lifecycle.json +0 -91
- package/hooks/native/auto-dispatch.mjs +0 -207
- package/hooks/native/auto-format.mjs +0 -176
- package/hooks/native/mcp-discovery.mjs +0 -168
- package/hooks/native/security-config.json +0 -38
- package/hooks/native/security-guard.mjs +0 -323
- package/hooks/native/session-context.mjs +0 -179
- package/hooks/native/session-end.mjs +0 -42
- package/hooks/native/utils.mjs +0 -62
- package/hooks/on-error.mjs +0 -129
- package/hooks/session-end.mjs +0 -185
- package/hooks/session-start.mjs +0 -154
- package/packs/angular/ARCHITECTURE.md +0 -814
- package/packs/angular/CLAUDE.md +0 -105
- package/packs/angular/agents/builder.md +0 -113
- package/packs/angular/agents/doctor.md +0 -187
- package/packs/angular/agents/migrator.md +0 -101
- package/packs/angular/agents/reviewer.md +0 -252
- package/packs/angular/agents-lite/builder.md +0 -65
- package/packs/angular/agents-lite/doctor.md +0 -64
- package/packs/angular/agents-lite/migrator.md +0 -75
- package/packs/angular/agents-lite/reviewer.md +0 -69
- package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
- package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
- package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
- package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
- package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
- package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
- package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/angular/skills/review-review/SKILL.md +0 -43
- package/packs/astro/ARCHITECTURE.md +0 -718
- package/packs/astro/CLAUDE.md +0 -106
- package/packs/astro/agents/builder.md +0 -123
- package/packs/astro/agents/doctor.md +0 -200
- package/packs/astro/agents/migrator.md +0 -105
- package/packs/astro/agents/reviewer.md +0 -253
- package/packs/astro/agents-lite/builder.md +0 -71
- package/packs/astro/agents-lite/doctor.md +0 -66
- package/packs/astro/agents-lite/migrator.md +0 -71
- package/packs/astro/agents-lite/reviewer.md +0 -70
- package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
- package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
- package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
- package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
- package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
- package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
- package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
- package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/astro/skills/review-review/SKILL.md +0 -45
- package/packs/nextjs/ARCHITECTURE.md +0 -1033
- package/packs/nextjs/CLAUDE.md +0 -106
- package/packs/nextjs/agents/builder.md +0 -132
- package/packs/nextjs/agents/doctor.md +0 -226
- package/packs/nextjs/agents/migrator.md +0 -101
- package/packs/nextjs/agents/reviewer.md +0 -243
- package/packs/nextjs/agents-lite/builder.md +0 -74
- package/packs/nextjs/agents-lite/doctor.md +0 -74
- package/packs/nextjs/agents-lite/migrator.md +0 -75
- package/packs/nextjs/agents-lite/reviewer.md +0 -73
- package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
- package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
- package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
- package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
- package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
- package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
- package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
- package/packs/nextjs/skills/review-review/SKILL.md +0 -47
- package/packs/nuxt/ARCHITECTURE.md +0 -831
- package/packs/nuxt/CLAUDE.md +0 -111
- package/packs/nuxt/agents/builder.md +0 -120
- package/packs/nuxt/agents/doctor.md +0 -198
- package/packs/nuxt/agents/migrator.md +0 -101
- package/packs/nuxt/agents/reviewer.md +0 -255
- package/packs/nuxt/agents-lite/builder.md +0 -67
- package/packs/nuxt/agents-lite/doctor.md +0 -67
- package/packs/nuxt/agents-lite/migrator.md +0 -80
- package/packs/nuxt/agents-lite/reviewer.md +0 -71
- package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
- package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
- package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
- package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
- package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
- package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
- package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
- package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/nuxt/skills/review-review/SKILL.md +0 -45
- package/packs/react/ARCHITECTURE.md +0 -991
- package/packs/react/CLAUDE.md +0 -102
- package/packs/react/agents/builder.md +0 -113
- package/packs/react/agents/doctor.md +0 -203
- package/packs/react/agents/migrator.md +0 -101
- package/packs/react/agents/reviewer.md +0 -252
- package/packs/react/agents-lite/builder.md +0 -65
- package/packs/react/agents-lite/doctor.md +0 -64
- package/packs/react/agents-lite/migrator.md +0 -74
- package/packs/react/agents-lite/reviewer.md +0 -69
- package/packs/react/skills/dev-create-component/SKILL.md +0 -53
- package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
- package/packs/react/skills/dev-create-module/SKILL.md +0 -51
- package/packs/react/skills/dev-create-service/SKILL.md +0 -34
- package/packs/react/skills/dev-create-test/SKILL.md +0 -92
- package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/react/skills/docs-onboard/SKILL.md +0 -42
- package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
- package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
- package/packs/react/skills/review-review/SKILL.md +0 -44
- package/packs/svelte/ARCHITECTURE.md +0 -975
- package/packs/svelte/CLAUDE.md +0 -102
- package/packs/svelte/agents/builder.md +0 -114
- package/packs/svelte/agents/doctor.md +0 -174
- package/packs/svelte/agents/migrator.md +0 -101
- package/packs/svelte/agents/reviewer.md +0 -238
- package/packs/svelte/agents-lite/builder.md +0 -66
- package/packs/svelte/agents-lite/doctor.md +0 -67
- package/packs/svelte/agents-lite/migrator.md +0 -82
- package/packs/svelte/agents-lite/reviewer.md +0 -70
- package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
- package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
- package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
- package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
- package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
- package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
- package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
- package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
- package/packs/svelte/skills/review-review/SKILL.md +0 -45
- package/packs/vue/ARCHITECTURE.md +0 -798
- package/packs/vue/CLAUDE.md +0 -102
- package/packs/vue/agents/builder.md +0 -112
- package/packs/vue/agents/doctor.md +0 -185
- package/packs/vue/agents/migrator.md +0 -101
- package/packs/vue/agents/reviewer.md +0 -249
- package/packs/vue/agents-lite/builder.md +0 -65
- package/packs/vue/agents-lite/doctor.md +0 -63
- package/packs/vue/agents-lite/migrator.md +0 -73
- package/packs/vue/agents-lite/reviewer.md +0 -68
- package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
- package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
- package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
- package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
- package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
- package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
- package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
- package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
- package/packs/vue/skills/review-review/SKILL.md +0 -43
- package/skills/audit/SKILL.md +0 -231
- package/skills/autofix/SKILL.md +0 -166
- package/skills/autopilot/SKILL.md +0 -286
- package/skills/brainstorm/SKILL.md +0 -298
- package/skills/checkpoint/SKILL.md +0 -217
- package/skills/codereview/SKILL.md +0 -268
- package/skills/commit/SKILL.md +0 -150
- package/skills/copywriting/SKILL.md +0 -218
- package/skills/cro/SKILL.md +0 -234
- package/skills/debug/SKILL.md +0 -210
- package/skills/design-review/SKILL.md +0 -217
- package/skills/discovery/SKILL.md +0 -218
- package/skills/estimate/SKILL.md +0 -154
- package/skills/finish/SKILL.md +0 -220
- package/skills/grill/SKILL.md +0 -270
- package/skills/health/SKILL.md +0 -251
- package/skills/improve-architecture/SKILL.md +0 -205
- package/skills/learn/SKILL.md +0 -260
- package/skills/lint/SKILL.md +0 -126
- package/skills/migrate-architecture/SKILL.md +0 -242
- package/skills/migrate-framework/SKILL.md +0 -172
- package/skills/onboard/SKILL.md +0 -168
- package/skills/plan/SKILL.md +0 -141
- package/skills/prd/SKILL.md +0 -241
- package/skills/recall/SKILL.md +0 -112
- package/skills/remember/SKILL.md +0 -108
- package/skills/seo-audit/SKILL.md +0 -240
- package/skills/tdd/SKILL.md +0 -201
- package/skills/tutorial/SKILL.md +0 -346
- package/skills/verify/SKILL.md +0 -168
- package/skills/worktree/SKILL.md +0 -168
- package/skills/write-skill/SKILL.md +0 -225
- package/templates/autopilot/PROMPT.md +0 -39
- package/templates/autopilot/README.md +0 -122
- package/templates/autopilot/devcontainer.json +0 -21
- package/templates/industry/ecommerce.md +0 -127
- package/templates/industry/fintech.md +0 -161
- package/templates/industry/saas.md +0 -134
- package/templates/session-memory.json +0 -48
- package/templates/skill-template/SKILL.md +0 -90
package/skills/tutorial/SKILL.md
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: tutorial
|
|
3
|
-
description: "Use when first using Specialist Agent, onboarding a new team member, or wanting to explore available agents and skills."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[beginner|intermediate|advanced]"
|
|
6
|
-
allowed-tools: Read, Glob
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /tutorial - Interactive Tutorial
|
|
10
|
-
|
|
11
|
-
Learn Specialist Agent with hands-on exercises.
|
|
12
|
-
|
|
13
|
-
**Level:** $ARGUMENTS (default: beginner)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Beginner Tutorial
|
|
18
|
-
|
|
19
|
-
### Step 1: Your First Agent
|
|
20
|
-
|
|
21
|
-
Agents are AI specialists. Each one does something specific.
|
|
22
|
-
|
|
23
|
-
**Try this:**
|
|
24
|
-
```
|
|
25
|
-
Create a Button component with label and onClick props
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
@builder will create the component following your project's patterns.
|
|
29
|
-
|
|
30
|
-
**What happened:**
|
|
31
|
-
- @builder read your ARCHITECTURE.md
|
|
32
|
-
- Created the component in the right folder
|
|
33
|
-
- Added TypeScript types
|
|
34
|
-
- Followed your naming conventions
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
### Step 2: Review Code
|
|
39
|
-
|
|
40
|
-
Now review what was created.
|
|
41
|
-
|
|
42
|
-
**Try this:**
|
|
43
|
-
```
|
|
44
|
-
Review the Button component
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
@reviewer checks:
|
|
48
|
-
1. Does it meet requirements?
|
|
49
|
-
2. Is the code clean?
|
|
50
|
-
3. Does it follow architecture patterns?
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
### Step 3: Use Skills
|
|
55
|
-
|
|
56
|
-
Skills are shortcuts. They start with `/`.
|
|
57
|
-
|
|
58
|
-
**Try this:**
|
|
59
|
-
```
|
|
60
|
-
/health
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
This shows your project's health score.
|
|
64
|
-
|
|
65
|
-
**Other useful skills:**
|
|
66
|
-
- `/plan` - Plan a feature
|
|
67
|
-
- `/checkpoint` - Save your progress
|
|
68
|
-
- `/remember` - Save a decision
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
### Step 4: Debug an Issue
|
|
73
|
-
|
|
74
|
-
When something breaks:
|
|
75
|
-
|
|
76
|
-
**Try this:**
|
|
77
|
-
```
|
|
78
|
-
Debug why the login button doesn't work
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
@debugger will:
|
|
82
|
-
1. Gather evidence
|
|
83
|
-
2. Analyze the code
|
|
84
|
-
3. Find the root cause
|
|
85
|
-
4. Suggest a fix
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
### Beginner Complete
|
|
90
|
-
|
|
91
|
-
You learned:
|
|
92
|
-
- How to use @builder to create code
|
|
93
|
-
- How to use @reviewer to check quality
|
|
94
|
-
- How to use skills for quick actions
|
|
95
|
-
- How to use @debugger to fix issues
|
|
96
|
-
|
|
97
|
-
**Next:** Try `/tutorial intermediate`
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## Intermediate Tutorial
|
|
102
|
-
|
|
103
|
-
### Step 1: Planning Complex Features
|
|
104
|
-
|
|
105
|
-
For big features, plan first.
|
|
106
|
-
|
|
107
|
-
**Try this:**
|
|
108
|
-
```
|
|
109
|
-
/plan add user authentication with login and registration
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
@planner will:
|
|
113
|
-
1. Assess complexity
|
|
114
|
-
2. Break into tasks
|
|
115
|
-
3. Estimate effort
|
|
116
|
-
4. Ask for approval
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
### Step 2: Test-Driven Development
|
|
121
|
-
|
|
122
|
-
Write tests first with @tdd.
|
|
123
|
-
|
|
124
|
-
**Try this:**
|
|
125
|
-
```
|
|
126
|
-
/tdd implement a calculateDiscount function
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
The workflow:
|
|
130
|
-
1. **RED** - Write failing test
|
|
131
|
-
2. **GREEN** - Make it pass
|
|
132
|
-
3. **REFACTOR** - Clean up
|
|
133
|
-
|
|
134
|
-
No code without failing test first.
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
### Step 3: Checkpoints
|
|
139
|
-
|
|
140
|
-
Save progress before risky changes.
|
|
141
|
-
|
|
142
|
-
**Try this:**
|
|
143
|
-
```
|
|
144
|
-
/checkpoint create before-refactor
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
If something goes wrong:
|
|
148
|
-
```
|
|
149
|
-
/checkpoint restore before-refactor
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
### Step 4: Session Memory
|
|
155
|
-
|
|
156
|
-
Remember decisions across sessions.
|
|
157
|
-
|
|
158
|
-
**Save a decision:**
|
|
159
|
-
```
|
|
160
|
-
/remember use Zustand for state management
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
**Recall later:**
|
|
164
|
-
```
|
|
165
|
-
/recall state management
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
### Step 5: Specialized Agents
|
|
171
|
-
|
|
172
|
-
Use specialist agents for specific domains.
|
|
173
|
-
|
|
174
|
-
| Agent | Use Case |
|
|
175
|
-
|-------|----------|
|
|
176
|
-
| `@api` | Design REST/GraphQL APIs |
|
|
177
|
-
| `@security` | Add authentication |
|
|
178
|
-
| `@finance` | Payment integration |
|
|
179
|
-
| `@perf` | Performance optimization |
|
|
180
|
-
| `@data` | Database design |
|
|
181
|
-
|
|
182
|
-
**Try this:**
|
|
183
|
-
```
|
|
184
|
-
Use @api to design REST endpoints for products
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
### Intermediate Complete
|
|
190
|
-
|
|
191
|
-
You learned:
|
|
192
|
-
- Planning with @planner
|
|
193
|
-
- TDD with @tdd
|
|
194
|
-
- Checkpoints for safety
|
|
195
|
-
- Session memory
|
|
196
|
-
- Specialist agents
|
|
197
|
-
|
|
198
|
-
**Next:** Try `/tutorial advanced`
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
## Advanced Tutorial
|
|
203
|
-
|
|
204
|
-
### Step 1: Agent Composition
|
|
205
|
-
|
|
206
|
-
Agents can work together.
|
|
207
|
-
|
|
208
|
-
**Example workflow:**
|
|
209
|
-
```
|
|
210
|
-
1. @planner creates the plan
|
|
211
|
-
2. @builder implements each task
|
|
212
|
-
3. @reviewer validates the code
|
|
213
|
-
4. @tester adds tests
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
**Try this:**
|
|
217
|
-
```
|
|
218
|
-
Plan and implement a products module with tests
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
### Step 2: Custom Agents
|
|
224
|
-
|
|
225
|
-
Create your own agents.
|
|
226
|
-
|
|
227
|
-
**Command:**
|
|
228
|
-
```bash
|
|
229
|
-
npx specialist-agent create-agent @my-agent
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
**Agent structure:**
|
|
233
|
-
```markdown
|
|
234
|
-
---
|
|
235
|
-
name: my-agent
|
|
236
|
-
description: "What this agent does"
|
|
237
|
-
tools: Read, Write, Edit
|
|
238
|
-
---
|
|
239
|
-
|
|
240
|
-
# @my-agent
|
|
241
|
-
|
|
242
|
-
## Mission
|
|
243
|
-
One sentence describing the goal.
|
|
244
|
-
|
|
245
|
-
## Workflow
|
|
246
|
-
1. First step
|
|
247
|
-
2. Second step
|
|
248
|
-
|
|
249
|
-
## Rules
|
|
250
|
-
- Rule one
|
|
251
|
-
- Rule two
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
---
|
|
255
|
-
|
|
256
|
-
### Step 3: Team Profiles
|
|
257
|
-
|
|
258
|
-
Set behavior for different contexts.
|
|
259
|
-
|
|
260
|
-
**Available profiles:**
|
|
261
|
-
- `startup-fast` - Move fast, minimal validation
|
|
262
|
-
- `enterprise-strict` - Full validation, strict rules
|
|
263
|
-
- `learning-mode` - Explain everything
|
|
264
|
-
- `cost-optimized` - Minimize token usage
|
|
265
|
-
|
|
266
|
-
**Set profile:**
|
|
267
|
-
```bash
|
|
268
|
-
npx specialist-agent profiles set startup-fast
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
---
|
|
272
|
-
|
|
273
|
-
### Step 4: Cost Optimization
|
|
274
|
-
|
|
275
|
-
Reduce token usage:
|
|
276
|
-
|
|
277
|
-
1. **Use Lite mode** - 60-80% cheaper
|
|
278
|
-
2. **Be specific** - Less exploration needed
|
|
279
|
-
3. **Use @scout first** - Get recommendations
|
|
280
|
-
4. **Batch related tasks** - Less context switching
|
|
281
|
-
|
|
282
|
-
**Check cost:**
|
|
283
|
-
```
|
|
284
|
-
/estimate add payment integration
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
---
|
|
288
|
-
|
|
289
|
-
### Step 5: Multi-Platform
|
|
290
|
-
|
|
291
|
-
Specialist Agent works on multiple platforms:
|
|
292
|
-
|
|
293
|
-
| Platform | How |
|
|
294
|
-
|----------|-----|
|
|
295
|
-
| Claude Code | Native support |
|
|
296
|
-
| Cursor | `.cursor-plugin/` |
|
|
297
|
-
| VS Code | `.vscode/extension.json` |
|
|
298
|
-
| Windsurf | `.windsurf/plugin.json` |
|
|
299
|
-
|
|
300
|
-
The agents and skills work the same everywhere.
|
|
301
|
-
|
|
302
|
-
---
|
|
303
|
-
|
|
304
|
-
### Advanced Complete
|
|
305
|
-
|
|
306
|
-
You learned:
|
|
307
|
-
- Agent composition
|
|
308
|
-
- Creating custom agents
|
|
309
|
-
- Team profiles
|
|
310
|
-
- Cost optimization
|
|
311
|
-
- Multi-platform usage
|
|
312
|
-
|
|
313
|
-
---
|
|
314
|
-
|
|
315
|
-
## Quick Reference
|
|
316
|
-
|
|
317
|
-
### Agents
|
|
318
|
-
|
|
319
|
-
| Agent | What it Does |
|
|
320
|
-
|-------|--------------|
|
|
321
|
-
| @builder | Build code |
|
|
322
|
-
| @reviewer | Review code |
|
|
323
|
-
| @debugger | Fix bugs |
|
|
324
|
-
| @planner | Plan features |
|
|
325
|
-
| @tdd | Test-driven development |
|
|
326
|
-
| @api | API design |
|
|
327
|
-
| @security | Authentication |
|
|
328
|
-
| @finance | Payments |
|
|
329
|
-
| @perf | Performance |
|
|
330
|
-
|
|
331
|
-
### Skills
|
|
332
|
-
|
|
333
|
-
| Skill | What it Does |
|
|
334
|
-
|-------|--------------|
|
|
335
|
-
| /plan | Plan a feature |
|
|
336
|
-
| /tdd | TDD workflow |
|
|
337
|
-
| /debug | Debug an issue |
|
|
338
|
-
| /checkpoint | Save/restore progress |
|
|
339
|
-
| /health | Project health score |
|
|
340
|
-
| /remember | Save decisions |
|
|
341
|
-
| /recall | Recall decisions |
|
|
342
|
-
| /estimate | Estimate cost |
|
|
343
|
-
|
|
344
|
-
### Documentation
|
|
345
|
-
|
|
346
|
-
Full docs at: https://specialistagent.com.br/
|
package/skills/verify/SKILL.md
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: verify
|
|
3
|
-
description: "Use when about to claim work is complete, fixed, or passing - before committing, creating PRs, or moving to next task. Requires running verification commands and confirming output before making any success claims."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[test|build|lint|all]"
|
|
6
|
-
allowed-tools: Bash, Read, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /verify - Verification Before Completion
|
|
10
|
-
|
|
11
|
-
Evidence before claims. Always.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## The Iron Law
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
If you haven't run the verification command in THIS message, you cannot claim it passes.
|
|
22
|
-
|
|
23
|
-
**Violating the letter of this rule is violating the spirit of this rule.**
|
|
24
|
-
|
|
25
|
-
## When to Use
|
|
26
|
-
|
|
27
|
-
- Before committing code
|
|
28
|
-
- Before creating a pull request
|
|
29
|
-
- Before marking a task as complete
|
|
30
|
-
- Before moving to the next task in a plan
|
|
31
|
-
- After fixing a bug (prove it's actually fixed)
|
|
32
|
-
- NOT for: research or exploration tasks
|
|
33
|
-
|
|
34
|
-
## The Gate Function
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
BEFORE claiming any status:
|
|
38
|
-
|
|
39
|
-
1. IDENTIFY - What command proves this claim?
|
|
40
|
-
2. RUN - Execute the FULL command (fresh, complete, not cached)
|
|
41
|
-
3. READ - Full output, check exit code, count failures
|
|
42
|
-
4. VERIFY - Does output ACTUALLY confirm the claim?
|
|
43
|
-
→ If NO: State actual status with evidence
|
|
44
|
-
→ If YES: State claim WITH the evidence
|
|
45
|
-
5. ONLY THEN - Make the claim
|
|
46
|
-
|
|
47
|
-
Skip any step = lying, not verifying.
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Verification Matrix
|
|
51
|
-
|
|
52
|
-
| Claim | Required Command | NOT Sufficient |
|
|
53
|
-
|-------|-----------------|----------------|
|
|
54
|
-
| "Tests pass" | `npm test` output: 0 failures | Previous run, "should pass" |
|
|
55
|
-
| "Lint clean" | `npm run lint` output: 0 errors | "I fixed the warning" |
|
|
56
|
-
| "Build succeeds" | `npm run build` exit code 0 | "Lint passed so build should too" |
|
|
57
|
-
| "Bug fixed" | Test that reproduces bug: PASS | "Code changed, should work" |
|
|
58
|
-
| "Types correct" | `npx tsc --noEmit` exit code 0 | "I added the types" |
|
|
59
|
-
| "No regressions" | Full test suite: 0 failures | "Only changed one file" |
|
|
60
|
-
| "Requirements met" | Line-by-line checklist verified | "Tests pass" |
|
|
61
|
-
|
|
62
|
-
## Operations
|
|
63
|
-
|
|
64
|
-
### /verify test
|
|
65
|
-
```bash
|
|
66
|
-
npm test 2>&1
|
|
67
|
-
# Read FULL output
|
|
68
|
-
# Count: X passed, Y failed, Z skipped
|
|
69
|
-
# Exit code: 0 or non-zero
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### /verify build
|
|
73
|
-
```bash
|
|
74
|
-
npm run build 2>&1
|
|
75
|
-
# Check: exit code 0?
|
|
76
|
-
# Check: no error output?
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### /verify lint
|
|
80
|
-
```bash
|
|
81
|
-
npm run lint 2>&1
|
|
82
|
-
# Count: 0 errors, 0 warnings
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### /verify types
|
|
86
|
-
```bash
|
|
87
|
-
npx tsc --noEmit 2>&1
|
|
88
|
-
# Count: 0 errors
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### /verify all
|
|
92
|
-
Run ALL of the above in sequence. Stop at first failure.
|
|
93
|
-
|
|
94
|
-
### /verify (no args)
|
|
95
|
-
Auto-detect what to verify based on package.json scripts.
|
|
96
|
-
|
|
97
|
-
## Output
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
──── /verify ────
|
|
101
|
-
Command: npm test
|
|
102
|
-
Exit code: 0
|
|
103
|
-
Result: 42/42 tests passed, 0 failed
|
|
104
|
-
|
|
105
|
-
VERIFIED ✓ - All tests pass (evidence above)
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Or:
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
──── /verify ────
|
|
112
|
-
Command: npm test
|
|
113
|
-
Exit code: 1
|
|
114
|
-
Result: 40/42 tests passed, 2 failed
|
|
115
|
-
|
|
116
|
-
FAILED ✗ - 2 tests failing:
|
|
117
|
-
- src/auth.test.ts: "should validate token" - Expected true, got false
|
|
118
|
-
- src/user.test.ts: "should create user" - Timeout after 5000ms
|
|
119
|
-
|
|
120
|
-
DO NOT claim completion. Fix failures first.
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Red Flags - STOP
|
|
124
|
-
|
|
125
|
-
If you catch yourself thinking:
|
|
126
|
-
- "Should work now"
|
|
127
|
-
- "I'm confident this is correct"
|
|
128
|
-
- "Just this once I can skip verification"
|
|
129
|
-
- "Lint passed, so build will too"
|
|
130
|
-
- "I only changed one line"
|
|
131
|
-
- "The agent said it succeeded"
|
|
132
|
-
- "I'll verify after committing"
|
|
133
|
-
- "It's obvious this works"
|
|
134
|
-
|
|
135
|
-
**ALL of these mean: RUN THE COMMAND. READ THE OUTPUT.**
|
|
136
|
-
|
|
137
|
-
## Rationalization Prevention
|
|
138
|
-
|
|
139
|
-
| Excuse | Reality |
|
|
140
|
-
|--------|---------|
|
|
141
|
-
| "Should work now" | RUN the verification |
|
|
142
|
-
| "I'm confident" | Confidence is not evidence |
|
|
143
|
-
| "Just this once" | No exceptions, ever |
|
|
144
|
-
| "Lint passed" | Lint is not build is not test |
|
|
145
|
-
| "Agent said success" | Verify independently |
|
|
146
|
-
| "I only changed a comment" | Comments can break builds (JSX, directives) |
|
|
147
|
-
| "Previous run passed" | State changed since then. Run again. |
|
|
148
|
-
| "Partial check is enough" | Partial proves nothing |
|
|
149
|
-
| "Too slow to run full suite" | Slow verification beats fast regression |
|
|
150
|
-
|
|
151
|
-
## Integration
|
|
152
|
-
|
|
153
|
-
This skill is a **cross-cutting concern**. It applies to:
|
|
154
|
-
- @builder - Before claiming module is complete
|
|
155
|
-
- @executor - Before marking task checkpoint
|
|
156
|
-
- @tdd - Before claiming GREEN phase
|
|
157
|
-
- @reviewer - Before giving verdict
|
|
158
|
-
- @debugger - Before claiming bug is fixed
|
|
159
|
-
- @migrator - Before claiming migration is complete
|
|
160
|
-
|
|
161
|
-
## Rules
|
|
162
|
-
|
|
163
|
-
1. **Evidence before claims** - Non-negotiable
|
|
164
|
-
2. **Fresh runs only** - Never cite previous runs
|
|
165
|
-
3. **Full output** - Don't truncate or summarize
|
|
166
|
-
4. **Exit codes matter** - 0 = success, anything else = failure
|
|
167
|
-
5. **Read warnings** - Warnings can indicate real problems
|
|
168
|
-
6. **One claim per verification** - Don't bundle claims
|
package/skills/worktree/SKILL.md
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
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
|
-
```
|