create-kuckit-app 2.0.2 → 2.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/README.md +24 -14
- package/package.json +3 -1
- package/templates/base/.claude/skills/beads/CLAUDE.md +87 -0
- package/templates/base/.claude/skills/beads/README.md +123 -0
- package/templates/base/.claude/skills/beads/SKILL.md +77 -715
- package/templates/base/.claude/skills/beads/adr/0001-bd-prime-as-source-of-truth.md +61 -0
- package/templates/base/.claude/skills/beads/resources/AGENTS.md +62 -0
- package/templates/base/.claude/skills/beads/resources/ASYNC_GATES.md +175 -0
- package/templates/base/.claude/skills/beads/resources/BOUNDARIES.md +520 -0
- package/templates/base/.claude/skills/beads/resources/CHEMISTRY_PATTERNS.md +197 -0
- package/templates/base/.claude/skills/beads/resources/CLI_REFERENCE.md +561 -0
- package/templates/base/.claude/skills/beads/resources/DEPENDENCIES.md +754 -0
- package/templates/base/.claude/skills/beads/resources/INTEGRATION_PATTERNS.md +438 -0
- package/templates/base/.claude/skills/beads/resources/ISSUE_CREATION.md +150 -0
- package/templates/base/.claude/skills/beads/resources/MOLECULES.md +370 -0
- package/templates/base/.claude/skills/beads/resources/PATTERNS.md +363 -0
- package/templates/base/.claude/skills/beads/resources/RESUMABILITY.md +239 -0
- package/templates/base/.claude/skills/beads/resources/STATIC_DATA.md +61 -0
- package/templates/base/.claude/skills/beads/resources/TROUBLESHOOTING.md +537 -0
- package/templates/base/.claude/skills/beads/resources/WORKFLOWS.md +638 -0
- package/templates/base/.claude/skills/beads/resources/WORKTREES.md +95 -0
- package/templates/base/.claude/skills/browser-skill/SKILL.md +72 -0
- package/templates/base/.claude/skills/knowledge/SKILL.md +155 -205
- package/templates/base/.claude/skills/knowledge/reference/doc-mapping.md +49 -0
- package/templates/base/.claude/skills/knowledge/reference/extraction-prompts.md +102 -0
- package/templates/base/.claude/skills/kuckit/SKILL.md +15 -9
- package/templates/base/.claude/skills/kuckit/references/MODULE-DEVELOPMENT.md +142 -0
- package/templates/base/.claude/skills/kuckit/references/PACKAGES.md +22 -17
- package/templates/base/.claude/skills/kuckit/references/PUBLISHING.md +92 -0
- package/templates/base/.claude/skills/module-testing/SKILL.md +1 -1
- package/templates/base/.claude/skills/planning/SKILL.md +26 -1
- package/templates/base/.env.example +1 -1
- package/templates/base/AGENTS.md +155 -418
- package/templates/base/apps/server/package.json +3 -3
- package/templates/base/apps/server/src/modules.ts +14 -1
- package/templates/base/apps/web/.env.example +1 -1
- package/templates/base/apps/web/package.json +2 -2
- package/templates/base/apps/web/src/components/dashboard/nav-user.tsx +3 -3
- package/templates/base/apps/web/src/components/ui/sidebar.tsx +2 -1
- package/templates/base/apps/web/src/routes/$.tsx +0 -1
- package/templates/base/apps/web/src/routes/__root.tsx +7 -1
- package/templates/base/apps/web/src/routes/dashboard.tsx +3 -1
- package/templates/base/apps/web/src/routes/index.tsx +17 -22
- package/templates/base/apps/web/src/routes/login.tsx +81 -50
- package/templates/base/apps/web/tsconfig.json +1 -0
- package/templates/base/docs/ARCHITECTURE.md +689 -0
- package/templates/base/docs/DEPENDENCY-INJECTION.md +871 -0
- package/templates/base/docs/DEPLOYMENT.md +573 -0
- package/templates/base/docs/INDEX.md +135 -0
- package/templates/base/docs/MIGRATION.md +989 -0
- package/templates/base/docs/MODULE_CSS.md +343 -0
- package/templates/base/docs/MODULE_TESTING.md +368 -0
- package/templates/base/docs/MULTI_AGENT_WORKFLOW.md +909 -0
- package/templates/base/docs/TESTING.md +579 -0
- package/templates/base/docs/TROUBLESHOOTING.md +360 -0
- package/templates/base/drizzle.config.ts +17 -1
- package/templates/base/package.json +8 -6
- package/templates/base/packages/items-module/AGENTS.md +3 -1
- package/templates/base/packages/items-module/package.json +4 -4
- package/templates/base/packages/items-module/src/server/adapters/{item.drizzle.ts → item.repository.ts} +1 -13
- package/templates/base/packages/items-module/src/server/module.ts +2 -1
- package/templates/base/packages/items-module/src/server/schema/item.ts +13 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# Chemistry Patterns
|
|
2
|
+
|
|
3
|
+
> Adapted from ACF beads skill
|
|
4
|
+
|
|
5
|
+
Beads uses a chemistry metaphor for work templates. This guide covers when and how to use each phase.
|
|
6
|
+
|
|
7
|
+
## Phase Transitions
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
11
|
+
│ PROTO (Solid) │
|
|
12
|
+
│ Frozen template, reusable pattern │
|
|
13
|
+
│ .beads/ with template label │
|
|
14
|
+
└─────────────────────────┬───────────────────────────────────┘
|
|
15
|
+
│
|
|
16
|
+
┌───────────────┼───────────────┐
|
|
17
|
+
│ │ │
|
|
18
|
+
▼ │ ▼
|
|
19
|
+
┌─────────────────┐ │ ┌─────────────────┐
|
|
20
|
+
│ MOL (Liquid) │ │ │ WISP (Vapor) │
|
|
21
|
+
│ bd mol pour │ │ │ bd mol wisp │
|
|
22
|
+
│ │ │ │ │
|
|
23
|
+
│ Persistent │ │ │ Ephemeral │
|
|
24
|
+
│ .beads/ │ │ │ .beads-wisp/ │
|
|
25
|
+
│ Git synced │ │ │ Gitignored │
|
|
26
|
+
└────────┬────────┘ │ └────────┬────────┘
|
|
27
|
+
│ │ │
|
|
28
|
+
│ │ ┌───────┴───────┐
|
|
29
|
+
│ │ │ │
|
|
30
|
+
▼ │ ▼ ▼
|
|
31
|
+
┌──────────┐ │ ┌─────────┐ ┌─────────┐
|
|
32
|
+
│ CLOSE │ │ │ SQUASH │ │ BURN │
|
|
33
|
+
│ normally │ │ │ → digest│ │ → gone │
|
|
34
|
+
└──────────┘ │ └─────────┘ └─────────┘
|
|
35
|
+
│
|
|
36
|
+
▼
|
|
37
|
+
┌───────────────┐
|
|
38
|
+
│ DISTILL │
|
|
39
|
+
│ Extract proto │
|
|
40
|
+
│ from ad-hoc │
|
|
41
|
+
│ epic │
|
|
42
|
+
└───────────────┘
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Decision Tree: Mol vs Wisp
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
Will this work be referenced later?
|
|
49
|
+
│
|
|
50
|
+
├─ YES → Does it need audit trail / git history?
|
|
51
|
+
│ │
|
|
52
|
+
│ ├─ YES → MOL (bd mol pour)
|
|
53
|
+
│ │ Examples: Features, bugs, specs
|
|
54
|
+
│ │
|
|
55
|
+
│ └─ NO → Could go either way
|
|
56
|
+
│ Consider: Will someone else see this?
|
|
57
|
+
│ │
|
|
58
|
+
│ ├─ YES → MOL
|
|
59
|
+
│ └─ NO → WISP (then squash if valuable)
|
|
60
|
+
│
|
|
61
|
+
└─ NO → WISP (bd mol wisp)
|
|
62
|
+
Examples: Grooming, health checks, scratch work
|
|
63
|
+
End state: burn (no value) or squash (capture learnings)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Quick Reference
|
|
67
|
+
|
|
68
|
+
| Scenario | Use | Command | End State |
|
|
69
|
+
| -------------------- | ---- | ------------------------- | --------------- |
|
|
70
|
+
| New feature work | Mol | `bd mol pour spec` | Close normally |
|
|
71
|
+
| Bug fix | Mol | `bd mol pour bug` | Close normally |
|
|
72
|
+
| Grooming session | Wisp | `bd mol wisp grooming` | Squash → digest |
|
|
73
|
+
| Code review | Wisp | `bd mol wisp review` | Squash findings |
|
|
74
|
+
| Research spike | Wisp | `bd mol wisp spike` | Squash or burn |
|
|
75
|
+
| Session health check | Wisp | `bd mol wisp health` | Burn |
|
|
76
|
+
| Agent coordination | Wisp | `bd mol wisp coordinator` | Burn |
|
|
77
|
+
|
|
78
|
+
## Common Patterns
|
|
79
|
+
|
|
80
|
+
### Pattern 1: Grooming Wisp
|
|
81
|
+
|
|
82
|
+
Use for periodic backlog maintenance.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Start grooming
|
|
86
|
+
bd mol wisp grooming --var date="2025-01-02"
|
|
87
|
+
|
|
88
|
+
# Work through checklist (stale, duplicates, verification)
|
|
89
|
+
# Track findings in wisp notes
|
|
90
|
+
|
|
91
|
+
# End: capture summary
|
|
92
|
+
bd mol squash <wisp-id> # Creates digest: "Closed 3, added 5 relationships"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Why wisp?** Grooming is operational—you don't need permanent issues for "reviewed stale items."
|
|
96
|
+
|
|
97
|
+
### Pattern 2: Code Review Wisp
|
|
98
|
+
|
|
99
|
+
Use for PR review checklists.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Start review
|
|
103
|
+
bd mol wisp pr-review --var pr="123" --var repo="myproject"
|
|
104
|
+
|
|
105
|
+
# Track review findings (security, performance, style)
|
|
106
|
+
# Each finding is a child issue in the wisp
|
|
107
|
+
|
|
108
|
+
# End: promote real issues, discard noise
|
|
109
|
+
bd mol squash <wisp-id> # Creates permanent issues for real findings
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Why wisp?** Review checklists are ephemeral. Only actual findings become permanent issues.
|
|
113
|
+
|
|
114
|
+
### Pattern 3: Research Spike Wisp
|
|
115
|
+
|
|
116
|
+
Use for time-boxed exploration.
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Start spike (2 hour timebox)
|
|
120
|
+
bd mol wisp spike --var topic="GraphQL pagination"
|
|
121
|
+
|
|
122
|
+
# Explore, take notes in wisp issues
|
|
123
|
+
# Track sources, findings, dead ends
|
|
124
|
+
|
|
125
|
+
# End: decide outcome
|
|
126
|
+
bd mol squash <wisp-id> # If valuable → creates research summary issue
|
|
127
|
+
# OR
|
|
128
|
+
bd mol burn <wisp-id> # If dead end → no trace
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Why wisp?** Research might lead nowhere. Don't pollute the database with abandoned explorations.
|
|
132
|
+
|
|
133
|
+
## Commands Reference
|
|
134
|
+
|
|
135
|
+
### Creating Work
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Persistent mol (solid → liquid)
|
|
139
|
+
bd mol pour <proto> # Synced to git
|
|
140
|
+
bd mol pour <proto> --var key=value
|
|
141
|
+
|
|
142
|
+
# Ephemeral wisp (solid → vapor)
|
|
143
|
+
bd mol wisp <proto> # Not synced
|
|
144
|
+
bd mol wisp <proto> --var key=value
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Ending Work
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Mol: close normally
|
|
151
|
+
bd close <mol-id>
|
|
152
|
+
|
|
153
|
+
# Wisp: squash (condense to digest)
|
|
154
|
+
bd mol squash <wisp-id> # Creates permanent digest issue
|
|
155
|
+
|
|
156
|
+
# Wisp: burn (evaporate, no trace)
|
|
157
|
+
bd mol burn <wisp-id> # Deletes with no record
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Managing
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# List wisps
|
|
164
|
+
bd mol wisp list
|
|
165
|
+
|
|
166
|
+
# Garbage collect orphaned wisps
|
|
167
|
+
bd mol wisp gc
|
|
168
|
+
|
|
169
|
+
# View proto/mol structure
|
|
170
|
+
bd mol show <id>
|
|
171
|
+
|
|
172
|
+
# List available protos
|
|
173
|
+
bd formula list
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Storage Locations
|
|
177
|
+
|
|
178
|
+
| Type | Location | Git Behavior |
|
|
179
|
+
| ----- | -------------- | ----------------------- |
|
|
180
|
+
| Proto | `.beads/` | Synced (template label) |
|
|
181
|
+
| Mol | `.beads/` | Synced |
|
|
182
|
+
| Wisp | `.beads-wisp/` | Gitignored |
|
|
183
|
+
|
|
184
|
+
## Anti-Patterns
|
|
185
|
+
|
|
186
|
+
| Don't | Do Instead |
|
|
187
|
+
| ------------------------------------------- | ------------------------------ |
|
|
188
|
+
| Create mol for one-time diagnostic | Use wisp, then burn |
|
|
189
|
+
| Create wisp for real feature work | Use mol (needs audit trail) |
|
|
190
|
+
| Burn wisp with valuable findings | Squash first (captures digest) |
|
|
191
|
+
| Let wisps accumulate | Burn or squash at session end |
|
|
192
|
+
| Create ad-hoc epics for repeatable patterns | Distill into proto |
|
|
193
|
+
|
|
194
|
+
## Related Resources
|
|
195
|
+
|
|
196
|
+
- [MOLECULES.md](MOLECULES.md) — Proto definitions
|
|
197
|
+
- [WORKFLOWS.md](WORKFLOWS.md) — General beads workflows
|