get-shit-done-cc 1.9.13 → 1.10.0-experimental.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 +8 -0
- package/agents/design-specialist.md +222 -0
- package/agents/gsd-executor.md +37 -375
- package/agents/gsd-planner.md +15 -108
- package/bin/install.js +92 -5
- package/commands/gsd/autopilot.md +518 -0
- package/commands/gsd/checkpoints.md +229 -0
- package/commands/gsd/design-system.md +70 -0
- package/commands/gsd/discuss-design.md +77 -0
- package/commands/gsd/extend.md +80 -0
- package/commands/gsd/help.md +43 -0
- package/commands/gsd/new-project.md +94 -8
- package/commands/gsd/plan-phase.md +35 -5
- package/get-shit-done/references/ccr-integration.md +468 -0
- package/get-shit-done/references/checkpoint-execution.md +369 -0
- package/get-shit-done/references/checkpoint-types.md +728 -0
- package/get-shit-done/references/deviation-rules.md +215 -0
- package/get-shit-done/references/framework-patterns.md +543 -0
- package/get-shit-done/references/ui-principles.md +258 -0
- package/get-shit-done/references/verification-patterns.md +1 -1
- package/get-shit-done/skills/gsd-extend/SKILL.md +154 -0
- package/get-shit-done/skills/gsd-extend/references/agent-structure.md +305 -0
- package/get-shit-done/skills/gsd-extend/references/extension-anatomy.md +123 -0
- package/get-shit-done/skills/gsd-extend/references/reference-structure.md +408 -0
- package/get-shit-done/skills/gsd-extend/references/template-structure.md +370 -0
- package/get-shit-done/skills/gsd-extend/references/validation-rules.md +140 -0
- package/get-shit-done/skills/gsd-extend/references/workflow-structure.md +253 -0
- package/get-shit-done/skills/gsd-extend/templates/agent-template.md +234 -0
- package/get-shit-done/skills/gsd-extend/templates/reference-template.md +239 -0
- package/get-shit-done/skills/gsd-extend/templates/workflow-template.md +169 -0
- package/get-shit-done/skills/gsd-extend/workflows/create-approach.md +332 -0
- package/get-shit-done/skills/gsd-extend/workflows/list-extensions.md +133 -0
- package/get-shit-done/skills/gsd-extend/workflows/remove-extension.md +93 -0
- package/get-shit-done/skills/gsd-extend/workflows/validate-extension.md +184 -0
- package/get-shit-done/templates/autopilot-script-simple.sh +181 -0
- package/get-shit-done/templates/autopilot-script.sh +1142 -0
- package/get-shit-done/templates/autopilot-script.sh.backup +1142 -0
- package/get-shit-done/templates/design-system.md +238 -0
- package/get-shit-done/templates/phase-design.md +205 -0
- package/get-shit-done/templates/phase-models-template.json +71 -0
- package/get-shit-done/templates/phase-prompt.md +4 -4
- package/get-shit-done/templates/state.md +37 -0
- package/get-shit-done/tui/App.tsx +169 -0
- package/get-shit-done/tui/README.md +107 -0
- package/get-shit-done/tui/build.js +37 -0
- package/get-shit-done/tui/components/ActivityFeed.tsx +126 -0
- package/get-shit-done/tui/components/PhaseCard.tsx +86 -0
- package/get-shit-done/tui/components/StatsBar.tsx +147 -0
- package/get-shit-done/tui/dist/index.js +387 -0
- package/get-shit-done/tui/index.tsx +12 -0
- package/get-shit-done/tui/package-lock.json +1074 -0
- package/get-shit-done/tui/package.json +22 -0
- package/get-shit-done/tui/utils/pipeReader.ts +129 -0
- package/get-shit-done/workflows/design-system.md +245 -0
- package/get-shit-done/workflows/discuss-design.md +330 -0
- package/get-shit-done/workflows/execute-phase.md +44 -1
- package/get-shit-done/workflows/execute-plan-auth.md +122 -0
- package/get-shit-done/workflows/execute-plan-checkpoints.md +541 -0
- package/get-shit-done/workflows/execute-plan.md +34 -856
- package/package.json +8 -3
|
@@ -0,0 +1,215 @@
|
|
|
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
|