thought-cabinet 0.1.4 → 0.1.8
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/README.md +22 -22
- package/dist/index.js +706 -387
- package/dist/index.js.map +1 -1
- package/package.json +13 -3
- package/src/agent-assets/agents/code-simplifier.md +0 -3
- package/src/agent-assets/skills/commit/SKILL.md +36 -0
- package/src/agent-assets/skills/creating-plan/SKILL.md +1 -1
- package/src/agent-assets/skills/implementing-plan/SKILL.md +1 -0
- package/src/agent-assets/skills/iterating-plan/SKILL.md +11 -11
- package/src/agent-assets/skills/researching-codebase/SKILL.md +1 -2
- package/.thought-cabinet/hooks.json +0 -14
- package/src/agent-assets/commands/commit.md +0 -35
- package/src/agent-assets/commands/create_plan.md +0 -7
- package/src/agent-assets/commands/implement_plan.md +0 -6
- package/src/agent-assets/commands/iterate_plan.md +0 -7
- package/src/agent-assets/commands/research_codebase.md +0 -7
- package/src/agent-assets/commands/validate_plan.md +0 -6
- package/src/agent-assets/settings.template.json +0 -7
package/README.md
CHANGED
|
@@ -69,30 +69,24 @@ cd your-project
|
|
|
69
69
|
thc agent init
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
This interactively installs to `.claude
|
|
73
|
-
|
|
72
|
+
This interactively discovers and installs assets to your agent's config directory (e.g. `.claude/`):
|
|
73
|
+
|
|
74
74
|
- **Agents** - Specialized sub-agents for code analysis and research
|
|
75
|
-
- **Skills** - Extended capabilities like document generation
|
|
76
|
-
- **Settings** - Project permissions and configuration
|
|
75
|
+
- **Skills** - Extended capabilities like structured workflows and document generation
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
thc agent init --all # Copy all files without prompting
|
|
81
|
-
thc agent init --force # Overwrite existing .claude directory
|
|
82
|
-
thc agent init --name codebuddy # Use alternative agent (codebuddy)
|
|
83
|
-
```
|
|
77
|
+
Assets are installed via **symlink** by default: a canonical copy is stored in `.thought-cabinet/` (project) or `~/.config/thought-cabinet/` (global), and symlinks are created in the agent's config directory. This means updating the canonical copy updates all agents at once.
|
|
84
78
|
|
|
85
79
|
### Slash Commands
|
|
86
80
|
|
|
87
81
|
These commands guide the AI through each phase of development:
|
|
88
82
|
|
|
89
|
-
| Command
|
|
90
|
-
|
|
83
|
+
| Command | Purpose |
|
|
84
|
+
| -------------------- | --------------------------------------------------------------------- |
|
|
91
85
|
| `/research_codebase` | Deep-dive into codebase, save findings to `thoughts/shared/research/` |
|
|
92
|
-
| `/create_plan`
|
|
93
|
-
| `/iterate_plan`
|
|
94
|
-
| `/implement_plan`
|
|
95
|
-
| `/validate_plan`
|
|
86
|
+
| `/create_plan` | Create implementation plan with phases and success criteria |
|
|
87
|
+
| `/iterate_plan` | Refine existing plans based on feedback |
|
|
88
|
+
| `/implement_plan` | Execute plan phase-by-phase with verification |
|
|
89
|
+
| `/validate_plan` | Verify implementation against plan's success criteria |
|
|
96
90
|
|
|
97
91
|
### Context Offloading
|
|
98
92
|
|
|
@@ -128,6 +122,7 @@ cat thoughts/yourusername/gotchas.md
|
|
|
128
122
|
```
|
|
129
123
|
|
|
130
124
|
All thoughts are git-tracked, so you can:
|
|
125
|
+
|
|
131
126
|
- Share knowledge with team members via `thc sync`
|
|
132
127
|
- See how understanding evolved over time
|
|
133
128
|
- Recover context even after months
|
|
@@ -233,6 +228,7 @@ thc init
|
|
|
233
228
|
```
|
|
234
229
|
|
|
235
230
|
This sets up:
|
|
231
|
+
|
|
236
232
|
- A global thoughts repository (default: `~/thoughts`)
|
|
237
233
|
- Directory structure for this project
|
|
238
234
|
- Git hooks for protection and auto-sync
|
|
@@ -269,9 +265,11 @@ thc worktree merge feature-name
|
|
|
269
265
|
### Agent Configuration
|
|
270
266
|
|
|
271
267
|
```bash
|
|
272
|
-
thc agent init
|
|
273
|
-
thc agent init --all
|
|
274
|
-
thc agent init --force
|
|
268
|
+
thc agent init # Interactively install agents and skills
|
|
269
|
+
thc agent init --all # Install all without prompting (symlink mode)
|
|
270
|
+
thc agent init --force # Overwrite existing installations
|
|
271
|
+
thc agent init --agent cursor # Install for a specific agent
|
|
272
|
+
thc agent init --global # Install to global scope
|
|
275
273
|
```
|
|
276
274
|
|
|
277
275
|
### Thoughts Management
|
|
@@ -322,9 +320,7 @@ Configure hooks in `.thought-cabinet/hooks.json` to run commands on events:
|
|
|
322
320
|
"hooks": {
|
|
323
321
|
"PostWorktreeAdd": [
|
|
324
322
|
{
|
|
325
|
-
"hooks": [
|
|
326
|
-
{ "type": "command", "command": "npm install", "timeout": 300 }
|
|
327
|
-
]
|
|
323
|
+
"hooks": [{ "type": "command", "command": "npm install", "timeout": 300 }]
|
|
328
324
|
}
|
|
329
325
|
]
|
|
330
326
|
}
|
|
@@ -332,6 +328,7 @@ Configure hooks in `.thought-cabinet/hooks.json` to run commands on events:
|
|
|
332
328
|
```
|
|
333
329
|
|
|
334
330
|
**Available events:**
|
|
331
|
+
|
|
335
332
|
- `PreWorktreeAdd`, `PostWorktreeAdd` - Worktree creation
|
|
336
333
|
- `PreWorktreeMerge`, `PostWorktreeMerge` - Worktree merge
|
|
337
334
|
- `PostThoughtsInit`, `PostThoughtsDestroy`, `PostThoughtsSync` - Thoughts lifecycle
|
|
@@ -339,6 +336,7 @@ Configure hooks in `.thought-cabinet/hooks.json` to run commands on events:
|
|
|
339
336
|
### Git Hooks
|
|
340
337
|
|
|
341
338
|
Automatically installed git hooks:
|
|
339
|
+
|
|
342
340
|
- **pre-commit**: Prevents accidental commits of `thoughts/` directory
|
|
343
341
|
- **post-commit**: Auto-syncs thoughts after each commit
|
|
344
342
|
|
|
@@ -358,12 +356,14 @@ your-project/
|
|
|
358
356
|
## Best Practices
|
|
359
357
|
|
|
360
358
|
**For AI-assisted development:**
|
|
359
|
+
|
|
361
360
|
- Always run `/research_codebase` before planning complex features
|
|
362
361
|
- Use `/create_plan` to make implementation explicit and verifiable
|
|
363
362
|
- Implement in worktrees for maximum throughput
|
|
364
363
|
- Run `/validate_plan` before merging to catch deviations
|
|
365
364
|
|
|
366
365
|
**General tips:**
|
|
366
|
+
|
|
367
367
|
- Run `thc sync` frequently to share knowledge
|
|
368
368
|
- Use `thc prune` to clean up stale mappings
|
|
369
369
|
|