get-shit-done-cc 1.10.0-experimental.0 → 1.10.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 (61) hide show
  1. package/README.md +16 -17
  2. package/agents/gsd-executor.md +375 -37
  3. package/agents/gsd-planner.md +108 -15
  4. package/bin/install.js +163 -238
  5. package/commands/gsd/help.md +0 -43
  6. package/commands/gsd/new-project.md +8 -94
  7. package/commands/gsd/plan-phase.md +5 -35
  8. package/get-shit-done/references/verification-patterns.md +1 -1
  9. package/get-shit-done/templates/phase-prompt.md +4 -4
  10. package/get-shit-done/templates/state.md +0 -37
  11. package/get-shit-done/workflows/execute-phase.md +1 -44
  12. package/get-shit-done/workflows/execute-plan.md +856 -34
  13. package/hooks/dist/gsd-statusline.js +9 -6
  14. package/package.json +7 -10
  15. package/agents/design-specialist.md +0 -222
  16. package/commands/gsd/autopilot.md +0 -518
  17. package/commands/gsd/checkpoints.md +0 -229
  18. package/commands/gsd/design-system.md +0 -70
  19. package/commands/gsd/discuss-design.md +0 -77
  20. package/commands/gsd/extend.md +0 -80
  21. package/get-shit-done/references/ccr-integration.md +0 -468
  22. package/get-shit-done/references/checkpoint-execution.md +0 -369
  23. package/get-shit-done/references/checkpoint-types.md +0 -728
  24. package/get-shit-done/references/deviation-rules.md +0 -215
  25. package/get-shit-done/references/framework-patterns.md +0 -543
  26. package/get-shit-done/references/ui-principles.md +0 -258
  27. package/get-shit-done/skills/gsd-extend/SKILL.md +0 -154
  28. package/get-shit-done/skills/gsd-extend/references/agent-structure.md +0 -305
  29. package/get-shit-done/skills/gsd-extend/references/extension-anatomy.md +0 -123
  30. package/get-shit-done/skills/gsd-extend/references/reference-structure.md +0 -408
  31. package/get-shit-done/skills/gsd-extend/references/template-structure.md +0 -370
  32. package/get-shit-done/skills/gsd-extend/references/validation-rules.md +0 -140
  33. package/get-shit-done/skills/gsd-extend/references/workflow-structure.md +0 -253
  34. package/get-shit-done/skills/gsd-extend/templates/agent-template.md +0 -234
  35. package/get-shit-done/skills/gsd-extend/templates/reference-template.md +0 -239
  36. package/get-shit-done/skills/gsd-extend/templates/workflow-template.md +0 -169
  37. package/get-shit-done/skills/gsd-extend/workflows/create-approach.md +0 -332
  38. package/get-shit-done/skills/gsd-extend/workflows/list-extensions.md +0 -133
  39. package/get-shit-done/skills/gsd-extend/workflows/remove-extension.md +0 -93
  40. package/get-shit-done/skills/gsd-extend/workflows/validate-extension.md +0 -184
  41. package/get-shit-done/templates/autopilot-script-simple.sh +0 -181
  42. package/get-shit-done/templates/autopilot-script.sh +0 -1142
  43. package/get-shit-done/templates/autopilot-script.sh.backup +0 -1142
  44. package/get-shit-done/templates/design-system.md +0 -238
  45. package/get-shit-done/templates/phase-design.md +0 -205
  46. package/get-shit-done/templates/phase-models-template.json +0 -71
  47. package/get-shit-done/tui/App.tsx +0 -169
  48. package/get-shit-done/tui/README.md +0 -107
  49. package/get-shit-done/tui/build.js +0 -37
  50. package/get-shit-done/tui/components/ActivityFeed.tsx +0 -126
  51. package/get-shit-done/tui/components/PhaseCard.tsx +0 -86
  52. package/get-shit-done/tui/components/StatsBar.tsx +0 -147
  53. package/get-shit-done/tui/dist/index.js +0 -387
  54. package/get-shit-done/tui/index.tsx +0 -12
  55. package/get-shit-done/tui/package-lock.json +0 -1074
  56. package/get-shit-done/tui/package.json +0 -22
  57. package/get-shit-done/tui/utils/pipeReader.ts +0 -129
  58. package/get-shit-done/workflows/design-system.md +0 -245
  59. package/get-shit-done/workflows/discuss-design.md +0 -330
  60. package/get-shit-done/workflows/execute-plan-auth.md +0 -122
  61. package/get-shit-done/workflows/execute-plan-checkpoints.md +0 -541
@@ -1,215 +0,0 @@
1
- # Deviation Rules
2
-
3
- Rules for handling work discovered during plan execution that wasn't in the original plan.
4
-
5
- ## Automatic Deviation Handling
6
-
7
- **While executing tasks, you WILL discover work not in the plan.** This is normal.
8
-
9
- Apply these rules automatically. Track all deviations for Summary documentation.
10
-
11
- ---
12
-
13
- **RULE 1: Auto-fix bugs**
14
-
15
- **Trigger:** Code doesn't work as intended (broken behavior, incorrect output, errors)
16
-
17
- **Action:** Fix immediately, track for Summary
18
-
19
- **Examples:**
20
-
21
- - Wrong SQL query returning incorrect data
22
- - Logic errors (inverted condition, off-by-one, infinite loop)
23
- - Type errors, null pointer exceptions, undefined references
24
- - Broken validation (accepts invalid input, rejects valid input)
25
- - Security vulnerabilities (SQL injection, XSS, CSRF, insecure auth)
26
- - Race conditions, deadlocks
27
- - Memory leaks, resource leaks
28
-
29
- **Process:**
30
-
31
- 1. Fix the bug inline
32
- 2. Add/update tests to prevent regression
33
- 3. Verify fix works
34
- 4. Continue task
35
- 5. Track in deviations list: `[Rule 1 - Bug] [description]`
36
-
37
- **No user permission needed.** Bugs must be fixed for correct operation.
38
-
39
- ---
40
-
41
- **RULE 2: Auto-add missing critical functionality**
42
-
43
- **Trigger:** Code is missing essential features for correctness, security, or basic operation
44
-
45
- **Action:** Add immediately, track for Summary
46
-
47
- **Examples:**
48
-
49
- - Missing error handling (no try/catch, unhandled promise rejections)
50
- - No input validation (accepts malicious data, type coercion issues)
51
- - Missing null/undefined checks (crashes on edge cases)
52
- - No authentication on protected routes
53
- - Missing authorization checks (users can access others' data)
54
- - No CSRF protection, missing CORS configuration
55
- - No rate limiting on public APIs
56
- - Missing required database indexes (causes timeouts)
57
- - No logging for errors (can't debug production)
58
-
59
- **Process:**
60
-
61
- 1. Add the missing functionality inline
62
- 2. Add tests for the new functionality
63
- 3. Verify it works
64
- 4. Continue task
65
- 5. Track in deviations list: `[Rule 2 - Missing Critical] [description]`
66
-
67
- **Critical = required for correct/secure/performant operation**
68
- **No user permission needed.** These are not "features" - they're requirements for basic correctness.
69
-
70
- ---
71
-
72
- **RULE 3: Auto-fix blocking issues**
73
-
74
- **Trigger:** Something prevents you from completing current task
75
-
76
- **Action:** Fix immediately to unblock, track for Summary
77
-
78
- **Examples:**
79
-
80
- - Missing dependency (package not installed, import fails)
81
- - Wrong types blocking compilation
82
- - Broken import paths (file moved, wrong relative path)
83
- - Missing environment variable (app won't start)
84
- - Database connection config error
85
- - Build configuration error (webpack, tsconfig, etc.)
86
- - Missing file referenced in code
87
- - Circular dependency blocking module resolution
88
-
89
- **Process:**
90
-
91
- 1. Fix the blocking issue
92
- 2. Verify task can now proceed
93
- 3. Continue task
94
- 4. Track in deviations list: `[Rule 3 - Blocking] [description]`
95
-
96
- **No user permission needed.** Can't complete task without fixing blocker.
97
-
98
- ---
99
-
100
- **RULE 4: Ask about architectural changes**
101
-
102
- **Trigger:** Fix/addition requires significant structural modification
103
-
104
- **Action:** STOP, present to user, wait for decision
105
-
106
- **Examples:**
107
-
108
- - Adding new database table (not just column)
109
- - Major schema changes (changing primary key, splitting tables)
110
- - Introducing new service layer or architectural pattern
111
- - Switching libraries/frameworks (React → Vue, REST → GraphQL)
112
- - Changing authentication approach (sessions → JWT)
113
- - Adding new infrastructure (message queue, cache layer, CDN)
114
- - Changing API contracts (breaking changes to endpoints)
115
- - Adding new deployment environment
116
-
117
- **Process:**
118
-
119
- 1. STOP current task
120
- 2. Present clearly:
121
-
122
- ```
123
- ⚠️ Architectural Decision Needed
124
-
125
- Current task: [task name]
126
- Discovery: [what you found that prompted this]
127
- Proposed change: [architectural modification]
128
- Why needed: [rationale]
129
- Impact: [what this affects - APIs, deployment, dependencies, etc.]
130
- Alternatives: [other approaches, or "none apparent"]
131
-
132
- Proceed with proposed change? (yes / different approach / defer)
133
- ```
134
-
135
- 3. WAIT for user response
136
- 4. If approved: implement, track as `[Rule 4 - Architectural] [description]`
137
- 5. If different approach: discuss and implement
138
- 6. If deferred: note in Summary and continue without change
139
-
140
- **User decision required.** These changes affect system design.
141
-
142
- ---
143
-
144
- ## Rule Priority
145
-
146
- When multiple rules could apply:
147
-
148
- 1. **If Rule 4 applies** → STOP and ask (architectural decision)
149
- 2. **If Rules 1-3 apply** → Fix automatically, track for Summary
150
- 3. **If genuinely unsure which rule** → Apply Rule 4 (ask user)
151
-
152
- **Edge case guidance:**
153
-
154
- - "This validation is missing" → Rule 2 (critical for security)
155
- - "This crashes on null" → Rule 1 (bug)
156
- - "Need to add table" → Rule 4 (architectural)
157
- - "Need to add column" → Rule 1 or 2 (depends: fixing bug or adding critical field)
158
-
159
- **When in doubt:** Ask yourself "Does this affect correctness, security, or ability to complete task?"
160
-
161
- - YES → Rules 1-3 (fix automatically)
162
- - MAYBE → Rule 4 (ask user)
163
-
164
- ---
165
-
166
- ## Documenting Deviations in Summary
167
-
168
- After all tasks complete, Summary MUST include deviations section.
169
-
170
- **If no deviations:**
171
-
172
- ```markdown
173
- ## Deviations from Plan
174
-
175
- None - plan executed exactly as written.
176
- ```
177
-
178
- **If deviations occurred:**
179
-
180
- ```markdown
181
- ## Deviations from Plan
182
-
183
- ### Auto-fixed Issues
184
-
185
- **1. [Rule 1 - Bug] Fixed case-sensitive email uniqueness constraint**
186
-
187
- - **Found during:** Task 4 (Follow/unfollow API implementation)
188
- - **Issue:** User.email unique constraint was case-sensitive - Test@example.com and test@example.com were both allowed, causing duplicate accounts
189
- - **Fix:** Changed to `CREATE UNIQUE INDEX users_email_unique ON users (LOWER(email))`
190
- - **Files modified:** src/models/User.ts, migrations/003_fix_email_unique.sql
191
- - **Verification:** Unique constraint test passes - duplicate emails properly rejected
192
- - **Commit:** abc123f
193
-
194
- **2. [Rule 2 - Missing Critical] Added JWT expiry validation to auth middleware**
195
-
196
- - **Found during:** Task 3 (Protected route implementation)
197
- - **Issue:** Auth middleware wasn't checking token expiry - expired tokens were being accepted
198
- - **Fix:** Added exp claim validation in middleware, reject with 401 if expired
199
- - **Files modified:** src/middleware/auth.ts, src/middleware/auth.test.ts
200
- - **Verification:** Expired token test passes - properly rejects with 401
201
- - **Commit:** def456g
202
-
203
- ---
204
-
205
- **Total deviations:** 4 auto-fixed (1 bug, 1 missing critical, 1 blocking, 1 architectural with approval)
206
- **Impact on plan:** All auto-fixes necessary for correctness/security/performance. No scope creep.
207
- ```
208
-
209
- **This provides complete transparency:**
210
-
211
- - Every deviation documented
212
- - Why it was needed
213
- - What rule applied
214
- - What was done
215
- - User can see exactly what happened beyond the plan