@lifeaitools/rdc-skills 0.24.7 → 0.24.9

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