@lifeaitools/rdc-skills 0.9.33 → 0.9.35

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 (54) hide show
  1. package/.claude-plugin/plugin.json +2 -1
  2. package/.github/workflows/self-test.yml +34 -34
  3. package/CHANGELOG.md +10 -0
  4. package/README.md +1 -1
  5. package/commands/build.md +181 -181
  6. package/commands/collab.md +180 -180
  7. package/commands/deploy.md +152 -152
  8. package/commands/fixit.md +105 -105
  9. package/commands/handoff.md +173 -173
  10. package/commands/overnight.md +220 -220
  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/guides/agent-bootstrap.md +206 -202
  19. package/guides/agents/backend.md +102 -102
  20. package/guides/agents/content.md +94 -94
  21. package/guides/agents/cs2.md +56 -56
  22. package/guides/agents/data.md +86 -86
  23. package/guides/agents/design.md +77 -77
  24. package/guides/agents/frontend.md +91 -91
  25. package/guides/agents/infrastructure.md +81 -81
  26. package/guides/agents/setup.md +280 -278
  27. package/guides/agents/verify.md +119 -119
  28. package/guides/agents/viz.md +106 -106
  29. package/guides/engineering-behavior.md +43 -0
  30. package/hooks/rdc-invocation-marker.js +143 -0
  31. package/hooks/rdc-output-contract-gate.js +85 -0
  32. package/package.json +2 -2
  33. package/scripts/install-rdc-skills.js +29 -0
  34. package/scripts/install.ps1 +15 -0
  35. package/scripts/self-test.mjs +1414 -1323
  36. package/skills/build/SKILL.md +359 -355
  37. package/skills/collab/SKILL.md +217 -217
  38. package/skills/deploy/SKILL.md +198 -198
  39. package/skills/design/SKILL.md +211 -211
  40. package/skills/fixit/SKILL.md +136 -132
  41. package/skills/fs-mcp/SKILL.md +131 -0
  42. package/skills/handoff/SKILL.md +200 -200
  43. package/skills/help/SKILL.md +104 -104
  44. package/skills/overnight/SKILL.md +224 -224
  45. package/skills/plan/SKILL.md +252 -252
  46. package/skills/preplan/SKILL.md +86 -86
  47. package/skills/prototype/SKILL.md +150 -150
  48. package/skills/release/SKILL.md +342 -342
  49. package/skills/report/SKILL.md +100 -100
  50. package/skills/review/SKILL.md +122 -121
  51. package/skills/self-test/SKILL.md +126 -126
  52. package/skills/status/SKILL.md +99 -99
  53. package/skills/watch/SKILL.md +91 -91
  54. package/skills/workitems/SKILL.md +151 -151
@@ -1,132 +1,136 @@
1
- ---
2
- name: rdc:fixit
3
- description: "Usage `rdc:fixit <description>` — Quick fix under 5 files / 30 min that does not warrant a full plan→build cycle. Creates a minimal work item, makes the change, commits, closes. The only sanctioned bypass of rdc:build."
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:fixit — Sanctioned Quick Fix
16
-
17
- ## When to Use
18
- - Typo or single-line text correction
19
- - Config value change (env vars, constants, feature flags)
20
- - Emergency hotfix that cannot wait for a full build cycle
21
- - Dependency version bump
22
- - CSS/styling tweak on a single component
23
- - Broken import or export fix
24
- - Single-file logic correction
25
-
26
- ## When NOT to Use — escalate to rdc:build instead
27
- - New feature of any size
28
- - Refactor touching >5 files
29
- - Anything requiring architecture decisions
30
- - Work that will take longer than 30 minutes
31
- - Schema changes or migrations
32
-
33
- ## Arguments
34
- - `rdc:fixit <description>` — fix the described issue
35
-
36
- ## Procedure
37
-
38
- ### 1. Scope check (mandatory — do this before touching any file)
39
-
40
- Will this fix touch more than **5 files** or take more than **30 minutes**?
41
-
42
- - **YES** → Stop. Use `/rdc:build` instead. Explain to the user why.
43
- - **NO** → Continue.
44
-
45
- ### 2. Create a minimal work item (before touching any code)
46
-
47
- ```sql
48
- SELECT insert_work_item(
49
- p_title := 'fixit: <description>',
50
- p_item_type := 'bug',
51
- p_priority := 'urgent',
52
- p_status := 'in_progress',
53
- p_source := 'fixit'
54
- );
55
- ```
56
-
57
- Note the returned `id`.
58
-
59
- ### 3. Write the fixit session marker
60
-
61
- Write to `{USER_HOME}/.claude/fixit.marker`:
62
- ```
63
- <work_item_id>
64
- <ISO timestamp>
65
- <description>
66
- ```
67
-
68
- This signals the Stop hook that fixit is handling its own documentation.
69
-
70
- ### 4. Make the fix
71
-
72
- Do the minimal work. Scope creep rule: if you discover the fix requires more than originally scoped, **stop immediately**:
73
- 1. Close the work item: `update_work_item_status('<id>', 'blocked', '["Escalated — scope exceeded fixit threshold"]')`
74
- 2. Delete the marker file
75
- 3. Tell the user to use `/rdc:build` instead
76
-
77
- ### 5. Commit
78
-
79
- ```bash
80
- git add <specific files only — never git add -A for a fixit>
81
- git commit -m "fix(<scope>): <description>"
82
- if [ "$RDC_TEST" != "1" ]; then
83
- git push origin {development-branch}
84
- else
85
- echo "[RDC_TEST] skipping git push origin {development-branch}"
86
- fi
87
- ```
88
-
89
- ### 6. Close and clean up
90
-
91
- Submit implementation report first, move to review, then close as validator:
92
-
93
- ```sql
94
- SELECT submit_implementation_report('<id>'::uuid,
95
- '{"tldr":"<one sentence>","assumptions":[],"deviations":[],"uncertainty":[],"detail":"<what was fixed>","flags":[],"transactional":false,"memory_records":[],"codeflow_post":{"agent_session_id":"<agent-session-id>","summary":"<what changed and why>","files_changed":["<path>"],"verification":["<command/evidence>"],"commit":"<hash optional>"}}'::jsonb
96
- );
97
-
98
- SELECT update_work_item_status('<id>'::uuid, 'review',
99
- '["Fixed via rdc:fixit; ready for validation"]'::jsonb,
100
- '<agent-session-id>',
101
- 'agent'
102
- );
103
-
104
- SELECT update_work_item_status('<id>'::uuid, 'done',
105
- '["Validator verified rdc:fixit report, CodeFlow post, and checklist evidence"]'::jsonb,
106
- '<validator-session-id>',
107
- 'validator'
108
- );
109
- ```
110
-
111
- If the fix touched a transactional flow, API boundary, or package contract, set `"transactional": true` and populate `memory_records` (see `agent-bootstrap.md`), then run:
112
- ```bash
113
- node scripts/work-item-memory.mjs <work-item-id>
114
- # Note: verify script exists first: ls {PROJECT_ROOT}/scripts/work-item-memory.mjs
115
- # If the script is absent, skip this step and note it in the implementation report.
116
- ```
117
-
118
- ```bash
119
- rm {USER_HOME}/.claude/fixit.marker
120
- ```
121
-
122
- ### 7. Confirm to user
123
-
124
- Report: what was fixed, file(s) changed, commit hash. One sentence.
125
-
126
- ## Rules
127
- - Work item created BEFORE any code change — never after
128
- - `git add` specific files only never `-A` or `.` for a fixit
129
- - Branch: development branch always
130
- - Never run `pnpm build` — not needed for a fixit
131
- - If scope expands mid-fix: stop, escalate to rdc:build, don't finish under fixit
132
- - Marker file must be cleaned up whether fix succeeds or escalates
1
+ ---
2
+ name: rdc:fixit
3
+ description: "Usage `rdc:fixit <description>` — Quick fix under 5 files / 30 min that does not warrant a full plan→build cycle. Creates a minimal work item, makes the change, commits, closes. The only sanctioned bypass of rdc:build."
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`), then `{PROJECT_ROOT}/.rdc/guides/engineering-behavior.md` (fallback: `{PROJECT_ROOT}/.rdc/guides/engineering-behavior.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:fixit — Sanctioned Quick Fix
16
+
17
+ ## When to Use
18
+ - Typo or single-line text correction
19
+ - Config value change (env vars, constants, feature flags)
20
+ - Emergency hotfix that cannot wait for a full build cycle
21
+ - Dependency version bump
22
+ - CSS/styling tweak on a single component
23
+ - Broken import or export fix
24
+ - Single-file logic correction
25
+
26
+ ## When NOT to Use — escalate to rdc:build instead
27
+ - New feature of any size
28
+ - Refactor touching >5 files
29
+ - Anything requiring architecture decisions
30
+ - Work that will take longer than 30 minutes
31
+ - Schema changes or migrations
32
+
33
+ ## Arguments
34
+ - `rdc:fixit <description>` — fix the described issue
35
+
36
+ ## Procedure
37
+
38
+ ### 1. Scope check (mandatory — do this before touching any file)
39
+
40
+ Will this fix touch more than **5 files** or take more than **30 minutes**?
41
+
42
+ - **YES** → Stop. Use `/rdc:build` instead. Explain to the user why.
43
+ - **NO** → Continue.
44
+
45
+ ### 2. Create a minimal work item (before touching any code)
46
+
47
+ ```sql
48
+ SELECT insert_work_item(
49
+ p_title := 'fixit: <description>',
50
+ p_item_type := 'bug',
51
+ p_priority := 'urgent',
52
+ p_status := 'in_progress',
53
+ p_source := 'fixit'
54
+ );
55
+ ```
56
+
57
+ Note the returned `id`.
58
+
59
+ ### 3. Write the fixit session marker
60
+
61
+ Write to `{USER_HOME}/.claude/fixit.marker`:
62
+ ```
63
+ <work_item_id>
64
+ <ISO timestamp>
65
+ <description>
66
+ ```
67
+
68
+ This signals the Stop hook that fixit is handling its own documentation.
69
+
70
+ ### 4. Make the fix
71
+
72
+ Do the minimal work. Scope creep rule: if you discover the fix requires more than originally scoped, **stop immediately**:
73
+ 1. Close the work item: `update_work_item_status('<id>', 'blocked', '["Escalated — scope exceeded fixit threshold"]')`
74
+ 2. Delete the marker file
75
+ 3. Tell the user to use `/rdc:build` instead
76
+
77
+ Apply `guides/engineering-behavior.md`: state material assumptions in the
78
+ implementation report, avoid speculative abstractions, touch only required
79
+ files, and verify behavior before moving the work item to `review`.
80
+
81
+ ### 5. Commit
82
+
83
+ ```bash
84
+ git add <specific files only — never git add -A for a fixit>
85
+ git commit -m "fix(<scope>): <description>"
86
+ if [ "$RDC_TEST" != "1" ]; then
87
+ git push origin {development-branch}
88
+ else
89
+ echo "[RDC_TEST] skipping git push origin {development-branch}"
90
+ fi
91
+ ```
92
+
93
+ ### 6. Close and clean up
94
+
95
+ Submit implementation report first, move to review, then close as validator:
96
+
97
+ ```sql
98
+ SELECT submit_implementation_report('<id>'::uuid,
99
+ '{"tldr":"<one sentence>","assumptions":[],"deviations":[],"uncertainty":[],"detail":"<what was fixed>","flags":[],"transactional":false,"memory_records":[],"codeflow_post":{"agent_session_id":"<agent-session-id>","summary":"<what changed and why>","files_changed":["<path>"],"verification":["<command/evidence>"],"commit":"<hash optional>"}}'::jsonb
100
+ );
101
+
102
+ SELECT update_work_item_status('<id>'::uuid, 'review',
103
+ '["Fixed via rdc:fixit; ready for validation"]'::jsonb,
104
+ '<agent-session-id>',
105
+ 'agent'
106
+ );
107
+
108
+ SELECT update_work_item_status('<id>'::uuid, 'done',
109
+ '["Validator verified rdc:fixit report, CodeFlow post, and checklist evidence"]'::jsonb,
110
+ '<validator-session-id>',
111
+ 'validator'
112
+ );
113
+ ```
114
+
115
+ If the fix touched a transactional flow, API boundary, or package contract, set `"transactional": true` and populate `memory_records` (see `agent-bootstrap.md`), then run:
116
+ ```bash
117
+ node scripts/work-item-memory.mjs <work-item-id>
118
+ # Note: verify script exists first: ls {PROJECT_ROOT}/scripts/work-item-memory.mjs
119
+ # If the script is absent, skip this step and note it in the implementation report.
120
+ ```
121
+
122
+ ```bash
123
+ rm {USER_HOME}/.claude/fixit.marker
124
+ ```
125
+
126
+ ### 7. Confirm to user
127
+
128
+ Report: what was fixed, file(s) changed, commit hash. One sentence.
129
+
130
+ ## Rules
131
+ - Work item created BEFORE any code change never after
132
+ - `git add` specific files only never `-A` or `.` for a fixit
133
+ - Branch: development branch always
134
+ - Never run `pnpm build` — not needed for a fixit
135
+ - If scope expands mid-fix: stop, escalate to rdc:build, don't finish under fixit
136
+ - Marker file must be cleaned up whether fix succeeds or escalates
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: rdc:fs-mcp
3
+ description: "Usage `rdc:fs-mcp <task>` — Use the File System MCP bridge for live repo reads, safe writes, cloud-to-local ingest, and GitHub-branch imports into a dirty local monorepo. Use when Claude.ai, Cowork, or CLI agents need fs_read/fs_write/fs_import_git_files guidance."
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
+
11
+ # rdc:fs-mcp — File System MCP Bridge
12
+
13
+ ## When to Use
14
+ - Claude.ai, Cowork, or another remote surface needs live access to `C:/Dev/regen-root` through the File System MCP.
15
+ - You need to read, search, or list current local repo files without relying on GitHub freshness.
16
+ - You need to write a small/scratch file through FS MCP.
17
+ - You need to move a larger cloud file into the local repo.
18
+ - Claude.ai created a durable new docs/corpus file on a GitHub branch and local dev needs to import it into a dirty monorepo.
19
+
20
+ ## Arguments
21
+ - `rdc:fs-mcp read` — choose the right read/search/list tool.
22
+ - `rdc:fs-mcp write` — choose direct write, chunked write, append, or URL ingest.
23
+ - `rdc:fs-mcp import-git` — import named files from a GitHub branch/commit into local dev.
24
+ - `rdc:fs-mcp status` — inspect mounts and repo state before deciding.
25
+
26
+ ## Procedure
27
+
28
+ ### 1. Identify the file intent
29
+
30
+ Classify the file before writing:
31
+
32
+ | Intent | Default path | Default action |
33
+ |---|---|---|
34
+ | Live repo read | Existing repo path | `fs_read`, `fs_grep`, `fs_glob`, `fs_list` |
35
+ | Small scratch or relay file | `.rdc/relay/`, `.codex/tmp/`, agreed temp path | `fs_write` |
36
+ | Large text file from the current chat | Target path | `fs_write_chunk` |
37
+ | Cloud-hosted file | Target path | `fs_ingest_url` |
38
+ | Durable new docs/corpus file from Claude.ai | Actual target path in `docs/**`, `.rdc/plans/**`, `.claude/context/**` | GitHub branch commit, then `fs_import_git_files` |
39
+ | Existing file update | Existing repo path | Prefer patch/review workflow; do not overwrite unless explicitly requested |
40
+
41
+ ### 2. Read/search from live local FS
42
+
43
+ Use FS MCP first for local state:
44
+
45
+ ```text
46
+ fs_read CLAUDE.md
47
+ fs_glob docs/**/*.md
48
+ fs_grep "bridge mode" docs/
49
+ fs_list .rdc/relay/from-claude-code/
50
+ ```
51
+
52
+ Use GitHub for remote branch/file history, PRs, and durable publication. Use FS for the current local worktree.
53
+
54
+ ### 3. Choose the safest write surface
55
+
56
+ Use direct FS writes only when the payload is small and the destination is clear:
57
+
58
+ ```text
59
+ fs_write path=".rdc/relay/from-claude-ai/<timestamp>-topic.md"
60
+ ```
61
+
62
+ Use chunked writes for larger text:
63
+
64
+ ```text
65
+ fs_write_chunk upload_id="<stable-id>" path="docs/plans/foo.md" chunk_index=0 total_chunks=3 content="..."
66
+ fs_write_chunk upload_id="<stable-id>" path="docs/plans/foo.md" chunk_index=1 total_chunks=3 content="..."
67
+ fs_write_chunk upload_id="<stable-id>" path="docs/plans/foo.md" chunk_index=2 total_chunks=3 content="..."
68
+ ```
69
+
70
+ Use URL ingest when the file already exists in cloud storage:
71
+
72
+ ```text
73
+ fs_ingest_url url="https://..." path="docs/source/file.md" expected_sha256="<optional>"
74
+ ```
75
+
76
+ Use guarded append when appending to a known file:
77
+
78
+ ```text
79
+ fs_stat path="docs/plans/foo.md"
80
+ fs_append path="docs/plans/foo.md" content="\n..." expected_sha256="<hash from fs_stat>"
81
+ ```
82
+
83
+ ### 4. Import durable new files from GitHub instead of large FS writes
84
+
85
+ When Claude.ai creates a durable new docs/corpus file, publish it to a GitHub branch first, then ask FS MCP to import the exact file path.
86
+
87
+ Required Claude.ai handoff shape:
88
+
89
+ ```json
90
+ {
91
+ "repo": "LIFEAI/regen-root",
92
+ "remote": "origin",
93
+ "ref": "claude-ai/docs-upload-123",
94
+ "paths": ["docs/plans/foo.md"],
95
+ "mode": "new_only",
96
+ "commit": true,
97
+ "message": "docs(plans): add foo"
98
+ }
99
+ ```
100
+
101
+ Then call:
102
+
103
+ ```text
104
+ fs_import_git_files remote="origin" ref="claude-ai/docs-upload-123" paths=["docs/plans/foo.md"] mode="new_only" commit=true message="docs(plans): add foo"
105
+ ```
106
+
107
+ This tool must fetch only, restore only named paths, optionally commit only those paths, and never push.
108
+
109
+ ### 5. Safety rules
110
+
111
+ - Never run or request `git pull` for the dirty monorepo.
112
+ - Never checkout a whole branch into the local worktree.
113
+ - For durable docs/corpus, save to the actual target path, not an upload folder, when the target is known.
114
+ - Use upload/incoming folders only when the final destination is unknown.
115
+ - Default to `new_only` for Git imports.
116
+ - Refuse overwrites unless the user explicitly asks for overwrite/update behavior.
117
+ - Stage only imported paths when committing.
118
+ - Never push from FS import unless the user explicitly asks for a push-capable workflow.
119
+
120
+ ### 6. Completion report
121
+
122
+ Report:
123
+
124
+ ```text
125
+ FS MCP: <read/write/import> complete
126
+ Paths: <paths>
127
+ Source ref/commit: <if Git import>
128
+ Local commit: <if committed>
129
+ Verification: <fs_stat/hash or import result>
130
+ Blocked/conflicts: <none or list>
131
+ ```