@lifeaitools/rdc-skills 0.9.33 → 0.9.34

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 (49) hide show
  1. package/.claude-plugin/plugin.json +2 -1
  2. package/.github/workflows/self-test.yml +34 -34
  3. package/commands/build.md +181 -181
  4. package/commands/collab.md +180 -180
  5. package/commands/deploy.md +152 -152
  6. package/commands/fixit.md +105 -105
  7. package/commands/handoff.md +173 -173
  8. package/commands/overnight.md +220 -220
  9. package/commands/plan.md +158 -158
  10. package/commands/preplan.md +131 -131
  11. package/commands/prototype.md +145 -145
  12. package/commands/report.md +99 -99
  13. package/commands/review.md +120 -120
  14. package/commands/status.md +86 -86
  15. package/commands/workitems.md +127 -127
  16. package/guides/agent-bootstrap.md +206 -202
  17. package/guides/agents/backend.md +102 -102
  18. package/guides/agents/content.md +94 -94
  19. package/guides/agents/cs2.md +56 -56
  20. package/guides/agents/data.md +86 -86
  21. package/guides/agents/design.md +77 -77
  22. package/guides/agents/frontend.md +91 -91
  23. package/guides/agents/infrastructure.md +81 -81
  24. package/guides/agents/setup.md +280 -278
  25. package/guides/agents/verify.md +119 -119
  26. package/guides/agents/viz.md +106 -106
  27. package/guides/engineering-behavior.md +43 -0
  28. package/package.json +2 -2
  29. package/scripts/install-rdc-skills.js +22 -0
  30. package/scripts/self-test.mjs +1337 -1323
  31. package/skills/build/SKILL.md +359 -355
  32. package/skills/collab/SKILL.md +217 -217
  33. package/skills/deploy/SKILL.md +198 -198
  34. package/skills/design/SKILL.md +211 -211
  35. package/skills/fixit/SKILL.md +136 -132
  36. package/skills/fs-mcp/SKILL.md +131 -0
  37. package/skills/handoff/SKILL.md +200 -200
  38. package/skills/help/SKILL.md +104 -104
  39. package/skills/overnight/SKILL.md +224 -224
  40. package/skills/plan/SKILL.md +252 -252
  41. package/skills/preplan/SKILL.md +86 -86
  42. package/skills/prototype/SKILL.md +150 -150
  43. package/skills/release/SKILL.md +342 -342
  44. package/skills/report/SKILL.md +100 -100
  45. package/skills/review/SKILL.md +122 -121
  46. package/skills/self-test/SKILL.md +126 -126
  47. package/skills/status/SKILL.md +99 -99
  48. package/skills/watch/SKILL.md +91 -91
  49. package/skills/workitems/SKILL.md +151 -151
@@ -1,224 +1,224 @@
1
- ---
2
- name: rdc:overnight
3
- description: "Usage `rdc:overnight [epic-id|label=<label>]` — Unattended end-to-end: drain the entire work queue autonomously (preplan → plan → build → review → report). Use when leaving Claude to run unsupervised for an extended session."
4
- ---
5
-
6
- > **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
7
- > Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
8
- > One checklist upfront, updated in place, shown again at end with a 1-line verdict.
9
-
10
- > If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
11
-
12
- > **Sandbox contract:** This skill honors `RDC_TEST=1` per `guides/agent-bootstrap.md` § RDC_TEST Sandbox Contract. Destructive external calls short-circuit under the flag.
13
-
14
-
15
- # rdc:overnight — Overnight Build Supervisor
16
-
17
- ## When to Use
18
- - Starting an unattended multi-hour build session
19
- - Project lead says "run overnight", "build everything", "go while I sleep"
20
- - Kicking off a full epic queue after scoping is agreed
21
-
22
- ## Arguments
23
- - `/rdc:overnight` — work all urgent/high priority todo epics
24
- - `/rdc:overnight <epic-id>` — work a specific epic only
25
- - `/rdc:overnight label=<label>` — work epics matching label
26
-
27
- ## Phase 1 — Pre-flight
28
-
29
- **First action — set the overnight sentinel** so the `no-stop-open-epics` Stop hook engages (interactive sessions are not gated by it):
30
-
31
- ```bash
32
- mkdir -p {PROJECT_ROOT}/.rdc && touch {PROJECT_ROOT}/.rdc/overnight.lock
33
- ```
34
-
35
- **Last action at end of run (success OR failure) — remove the sentinel:**
36
-
37
- ```bash
38
- rm -f {PROJECT_ROOT}/.rdc/overnight.lock
39
- ```
40
-
41
- If the sentinel file does not exist, the Stop hook will NOT block — which means interactive sessions stop freely and only `rdc:overnight` is held to the "drain the queue" contract.
42
-
43
- Before touching any code, verify the environment is safe:
44
-
45
- 1. **Clauth daemon alive:**
46
- ```bash
47
- curl -s http://127.0.0.1:52437/ping
48
- ```
49
- If not responding: report `BLOCKED: credential daemon offline` and exit. Do not proceed.
50
-
51
- 2. **Git state clean:**
52
- ```bash
53
- git status --short
54
- ```
55
- Must be on the development branch with no uncommitted changes. If dirty: commit or stash first.
56
-
57
- 3. **Baseline review:**
58
- Run `rdc:review --unattended`. If `REVIEW_STATUS.verdict = "HAS_ISSUES"` and
59
- issues cannot be auto-fixed: report `BLOCKED: codebase has pre-existing issues` and exit.
60
- A dirty baseline overnight compounds into a disaster by morning.
61
-
62
- If all three pass: proceed to Phase 2.
63
-
64
- ## Phase 2 — Load Scope
65
-
66
- Determine which epics to work:
67
-
68
- - **Specific epic arg:** load that one epic via `get_work_items_by_epic()`
69
- - **Label filter:** `SELECT get_open_epics(p_label_filter := '<label>')`
70
- - **No arg (default):** `SELECT get_open_epics()` filtered to:
71
- - `priority IN ('urgent', 'high')`
72
- - `status IN ('todo', 'in_progress')`
73
- - Order: urgent first, then high, then by `created_at`
74
-
75
- Log the epic queue at the start of `.rdc/reports/overnight-<YYYY-MM-DD>.md` (fallback: `.rdc/reports/overnight-<YYYY-MM-DD>.md` if `.rdc/` does not exist).
76
-
77
- ## Phase 3 — Epic Loop
78
-
79
- ### Targeted vs. queue mode
80
-
81
- - **Targeted (`rdc:overnight <epic-id>`):** work that one epic only. When it completes, remove the sentinel and exit — do NOT poll for more epics.
82
- - **Queue mode (`rdc:overnight` no args or `label=X`):** drain all matching epics sequentially.
83
-
84
- For each epic in the queue, run this sequence:
85
-
86
- ### 3a. Research (if needed)
87
- Condition: epic has 0 child tasks AND no matching doc in `.rdc/plans/` (or `.rdc/plans/` as fallback)
88
-
89
- ```
90
- rdc:preplan <topic> --unattended
91
- ```
92
-
93
- Check `PREPLAN_STATUS.recommendation_confidence`:
94
- - `"high"` or `"medium"`: proceed
95
- - `"low"`: escalate via advisor tool (see Escalation Protocol below)
96
- - If advisor gives direction: proceed with that direction
97
- - If advisor cannot resolve: skip this epic, log reason, move to next
98
-
99
- ### 3b. Plan (if no tasks exist)
100
- Condition: epic has 0 child tasks after preplan
101
-
102
- ```
103
- rdc:plan <epic-id> --unattended
104
- ```
105
-
106
- Check `PLAN_STATUS.task_count > 0` before continuing.
107
- If 0 tasks created: escalate via advisor, then skip if still unresolved.
108
-
109
- ### 3c. Build
110
-
111
- This skill delegates to rdc:build which uses typed agent dispatch. See rdc:build for agent type classification.
112
-
113
- ```
114
- rdc:build <epic-id> --unattended
115
- ```
116
-
117
- Agents receive the relevant guide file from `.rdc/guides/` (fallback: `.rdc/guides/`) based on their work package type.
118
-
119
- After each wave: check `BUILD_STATUS`. If `escalated: true`, log the escalation
120
- in the overnight doc and continue — don't stop the loop.
121
-
122
- ### 3d. Review
123
-
124
- ```
125
- rdc:review --unattended
126
- ```
127
-
128
- Check `REVIEW_STATUS.verdict`:
129
- - `"CLEAN"`: mark epic `done` in work_items, push, continue to next epic
130
- - `"HAS_ISSUES"` with `escalations > 0`: log issues, push what's clean, continue
131
- - `"HAS_ISSUES"` with `escalations = 0` (all auto-fixed): push, continue
132
-
133
- ### 3e. Commit checkpoint
134
-
135
- After each epic (pass or fail):
136
- ```bash
137
- if [ "$RDC_TEST" != "1" ]; then
138
- git push origin {development-branch}
139
- else
140
- echo "[RDC_TEST] skipping git push origin {development-branch}"
141
- fi
142
- ```
143
-
144
- This ensures every epic's work is saved regardless of what comes next.
145
-
146
- ## Phase 4 — Exit
147
-
148
- After all epics are processed:
149
-
150
- 1. Run `rdc:report --unattended`
151
-
152
- 2. Write session summary to `.rdc/reports/overnight-<YYYY-MM-DD>.md` (fallback: `.rdc/reports/overnight-<YYYY-MM-DD>.md`):
153
- ```markdown
154
- # Overnight Session — YYYY-MM-DD
155
-
156
- ## Started
157
- <timestamp>
158
-
159
- ## Epics Attempted
160
- | Epic | Status | Tasks Done | Commits |
161
-
162
- ## Epics Completed
163
- <list with epic IDs>
164
-
165
- ## Escalations
166
- N advisor calls — details:
167
- - <epic>: <what was escalated> → <advisor response>
168
-
169
- ## Blockers Remaining
170
- <any epics skipped or partially done>
171
-
172
- ## Git Summary
173
- - Total commits: N
174
- - Push status: ✅
175
-
176
- ## Completed
177
- <timestamp>
178
- ```
179
-
180
- 3. Final push:
181
- ```bash
182
- if [ "$RDC_TEST" != "1" ]; then
183
- git push origin {development-branch}
184
- else
185
- echo "[RDC_TEST] skipping final git push origin {development-branch}"
186
- fi
187
- ```
188
-
189
- ## Escalation Protocol
190
-
191
- The advisor tool pairs this executor with a high-level model for high-stakes decisions.
192
- Use it when genuinely stuck — not for every small uncertainty.
193
-
194
- **Escalation triggers:**
195
- - `PREPLAN_STATUS.recommendation_confidence = "low"` (too many unknowns)
196
- - `PLAN_STATUS.task_count = 0` after planning (nothing actionable)
197
- - Build agent fails twice on the same task
198
- - `REVIEW_STATUS` has unfixable issues requiring architectural judgment
199
- - Credential daemon goes down mid-session (escalate before exiting)
200
-
201
- **How to escalate:**
202
- Provide the advisor with:
203
- 1. What was attempted and what failed
204
- 2. The error or ambiguity in detail
205
- 3. Two most likely paths forward with tradeoffs
206
- 4. Which epic/task is blocked
207
-
208
- **After advisor responds:**
209
- - Log the guidance in the overnight doc
210
- - Resume the loop from where it stopped
211
- - If advisor cannot resolve: mark task/epic `blocked`, log reason, skip to next
212
-
213
- **Max escalations:** 3 per epic. After 3, skip the epic and log.
214
-
215
- ## Safety Rules
216
-
217
- - Branch: development branch always — NEVER touch main/production
218
- - NEVER run `pnpm build` — use `npx tsc --noEmit` for typecheck, vitest for tests only on modified packages
219
- - NEVER let agents overlap on the same files
220
- - Push after every epic, not just at the end
221
- - Update Supabase work items in real time throughout
222
- - Max 2 hours per epic — if exceeded, skip and log `TIMEOUT`
223
- - If credential daemon goes down mid-session: write current state to overnight doc, push, exit gracefully
224
- - If git push fails: log the failure, attempt rebase, retry once — do not force push
1
+ ---
2
+ name: rdc:overnight
3
+ description: "Usage `rdc:overnight [epic-id|label=<label>]` — Unattended end-to-end: drain the entire work queue autonomously (preplan → plan → build → review → report). Use when leaving Claude to run unsupervised for an extended session."
4
+ ---
5
+
6
+ > **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
7
+ > Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
8
+ > One checklist upfront, updated in place, shown again at end with a 1-line verdict.
9
+
10
+ > If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
11
+
12
+ > **Sandbox contract:** This skill honors `RDC_TEST=1` per `guides/agent-bootstrap.md` § RDC_TEST Sandbox Contract. Destructive external calls short-circuit under the flag.
13
+
14
+
15
+ # rdc:overnight — Overnight Build Supervisor
16
+
17
+ ## When to Use
18
+ - Starting an unattended multi-hour build session
19
+ - Project lead says "run overnight", "build everything", "go while I sleep"
20
+ - Kicking off a full epic queue after scoping is agreed
21
+
22
+ ## Arguments
23
+ - `/rdc:overnight` — work all urgent/high priority todo epics
24
+ - `/rdc:overnight <epic-id>` — work a specific epic only
25
+ - `/rdc:overnight label=<label>` — work epics matching label
26
+
27
+ ## Phase 1 — Pre-flight
28
+
29
+ **First action — set the overnight sentinel** so the `no-stop-open-epics` Stop hook engages (interactive sessions are not gated by it):
30
+
31
+ ```bash
32
+ mkdir -p {PROJECT_ROOT}/.rdc && touch {PROJECT_ROOT}/.rdc/overnight.lock
33
+ ```
34
+
35
+ **Last action at end of run (success OR failure) — remove the sentinel:**
36
+
37
+ ```bash
38
+ rm -f {PROJECT_ROOT}/.rdc/overnight.lock
39
+ ```
40
+
41
+ If the sentinel file does not exist, the Stop hook will NOT block — which means interactive sessions stop freely and only `rdc:overnight` is held to the "drain the queue" contract.
42
+
43
+ Before touching any code, verify the environment is safe:
44
+
45
+ 1. **Clauth daemon alive:**
46
+ ```bash
47
+ curl -s http://127.0.0.1:52437/ping
48
+ ```
49
+ If not responding: report `BLOCKED: credential daemon offline` and exit. Do not proceed.
50
+
51
+ 2. **Git state clean:**
52
+ ```bash
53
+ git status --short
54
+ ```
55
+ Must be on the development branch with no uncommitted changes. If dirty: commit or stash first.
56
+
57
+ 3. **Baseline review:**
58
+ Run `rdc:review --unattended`. If `REVIEW_STATUS.verdict = "HAS_ISSUES"` and
59
+ issues cannot be auto-fixed: report `BLOCKED: codebase has pre-existing issues` and exit.
60
+ A dirty baseline overnight compounds into a disaster by morning.
61
+
62
+ If all three pass: proceed to Phase 2.
63
+
64
+ ## Phase 2 — Load Scope
65
+
66
+ Determine which epics to work:
67
+
68
+ - **Specific epic arg:** load that one epic via `get_work_items_by_epic()`
69
+ - **Label filter:** `SELECT get_open_epics(p_label_filter := '<label>')`
70
+ - **No arg (default):** `SELECT get_open_epics()` filtered to:
71
+ - `priority IN ('urgent', 'high')`
72
+ - `status IN ('todo', 'in_progress')`
73
+ - Order: urgent first, then high, then by `created_at`
74
+
75
+ Log the epic queue at the start of `.rdc/reports/overnight-<YYYY-MM-DD>.md` (fallback: `.rdc/reports/overnight-<YYYY-MM-DD>.md` if `.rdc/` does not exist).
76
+
77
+ ## Phase 3 — Epic Loop
78
+
79
+ ### Targeted vs. queue mode
80
+
81
+ - **Targeted (`rdc:overnight <epic-id>`):** work that one epic only. When it completes, remove the sentinel and exit — do NOT poll for more epics.
82
+ - **Queue mode (`rdc:overnight` no args or `label=X`):** drain all matching epics sequentially.
83
+
84
+ For each epic in the queue, run this sequence:
85
+
86
+ ### 3a. Research (if needed)
87
+ Condition: epic has 0 child tasks AND no matching doc in `.rdc/plans/` (or `.rdc/plans/` as fallback)
88
+
89
+ ```
90
+ rdc:preplan <topic> --unattended
91
+ ```
92
+
93
+ Check `PREPLAN_STATUS.recommendation_confidence`:
94
+ - `"high"` or `"medium"`: proceed
95
+ - `"low"`: escalate via advisor tool (see Escalation Protocol below)
96
+ - If advisor gives direction: proceed with that direction
97
+ - If advisor cannot resolve: skip this epic, log reason, move to next
98
+
99
+ ### 3b. Plan (if no tasks exist)
100
+ Condition: epic has 0 child tasks after preplan
101
+
102
+ ```
103
+ rdc:plan <epic-id> --unattended
104
+ ```
105
+
106
+ Check `PLAN_STATUS.task_count > 0` before continuing.
107
+ If 0 tasks created: escalate via advisor, then skip if still unresolved.
108
+
109
+ ### 3c. Build
110
+
111
+ This skill delegates to rdc:build which uses typed agent dispatch. See rdc:build for agent type classification.
112
+
113
+ ```
114
+ rdc:build <epic-id> --unattended
115
+ ```
116
+
117
+ Agents receive the relevant guide file from `.rdc/guides/` (fallback: `.rdc/guides/`) based on their work package type.
118
+
119
+ After each wave: check `BUILD_STATUS`. If `escalated: true`, log the escalation
120
+ in the overnight doc and continue — don't stop the loop.
121
+
122
+ ### 3d. Review
123
+
124
+ ```
125
+ rdc:review --unattended
126
+ ```
127
+
128
+ Check `REVIEW_STATUS.verdict`:
129
+ - `"CLEAN"`: mark epic `done` in work_items, push, continue to next epic
130
+ - `"HAS_ISSUES"` with `escalations > 0`: log issues, push what's clean, continue
131
+ - `"HAS_ISSUES"` with `escalations = 0` (all auto-fixed): push, continue
132
+
133
+ ### 3e. Commit checkpoint
134
+
135
+ After each epic (pass or fail):
136
+ ```bash
137
+ if [ "$RDC_TEST" != "1" ]; then
138
+ git push origin {development-branch}
139
+ else
140
+ echo "[RDC_TEST] skipping git push origin {development-branch}"
141
+ fi
142
+ ```
143
+
144
+ This ensures every epic's work is saved regardless of what comes next.
145
+
146
+ ## Phase 4 — Exit
147
+
148
+ After all epics are processed:
149
+
150
+ 1. Run `rdc:report --unattended`
151
+
152
+ 2. Write session summary to `.rdc/reports/overnight-<YYYY-MM-DD>.md` (fallback: `.rdc/reports/overnight-<YYYY-MM-DD>.md`):
153
+ ```markdown
154
+ # Overnight Session — YYYY-MM-DD
155
+
156
+ ## Started
157
+ <timestamp>
158
+
159
+ ## Epics Attempted
160
+ | Epic | Status | Tasks Done | Commits |
161
+
162
+ ## Epics Completed
163
+ <list with epic IDs>
164
+
165
+ ## Escalations
166
+ N advisor calls — details:
167
+ - <epic>: <what was escalated> → <advisor response>
168
+
169
+ ## Blockers Remaining
170
+ <any epics skipped or partially done>
171
+
172
+ ## Git Summary
173
+ - Total commits: N
174
+ - Push status: ✅
175
+
176
+ ## Completed
177
+ <timestamp>
178
+ ```
179
+
180
+ 3. Final push:
181
+ ```bash
182
+ if [ "$RDC_TEST" != "1" ]; then
183
+ git push origin {development-branch}
184
+ else
185
+ echo "[RDC_TEST] skipping final git push origin {development-branch}"
186
+ fi
187
+ ```
188
+
189
+ ## Escalation Protocol
190
+
191
+ The advisor tool pairs this executor with a high-level model for high-stakes decisions.
192
+ Use it when genuinely stuck — not for every small uncertainty.
193
+
194
+ **Escalation triggers:**
195
+ - `PREPLAN_STATUS.recommendation_confidence = "low"` (too many unknowns)
196
+ - `PLAN_STATUS.task_count = 0` after planning (nothing actionable)
197
+ - Build agent fails twice on the same task
198
+ - `REVIEW_STATUS` has unfixable issues requiring architectural judgment
199
+ - Credential daemon goes down mid-session (escalate before exiting)
200
+
201
+ **How to escalate:**
202
+ Provide the advisor with:
203
+ 1. What was attempted and what failed
204
+ 2. The error or ambiguity in detail
205
+ 3. Two most likely paths forward with tradeoffs
206
+ 4. Which epic/task is blocked
207
+
208
+ **After advisor responds:**
209
+ - Log the guidance in the overnight doc
210
+ - Resume the loop from where it stopped
211
+ - If advisor cannot resolve: mark task/epic `blocked`, log reason, skip to next
212
+
213
+ **Max escalations:** 3 per epic. After 3, skip the epic and log.
214
+
215
+ ## Safety Rules
216
+
217
+ - Branch: development branch always — NEVER touch main/production
218
+ - NEVER run `pnpm build` — use `npx tsc --noEmit` for typecheck, vitest for tests only on modified packages
219
+ - NEVER let agents overlap on the same files
220
+ - Push after every epic, not just at the end
221
+ - Update Supabase work items in real time throughout
222
+ - Max 2 hours per epic — if exceeded, skip and log `TIMEOUT`
223
+ - If credential daemon goes down mid-session: write current state to overnight doc, push, exit gracefully
224
+ - If git push fails: log the failure, attempt rebase, retry once — do not force push