@lifeaitools/rdc-skills 0.9.32 → 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 (40) hide show
  1. package/.claude-plugin/plugin.json +25 -2
  2. package/MANIFEST.md +4 -0
  3. package/commands/build.md +2 -2
  4. package/commands/fixit.md +14 -2
  5. package/commands/workitems.md +6 -1
  6. package/guides/agent-bootstrap.md +71 -8
  7. package/guides/agents/backend.md +2 -2
  8. package/guides/agents/data.md +1 -1
  9. package/guides/agents/frontend.md +1 -1
  10. package/guides/agents/setup.md +4 -2
  11. package/guides/engineering-behavior.md +43 -0
  12. package/hooks/foreground-process-gate.js +109 -0
  13. package/hooks/hook-logger.js +25 -0
  14. package/hooks/run-hidden-hook.ps1 +47 -0
  15. package/hooks/work-item-exit-gate.js +297 -0
  16. package/package.json +3 -3
  17. package/rules/work-items-rpc.md +56 -7
  18. package/scripts/install-rdc-skills.js +75 -9
  19. package/scripts/install.ps1 +17 -11
  20. package/scripts/self-test.mjs +14 -0
  21. package/skills/build/SKILL.md +13 -9
  22. package/skills/co-develop/SKILL.md +182 -0
  23. package/skills/collab/SKILL.md +1 -1
  24. package/skills/deploy/SKILL.md +1 -1
  25. package/skills/design/SKILL.md +3 -3
  26. package/skills/fixit/SKILL.md +19 -5
  27. package/skills/fs-mcp/SKILL.md +131 -0
  28. package/skills/handoff/SKILL.md +1 -1
  29. package/skills/help/SKILL.md +4 -2
  30. package/skills/overnight/SKILL.md +3 -3
  31. package/skills/plan/SKILL.md +4 -3
  32. package/skills/preplan/SKILL.md +1 -1
  33. package/skills/prototype/SKILL.md +1 -1
  34. package/skills/release/SKILL.md +2 -2
  35. package/skills/report/SKILL.md +1 -1
  36. package/skills/review/SKILL.md +5 -3
  37. package/skills/self-test/SKILL.md +1 -1
  38. package/skills/status/SKILL.md +3 -1
  39. package/skills/watch/SKILL.md +1 -1
  40. package/skills/workitems/SKILL.md +7 -2
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: rdc:review
3
- description: "Post-build quality gate: tsc, tests, stale docs, export conflicts across modified packages. Fixes what it can automatically, escalates the rest. Call after rdc:build and before merging to main."
3
+ description: "Usage `rdc:review [--unattended]` — Post-build quality gate: tsc, tests, stale docs, export conflicts across modified packages. Fixes what it can automatically, escalates the rest. Call after rdc:build and before merging to main."
4
4
  ---
5
5
 
6
6
  > **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
7
7
  > Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
8
8
  > One checklist upfront, updated in place, shown again at end with a 1-line verdict.
9
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`).
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
11
 
12
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
13
 
@@ -75,12 +75,14 @@ description: "Post-build quality gate: tsc, tests, stale docs, export conflicts
75
75
  ORDER BY created_at DESC;
76
76
  ```
77
77
  For each orphaned task found:
78
- - If it clearly belongs to an open epic → attach it: `UPDATE work_items SET parent_id = '<epic-id>' WHERE id = '<task-id>'`
78
+ - If it clearly belongs to an open epic → **do not run raw SQL**. No RPC exists for re-parenting. Create a work item: `SELECT insert_work_item(p_title := 'Re-parent orphaned task <task-id> to epic <epic-id>', p_priority := 'normal', p_source := 'agent')` and flag for supervisor to re-parent manually.
79
79
  - If unclear → report (interactive) or flag in REVIEW_STATUS (unattended)
80
80
  - Never silently leave orphaned tasks
81
+ - **⛔ Raw `UPDATE work_items SET parent_id = ...` is forbidden** — bypasses RLS and all constraint checks
81
82
 
82
83
  9. **Verification gate — dispatch the verify agent:**
83
84
  After any fixes land, run the verify gate on every touched package. See `guides/agents/verify.md`.
85
+ Apply `guides/engineering-behavior.md` while reviewing: flag unnecessary abstraction, drive-by refactors, missing assumptions, hidden uncertainty, out-of-scope edits, and prose-only verification.
84
86
  **Iron Law: no CLEAN verdict without fresh evidence.** Quote the checklist decomposition verdict, vitest output, and tsc output in the report.
85
87
  The verify agent must reject any work item that lacks passed `decomp-*` checklist rows or whose rows are too coarse to prove one observable behavior at a time.
86
88
  If verify fails → do NOT emit CLEAN. Loop back, fix, re-run verify.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rdc:self-test
3
- description: "Validate all rdc:* skills, plugin manifest, and tooling consistency. Use after editing skills, upgrading the plugin, or when a skill behaves unexpectedly."
3
+ description: "Usage `rdc:self-test [--strict]` — Validate all rdc:* skills, plugin manifest, and tooling consistency. Use after editing skills, upgrading the plugin, or when a skill behaves unexpectedly."
4
4
  ---
5
5
 
6
6
  > **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rdc:status
3
- description: "Read-only snapshot of open epics, work items, Coolify health, blockers, and next recommended action. Safe to call anytime. Start here when disoriented or resuming a session."
3
+ description: "Usage `rdc:status` — Read-only snapshot of open epics, work items, Coolify health, blockers, and next recommended action. Safe to call anytime. Start here when disoriented or resuming a session."
4
4
  ---
5
5
 
6
6
  > **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
@@ -59,6 +59,8 @@ description: "Read-only snapshot of open epics, work items, Coolify health, bloc
59
59
  6. **Dev server health (PM2):**
60
60
  SSH into the Coolify server and check PM2 process state:
61
61
  ```bash
62
+ # Note: clauth key name for the SSH key may vary by project. Common names: ssh-key-path, vultr-ssh-key, dev-ssh-key.
63
+ # Check available keys with: curl -s http://127.0.0.1:52437/list-services
62
64
  SSH_KEY=$(curl -s http://127.0.0.1:52437/v/ssh-key-path)
63
65
  ssh -i "$SSH_KEY" -o StrictHostKeyChecking=no root@64.237.54.189 "pm2 jlist 2>/dev/null"
64
66
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rdc:watch
3
- description: "Open a live browser viewer tailing this session's activity. Zero infrastructure — pure filesystem + static HTML."
3
+ description: "Usage `rdc:watch` — Open a live browser viewer tailing this session's activity. Zero infrastructure — pure filesystem + static HTML."
4
4
  ---
5
5
 
6
6
  > **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rdc:workitems
3
- description: "Manual work item CRUD outside the normal build flow: add to backlog, mark done, update status, list open epics, query by label."
3
+ description: "Usage `rdc:workitems [add|done|status|list|query]` — Manual work item CRUD outside the normal build flow: add to backlog, mark done, update status, list open epics, query by label."
4
4
  ---
5
5
 
6
6
  > **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
@@ -80,10 +80,15 @@ Est: <hours>',
80
80
 
81
81
  ```sql
82
82
  SELECT update_work_item_status('<uuid>'::uuid, 'in_progress');
83
- SELECT update_work_item_status('<uuid>'::uuid, 'done', '["What was completed"]'::jsonb);
83
+ SELECT update_work_item_status('<uuid>'::uuid, 'review', '["Implementation complete; ready for validator"]'::jsonb, '<agent-session-id>', 'agent');
84
+ SELECT update_work_item_status('<uuid>'::uuid, 'done', '["Validator verified implementation report, CodeFlow post, and checklist evidence"]'::jsonb, '<validator-session-id>', 'validator');
84
85
  SELECT update_work_item_status('<uuid>'::uuid, 'blocked', '["Why it is blocked"]'::jsonb);
85
86
  ```
86
87
 
88
+ Non-epic `done` is a validator-only close and requires an existing
89
+ `implementation_report.codeflow_post`, checked required checklist evidence, and
90
+ originating-agent tick audit.
91
+
87
92
  ## Read Tasks in an Epic
88
93
 
89
94
  ```sql