specialist-agent 2.13.0 → 3.3.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 +36 -206
- package/dist/catalog.json +16677 -0
- package/dist/hw-worker.mjs +288 -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-BltVv7tb.js +24 -0
- package/dist/interface/assets/index-Cpa6kApK.css +1 -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 +64 -0
- package/dist/licencas/BRAND.md +22 -0
- package/dist/licencas/LICENSE-CONTENT.md +44 -0
- package/dist/licencas/OFL-Figtree.txt +93 -0
- package/dist/licencas/OFL-JetBrainsMono.txt +93 -0
- package/dist/licencas/OFL-Unbounded.txt +93 -0
- package/dist/licencas/TERCEIROS.txt +104 -0
- package/dist/specialist-agent.mjs +14515 -0
- package/dist/usage-worker.mjs +1077 -0
- package/package.json +34 -58
- 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/plan/SKILL.md
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: plan
|
|
3
|
-
description: "Use when starting a new feature, refactor, or multi-step task - before writing any code. Use especially when scope is unclear or multiple files are involved."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[feature description]"
|
|
6
|
-
allowed-tools: Read, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /plan - Adaptive Planning
|
|
10
|
-
|
|
11
|
-
Create an implementation plan that matches the complexity of the task.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## Workflow
|
|
16
|
-
|
|
17
|
-
### Step 1: Assess Complexity
|
|
18
|
-
|
|
19
|
-
Search the codebase to understand scope:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# Find affected files
|
|
23
|
-
# Estimate lines of code
|
|
24
|
-
# Identify dependencies
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Classify as:
|
|
28
|
-
- **TRIVIAL** (1-2 files, <50 lines) → Skip planning
|
|
29
|
-
- **SIMPLE** (3-5 files, <200 lines) → Mini-plan
|
|
30
|
-
- **MEDIUM** (6-15 files, complete module) → Standard plan
|
|
31
|
-
- **COMPLEX** (15+ files, multiple modules) → Full design doc
|
|
32
|
-
|
|
33
|
-
### Step 2: Generate Plan
|
|
34
|
-
|
|
35
|
-
#### For TRIVIAL:
|
|
36
|
-
```
|
|
37
|
-
✓ Task is trivial. Delegating to @builder.
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
#### For SIMPLE:
|
|
41
|
-
```markdown
|
|
42
|
-
## Quick Plan: [Feature]
|
|
43
|
-
|
|
44
|
-
1. [Step 1] - `file.ts`
|
|
45
|
-
2. [Step 2] - `file.ts`
|
|
46
|
-
3. [Step 3] - `file.ts`
|
|
47
|
-
4. Test: Run `npm test`
|
|
48
|
-
5. Verify: Check [criteria]
|
|
49
|
-
|
|
50
|
-
Estimated: ~X tokens
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
#### For MEDIUM:
|
|
54
|
-
```markdown
|
|
55
|
-
## Implementation Plan: [Feature]
|
|
56
|
-
|
|
57
|
-
### Overview
|
|
58
|
-
[2-3 sentences]
|
|
59
|
-
|
|
60
|
-
### Task Breakdown
|
|
61
|
-
- [ ] Task 1: [description] - `file.ts` (~N lines)
|
|
62
|
-
- [ ] Task 2: [description] - `file.ts` (~N lines)
|
|
63
|
-
- [ ] Task 3: [description] - `file.ts` (~N lines)
|
|
64
|
-
|
|
65
|
-
### Dependencies
|
|
66
|
-
- Task 2 depends on Task 1
|
|
67
|
-
- Tasks 3-4 can run in parallel
|
|
68
|
-
|
|
69
|
-
### Checkpoints
|
|
70
|
-
- After Task 2: Verify [condition]
|
|
71
|
-
- After Task 4: Run all tests
|
|
72
|
-
|
|
73
|
-
### Estimated Cost
|
|
74
|
-
~X tokens total
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
#### For COMPLEX:
|
|
78
|
-
```markdown
|
|
79
|
-
## Design Document: [Feature]
|
|
80
|
-
|
|
81
|
-
### Problem Statement
|
|
82
|
-
[What problem are we solving?]
|
|
83
|
-
|
|
84
|
-
### Requirements
|
|
85
|
-
- [ ] Requirement 1
|
|
86
|
-
- [ ] Requirement 2
|
|
87
|
-
|
|
88
|
-
### Current State
|
|
89
|
-
[How does the system work today?]
|
|
90
|
-
|
|
91
|
-
### Proposed Solution
|
|
92
|
-
[High-level architecture]
|
|
93
|
-
|
|
94
|
-
### Alternatives Considered
|
|
95
|
-
1. [Alternative] - Rejected: [reason]
|
|
96
|
-
|
|
97
|
-
### Task Breakdown
|
|
98
|
-
[Detailed tasks with estimates]
|
|
99
|
-
|
|
100
|
-
### Risks
|
|
101
|
-
- Risk 1: [mitigation]
|
|
102
|
-
|
|
103
|
-
### Estimated Cost
|
|
104
|
-
~X tokens total
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Step 3: Confirm
|
|
108
|
-
|
|
109
|
-
Ask user: "Approve plan and begin execution?"
|
|
110
|
-
|
|
111
|
-
If approved, delegate to @executor with the plan.
|
|
112
|
-
|
|
113
|
-
## Output
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
──── /plan ────
|
|
117
|
-
Feature: [name]
|
|
118
|
-
Complexity: [TRIVIAL | SIMPLE | MEDIUM | COMPLEX]
|
|
119
|
-
Files affected: ~N
|
|
120
|
-
Estimated tokens: ~N
|
|
121
|
-
|
|
122
|
-
[Plan content]
|
|
123
|
-
|
|
124
|
-
Next: Awaiting approval
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
## Anti-Rationalization
|
|
128
|
-
|
|
129
|
-
| Excuse | Reality |
|
|
130
|
-
|--------|---------|
|
|
131
|
-
| "It's simple enough to just start coding" | That's what every developer says before a 3-day rabbit hole. 10 minutes of planning saves hours. |
|
|
132
|
-
| "I already know the architecture" | Plans aren't just for you - they create alignment and a checkpoint to rollback to. |
|
|
133
|
-
| "Planning is waterfall" | Adaptive planning IS agile. Skipping planning is chaos, not agility. |
|
|
134
|
-
| "I'll refactor later if the approach is wrong" | Refactoring costs 10x more than planning. Get it right first. |
|
|
135
|
-
|
|
136
|
-
## Rules
|
|
137
|
-
|
|
138
|
-
- Never force heavy planning for simple tasks
|
|
139
|
-
- Always estimate token costs
|
|
140
|
-
- Ask clarifying questions if needed
|
|
141
|
-
- Read existing architecture before planning
|
package/skills/prd/SKILL.md
DELETED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: prd
|
|
3
|
-
description: "Use when translating a product idea, feature request, or stakeholder requirement into a structured PRD with user stories, acceptance criteria, and GitHub issues."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[feature or product idea]"
|
|
6
|
-
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /prd - Product Requirements Document
|
|
10
|
-
|
|
11
|
-
Transform product ideas into structured, implementable PRDs with user stories, acceptance criteria, and issue decomposition - bridging the gap between stakeholder intent and developer action.
|
|
12
|
-
|
|
13
|
-
**Target:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
|
|
17
|
-
- Translating a vague feature request into actionable requirements
|
|
18
|
-
- Starting a new feature that needs stakeholder alignment
|
|
19
|
-
- Converting user feedback into development tasks
|
|
20
|
-
- When `@product` or `@analyst` needs a structured output format
|
|
21
|
-
- Before `/plan` for features that need formal requirements
|
|
22
|
-
- NOT for: bug fixes (use `/debug`)
|
|
23
|
-
- NOT for: technical tasks with clear specs (use `/plan` directly)
|
|
24
|
-
- NOT for: exploratory ideation (use `/brainstorm` first)
|
|
25
|
-
|
|
26
|
-
## Workflow
|
|
27
|
-
|
|
28
|
-
### Step 1: Problem & Scope Definition
|
|
29
|
-
|
|
30
|
-
1. **Identify the problem statement** - What pain point does this solve?
|
|
31
|
-
2. **Define target users** - Primary and secondary personas
|
|
32
|
-
3. **Establish success criteria** - Measurable outcomes (not vague goals)
|
|
33
|
-
4. **Set scope boundaries** - Explicit in-scope and out-of-scope items
|
|
34
|
-
5. **Scan existing codebase** for related features:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
# Find related modules, components, services
|
|
38
|
-
grep -rl "$KEYWORD" src/ --include="*.ts" --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | head -20
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
**Output:**
|
|
42
|
-
```markdown
|
|
43
|
-
## 1. Problem & Scope
|
|
44
|
-
|
|
45
|
-
**Problem:** [Clear problem statement with evidence]
|
|
46
|
-
**Users:** [Primary: ..., Secondary: ...]
|
|
47
|
-
**Success Criteria:**
|
|
48
|
-
- [ ] [Measurable outcome 1]
|
|
49
|
-
- [ ] [Measurable outcome 2]
|
|
50
|
-
**In Scope:** [what's included]
|
|
51
|
-
**Out of Scope:** [what's explicitly excluded]
|
|
52
|
-
**Existing Code:** [related modules found in codebase]
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
**BLOCKED** until problem statement is clear and measurable.
|
|
56
|
-
|
|
57
|
-
### Step 2: User Stories & Acceptance Criteria
|
|
58
|
-
|
|
59
|
-
1. **Write user stories** in standard format with Gherkin acceptance criteria
|
|
60
|
-
2. **Cover all personas** identified in Step 1
|
|
61
|
-
3. **Include edge cases** - What happens when things go wrong?
|
|
62
|
-
4. **Prioritize stories** using MoSCoW (Must/Should/Could/Won't)
|
|
63
|
-
|
|
64
|
-
For each story:
|
|
65
|
-
```markdown
|
|
66
|
-
### US-[N]: [Story Title]
|
|
67
|
-
|
|
68
|
-
**As a** [persona],
|
|
69
|
-
**I want** [action],
|
|
70
|
-
**So that** [benefit].
|
|
71
|
-
|
|
72
|
-
**Priority:** Must Have | Should Have | Could Have | Won't Have
|
|
73
|
-
|
|
74
|
-
**Acceptance Criteria:**
|
|
75
|
-
```gherkin
|
|
76
|
-
GIVEN [precondition]
|
|
77
|
-
WHEN [action]
|
|
78
|
-
THEN [expected result]
|
|
79
|
-
|
|
80
|
-
GIVEN [precondition]
|
|
81
|
-
WHEN [error condition]
|
|
82
|
-
THEN [error handling]
|
|
83
|
-
```
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
**BLOCKED** until at least 3 user stories with Gherkin criteria exist.
|
|
87
|
-
|
|
88
|
-
### Step 3: Requirements Matrix
|
|
89
|
-
|
|
90
|
-
1. **Functional requirements** - What the system must do
|
|
91
|
-
2. **Non-functional requirements** - Performance, security, accessibility, i18n
|
|
92
|
-
3. **Technical constraints** - Stack, infrastructure, API compatibility
|
|
93
|
-
4. **Dependencies** - External services, other teams, data sources
|
|
94
|
-
|
|
95
|
-
**Output:**
|
|
96
|
-
```markdown
|
|
97
|
-
## 3. Requirements Matrix
|
|
98
|
-
|
|
99
|
-
### Functional
|
|
100
|
-
| ID | Requirement | Priority | Story |
|
|
101
|
-
|----|------------|----------|-------|
|
|
102
|
-
| FR-1 | [requirement] | Must | US-1 |
|
|
103
|
-
|
|
104
|
-
### Non-Functional
|
|
105
|
-
| ID | Requirement | Target | Measurement |
|
|
106
|
-
|----|------------|--------|-------------|
|
|
107
|
-
| NFR-1 | Response time | < 200ms p95 | Load test |
|
|
108
|
-
| NFR-2 | Accessibility | WCAG AA | Axe audit |
|
|
109
|
-
|
|
110
|
-
### Constraints
|
|
111
|
-
- [Technical constraint 1]
|
|
112
|
-
- [Infrastructure constraint]
|
|
113
|
-
|
|
114
|
-
### Dependencies
|
|
115
|
-
- [External service/team]
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### Step 4: Technical Feasibility Scan
|
|
119
|
-
|
|
120
|
-
1. **Scan codebase** for reusable patterns:
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
# Identify existing patterns, services, utilities
|
|
124
|
-
find src/ -type f -name "*.ts" -o -name "*.tsx" | head -50
|
|
125
|
-
# Check for existing API routes
|
|
126
|
-
find src/ -path "*/api/*" -name "*.ts" 2>/dev/null | head -20
|
|
127
|
-
# Check for existing types/interfaces
|
|
128
|
-
grep -rn "interface\|type " src/types/ 2>/dev/null | head -20
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
2. **Identify integration points** - What existing code touches this feature?
|
|
132
|
-
3. **Estimate new infrastructure** - New tables, APIs, services, queues needed
|
|
133
|
-
4. **Flag risks** - Breaking changes, migration needs, data concerns
|
|
134
|
-
|
|
135
|
-
**Output:**
|
|
136
|
-
```markdown
|
|
137
|
-
## 4. Technical Feasibility
|
|
138
|
-
|
|
139
|
-
**Reusable:** [existing modules/patterns to leverage]
|
|
140
|
-
**New infrastructure:** [tables, APIs, services needed]
|
|
141
|
-
**Integration points:** [existing code that needs changes]
|
|
142
|
-
**Risks:** [breaking changes, migrations, data concerns]
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Step 5: Issue Decomposition
|
|
146
|
-
|
|
147
|
-
1. **Break PRD into implementable issues** - Each issue is a single PR
|
|
148
|
-
2. **Estimate size** - S (< 2h), M (2-4h), L (4-8h), XL (> 8h, split further)
|
|
149
|
-
3. **Map dependencies** - Which issues block others?
|
|
150
|
-
4. **Suggest agent assignments** - Which specialist agent handles each issue?
|
|
151
|
-
|
|
152
|
-
**Output:**
|
|
153
|
-
```markdown
|
|
154
|
-
## 5. Issue Breakdown
|
|
155
|
-
|
|
156
|
-
| # | Issue Title | Size | Depends On | Agent |
|
|
157
|
-
|---|------------|------|------------|-------|
|
|
158
|
-
| 1 | Create [model/schema] | S | - | @data |
|
|
159
|
-
| 2 | Implement [API endpoint] | M | #1 | @api |
|
|
160
|
-
| 3 | Build [UI component] | M | #2 | @builder |
|
|
161
|
-
| 4 | Add [tests] | M | #3 | @tester |
|
|
162
|
-
| 5 | Add [observability] | S | #2 | @builder |
|
|
163
|
-
|
|
164
|
-
**Critical Path:** #1 → #2 → #3 → #4
|
|
165
|
-
**Parallelizable:** #5 can run alongside #3-#4
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### Step 6: PRD Document Generation
|
|
169
|
-
|
|
170
|
-
1. **Compile all sections** into a single document
|
|
171
|
-
2. **Write to file:** `docs/PRD-[feature-name].md`
|
|
172
|
-
3. **Include metadata:** date, author, version, status (Draft/Review/Approved)
|
|
173
|
-
|
|
174
|
-
### Step 7 (Optional): GitHub Issue Creation
|
|
175
|
-
|
|
176
|
-
If the user requests it, create issues:
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
# Create issues from the breakdown
|
|
180
|
-
gh issue create --title "[Issue Title]" --body "[Description with acceptance criteria]" --label "feature,[size]"
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
## Verification Protocol
|
|
184
|
-
|
|
185
|
-
**Before claiming the PRD is complete:**
|
|
186
|
-
|
|
187
|
-
1. Problem statement exists with measurable success criteria
|
|
188
|
-
2. At least 3 user stories with Gherkin acceptance criteria
|
|
189
|
-
3. Non-functional requirements have measurable targets (not "fast" but "< 200ms")
|
|
190
|
-
4. Codebase scan was performed - reusable code identified
|
|
191
|
-
5. Issue breakdown exists with size estimates and dependencies
|
|
192
|
-
6. Every Must Have story maps to at least one issue
|
|
193
|
-
7. PRD file was written to `docs/PRD-[name].md`
|
|
194
|
-
8. No vague terms remain - all clarified with specifics
|
|
195
|
-
|
|
196
|
-
## Anti-Rationalization
|
|
197
|
-
|
|
198
|
-
| Excuse | Reality |
|
|
199
|
-
|--------|---------|
|
|
200
|
-
| "Requirements are in my head" | Unwritten requirements become misunderstood requirements. Write them down. Memory is not documentation. |
|
|
201
|
-
| "We can figure out scope during development" | Scope creep costs 3-10x more than upfront definition. Define it now. |
|
|
202
|
-
| "User stories are too formal" | Stories are negotiable contracts, not bureaucracy. They prevent the rework that comes from verbal specs. |
|
|
203
|
-
| "The PRD will be outdated immediately" | A living document beats no document. Update as you learn. Outdated > nonexistent. |
|
|
204
|
-
| "Just tell the developer what to build" | Developers need acceptance criteria, not verbal instructions that get lost between Slack messages. |
|
|
205
|
-
| "NFRs are obvious, we don't need to write them" | "Fast" means 50ms to one person and 2s to another. Write the number. |
|
|
206
|
-
| "We'll add acceptance criteria later" | Criteria written after implementation are just documentation, not specifications. Write them first. |
|
|
207
|
-
|
|
208
|
-
## Rules
|
|
209
|
-
|
|
210
|
-
1. **Problem before solution** - Never write user stories without a clear problem statement
|
|
211
|
-
2. **Measurable criteria only** - Every success metric and NFR must have a number
|
|
212
|
-
3. **Gherkin is mandatory** - Every user story gets GIVEN/WHEN/THEN acceptance criteria
|
|
213
|
-
4. **Codebase grounded** - Scan existing code before proposing new infrastructure
|
|
214
|
-
5. **Issues must be PR-sized** - Any XL issue must be split further
|
|
215
|
-
6. **MoSCoW prioritization** - Every story gets a priority, no "everything is Must Have"
|
|
216
|
-
7. **Dependencies explicit** - Every issue lists what it blocks and what blocks it
|
|
217
|
-
8. **Agent-ready** - Each issue suggests which specialist agent should handle it
|
|
218
|
-
|
|
219
|
-
## Output
|
|
220
|
-
|
|
221
|
-
```
|
|
222
|
-
──── /prd ────
|
|
223
|
-
Feature: $ARGUMENTS
|
|
224
|
-
|
|
225
|
-
Problem: [1-line problem statement]
|
|
226
|
-
Users: [primary persona]
|
|
227
|
-
Stories: [N] (Must: X, Should: Y, Could: Z)
|
|
228
|
-
|
|
229
|
-
Requirements:
|
|
230
|
-
Functional: N
|
|
231
|
-
Non-Functional: N
|
|
232
|
-
Constraints: N
|
|
233
|
-
|
|
234
|
-
Issues: N (S: X, M: Y, L: Z)
|
|
235
|
-
Critical Path: [issue chain]
|
|
236
|
-
|
|
237
|
-
PRD saved: docs/PRD-[name].md
|
|
238
|
-
Issues created: [N] (if requested)
|
|
239
|
-
|
|
240
|
-
──── Ready for /plan ────
|
|
241
|
-
```
|
package/skills/recall/SKILL.md
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: recall
|
|
3
|
-
description: "Use when you need to retrieve a past decision, preference, or convention that was saved with /remember."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[topic or 'all']"
|
|
6
|
-
allowed-tools: Read, Glob
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /recall - Query Project Memory
|
|
10
|
-
|
|
11
|
-
Recall decisions, preferences, and lessons from previous sessions using Claude Code's native auto-memory system.
|
|
12
|
-
|
|
13
|
-
**Query:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## Workflow
|
|
16
|
-
|
|
17
|
-
### Step 1: Load Memory Index
|
|
18
|
-
|
|
19
|
-
Read `MEMORY.md` from the memory directory. This file is automatically loaded into conversation context, so it may already be available.
|
|
20
|
-
|
|
21
|
-
Memory directory: `.claude/projects/<project-hash>/memory/`
|
|
22
|
-
|
|
23
|
-
### Step 2: Process Query
|
|
24
|
-
|
|
25
|
-
#### If "all" or empty:
|
|
26
|
-
Show full memory summary by reading all memory files listed in MEMORY.md.
|
|
27
|
-
|
|
28
|
-
#### If specific topic:
|
|
29
|
-
Search memory file names, descriptions, and content for matches.
|
|
30
|
-
|
|
31
|
-
### Step 3: Read Relevant Files
|
|
32
|
-
|
|
33
|
-
For matched memories, read the full `.md` file to get details including Why and How to apply.
|
|
34
|
-
|
|
35
|
-
## Output Formats
|
|
36
|
-
|
|
37
|
-
### Full Memory (/recall all)
|
|
38
|
-
```
|
|
39
|
-
══════════════════════════════════════════════
|
|
40
|
-
PROJECT MEMORY
|
|
41
|
-
══════════════════════════════════════════════
|
|
42
|
-
|
|
43
|
-
──────────────────────────────────────────────
|
|
44
|
-
DECISIONS & CONTEXT (project)
|
|
45
|
-
──────────────────────────────────────────────
|
|
46
|
-
|
|
47
|
-
- [Topic]: [Decision]
|
|
48
|
-
Why: [Reason]
|
|
49
|
-
How to apply: [Guidance]
|
|
50
|
-
|
|
51
|
-
──────────────────────────────────────────────
|
|
52
|
-
PREFERENCES & LESSONS (feedback)
|
|
53
|
-
──────────────────────────────────────────────
|
|
54
|
-
|
|
55
|
-
- [Rule or preference]
|
|
56
|
-
Why: [Reason]
|
|
57
|
-
How to apply: [When/where]
|
|
58
|
-
|
|
59
|
-
──────────────────────────────────────────────
|
|
60
|
-
REFERENCES
|
|
61
|
-
──────────────────────────────────────────────
|
|
62
|
-
|
|
63
|
-
- [Resource]: [Where to find it]
|
|
64
|
-
|
|
65
|
-
══════════════════════════════════════════════
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Specific Topic (/recall state management)
|
|
69
|
-
```
|
|
70
|
-
──── /recall: state management ────
|
|
71
|
-
|
|
72
|
-
Found 2 related memories:
|
|
73
|
-
|
|
74
|
-
Decision: State Management (project)
|
|
75
|
-
Use Zustand instead of Redux
|
|
76
|
-
Why: Simpler API, less boilerplate
|
|
77
|
-
How to apply: All new state should use Zustand
|
|
78
|
-
|
|
79
|
-
Pattern (feedback):
|
|
80
|
-
Never use Redux in this project
|
|
81
|
-
Why: Team consensus on simplicity
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### No Results
|
|
85
|
-
```
|
|
86
|
-
──── /recall: [topic] ────
|
|
87
|
-
|
|
88
|
-
No memories found for "[topic]".
|
|
89
|
-
|
|
90
|
-
Suggestions:
|
|
91
|
-
- Try /recall all to see all memories
|
|
92
|
-
- Use /remember to add new memories
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Query Examples
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
/recall # Show recent memories
|
|
99
|
-
/recall all # Show all memories
|
|
100
|
-
/recall state management # Search for topic
|
|
101
|
-
/recall testing # Search for topic
|
|
102
|
-
/recall decisions # Show only project-type memories
|
|
103
|
-
/recall preferences # Show only feedback-type memories
|
|
104
|
-
/recall references # Show only reference-type memories
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
## Rules
|
|
108
|
-
|
|
109
|
-
1. **Fuzzy match** - "state" matches "state-management-decision"
|
|
110
|
-
2. **Show context** - Include Why and How to apply
|
|
111
|
-
3. **Suggest related** - Link to similar memories
|
|
112
|
-
4. **Handle empty** - Graceful message if no memory exists
|
package/skills/remember/SKILL.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: remember
|
|
3
|
-
description: "Use when making a decision, choosing a convention, or learning a lesson that should persist across sessions."
|
|
4
|
-
user-invocable: true
|
|
5
|
-
argument-hint: "[what to remember]"
|
|
6
|
-
allowed-tools: Read, Write, Glob
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /remember - Save to Project Memory
|
|
10
|
-
|
|
11
|
-
Save decisions, preferences, and lessons that persist across sessions using Claude Code's native auto-memory system.
|
|
12
|
-
|
|
13
|
-
**Input:** $ARGUMENTS
|
|
14
|
-
|
|
15
|
-
## Workflow
|
|
16
|
-
|
|
17
|
-
### Step 1: Parse Input
|
|
18
|
-
|
|
19
|
-
Detect type of memory:
|
|
20
|
-
- **Decision** → type: `project` (e.g., "Use X instead of Y because Z")
|
|
21
|
-
- **Preference** → type: `feedback` (e.g., "Always use single quotes")
|
|
22
|
-
- **Pattern avoid** → type: `feedback` (e.g., "Never use any types")
|
|
23
|
-
- **Pattern prefer** → type: `feedback` (e.g., "Prefer composition over inheritance")
|
|
24
|
-
- **Lesson** → type: `feedback` (e.g., "API changed and broke app. Solution: version contracts")
|
|
25
|
-
- **Project context** → type: `project` (e.g., "Merge freeze starts March 5")
|
|
26
|
-
- **External resource** → type: `reference` (e.g., "Bugs tracked in Linear project INGEST")
|
|
27
|
-
|
|
28
|
-
### Step 2: Create Memory File
|
|
29
|
-
|
|
30
|
-
Write a markdown file to the memory directory with frontmatter:
|
|
31
|
-
|
|
32
|
-
```markdown
|
|
33
|
-
---
|
|
34
|
-
name: [kebab-case-topic-name]
|
|
35
|
-
description: [one-line description for relevance matching]
|
|
36
|
-
type: [project | feedback | reference]
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
[Memory content]
|
|
40
|
-
|
|
41
|
-
**Why:** [reason or context]
|
|
42
|
-
**How to apply:** [when/where this applies]
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Memory directory: `.claude/projects/<project-hash>/memory/`
|
|
46
|
-
|
|
47
|
-
### Step 3: Update Memory Index
|
|
48
|
-
|
|
49
|
-
Add an entry to `MEMORY.md` in the memory directory. Keep it concise - just a link and brief description.
|
|
50
|
-
|
|
51
|
-
### Step 4: Check for Duplicates
|
|
52
|
-
|
|
53
|
-
Before creating a new file, check if a memory on the same topic already exists. If yes, UPDATE the existing file instead of creating a duplicate.
|
|
54
|
-
|
|
55
|
-
## Output
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
──── /remember ────
|
|
59
|
-
|
|
60
|
-
Saved to project memory
|
|
61
|
-
|
|
62
|
-
Type: [Decision | Preference | Pattern | Lesson | Context | Reference]
|
|
63
|
-
Topic: [topic]
|
|
64
|
-
Content: [what was saved]
|
|
65
|
-
|
|
66
|
-
This will be recalled in future sessions via MEMORY.md.
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Examples
|
|
70
|
-
|
|
71
|
-
### Remember a Decision
|
|
72
|
-
```
|
|
73
|
-
/remember Use Zustand for state management because it's simpler than Redux
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Output:
|
|
77
|
-
```
|
|
78
|
-
Saved to project memory
|
|
79
|
-
|
|
80
|
-
Type: Decision (project)
|
|
81
|
-
Topic: State Management
|
|
82
|
-
Content: Use Zustand instead of Redux
|
|
83
|
-
Reason: Simpler API, less boilerplate
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Remember a Preference
|
|
87
|
-
```
|
|
88
|
-
/remember Always use single quotes in this project
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Remember to Avoid
|
|
92
|
-
```
|
|
93
|
-
/remember Never use any types in TypeScript
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Remember a Lesson
|
|
97
|
-
```
|
|
98
|
-
/remember The API changed format and broke parsing. Solution: Always create adapters with versioned contracts.
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Rules
|
|
102
|
-
|
|
103
|
-
1. **Extract key info** - Don't store raw text, structure with Why/How to apply
|
|
104
|
-
2. **Categorize correctly** - Use correct memory type (project, feedback, reference)
|
|
105
|
-
3. **No duplicates** - Update existing if same topic
|
|
106
|
-
4. **No secrets** - Never store credentials or PII
|
|
107
|
-
5. **Convert dates** - Use absolute dates, not relative ("2026-03-05" not "Thursday")
|
|
108
|
-
6. **Keep MEMORY.md under 200 lines** - Be concise in the index
|