@hecer/yoke 1.6.0 → 1.6.1

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 (103) hide show
  1. package/.claude-plugin/plugin.json +13 -13
  2. package/.codex-plugin/plugin.json +7 -7
  3. package/CHANGELOG.md +294 -288
  4. package/README.md +874 -874
  5. package/TODOS.md +5 -5
  6. package/agents/docs.toml +6 -6
  7. package/agents/implementer.toml +6 -6
  8. package/agents/reviewer.toml +6 -6
  9. package/agents/security.toml +6 -6
  10. package/bench/README.md +86 -86
  11. package/bench/RESULTS.md +35 -35
  12. package/bench/output-compaction.mjs +65 -65
  13. package/bench/result-schema.mjs +12 -12
  14. package/bench/results/claude-2026-07-27T18-03-26.json +50 -50
  15. package/bench/results/codex-unavailable-1785175418318.json +15 -15
  16. package/bench/results/gemini-2026-07-27T18-03-44.json +46 -46
  17. package/bench/run-matrix.mjs +26 -26
  18. package/bench/run.mjs +106 -106
  19. package/canon/AGENTS.md +30 -30
  20. package/canon/context/DECISIONS.md +4 -4
  21. package/canon/context/GLOSSARY.md +11 -11
  22. package/canon/context/KNOWLEDGE.md +4 -4
  23. package/canon/context/PROJECT.md +15 -15
  24. package/canon/loop/loop-spec.md +65 -65
  25. package/canon/loop/prd.schema.md +43 -43
  26. package/canon/manifest.yaml +59 -59
  27. package/canon/policy/gates.md +7 -7
  28. package/canon/policy/roles.md +9 -9
  29. package/canon/skills/ATTRIBUTION.md +99 -99
  30. package/canon/skills/authoring-prd/SKILL.md +58 -58
  31. package/canon/skills/brainstorming/SKILL.md +164 -164
  32. package/canon/skills/codebase-design/DEEPENING.md +15 -15
  33. package/canon/skills/codebase-design/DESIGN-IT-TWICE.md +12 -12
  34. package/canon/skills/codebase-design/SKILL.md +39 -39
  35. package/canon/skills/dispatching-parallel-agents/SKILL.md +182 -182
  36. package/canon/skills/document-release/SKILL.md +302 -302
  37. package/canon/skills/domain-modeling/ADR-FORMAT.md +19 -19
  38. package/canon/skills/domain-modeling/CONTEXT-FORMAT.md +39 -39
  39. package/canon/skills/domain-modeling/SKILL.md +35 -35
  40. package/canon/skills/executing-plans/SKILL.md +70 -70
  41. package/canon/skills/finishing-a-development-branch/SKILL.md +200 -200
  42. package/canon/skills/health/SKILL.md +177 -177
  43. package/canon/skills/maintaining-context/SKILL.md +34 -34
  44. package/canon/skills/minimal-code/SKILL.md +21 -21
  45. package/canon/skills/no-ai-slop/SKILL.md +103 -103
  46. package/canon/skills/no-ai-slop/eval.md +43 -43
  47. package/canon/skills/plan-ceo-review/SKILL.md +541 -541
  48. package/canon/skills/plan-eng-review/SKILL.md +362 -362
  49. package/canon/skills/receiving-code-review/SKILL.md +213 -213
  50. package/canon/skills/requesting-code-review/SKILL.md +105 -105
  51. package/canon/skills/resolving-merge-conflicts/SKILL.md +18 -18
  52. package/canon/skills/retro/SKILL.md +397 -397
  53. package/canon/skills/review/SKILL.md +246 -246
  54. package/canon/skills/ship/SKILL.md +691 -691
  55. package/canon/skills/subagent-driven-development/SKILL.md +277 -277
  56. package/canon/skills/systematic-debugging/SKILL.md +296 -296
  57. package/canon/skills/tdd/SKILL.md +371 -371
  58. package/canon/skills/unslop-ui/SKILL.md +34 -34
  59. package/canon/skills/using-git-worktrees/SKILL.md +218 -218
  60. package/canon/skills/verification-before-completion/SKILL.md +139 -139
  61. package/canon/skills/visual-verification/SKILL.md +54 -54
  62. package/canon/skills/workflow/SKILL.md +22 -22
  63. package/canon/skills/writing-for-agents/SKILL-MECHANICS.md +27 -27
  64. package/canon/skills/writing-for-agents/SKILL.md +42 -42
  65. package/canon/skills/writing-plans/SKILL.md +152 -152
  66. package/canon/skills/writing-skills/SKILL.md +655 -655
  67. package/canon/skills/yoke-retrofit/SKILL.md +26 -26
  68. package/canon/skills/yoke-workflow/SKILL.md +20 -20
  69. package/canon/tools/codex-rtk-hook.mjs +35 -35
  70. package/canon/tools/graphify.md +3 -3
  71. package/canon/tools/playwright-mcp.md +3 -3
  72. package/canon/tools/rtk.md +7 -7
  73. package/canon/tools/serena.md +6 -6
  74. package/dist/agents/process.js +3 -0
  75. package/dist/loop/watchdog.js +1 -1
  76. package/dist/prd/command.js +17 -17
  77. package/dist/retrofit/planners/claude.js +14 -14
  78. package/dist/retrofit/preserve.js +2 -2
  79. package/docs/MIGRATING-TO-1.0.md +33 -33
  80. package/docs/MIGRATING-TO-1.1.md +27 -27
  81. package/docs/MIGRATING-TO-1.4.md +70 -70
  82. package/docs/PUBLISHING.md +91 -91
  83. package/docs/superpowers/plans/2026-06-28-baustein-e-context-layer.md +981 -981
  84. package/docs/superpowers/plans/2026-06-29-baustein-f-routing.md +258 -258
  85. package/docs/superpowers/plans/2026-06-29-baustein-g-loop-observability.md +1006 -1006
  86. package/docs/superpowers/plans/2026-06-29-baustein-h-loop-robustness.md +374 -374
  87. package/docs/superpowers/plans/2026-06-30-baustein-i-visual-design-verification.md +450 -450
  88. package/docs/superpowers/plans/2026-07-02-baustein-k-zero-to-100-bootstrap.md +1024 -1024
  89. package/docs/superpowers/plans/2026-07-02-baustein-m-flow-smoke-proofs.md +574 -574
  90. package/docs/superpowers/plans/2026-08-13-gauntlet-quality-loop.md +537 -537
  91. package/docs/superpowers/plans/2026-08-16-artifact-backed-output-compaction.md +329 -329
  92. package/docs/superpowers/specs/2026-06-28-baustein-e-context-layer-design.md +146 -146
  93. package/docs/superpowers/specs/2026-06-29-baustein-f-routing-design.md +106 -106
  94. package/docs/superpowers/specs/2026-06-29-baustein-g-loop-observability-design.md +186 -186
  95. package/docs/superpowers/specs/2026-06-29-baustein-h-loop-robustness-design.md +113 -113
  96. package/docs/superpowers/specs/2026-06-30-baustein-i-visual-design-verification-design.md +98 -98
  97. package/docs/superpowers/specs/2026-07-02-baustein-k-zero-to-100-bootstrap-design.md +200 -200
  98. package/docs/superpowers/specs/2026-07-02-baustein-m-flow-smoke-proofs-design.md +155 -155
  99. package/docs/superpowers/specs/2026-08-13-gauntlet-quality-loop-design.md +422 -422
  100. package/docs/superpowers/specs/2026-08-16-artifact-backed-output-compaction-design.md +166 -166
  101. package/gemini-extension.json +6 -6
  102. package/hooks/hooks.json +19 -19
  103. package/package.json +87 -87
@@ -1,34 +1,34 @@
1
- ---
2
- name: unslop-ui
3
- description: Use when building or reviewing any UI — detect and remove the visual "tells" of AI-generated/vibecoded design (AI-purple gradients, gradient hero text, neon glow, emoji-as-icons, untouched shadcn defaults, centered-hero-plus-three-cards) so the result looks deliberately designed, not machine-default.
4
- ---
5
-
6
- # Un-slop the UI
7
-
8
- AI-built UIs are "recognizable on sight" — a homogeneous look from a handful of default choices.
9
- Before finishing UI work, remove these tells. Run `yoke design-scan .` for the statically
10
- detectable ones, then apply judgement for the structural ones the scanner can't see.
11
-
12
- ## The ranked tells (and the fix)
13
-
14
- - **AI-purple gradients** (the #1 tell) — purple/violet gradients and `#6c5ce7`-family accents.
15
- → Choose one real brand color with intent; avoid purple-by-default.
16
- - **Gradient hero text** — `bg-clip-text text-transparent` rainbow headings.
17
- → Solid color + type weight/scale for emphasis.
18
- - **Neon glow** — `0 0 Npx` colored box-shadows / `shadow-[0_0_...]`.
19
- → Subtle, neutral elevation (small offset, low blur, low opacity).
20
- - **Emoji-as-icons** — 🚀✨🔥 in buttons/nav/feature lists.
21
- → A real icon set (lucide, etc.), consistent stroke + size.
22
- - **Untouched shadcn/Tailwind defaults** — default radius, default slate everywhere.
23
- → Set deliberate tokens (radius, spacing scale, one accent) so it doesn't look boilerplate.
24
- - **Centered hero + three feature cards** — the canonical AI landing layout.
25
- → Vary rhythm: asymmetry, a real product shot, content density that fits the product.
26
- - **Homogeneous spacing / no hierarchy** — everything the same size and gap.
27
- → Establish a type scale and spacing rhythm; make the primary action obviously primary.
28
-
29
- ## Rule
30
-
31
- Treat `yoke design-scan .` as a gate (it exits non-zero over budget). Fix findings, then
32
- eyeball the structural tells above. Distinctive, intentional > generic-but-safe.
33
-
34
- *Rubric informed by the MIT-licensed research in [vibecoded-design-tells](https://github.com/JCarterJohnson/vibecoded-design-tells) (© Carter Johnson). Yoke implements the idea natively; no code/data copied.*
1
+ ---
2
+ name: unslop-ui
3
+ description: Use when building or reviewing any UI — detect and remove the visual "tells" of AI-generated/vibecoded design (AI-purple gradients, gradient hero text, neon glow, emoji-as-icons, untouched shadcn defaults, centered-hero-plus-three-cards) so the result looks deliberately designed, not machine-default.
4
+ ---
5
+
6
+ # Un-slop the UI
7
+
8
+ AI-built UIs are "recognizable on sight" — a homogeneous look from a handful of default choices.
9
+ Before finishing UI work, remove these tells. Run `yoke design-scan .` for the statically
10
+ detectable ones, then apply judgement for the structural ones the scanner can't see.
11
+
12
+ ## The ranked tells (and the fix)
13
+
14
+ - **AI-purple gradients** (the #1 tell) — purple/violet gradients and `#6c5ce7`-family accents.
15
+ → Choose one real brand color with intent; avoid purple-by-default.
16
+ - **Gradient hero text** — `bg-clip-text text-transparent` rainbow headings.
17
+ → Solid color + type weight/scale for emphasis.
18
+ - **Neon glow** — `0 0 Npx` colored box-shadows / `shadow-[0_0_...]`.
19
+ → Subtle, neutral elevation (small offset, low blur, low opacity).
20
+ - **Emoji-as-icons** — 🚀✨🔥 in buttons/nav/feature lists.
21
+ → A real icon set (lucide, etc.), consistent stroke + size.
22
+ - **Untouched shadcn/Tailwind defaults** — default radius, default slate everywhere.
23
+ → Set deliberate tokens (radius, spacing scale, one accent) so it doesn't look boilerplate.
24
+ - **Centered hero + three feature cards** — the canonical AI landing layout.
25
+ → Vary rhythm: asymmetry, a real product shot, content density that fits the product.
26
+ - **Homogeneous spacing / no hierarchy** — everything the same size and gap.
27
+ → Establish a type scale and spacing rhythm; make the primary action obviously primary.
28
+
29
+ ## Rule
30
+
31
+ Treat `yoke design-scan .` as a gate (it exits non-zero over budget). Fix findings, then
32
+ eyeball the structural tells above. Distinctive, intentional > generic-but-safe.
33
+
34
+ *Rubric informed by the MIT-licensed research in [vibecoded-design-tells](https://github.com/JCarterJohnson/vibecoded-design-tells) (© Carter Johnson). Yoke implements the idea natively; no code/data copied.*
@@ -1,218 +1,218 @@
1
- ---
2
- name: using-git-worktrees
3
- description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
4
- ---
5
-
6
- # Using Git Worktrees
7
-
8
- ## Overview
9
-
10
- Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
11
-
12
- **Core principle:** Systematic directory selection + safety verification = reliable isolation.
13
-
14
- **Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."
15
-
16
- ## Directory Selection Process
17
-
18
- Follow this priority order:
19
-
20
- ### 1. Check Existing Directories
21
-
22
- ```bash
23
- # Check in priority order
24
- ls -d .worktrees 2>/dev/null # Preferred (hidden)
25
- ls -d worktrees 2>/dev/null # Alternative
26
- ```
27
-
28
- **If found:** Use that directory. If both exist, `.worktrees` wins.
29
-
30
- ### 2. Check CLAUDE.md
31
-
32
- ```bash
33
- grep -i "worktree.*director" CLAUDE.md 2>/dev/null
34
- ```
35
-
36
- **If preference specified:** Use it without asking.
37
-
38
- ### 3. Ask User
39
-
40
- If no directory exists and no CLAUDE.md preference:
41
-
42
- ```
43
- No worktree directory found. Where should I create worktrees?
44
-
45
- 1. .worktrees/ (project-local, hidden)
46
- 2. ~/.config/superpowers/worktrees/<project-name>/ (global location)
47
-
48
- Which would you prefer?
49
- ```
50
-
51
- ## Safety Verification
52
-
53
- ### For Project-Local Directories (.worktrees or worktrees)
54
-
55
- **MUST verify directory is ignored before creating worktree:**
56
-
57
- ```bash
58
- # Check if directory is ignored (respects local, global, and system gitignore)
59
- git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
60
- ```
61
-
62
- **If NOT ignored:**
63
-
64
- Per Jesse's rule "Fix broken things immediately":
65
- 1. Add appropriate line to .gitignore
66
- 2. Commit the change
67
- 3. Proceed with worktree creation
68
-
69
- **Why critical:** Prevents accidentally committing worktree contents to repository.
70
-
71
- ### For Global Directory (~/.config/superpowers/worktrees)
72
-
73
- No .gitignore verification needed - outside project entirely.
74
-
75
- ## Creation Steps
76
-
77
- ### 1. Detect Project Name
78
-
79
- ```bash
80
- project=$(basename "$(git rev-parse --show-toplevel)")
81
- ```
82
-
83
- ### 2. Create Worktree
84
-
85
- ```bash
86
- # Determine full path
87
- case $LOCATION in
88
- .worktrees|worktrees)
89
- path="$LOCATION/$BRANCH_NAME"
90
- ;;
91
- ~/.config/superpowers/worktrees/*)
92
- path="~/.config/superpowers/worktrees/$project/$BRANCH_NAME"
93
- ;;
94
- esac
95
-
96
- # Create worktree with new branch
97
- git worktree add "$path" -b "$BRANCH_NAME"
98
- cd "$path"
99
- ```
100
-
101
- ### 3. Run Project Setup
102
-
103
- Auto-detect and run appropriate setup:
104
-
105
- ```bash
106
- # Node.js
107
- if [ -f package.json ]; then npm install; fi
108
-
109
- # Rust
110
- if [ -f Cargo.toml ]; then cargo build; fi
111
-
112
- # Python
113
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
114
- if [ -f pyproject.toml ]; then poetry install; fi
115
-
116
- # Go
117
- if [ -f go.mod ]; then go mod download; fi
118
- ```
119
-
120
- ### 4. Verify Clean Baseline
121
-
122
- Run tests to ensure worktree starts clean:
123
-
124
- ```bash
125
- # Examples - use project-appropriate command
126
- npm test
127
- cargo test
128
- pytest
129
- go test ./...
130
- ```
131
-
132
- **If tests fail:** Report failures, ask whether to proceed or investigate.
133
-
134
- **If tests pass:** Report ready.
135
-
136
- ### 5. Report Location
137
-
138
- ```
139
- Worktree ready at <full-path>
140
- Tests passing (<N> tests, 0 failures)
141
- Ready to implement <feature-name>
142
- ```
143
-
144
- ## Quick Reference
145
-
146
- | Situation | Action |
147
- |-----------|--------|
148
- | `.worktrees/` exists | Use it (verify ignored) |
149
- | `worktrees/` exists | Use it (verify ignored) |
150
- | Both exist | Use `.worktrees/` |
151
- | Neither exists | Check CLAUDE.md → Ask user |
152
- | Directory not ignored | Add to .gitignore + commit |
153
- | Tests fail during baseline | Report failures + ask |
154
- | No package.json/Cargo.toml | Skip dependency install |
155
-
156
- ## Common Mistakes
157
-
158
- ### Skipping ignore verification
159
-
160
- - **Problem:** Worktree contents get tracked, pollute git status
161
- - **Fix:** Always use `git check-ignore` before creating project-local worktree
162
-
163
- ### Assuming directory location
164
-
165
- - **Problem:** Creates inconsistency, violates project conventions
166
- - **Fix:** Follow priority: existing > CLAUDE.md > ask
167
-
168
- ### Proceeding with failing tests
169
-
170
- - **Problem:** Can't distinguish new bugs from pre-existing issues
171
- - **Fix:** Report failures, get explicit permission to proceed
172
-
173
- ### Hardcoding setup commands
174
-
175
- - **Problem:** Breaks on projects using different tools
176
- - **Fix:** Auto-detect from project files (package.json, etc.)
177
-
178
- ## Example Workflow
179
-
180
- ```
181
- You: I'm using the using-git-worktrees skill to set up an isolated workspace.
182
-
183
- [Check .worktrees/ - exists]
184
- [Verify ignored - git check-ignore confirms .worktrees/ is ignored]
185
- [Create worktree: git worktree add .worktrees/auth -b feature/auth]
186
- [Run npm install]
187
- [Run npm test - 47 passing]
188
-
189
- Worktree ready at /Users/jesse/myproject/.worktrees/auth
190
- Tests passing (47 tests, 0 failures)
191
- Ready to implement auth feature
192
- ```
193
-
194
- ## Red Flags
195
-
196
- **Never:**
197
- - Create worktree without verifying it's ignored (project-local)
198
- - Skip baseline test verification
199
- - Proceed with failing tests without asking
200
- - Assume directory location when ambiguous
201
- - Skip CLAUDE.md check
202
-
203
- **Always:**
204
- - Follow directory priority: existing > CLAUDE.md > ask
205
- - Verify directory is ignored for project-local
206
- - Auto-detect and run project setup
207
- - Verify clean test baseline
208
-
209
- ## Integration
210
-
211
- **Called by:**
212
- - **brainstorming** (Phase 4) - REQUIRED when design is approved and implementation follows
213
- - **subagent-driven-development** - REQUIRED before executing any tasks
214
- - **executing-plans** - REQUIRED before executing any tasks
215
- - Any skill needing isolated workspace
216
-
217
- **Pairs with:**
218
- - **finishing-a-development-branch** - REQUIRED for cleanup after work complete
1
+ ---
2
+ name: using-git-worktrees
3
+ description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
4
+ ---
5
+
6
+ # Using Git Worktrees
7
+
8
+ ## Overview
9
+
10
+ Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
11
+
12
+ **Core principle:** Systematic directory selection + safety verification = reliable isolation.
13
+
14
+ **Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."
15
+
16
+ ## Directory Selection Process
17
+
18
+ Follow this priority order:
19
+
20
+ ### 1. Check Existing Directories
21
+
22
+ ```bash
23
+ # Check in priority order
24
+ ls -d .worktrees 2>/dev/null # Preferred (hidden)
25
+ ls -d worktrees 2>/dev/null # Alternative
26
+ ```
27
+
28
+ **If found:** Use that directory. If both exist, `.worktrees` wins.
29
+
30
+ ### 2. Check CLAUDE.md
31
+
32
+ ```bash
33
+ grep -i "worktree.*director" CLAUDE.md 2>/dev/null
34
+ ```
35
+
36
+ **If preference specified:** Use it without asking.
37
+
38
+ ### 3. Ask User
39
+
40
+ If no directory exists and no CLAUDE.md preference:
41
+
42
+ ```
43
+ No worktree directory found. Where should I create worktrees?
44
+
45
+ 1. .worktrees/ (project-local, hidden)
46
+ 2. ~/.config/superpowers/worktrees/<project-name>/ (global location)
47
+
48
+ Which would you prefer?
49
+ ```
50
+
51
+ ## Safety Verification
52
+
53
+ ### For Project-Local Directories (.worktrees or worktrees)
54
+
55
+ **MUST verify directory is ignored before creating worktree:**
56
+
57
+ ```bash
58
+ # Check if directory is ignored (respects local, global, and system gitignore)
59
+ git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
60
+ ```
61
+
62
+ **If NOT ignored:**
63
+
64
+ Per Jesse's rule "Fix broken things immediately":
65
+ 1. Add appropriate line to .gitignore
66
+ 2. Commit the change
67
+ 3. Proceed with worktree creation
68
+
69
+ **Why critical:** Prevents accidentally committing worktree contents to repository.
70
+
71
+ ### For Global Directory (~/.config/superpowers/worktrees)
72
+
73
+ No .gitignore verification needed - outside project entirely.
74
+
75
+ ## Creation Steps
76
+
77
+ ### 1. Detect Project Name
78
+
79
+ ```bash
80
+ project=$(basename "$(git rev-parse --show-toplevel)")
81
+ ```
82
+
83
+ ### 2. Create Worktree
84
+
85
+ ```bash
86
+ # Determine full path
87
+ case $LOCATION in
88
+ .worktrees|worktrees)
89
+ path="$LOCATION/$BRANCH_NAME"
90
+ ;;
91
+ ~/.config/superpowers/worktrees/*)
92
+ path="~/.config/superpowers/worktrees/$project/$BRANCH_NAME"
93
+ ;;
94
+ esac
95
+
96
+ # Create worktree with new branch
97
+ git worktree add "$path" -b "$BRANCH_NAME"
98
+ cd "$path"
99
+ ```
100
+
101
+ ### 3. Run Project Setup
102
+
103
+ Auto-detect and run appropriate setup:
104
+
105
+ ```bash
106
+ # Node.js
107
+ if [ -f package.json ]; then npm install; fi
108
+
109
+ # Rust
110
+ if [ -f Cargo.toml ]; then cargo build; fi
111
+
112
+ # Python
113
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
114
+ if [ -f pyproject.toml ]; then poetry install; fi
115
+
116
+ # Go
117
+ if [ -f go.mod ]; then go mod download; fi
118
+ ```
119
+
120
+ ### 4. Verify Clean Baseline
121
+
122
+ Run tests to ensure worktree starts clean:
123
+
124
+ ```bash
125
+ # Examples - use project-appropriate command
126
+ npm test
127
+ cargo test
128
+ pytest
129
+ go test ./...
130
+ ```
131
+
132
+ **If tests fail:** Report failures, ask whether to proceed or investigate.
133
+
134
+ **If tests pass:** Report ready.
135
+
136
+ ### 5. Report Location
137
+
138
+ ```
139
+ Worktree ready at <full-path>
140
+ Tests passing (<N> tests, 0 failures)
141
+ Ready to implement <feature-name>
142
+ ```
143
+
144
+ ## Quick Reference
145
+
146
+ | Situation | Action |
147
+ |-----------|--------|
148
+ | `.worktrees/` exists | Use it (verify ignored) |
149
+ | `worktrees/` exists | Use it (verify ignored) |
150
+ | Both exist | Use `.worktrees/` |
151
+ | Neither exists | Check CLAUDE.md → Ask user |
152
+ | Directory not ignored | Add to .gitignore + commit |
153
+ | Tests fail during baseline | Report failures + ask |
154
+ | No package.json/Cargo.toml | Skip dependency install |
155
+
156
+ ## Common Mistakes
157
+
158
+ ### Skipping ignore verification
159
+
160
+ - **Problem:** Worktree contents get tracked, pollute git status
161
+ - **Fix:** Always use `git check-ignore` before creating project-local worktree
162
+
163
+ ### Assuming directory location
164
+
165
+ - **Problem:** Creates inconsistency, violates project conventions
166
+ - **Fix:** Follow priority: existing > CLAUDE.md > ask
167
+
168
+ ### Proceeding with failing tests
169
+
170
+ - **Problem:** Can't distinguish new bugs from pre-existing issues
171
+ - **Fix:** Report failures, get explicit permission to proceed
172
+
173
+ ### Hardcoding setup commands
174
+
175
+ - **Problem:** Breaks on projects using different tools
176
+ - **Fix:** Auto-detect from project files (package.json, etc.)
177
+
178
+ ## Example Workflow
179
+
180
+ ```
181
+ You: I'm using the using-git-worktrees skill to set up an isolated workspace.
182
+
183
+ [Check .worktrees/ - exists]
184
+ [Verify ignored - git check-ignore confirms .worktrees/ is ignored]
185
+ [Create worktree: git worktree add .worktrees/auth -b feature/auth]
186
+ [Run npm install]
187
+ [Run npm test - 47 passing]
188
+
189
+ Worktree ready at /Users/jesse/myproject/.worktrees/auth
190
+ Tests passing (47 tests, 0 failures)
191
+ Ready to implement auth feature
192
+ ```
193
+
194
+ ## Red Flags
195
+
196
+ **Never:**
197
+ - Create worktree without verifying it's ignored (project-local)
198
+ - Skip baseline test verification
199
+ - Proceed with failing tests without asking
200
+ - Assume directory location when ambiguous
201
+ - Skip CLAUDE.md check
202
+
203
+ **Always:**
204
+ - Follow directory priority: existing > CLAUDE.md > ask
205
+ - Verify directory is ignored for project-local
206
+ - Auto-detect and run project setup
207
+ - Verify clean test baseline
208
+
209
+ ## Integration
210
+
211
+ **Called by:**
212
+ - **brainstorming** (Phase 4) - REQUIRED when design is approved and implementation follows
213
+ - **subagent-driven-development** - REQUIRED before executing any tasks
214
+ - **executing-plans** - REQUIRED before executing any tasks
215
+ - Any skill needing isolated workspace
216
+
217
+ **Pairs with:**
218
+ - **finishing-a-development-branch** - REQUIRED for cleanup after work complete