@lifeaitools/rdc-skills 0.25.10 → 0.26.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 (77) hide show
  1. package/.claude-plugin/plugin.json +1608 -1551
  2. package/.github/workflows/self-test.yml +34 -34
  3. package/CHANGELOG.md +332 -319
  4. package/MANIFEST.md +224 -224
  5. package/README.md +368 -367
  6. package/RELEASE.md +50 -45
  7. package/bin/rdc-skills-mcp.mjs +1 -1
  8. package/commands/build.md +181 -181
  9. package/commands/collab.md +180 -180
  10. package/commands/deploy.md +173 -148
  11. package/commands/fixit.md +150 -150
  12. package/commands/handoff.md +173 -173
  13. package/commands/overnight.md +220 -220
  14. package/commands/plan.md +158 -158
  15. package/commands/preplan.md +131 -131
  16. package/commands/prototype.md +145 -145
  17. package/commands/report.md +99 -99
  18. package/commands/review.md +120 -120
  19. package/commands/status.md +86 -86
  20. package/commands/workitems.md +127 -127
  21. package/deploy/install-systemd.sh +16 -0
  22. package/deploy/systemd/rdc-skills-mcp.service +19 -0
  23. package/git-sha.json +1 -1
  24. package/guides/agent-bootstrap.md +195 -195
  25. package/guides/agents/backend.md +102 -102
  26. package/guides/agents/content.md +94 -94
  27. package/guides/agents/cs2.md +56 -56
  28. package/guides/agents/data.md +86 -86
  29. package/guides/agents/design.md +77 -77
  30. package/guides/agents/frontend.md +91 -91
  31. package/guides/agents/infrastructure.md +81 -81
  32. package/guides/agents/setup.md +272 -272
  33. package/guides/agents/verify.md +119 -119
  34. package/guides/agents/viz.md +106 -106
  35. package/guides/orchestration-epic.md +17 -0
  36. package/hooks/check-rdc-environment.js +172 -378
  37. package/hooks/lib/box-lock.js +4 -5
  38. package/package.json +1 -2
  39. package/scripts/install-rdc-skills.js +19 -264
  40. package/scripts/probe-installed-hooks.mjs +2 -2
  41. package/scripts/self-test.mjs +1459 -1459
  42. package/scripts/validate-publish-manifests.js +502 -502
  43. package/skills/build/SKILL.md +662 -578
  44. package/skills/channel-formatter/SKILL.md +538 -538
  45. package/skills/collab/SKILL.md +239 -239
  46. package/skills/convert/SKILL.md +138 -138
  47. package/skills/deploy/SKILL.md +583 -541
  48. package/skills/design/SKILL.md +205 -205
  49. package/skills/env/SKILL.md +146 -139
  50. package/skills/fixit/SKILL.md +203 -203
  51. package/skills/handoff/SKILL.md +236 -236
  52. package/skills/housekeeping/SKILL.md +189 -189
  53. package/skills/onramp/SKILL.md +1459 -1459
  54. package/skills/overnight/SKILL.md +251 -251
  55. package/skills/plan/SKILL.md +345 -345
  56. package/skills/preplan/SKILL.md +90 -90
  57. package/skills/prototype/SKILL.md +150 -150
  58. package/skills/refactor/SKILL.md +51 -0
  59. package/skills/regen-media/SKILL.md +94 -94
  60. package/skills/release/SKILL.md +140 -140
  61. package/skills/report/SKILL.md +100 -100
  62. package/skills/review/SKILL.md +151 -151
  63. package/skills/self-test/SKILL.md +108 -108
  64. package/skills/status/SKILL.md +99 -99
  65. package/skills/tests/MATRIX.md +59 -55
  66. package/skills/tests/README.md +1 -1
  67. package/skills/tests/onramp.test.json +101 -87
  68. package/skills/tests/rdc-env.test.json +12 -0
  69. package/skills/tests/rdc-new-model.test.json +12 -0
  70. package/skills/tests/rdc-refactor.test.json +29 -0
  71. package/skills/tests/rdc-regen-media.test.json +29 -29
  72. package/skills/watch/SKILL.md +84 -84
  73. package/skills/workitems/SKILL.md +151 -151
  74. package/tests/no-local-pm2.test.mjs +45 -0
  75. package/scripts/local-install-with-stop.sh +0 -41
  76. package/scripts/probe-lock-holders.mjs +0 -36
  77. package/scripts/rebuild-mcp.mjs +0 -107
@@ -1,87 +1,101 @@
1
- {
2
- "skill": "rdc:onramp",
3
- "description": "Tier-2 self-test for rdc:onramp enrollment skill",
4
- "tier": 2,
5
- "sandbox": true,
6
- "env": {
7
- "RDC_TEST": "1"
8
- },
9
- "invocation": {
10
- "slug": "onramp-selftest",
11
- "name": "Onramp Self Test",
12
- "flags": ["--archetype", "working-landscapes", "--dry-run"]
13
- },
14
- "assertions": [
15
- {
16
- "type": "exit_code",
17
- "expect": 0,
18
- "description": "Skill exits cleanly under RDC_TEST with --dry-run"
19
- },
20
- {
21
- "type": "stdout_contains",
22
- "pattern": "Preflight",
23
- "description": "Checklist begins with Preflight step"
24
- },
25
- {
26
- "type": "stdout_contains",
27
- "pattern": "Resolve drift",
28
- "description": "Drift resolution step is emitted"
29
- },
30
- {
31
- "type": "stdout_contains",
32
- "pattern": "\\[RDC_TEST\\]",
33
- "description": "Sandbox short-circuit marker present — confirms external calls were skipped"
34
- },
35
- {
36
- "type": "file_absent",
37
- "path": "places/onramp-selftest/_context.md",
38
- "description": "Scaffolder MUST NOT write _context.md — projection-drift violation gate"
39
- }
40
- ],
41
- "door_contracts": [
42
- {
43
- "name": "enroll_place_signature",
44
- "description": "enroll_place RPC must accept (text, text, jsonb, text) and return jsonb",
45
- "type": "rpc_introspection",
46
- "project_id": "uvojezuorjgqzmhhgluu",
47
- "query": "SELECT p.proname, pg_get_function_identity_arguments(p.oid) AS args, pg_get_function_result(p.oid) AS returns FROM pg_proc p WHERE p.proname = 'enroll_place';",
48
- "expect_args_contains": ["text", "jsonb"],
49
- "expect_returns": "jsonb"
50
- },
51
- {
52
- "name": "insert_work_item_accepts_project_node_id",
53
- "description": "insert_work_item must accept p_project_node_id parameter",
54
- "type": "rpc_introspection",
55
- "project_id": "uvojezuorjgqzmhhgluu",
56
- "query": "SELECT proname, pg_get_function_identity_arguments(oid) FROM pg_proc WHERE proname = 'insert_work_item';",
57
- "expect_args_contains": ["p_project_node_id"]
58
- }
59
- ],
60
- "disk_ahead_test": {
61
- "description": "disk-ahead state must STOP and open a reconciliation work item",
62
- "setup": "mkdir -p places/disk-ahead-test",
63
- "invocation_slug": "disk-ahead-test",
64
- "invocation_name": "Disk Ahead Test",
65
- "assertions": [
66
- {
67
- "type": "stdout_contains",
68
- "pattern": "disk-ahead",
69
- "description": "Skill identifies the disk-ahead state"
70
- },
71
- {
72
- "type": "stdout_contains",
73
- "pattern": "STOP",
74
- "description": "Skill STOPs on disk-ahead"
75
- },
76
- {
77
- "type": "exit_nonzero",
78
- "description": "Skill exits non-zero on disk-ahead (not a clean enrollment)"
79
- }
80
- ],
81
- "teardown": "rmdir places/disk-ahead-test 2>/dev/null || true"
82
- },
83
- "idempotency_test": {
84
- "description": "Running rdc:onramp twice for already-enrolled should produce zero new writes",
85
- "note": "Under RDC_TEST=1 this is verified by checking that [RDC_TEST] skipping markers appear (not real insert calls) and the checklist reports already-enrolled"
86
- }
87
- }
1
+ {
2
+ "manifest_version": 1,
3
+ "skill": "rdc:onramp",
4
+ "description": "Tier-2 self-test for rdc:onramp enrollment skill",
5
+ "tier": 2,
6
+ "sandbox": true,
7
+ "env": {
8
+ "RDC_TEST": "1"
9
+ },
10
+ "invocation": {
11
+ "slug": "onramp-selftest",
12
+ "name": "Onramp Self Test",
13
+ "flags": ["--archetype", "working-landscapes", "--dry-run"]
14
+ },
15
+ "fixture": {
16
+ "prompt": "rdc:onramp onramp-selftest --name \"Onramp Self Test\" --archetype working-landscapes --dry-run",
17
+ "env": { "RDC_\u0054EST": "1" },
18
+ "slow": true
19
+ },
20
+ "assertions": {
21
+ "exit_code": 0,
22
+ "stdout_contains": ["Preflight", "Resolve drift"]
23
+ },
24
+ "acceptance": {
25
+ "output_contains": ["Preflight", "Resolve drift", "disk-ahead", "already-enrolled"],
26
+ "output_not_contains": ["hand-edit _context.md", "raw insert"]
27
+ },
28
+ "legacy_assertions": [
29
+ {
30
+ "type": "exit_code",
31
+ "expect": 0,
32
+ "description": "Skill exits cleanly under RDC_TEST with --dry-run"
33
+ },
34
+ {
35
+ "type": "stdout_contains",
36
+ "pattern": "Preflight",
37
+ "description": "Checklist begins with Preflight step"
38
+ },
39
+ {
40
+ "type": "stdout_contains",
41
+ "pattern": "Resolve drift",
42
+ "description": "Drift resolution step is emitted"
43
+ },
44
+ {
45
+ "type": "stdout_contains",
46
+ "pattern": "\\[RDC_TEST\\]",
47
+ "description": "Sandbox short-circuit marker present confirms external calls were skipped"
48
+ },
49
+ {
50
+ "type": "file_absent",
51
+ "path": "places/onramp-selftest/_context.md",
52
+ "description": "Scaffolder MUST NOT write _context.md — projection-drift violation gate"
53
+ }
54
+ ],
55
+ "door_contracts": [
56
+ {
57
+ "name": "enroll_place_signature",
58
+ "description": "enroll_place RPC must accept (text, text, jsonb, text) and return jsonb",
59
+ "type": "rpc_introspection",
60
+ "project_id": "uvojezuorjgqzmhhgluu",
61
+ "query": "SELECT p.proname, pg_get_function_identity_arguments(p.oid) AS args, pg_get_function_result(p.oid) AS returns FROM pg_proc p WHERE p.proname = 'enroll_place';",
62
+ "expect_args_contains": ["text", "jsonb"],
63
+ "expect_returns": "jsonb"
64
+ },
65
+ {
66
+ "name": "insert_work_item_accepts_project_node_id",
67
+ "description": "insert_work_item must accept p_project_node_id parameter",
68
+ "type": "rpc_introspection",
69
+ "project_id": "uvojezuorjgqzmhhgluu",
70
+ "query": "SELECT proname, pg_get_function_identity_arguments(oid) FROM pg_proc WHERE proname = 'insert_work_item';",
71
+ "expect_args_contains": ["p_project_node_id"]
72
+ }
73
+ ],
74
+ "disk_ahead_test": {
75
+ "description": "disk-ahead state must STOP and open a reconciliation work item",
76
+ "setup": "mkdir -p places/disk-ahead-test",
77
+ "invocation_slug": "disk-ahead-test",
78
+ "invocation_name": "Disk Ahead Test",
79
+ "assertions": [
80
+ {
81
+ "type": "stdout_contains",
82
+ "pattern": "disk-ahead",
83
+ "description": "Skill identifies the disk-ahead state"
84
+ },
85
+ {
86
+ "type": "stdout_contains",
87
+ "pattern": "STOP",
88
+ "description": "Skill STOPs on disk-ahead"
89
+ },
90
+ {
91
+ "type": "exit_nonzero",
92
+ "description": "Skill exits non-zero on disk-ahead (not a clean enrollment)"
93
+ }
94
+ ],
95
+ "teardown": "rmdir places/disk-ahead-test 2>/dev/null || true"
96
+ },
97
+ "idempotency_test": {
98
+ "description": "Running rdc:onramp twice for already-enrolled should produce zero new writes",
99
+ "note": "Under RDC_TEST=1 this is verified by checking that [RDC_TEST] skipping markers appear (not real insert calls) and the checklist reports already-enrolled"
100
+ }
101
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "skill": "rdc:env",
4
+ "description": "Environment status is read-only and reports installed version.",
5
+ "fixture": { "prompt": "rdc:env status", "env": { "RDC_\u0054EST": "1" }, "slow": false },
6
+ "assertions": { "exit_code": 0, "stdout_contains": ["Environment"] },
7
+ "acceptance": {
8
+ "output_contains": ["version", "status"],
9
+ "output_not_contains": ["force", "delete environment"]
10
+ },
11
+ "teardown": { "reset_branch": true }
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "skill": "rdc:new-model",
4
+ "description": "New-model registration begins with the canonical gate.",
5
+ "fixture": { "prompt": "rdc:new-model example-model", "env": { "RDC_\u0054EST": "1" }, "slow": true },
6
+ "assertions": { "exit_code": 0, "stdout_contains": ["New Model"] },
7
+ "acceptance": {
8
+ "output_contains": ["canonical", "registration"],
9
+ "output_not_contains": ["raw insert", "skip gate"]
10
+ },
11
+ "teardown": { "reset_branch": true }
12
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "skill": "rdc:refactor",
4
+ "description": "Refactor preserves evidence and isolates all dispatched writers.",
5
+ "fixture": {
6
+ "prompt": "rdc:refactor hook-scope --takeover \"corrective consolidation\"",
7
+ "env": { "RDC_\u0054EST": "1" },
8
+ "slow": true
9
+ },
10
+ "assertions": {
11
+ "exit_code": 0,
12
+ "commits_made": { "min": 0 },
13
+ "stdout_contains": ["RDC Refactor"]
14
+ },
15
+ "acceptance": {
16
+ "output_contains": [
17
+ "consolidate_work_items_into_epic",
18
+ "unique leased worktree",
19
+ "collaboration manifest",
20
+ "validator"
21
+ ],
22
+ "output_not_contains": [
23
+ "raw update",
24
+ "shared working directory",
25
+ "archive all"
26
+ ]
27
+ },
28
+ "teardown": { "reset_branch": true }
29
+ }
@@ -1,29 +1,29 @@
1
- {
2
- "manifest_version": 1,
3
- "skill": "rdc:regen-media",
4
- "description": "Regen Media uses local keyless Codex gpt-image-2 as the primary image-generation path and avoids live generation under RDC_TEST.",
5
- "fixture": {
6
- "prompt": "rdc:regen-media generate a 2048x1152 homepage hero image",
7
- "env": { "RDC_TEST": "1" }
8
- },
9
- "assertions": {
10
- "exit_code": 0,
11
- "commits_made": { "min": 0 },
12
- "stdout_contains": ["image_gen", "gpt-image-2"]
13
- },
14
- "acceptance": {
15
- "output_contains": [
16
- "image_gen",
17
- "gpt-image-2",
18
- "--enable image_generation",
19
- "RDC_TEST"
20
- ],
21
- "output_not_contains": [
22
- "OPENAI_API_KEY=",
23
- "generate_gpt_image is the default",
24
- "upload completed",
25
- "raw MCP"
26
- ]
27
- },
28
- "teardown": { "reset_branch": true }
29
- }
1
+ {
2
+ "manifest_version": 1,
3
+ "skill": "rdc:regen-media",
4
+ "description": "Regen Media uses local keyless Codex gpt-image-2 as the primary image-generation path and avoids live generation under RDC_TEST.",
5
+ "fixture": {
6
+ "prompt": "rdc:regen-media generate a 2048x1152 homepage hero image",
7
+ "env": { "RDC_TEST": "1" }
8
+ },
9
+ "assertions": {
10
+ "exit_code": 0,
11
+ "commits_made": { "min": 0 },
12
+ "stdout_contains": ["image_gen", "gpt-image-2"]
13
+ },
14
+ "acceptance": {
15
+ "output_contains": [
16
+ "image_gen",
17
+ "gpt-image-2",
18
+ "--enable image_generation",
19
+ "RDC_TEST"
20
+ ],
21
+ "output_not_contains": [
22
+ "OPENAI_API_KEY=",
23
+ "generate_gpt_image is the default",
24
+ "upload completed",
25
+ "raw MCP"
26
+ ]
27
+ },
28
+ "teardown": { "reset_branch": true }
29
+ }
@@ -1,36 +1,36 @@
1
- ---
2
- name: rdc:watch
1
+ ---
2
+ name: rdc:watch
3
3
  description: "Usage `rdc:watch` — Initialize a live session-log viewer and report its path; open it only during attended, non-test use. Zero infrastructure — pure filesystem + static HTML."
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
-
13
- # rdc:watch — Session Log Watcher
14
-
15
- ## When to Use
16
- - Start of any long-running session where Dave needs visibility into what you're doing
17
- - Before `rdc:overnight`, `rdc:build` on a large epic, or any multi-hour grind
18
- - Anytime the user asks for "a log", "a viewer", "tail", or "what are you doing right now"
19
-
20
- ## Procedure
21
-
22
- 1. **Initialize the log and viewer.** Run the helper script from the plugin directory in the user's current project:
23
- ```bash
24
- node ${CLAUDE_PLUGIN_ROOT}/scripts/watch-init.mjs
25
- ```
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
+
13
+ # rdc:watch — Session Log Watcher
14
+
15
+ ## When to Use
16
+ - Start of any long-running session where Dave needs visibility into what you're doing
17
+ - Before `rdc:overnight`, `rdc:build` on a large epic, or any multi-hour grind
18
+ - Anytime the user asks for "a log", "a viewer", "tail", or "what are you doing right now"
19
+
20
+ ## Procedure
21
+
22
+ 1. **Initialize the log and viewer.** Run the helper script from the plugin directory in the user's current project:
23
+ ```bash
24
+ node ${CLAUDE_PLUGIN_ROOT}/scripts/watch-init.mjs
25
+ ```
26
26
  (If `CLAUDE_PLUGIN_ROOT` is not set, resolve the plugin path from your invocation context or the installed plugin cache.)
27
-
28
- 2. **Parse the output.** The script prints `run_id`, `log_path`, `current`, `viewer`, and `open_hint`. Capture `log_path` and `viewer` for the rest of the session.
29
-
27
+
28
+ 2. **Parse the output.** The script prints `run_id`, `log_path`, `current`, `viewer`, and `open_hint`. Capture `log_path` and `viewer` for the rest of the session.
29
+
30
30
  3. **Open the viewer in the browser, unless running under `RDC_TEST=1`.**
31
31
  - Normal attended use: run the exact `open_hint` line from the script output. On Windows that's `start "" "<viewer-path>"`.
32
32
  - `RDC_TEST=1`: do not run `open_hint`, `start`, `open`, `xdg-open`, or any focus/window API. Report the viewer path only.
33
-
33
+
34
34
  4. **Report to the user.** One line:
35
35
  ```
36
36
  watcher live at <viewer-path> — tailing <log-path>
@@ -39,59 +39,59 @@ description: "Usage `rdc:watch` — Initialize a live session-log viewer and rep
39
39
  ```
40
40
  watcher initialized at <viewer-path> — not opened because RDC_TEST=1
41
41
  ```
42
-
43
- 5. **Append one line per substantive action for the rest of the session.** Use the documented format — one line, no multi-line payloads:
44
- ```
45
- [<ISO-timestamp>] [<kind>] <message>
46
- ```
47
- Append to BOTH `<log-path>` (the full history) AND `current.log` (what the viewer polls). The viewer diffs `current.log` by length and only appends new lines.
48
-
49
- ### Log format
50
-
51
- - `ISO-timestamp` — `new Date().toISOString()`
52
- - `kind` — one of: `dispatch`, `commit`, `test`, `error`, `note`, `banner`
53
- - `message` — single line, no newlines. Keep under ~200 chars.
54
-
55
- ### Kinds
56
-
57
- | Kind | When to append |
58
- |------|----------------|
59
- | `dispatch` | About to dispatch a subagent — include role + epic/task id |
60
- | `commit` | After a git commit lands — include short sha + subject |
61
- | `test` | Test run kicked off or result came back |
62
- | `error` | Anything that failed — include what and why in one line |
63
- | `note` | General progress ticks (reading files, analyzing, planning) |
64
- | `banner` | Session start/end markers, major phase changes |
65
-
66
- ### Examples
67
-
68
- ```
69
- [2026-04-15T23:14:02.318Z] [dispatch] frontend agent → epic abc123 task 4 (rebuild DynamicForm)
70
- [2026-04-15T23:17:41.902Z] [commit] 3f2a1b9 feat(marketing-engine): DynamicForm rhf+zod
71
- [2026-04-15T23:18:05.113Z] [test] pnpm --filter @regen/rdc-marketing-engine test
72
- [2026-04-15T23:18:41.002Z] [error] tsc: src/components/Form.tsx:42 — Property 'foo' does not exist
73
- [2026-04-15T23:19:00.000Z] [note] retrying with corrected type import
74
- [2026-04-15T23:45:10.000Z] [banner] Phase 2 complete — moving to review
75
- ```
76
-
77
- ### Appending from bash (Windows-safe)
78
-
79
- ```bash
80
- printf '[%s] [%s] %s\n' "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)" "dispatch" "your message" >> "$LOG_PATH"
81
- printf '[%s] [%s] %s\n' "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)" "dispatch" "your message" >> "$CURRENT_PATH"
82
- ```
83
-
84
- Or from Node:
85
- ```js
86
- import { appendFileSync } from "node:fs";
87
- const line = `[${new Date().toISOString()}] [note] ${msg}\n`;
88
- appendFileSync(logPath, line);
89
- appendFileSync(currentPath, line);
90
- ```
91
-
92
- ## Notes
93
-
94
- - Log files live in the **user's project**, not the rdc-skills repo. Path: `<projectRoot>/.rdc/session-log/`
95
- - Each invocation creates a **new run id** and overwrites `current.log`. Prior run logs remain on disk as `<runId>.log`.
96
- - The viewer is a single static HTML file polling `current.log` via `fetch()` every 2s — no server, no deps.
97
- - This skill does NOT replace `rdc:report` (the end-of-session Obsidian writeup). It's a live tail for attended or semi-attended sessions.
42
+
43
+ 5. **Append one line per substantive action for the rest of the session.** Use the documented format — one line, no multi-line payloads:
44
+ ```
45
+ [<ISO-timestamp>] [<kind>] <message>
46
+ ```
47
+ Append to BOTH `<log-path>` (the full history) AND `current.log` (what the viewer polls). The viewer diffs `current.log` by length and only appends new lines.
48
+
49
+ ### Log format
50
+
51
+ - `ISO-timestamp` — `new Date().toISOString()`
52
+ - `kind` — one of: `dispatch`, `commit`, `test`, `error`, `note`, `banner`
53
+ - `message` — single line, no newlines. Keep under ~200 chars.
54
+
55
+ ### Kinds
56
+
57
+ | Kind | When to append |
58
+ |------|----------------|
59
+ | `dispatch` | About to dispatch a subagent — include role + epic/task id |
60
+ | `commit` | After a git commit lands — include short sha + subject |
61
+ | `test` | Test run kicked off or result came back |
62
+ | `error` | Anything that failed — include what and why in one line |
63
+ | `note` | General progress ticks (reading files, analyzing, planning) |
64
+ | `banner` | Session start/end markers, major phase changes |
65
+
66
+ ### Examples
67
+
68
+ ```
69
+ [2026-04-15T23:14:02.318Z] [dispatch] frontend agent → epic abc123 task 4 (rebuild DynamicForm)
70
+ [2026-04-15T23:17:41.902Z] [commit] 3f2a1b9 feat(marketing-engine): DynamicForm rhf+zod
71
+ [2026-04-15T23:18:05.113Z] [test] pnpm --filter @regen/rdc-marketing-engine test
72
+ [2026-04-15T23:18:41.002Z] [error] tsc: src/components/Form.tsx:42 — Property 'foo' does not exist
73
+ [2026-04-15T23:19:00.000Z] [note] retrying with corrected type import
74
+ [2026-04-15T23:45:10.000Z] [banner] Phase 2 complete — moving to review
75
+ ```
76
+
77
+ ### Appending from bash (Windows-safe)
78
+
79
+ ```bash
80
+ printf '[%s] [%s] %s\n' "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)" "dispatch" "your message" >> "$LOG_PATH"
81
+ printf '[%s] [%s] %s\n' "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)" "dispatch" "your message" >> "$CURRENT_PATH"
82
+ ```
83
+
84
+ Or from Node:
85
+ ```js
86
+ import { appendFileSync } from "node:fs";
87
+ const line = `[${new Date().toISOString()}] [note] ${msg}\n`;
88
+ appendFileSync(logPath, line);
89
+ appendFileSync(currentPath, line);
90
+ ```
91
+
92
+ ## Notes
93
+
94
+ - Log files live in the **user's project**, not the rdc-skills repo. Path: `<projectRoot>/.rdc/session-log/`
95
+ - Each invocation creates a **new run id** and overwrites `current.log`. Prior run logs remain on disk as `<runId>.log`.
96
+ - The viewer is a single static HTML file polling `current.log` via `fetch()` every 2s — no server, no deps.
97
+ - This skill does NOT replace `rdc:report` (the end-of-session Obsidian writeup). It's a live tail for attended or semi-attended sessions.