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.
Files changed (176) hide show
  1. package/.claude-plugin/marketplace.json +77 -0
  2. package/.claude-plugin/plugin.json +43 -0
  3. package/.codex/INSTALL.md +113 -0
  4. package/.cursor-plugin/marketplace.json +9 -0
  5. package/.cursor-plugin/plugin.json +35 -0
  6. package/.opencode/INSTALL.md +123 -0
  7. package/README.md +204 -263
  8. package/agents/analyst-lite.md +48 -0
  9. package/agents/analyst.md +391 -0
  10. package/agents/api-lite.md +43 -0
  11. package/agents/api.md +145 -0
  12. package/agents/cloud-lite.md +1 -1
  13. package/agents/cloud.md +1 -1
  14. package/agents/data-lite.md +1 -1
  15. package/agents/data.md +1 -1
  16. package/agents/debugger-lite.md +46 -0
  17. package/agents/debugger.md +406 -0
  18. package/agents/deps-lite.md +41 -0
  19. package/agents/deps.md +206 -0
  20. package/agents/designer-lite.md +1 -1
  21. package/agents/designer.md +1 -1
  22. package/agents/devops-lite.md +1 -1
  23. package/agents/devops.md +1 -1
  24. package/agents/docs-lite.md +42 -0
  25. package/agents/docs.md +197 -0
  26. package/agents/executor-lite.md +61 -0
  27. package/agents/executor.md +456 -0
  28. package/agents/explorer-lite.md +1 -1
  29. package/agents/explorer.md +1 -1
  30. package/agents/finance-lite.md +1 -1
  31. package/agents/finance.md +1 -1
  32. package/agents/i18n-lite.md +44 -0
  33. package/agents/i18n.md +198 -0
  34. package/agents/legal-lite.md +1 -1
  35. package/agents/legal.md +1 -1
  36. package/agents/memory.md +240 -0
  37. package/agents/orchestrator-lite.md +40 -0
  38. package/agents/orchestrator.md +387 -0
  39. package/agents/pair-lite.md +38 -0
  40. package/agents/pair.md +308 -0
  41. package/agents/perf-lite.md +42 -0
  42. package/agents/perf.md +141 -0
  43. package/agents/planner-lite.md +59 -0
  44. package/agents/planner.md +265 -0
  45. package/agents/refactor-lite.md +42 -0
  46. package/agents/refactor.md +178 -0
  47. package/agents/scout-lite.md +37 -0
  48. package/agents/scout.md +222 -0
  49. package/agents/security-lite.md +1 -1
  50. package/agents/security.md +1 -1
  51. package/agents/starter-lite.md +1 -1
  52. package/agents/starter.md +1 -1
  53. package/agents/tdd-lite.md +43 -0
  54. package/agents/tdd.md +317 -0
  55. package/agents/tester-lite.md +1 -1
  56. package/agents/tester.md +1 -1
  57. package/cli/index.mjs +636 -15
  58. package/hooks/after-review.mjs +130 -0
  59. package/hooks/after-task.mjs +117 -0
  60. package/hooks/before-plan.mjs +155 -0
  61. package/hooks/before-review.mjs +139 -0
  62. package/hooks/hooks.json +81 -0
  63. package/hooks/native/auto-dispatch.mjs +197 -0
  64. package/hooks/native/auto-format.mjs +193 -0
  65. package/hooks/native/security-config.json +31 -0
  66. package/hooks/native/security-guard.mjs +267 -0
  67. package/hooks/native/session-context.mjs +136 -0
  68. package/hooks/native/settings-template.json +50 -0
  69. package/hooks/native/utils.mjs +62 -0
  70. package/hooks/on-error.mjs +129 -0
  71. package/hooks/session-end.mjs +185 -0
  72. package/hooks/session-start.mjs +154 -0
  73. package/package.json +16 -3
  74. package/packs/nextjs/agents/builder.md +24 -1
  75. package/packs/nextjs/agents/doctor.md +70 -4
  76. package/packs/nextjs/agents/migrator.md +24 -1
  77. package/packs/nextjs/agents/reviewer.md +93 -3
  78. package/packs/nextjs/agents-lite/builder.md +1 -1
  79. package/packs/nextjs/agents-lite/doctor.md +1 -1
  80. package/packs/nextjs/agents-lite/migrator.md +1 -1
  81. package/packs/nextjs/agents-lite/reviewer.md +1 -1
  82. package/packs/nextjs/skills/dev-create-component/SKILL.md +1 -1
  83. package/packs/nextjs/skills/dev-create-hook/SKILL.md +1 -1
  84. package/packs/nextjs/skills/dev-create-module/SKILL.md +1 -1
  85. package/packs/nextjs/skills/dev-create-service/SKILL.md +1 -1
  86. package/packs/nextjs/skills/dev-create-test/SKILL.md +1 -1
  87. package/packs/nextjs/skills/dev-generate-types/SKILL.md +1 -1
  88. package/packs/nextjs/skills/docs-onboard/SKILL.md +1 -1
  89. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +1 -1
  90. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +1 -1
  91. package/packs/nextjs/skills/review-check-architecture/SKILL.md +1 -1
  92. package/packs/nextjs/skills/review-fix-violations/SKILL.md +1 -1
  93. package/packs/nextjs/skills/review-review/SKILL.md +1 -1
  94. package/packs/react/agents/builder.md +24 -1
  95. package/packs/react/agents/doctor.md +107 -13
  96. package/packs/react/agents/migrator.md +24 -1
  97. package/packs/react/agents/reviewer.md +113 -9
  98. package/packs/react/agents-lite/builder.md +1 -1
  99. package/packs/react/agents-lite/doctor.md +1 -1
  100. package/packs/react/agents-lite/migrator.md +1 -1
  101. package/packs/react/agents-lite/reviewer.md +1 -1
  102. package/packs/react/skills/dev-create-component/SKILL.md +1 -1
  103. package/packs/react/skills/dev-create-hook/SKILL.md +1 -1
  104. package/packs/react/skills/dev-create-module/SKILL.md +1 -1
  105. package/packs/react/skills/dev-create-service/SKILL.md +1 -1
  106. package/packs/react/skills/dev-create-test/SKILL.md +1 -1
  107. package/packs/react/skills/dev-generate-types/SKILL.md +1 -1
  108. package/packs/react/skills/docs-onboard/SKILL.md +1 -1
  109. package/packs/react/skills/migration-migrate-component/SKILL.md +1 -1
  110. package/packs/react/skills/migration-migrate-module/SKILL.md +1 -1
  111. package/packs/react/skills/review-check-architecture/SKILL.md +1 -1
  112. package/packs/react/skills/review-fix-violations/SKILL.md +1 -1
  113. package/packs/react/skills/review-review/SKILL.md +1 -1
  114. package/packs/svelte/agents/builder.md +24 -1
  115. package/packs/svelte/agents/doctor.md +70 -4
  116. package/packs/svelte/agents/migrator.md +24 -1
  117. package/packs/svelte/agents/reviewer.md +93 -3
  118. package/packs/svelte/agents-lite/builder.md +1 -1
  119. package/packs/svelte/agents-lite/doctor.md +1 -1
  120. package/packs/svelte/agents-lite/migrator.md +1 -1
  121. package/packs/svelte/agents-lite/reviewer.md +1 -1
  122. package/packs/svelte/skills/dev-create-component/SKILL.md +1 -1
  123. package/packs/svelte/skills/dev-create-module/SKILL.md +1 -1
  124. package/packs/svelte/skills/dev-create-service/SKILL.md +1 -1
  125. package/packs/svelte/skills/dev-create-store/SKILL.md +1 -1
  126. package/packs/svelte/skills/dev-create-test/SKILL.md +1 -1
  127. package/packs/svelte/skills/dev-generate-types/SKILL.md +1 -1
  128. package/packs/svelte/skills/docs-onboard/SKILL.md +1 -1
  129. package/packs/svelte/skills/migration-migrate-component/SKILL.md +1 -1
  130. package/packs/svelte/skills/migration-migrate-module/SKILL.md +1 -1
  131. package/packs/svelte/skills/review-check-architecture/SKILL.md +1 -1
  132. package/packs/svelte/skills/review-fix-violations/SKILL.md +1 -1
  133. package/packs/svelte/skills/review-review/SKILL.md +1 -1
  134. package/packs/vue/agents/builder.md +24 -1
  135. package/packs/vue/agents/doctor.md +107 -13
  136. package/packs/vue/agents/migrator.md +24 -1
  137. package/packs/vue/agents/reviewer.md +113 -9
  138. package/packs/vue/agents-lite/builder.md +1 -1
  139. package/packs/vue/agents-lite/doctor.md +1 -1
  140. package/packs/vue/agents-lite/migrator.md +1 -1
  141. package/packs/vue/agents-lite/reviewer.md +1 -1
  142. package/packs/vue/skills/dev-create-component/SKILL.md +1 -1
  143. package/packs/vue/skills/dev-create-composable/SKILL.md +1 -1
  144. package/packs/vue/skills/dev-create-module/SKILL.md +1 -1
  145. package/packs/vue/skills/dev-create-service/SKILL.md +1 -1
  146. package/packs/vue/skills/dev-create-test/SKILL.md +1 -1
  147. package/packs/vue/skills/dev-generate-types/SKILL.md +1 -1
  148. package/packs/vue/skills/docs-onboard/SKILL.md +1 -1
  149. package/packs/vue/skills/migration-migrate-component/SKILL.md +1 -1
  150. package/packs/vue/skills/migration-migrate-module/SKILL.md +1 -1
  151. package/packs/vue/skills/review-check-architecture/SKILL.md +1 -1
  152. package/packs/vue/skills/review-fix-violations/SKILL.md +1 -1
  153. package/packs/vue/skills/review-review/SKILL.md +1 -1
  154. package/skills/audit/SKILL.md +169 -0
  155. package/skills/brainstorm/SKILL.md +245 -0
  156. package/skills/checkpoint/SKILL.md +209 -0
  157. package/skills/debug/SKILL.md +210 -0
  158. package/skills/estimate/SKILL.md +145 -0
  159. package/skills/finish/SKILL.md +211 -0
  160. package/skills/health/SKILL.md +242 -0
  161. package/skills/learn/SKILL.md +260 -0
  162. package/skills/migrate-framework/SKILL.md +172 -0
  163. package/skills/onboard/SKILL.md +168 -0
  164. package/skills/plan/SKILL.md +132 -0
  165. package/skills/recall/SKILL.md +150 -0
  166. package/skills/remember/SKILL.md +158 -0
  167. package/skills/tdd/SKILL.md +156 -0
  168. package/skills/tutorial/SKILL.md +346 -0
  169. package/skills/verify/SKILL.md +168 -0
  170. package/skills/worktree/SKILL.md +168 -0
  171. package/skills/write-skill/SKILL.md +213 -0
  172. package/templates/industry/ecommerce.md +127 -0
  173. package/templates/industry/fintech.md +161 -0
  174. package/templates/industry/saas.md +134 -0
  175. package/templates/session-memory.json +48 -0
  176. package/templates/skill-template/SKILL.md +90 -0
@@ -0,0 +1,168 @@
1
+ ---
2
+ name: onboard
3
+ description: "Use when joining an unfamiliar codebase, starting on a new team, or needing to understand a project's architecture, conventions, and key modules quickly."
4
+ user-invocable: true
5
+ argument-hint: "[path or focus area]"
6
+ allowed-tools: Read, Bash, Glob, Grep
7
+ ---
8
+
9
+ # /onboard — Codebase Onboarding
10
+
11
+ Understand any codebase in minutes. Generates a developer guide with architecture, conventions, key modules, and getting-started instructions.
12
+
13
+ **Target:** $ARGUMENTS
14
+
15
+ ## When to Use
16
+
17
+ - First day on a new project or team
18
+ - Picking up an open-source project for the first time
19
+ - Reviewing a project before a technical interview
20
+ - Before contributing to an unfamiliar repo
21
+ - When documentation is missing or outdated
22
+ - NOT for: projects you already know well (use `@scout` for quick checks instead)
23
+
24
+ ## Workflow
25
+
26
+ ### Step 1: Project Discovery
27
+
28
+ Scan the project root:
29
+
30
+ ```
31
+ Read: package.json / pyproject.toml / go.mod / Cargo.toml
32
+ Read: README.md (if exists)
33
+ Read: ARCHITECTURE.md / CLAUDE.md / CONTRIBUTING.md (if exist)
34
+ Scan: Top-level directory structure
35
+ ```
36
+
37
+ Extract:
38
+ - Project name and description
39
+ - Language and framework
40
+ - Package manager and scripts
41
+ - Entry points
42
+
43
+ ### Step 2: Architecture Mapping
44
+
45
+ Map the project structure:
46
+
47
+ ```
48
+ Identify:
49
+ - Source root (src/, app/, lib/)
50
+ - Module/feature boundaries
51
+ - Shared utilities
52
+ - Configuration files
53
+ - Test structure
54
+ - CI/CD setup
55
+ ```
56
+
57
+ Generate architecture diagram:
58
+
59
+ ```
60
+ src/
61
+ ├── modules/ → Feature modules (users, orders, products)
62
+ │ └── [module]/
63
+ │ ├── types/ → TypeScript interfaces
64
+ │ ├── services/ → Business logic
65
+ │ ├── hooks/ → State management
66
+ │ └── components/ → UI components
67
+ ├── shared/ → Shared utilities
68
+ ├── config/ → App configuration
69
+ └── app/ → App entry and routing
70
+ ```
71
+
72
+ ### Step 3: Convention Detection
73
+
74
+ Detect coding conventions by reading actual files:
75
+
76
+ | Convention | How to Detect |
77
+ |------------|---------------|
78
+ | Naming | Read 3-5 files, check function/variable naming |
79
+ | File structure | Map actual directory patterns |
80
+ | State management | Find store/state imports (Redux, Zustand, Pinia, etc.) |
81
+ | API layer | Find HTTP client usage (axios, fetch, etc.) |
82
+ | Testing | Find test files, check framework (Jest, Vitest, etc.) |
83
+ | Styling | Find CSS/styled imports (Tailwind, CSS Modules, etc.) |
84
+ | Error handling | Find try/catch patterns, error boundaries |
85
+ | Imports | Check for path aliases, barrel exports |
86
+
87
+ ### Step 4: Key Module Analysis
88
+
89
+ For each major module/feature:
90
+
91
+ ```
92
+ Module: [name]
93
+ ├── Purpose: [what it does]
94
+ ├── Files: [count]
95
+ ├── Dependencies: [what it imports from]
96
+ ├── Dependents: [what imports from it]
97
+ ├── Entry point: [main file]
98
+ └── Tests: [yes/no, coverage estimate]
99
+ ```
100
+
101
+ Focus on the 3-5 most important modules.
102
+
103
+ ### Step 5: Developer Guide Generation
104
+
105
+ Compile everything into an actionable guide.
106
+
107
+ ## Verification Protocol
108
+
109
+ **Before claiming onboarding is complete:**
110
+
111
+ 1. Architecture diagram was generated from actual file structure (not assumed)
112
+ 2. Conventions were detected from reading real code (not README claims)
113
+ 3. At least 3 key modules were analyzed
114
+ 4. Setup instructions were verified by checking scripts in package.json
115
+ 5. If tests exist, the test command was identified
116
+
117
+ ## Anti-Rationalization
118
+
119
+ | Excuse | Reality |
120
+ |--------|---------|
121
+ | "README explains everything" | READMEs are often outdated. Verify against actual code. |
122
+ | "Architecture is obvious" | Obvious to maintainers, not newcomers. Map it explicitly. |
123
+ | "Too many files to analyze" | Focus on top 3-5 modules. Don't skip the mapping step. |
124
+ | "No tests to analyze" | That IS the finding. Report it in the guide. |
125
+ | "Conventions aren't consistent" | Document the inconsistencies. It's useful for the developer. |
126
+
127
+ ## Rules
128
+
129
+ 1. **Read actual code** — Never rely solely on README or documentation
130
+ 2. **Map before explaining** — Architecture diagram first, then details
131
+ 3. **Focus on key modules** — 3-5 most important, not all of them
132
+ 4. **Detect, don't assume** — Conventions come from reading files, not guessing
133
+ 5. **Be honest about gaps** — Missing tests, docs, or conventions are findings too
134
+ 6. **Actionable output** — Every section should help the developer start working
135
+
136
+ ## Output
137
+
138
+ ```
139
+ ──── /onboard ────
140
+ Project: [name]
141
+ Stack: [language + framework + key libraries]
142
+
143
+ Architecture:
144
+ [directory tree diagram]
145
+
146
+ Conventions:
147
+ Naming: [camelCase / snake_case / PascalCase]
148
+ State: [Redux / Zustand / Pinia / Context]
149
+ API: [axios / fetch / tRPC]
150
+ Testing: [Jest / Vitest / Playwright]
151
+ Styling: [Tailwind / CSS Modules / styled-components]
152
+
153
+ Key Modules:
154
+ 1. [module] — [purpose] ([X files])
155
+ 2. [module] — [purpose] ([X files])
156
+ 3. [module] — [purpose] ([X files])
157
+
158
+ Getting Started:
159
+ Install: [command]
160
+ Dev: [command]
161
+ Test: [command]
162
+ Build: [command]
163
+
164
+ Notes:
165
+ - [important observations]
166
+ - [potential gotchas]
167
+ - [missing documentation areas]
168
+ ```
@@ -0,0 +1,132 @@
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
+ ## Rules
128
+
129
+ - Never force heavy planning for simple tasks
130
+ - Always estimate token costs
131
+ - Ask clarifying questions if needed
132
+ - Read existing architecture before planning
@@ -0,0 +1,150 @@
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
7
+ ---
8
+
9
+ # /recall — Query Session Memory
10
+
11
+ Recall decisions, preferences, and lessons from previous sessions.
12
+
13
+ **Query:** $ARGUMENTS
14
+
15
+ ## Workflow
16
+
17
+ ### Step 1: Load Memory
18
+
19
+ ```javascript
20
+ const memoryFile = '.claude/session-memory.json';
21
+
22
+ if (!exists(memoryFile)) {
23
+ return "No session memory found. Use /remember to save memories.";
24
+ }
25
+
26
+ const memory = JSON.parse(read(memoryFile));
27
+ ```
28
+
29
+ ### Step 2: Process Query
30
+
31
+ #### If "all" or empty:
32
+ Show full memory summary.
33
+
34
+ #### If specific topic:
35
+ Search in:
36
+ 1. decisions[].topic
37
+ 2. preferences keys
38
+ 3. patterns.avoided
39
+ 4. patterns.preferred
40
+ 5. lessons[].issue
41
+
42
+ ### Step 3: Format Output
43
+
44
+ ## Output Formats
45
+
46
+ ### Full Memory (/recall all)
47
+ ```
48
+ ══════════════════════════════════════════════
49
+ 📝 PROJECT MEMORY
50
+ ══════════════════════════════════════════════
51
+
52
+ Project: [name]
53
+ Last updated: [date]
54
+
55
+ ──────────────────────────────────────────────
56
+ DECISIONS (N)
57
+ ──────────────────────────────────────────────
58
+
59
+ • [Topic]: [Decision]
60
+ Reason: [Why]
61
+ Date: [When]
62
+
63
+ • [Topic]: [Decision]
64
+ Reason: [Why]
65
+ Date: [When]
66
+
67
+ ──────────────────────────────────────────────
68
+ PREFERENCES
69
+ ──────────────────────────────────────────────
70
+
71
+ Code Style:
72
+ • Quotes: [value]
73
+ • Indent: [value]
74
+ • Semicolons: [value]
75
+
76
+ Naming:
77
+ • Components: [convention]
78
+ • Files: [convention]
79
+
80
+ ──────────────────────────────────────────────
81
+ PATTERNS
82
+ ──────────────────────────────────────────────
83
+
84
+ ✓ Preferred:
85
+ • [pattern]
86
+ • [pattern]
87
+
88
+ ✗ Avoided:
89
+ • [pattern]
90
+ • [pattern]
91
+
92
+ ──────────────────────────────────────────────
93
+ LESSONS LEARNED (N)
94
+ ──────────────────────────────────────────────
95
+
96
+ • Issue: [what happened]
97
+ Solution: [how to fix]
98
+ Prevention: [rule]
99
+
100
+ ══════════════════════════════════════════════
101
+ ```
102
+
103
+ ### Specific Topic (/recall state management)
104
+ ```
105
+ ──── /recall: state management ────
106
+
107
+ Found 2 related memories:
108
+
109
+ 📌 Decision: State Management
110
+ Use Zustand instead of Redux
111
+ Reason: Simpler API, less boilerplate
112
+ Decided: 2024-01-15
113
+
114
+ 📌 Pattern (Avoid): Redux
115
+ We avoid Redux in this project
116
+
117
+ Related:
118
+ • See also: "React Query" decision
119
+ ```
120
+
121
+ ### No Results
122
+ ```
123
+ ──── /recall: [topic] ────
124
+
125
+ No memories found for "[topic]".
126
+
127
+ Suggestions:
128
+ • Try /recall all to see all memories
129
+ • Use /remember to add new memories
130
+ ```
131
+
132
+ ## Query Examples
133
+
134
+ ```bash
135
+ /recall # Show recent memories
136
+ /recall all # Show all memories
137
+ /recall state management # Search for topic
138
+ /recall testing # Search for topic
139
+ /recall decisions # Show only decisions
140
+ /recall preferences # Show only preferences
141
+ /recall patterns # Show patterns
142
+ /recall lessons # Show lessons learned
143
+ ```
144
+
145
+ ## Rules
146
+
147
+ 1. **Fuzzy match** — "state" matches "State Management"
148
+ 2. **Show context** — Include reason and date
149
+ 3. **Suggest related** — Link to similar memories
150
+ 4. **Handle empty** — Graceful message if no memory
@@ -0,0 +1,158 @@
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
7
+ ---
8
+
9
+ # /remember — Save to Session Memory
10
+
11
+ Save decisions, preferences, and lessons that persist across sessions.
12
+
13
+ **Input:** $ARGUMENTS
14
+
15
+ ## Workflow
16
+
17
+ ### Step 1: Parse Input
18
+
19
+ Detect type of memory:
20
+ - **Decision**: "Use X instead of Y because Z"
21
+ - **Preference**: "Always use single quotes"
22
+ - **Pattern avoid**: "Never use any types"
23
+ - **Pattern prefer**: "Prefer composition over inheritance"
24
+ - **Lesson**: "API changed and broke app. Solution: version contracts"
25
+
26
+ ### Step 2: Load Existing Memory
27
+
28
+ ```javascript
29
+ const memoryFile = '.claude/session-memory.json';
30
+ let memory = {};
31
+
32
+ if (exists(memoryFile)) {
33
+ memory = JSON.parse(read(memoryFile));
34
+ } else {
35
+ memory = {
36
+ version: "1.0",
37
+ projectId: getProjectName(),
38
+ created: new Date().toISOString(),
39
+ decisions: [],
40
+ preferences: {},
41
+ context: {},
42
+ patterns: { avoided: [], preferred: [] },
43
+ lessons: []
44
+ };
45
+ }
46
+ ```
47
+
48
+ ### Step 3: Add to Memory
49
+
50
+ #### For Decisions:
51
+ ```json
52
+ {
53
+ "id": "d001",
54
+ "date": "2024-01-15",
55
+ "topic": "[extracted topic]",
56
+ "decision": "[what was decided]",
57
+ "reason": "[why]",
58
+ "agent": "[current agent or 'user']"
59
+ }
60
+ ```
61
+
62
+ #### For Preferences:
63
+ ```json
64
+ {
65
+ "preferences": {
66
+ "[category]": {
67
+ "[key]": "[value]"
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ #### For Patterns:
74
+ ```json
75
+ {
76
+ "patterns": {
77
+ "avoided": ["[pattern]"],
78
+ "preferred": ["[pattern]"]
79
+ }
80
+ }
81
+ ```
82
+
83
+ #### For Lessons:
84
+ ```json
85
+ {
86
+ "lessons": [{
87
+ "date": "2024-01-15",
88
+ "issue": "[what happened]",
89
+ "solution": "[how to fix]",
90
+ "preventionRule": "[how to prevent]"
91
+ }]
92
+ }
93
+ ```
94
+
95
+ ### Step 4: Save Memory
96
+
97
+ ```javascript
98
+ memory.updated = new Date().toISOString();
99
+ write(memoryFile, JSON.stringify(memory, null, 2));
100
+ ```
101
+
102
+ ## Output
103
+
104
+ ```
105
+ ──── /remember ────
106
+
107
+ ✓ Saved to session memory
108
+
109
+ Type: [Decision | Preference | Pattern | Lesson]
110
+ Topic: [topic]
111
+ Content: [what was saved]
112
+
113
+ This will be recalled in future sessions.
114
+
115
+ Memory file: .claude/session-memory.json
116
+ Total memories: [N] decisions, [N] preferences, [N] patterns, [N] lessons
117
+ ```
118
+
119
+ ## Examples
120
+
121
+ ### Remember a Decision
122
+ ```
123
+ /remember Use Zustand for state management because it's simpler than Redux
124
+ ```
125
+
126
+ Output:
127
+ ```
128
+ ✓ Saved to session memory
129
+
130
+ Type: Decision
131
+ Topic: State Management
132
+ Content: Use Zustand instead of Redux
133
+ Reason: Simpler
134
+
135
+ This will be recalled in future sessions.
136
+ ```
137
+
138
+ ### Remember a Preference
139
+ ```
140
+ /remember Always use single quotes in this project
141
+ ```
142
+
143
+ ### Remember to Avoid
144
+ ```
145
+ /remember Never use any types in TypeScript
146
+ ```
147
+
148
+ ### Remember a Lesson
149
+ ```
150
+ /remember The API changed format and broke parsing. Solution: Always create adapters with versioned contracts.
151
+ ```
152
+
153
+ ## Rules
154
+
155
+ 1. **Extract key info** — Don't store raw text
156
+ 2. **Categorize correctly** — Decision vs preference vs pattern
157
+ 3. **No duplicates** — Update existing if same topic
158
+ 4. **No secrets** — Never store credentials