@lifeaitools/rdc-skills 0.35.8 → 0.35.10
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.
- package/.claude-plugin/plugin.json +1 -1
- package/clauth-plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/install-rdc-skills.js +51 -21
- package/skills/collab/SKILL.md +35 -0
- package/skills/deploy/SKILL.md +8 -0
- package/skills/handoff/SKILL.md +3 -0
- package/skills/plan/SKILL.md +24 -0
- package/skills/release/SKILL.md +25 -0
- package/tests/help-surface.test.mjs +19 -5
- package/tests/install-rdc-skills.test.mjs +22 -4
- package/commands/build.md +0 -223
- package/commands/collab.md +0 -179
- package/commands/deploy.md +0 -211
- package/commands/design.md +0 -30
- package/commands/edit.md +0 -27
- package/commands/fixit.md +0 -172
- package/commands/handoff.md +0 -188
- package/commands/help.md +0 -93
- package/commands/overnight.md +0 -222
- package/commands/plan.md +0 -178
- package/commands/preplan.md +0 -134
- package/commands/release.md +0 -60
- package/commands/review.md +0 -15
- package/commands/status.md +0 -85
package/commands/preplan.md
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: preplan
|
|
3
|
-
description: rdc:preplan (topic) — research the unknowns before committing to an architecture
|
|
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:preplan — Research Before Planning
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
- Starting a new feature area you haven't built before
|
|
17
|
-
- Need to understand how best-in-class projects solve a problem
|
|
18
|
-
- Codebase has unknowns that need mapping before planning
|
|
19
|
-
- Project lead says "research", "look into", "what's the best way to", "how do others do"
|
|
20
|
-
- Called by `rdc:overnight` before planning an epic with no existing tasks
|
|
21
|
-
|
|
22
|
-
## Arguments
|
|
23
|
-
- `rdc:preplan <topic>` — interactive research session
|
|
24
|
-
- `rdc:preplan <topic> --unattended` — silent mode for overnight builds
|
|
25
|
-
|
|
26
|
-
## Procedure
|
|
27
|
-
|
|
28
|
-
1. **Parse the topic** from user input or epic title/description.
|
|
29
|
-
- Interactive: if vague, ask ONE clarifying question before proceeding
|
|
30
|
-
- Unattended: infer from the epic title + description — never pause to ask
|
|
31
|
-
|
|
32
|
-
2. **Load source documents — MANDATORY before any analysis.**
|
|
33
|
-
|
|
34
|
-
**Step 2a — Always load these regardless of topic:**
|
|
35
|
-
```
|
|
36
|
-
.claude/rules/infrastructure-contract.md — hard deployment + registry rules
|
|
37
|
-
.claude/rules/work-items-rpc.md — work item schema and RPC patterns
|
|
38
|
-
.claude/rules/system-quick-links.md — routing map to system architecture docs
|
|
39
|
-
docs/CODING-STANDARDS.md — SOLID/Clean-Architecture standard; names
|
|
40
|
-
ATF's Test-Ladder and rdc-harness's
|
|
41
|
-
proof-ledger pattern where either applies
|
|
42
|
-
(regen-root; skip if absent)
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**Step 2b — Identify affected domains, then load the matching architecture doc:**
|
|
46
|
-
|
|
47
|
-
| Domain keywords in topic | Architecture doc to read |
|
|
48
|
-
|--------------------------|---------------------------|
|
|
49
|
-
| PRT, trust, capital, NAV, investor, land, DST | `docs/systems/prt/ARCHITECTURE.md` |
|
|
50
|
-
| CS 2.0, HAIL, PAL, virtue, quad-pixel, ontology, BPMN, cognitive | `docs/systems/cs2/ARCHITECTURE.md` |
|
|
51
|
-
| marketing, CRM, campaign, contact, outreach, RDC app | `docs/systems/rdc/ARCHITECTURE.md` |
|
|
52
|
-
| Claude workflow, skills, agents, dispatch, rdc:build | `docs/systems/claude-workflow/ARCHITECTURE.md` |
|
|
53
|
-
| Life AI, LIFEAI platform, life.ai | `docs/systems/lifeai/ARCHITECTURE.md` |
|
|
54
|
-
| media, R2, images, regen-media, MCP image | `docs/systems/media/ARCHITECTURE.md` |
|
|
55
|
-
| UI, component, brand, design token, shared, OG image | `docs/systems/shared/ARCHITECTURE.md` |
|
|
56
|
-
|
|
57
|
-
If topic spans multiple domains, read ALL matching architecture docs.
|
|
58
|
-
If unsure which domain applies, read `docs/systems/claude-workflow/ARCHITECTURE.md` as the fallback.
|
|
59
|
-
|
|
60
|
-
**Step 2c — Load domain-specific rules and context files:**
|
|
61
|
-
|
|
62
|
-
| Domain | Additional files to read |
|
|
63
|
-
|--------|---------------------------|
|
|
64
|
-
| CS 2.0 / any CS2 paradigm work | `.claude/rules/cs2-architecture-first.md` |
|
|
65
|
-
| Database, schema, migrations, RPC | `.claude/context/supabase-schema.md` |
|
|
66
|
-
| UI, components, brand, tokens | `.claude/context/design-system-global.md` |
|
|
67
|
-
| Deploy, infrastructure, DNS, SSL | `.claude/context/coolify-deployment.md` |
|
|
68
|
-
| Credentials, MCP, clauth, subagents | `.claude/context/clauth.md` |
|
|
69
|
-
| OG images, social meta, brand assets | `.claude/context/brand-gate.md` |
|
|
70
|
-
| Cross-platform, Cowork, subagent MCP | `.claude/context/platform-cross-ref.md` |
|
|
71
|
-
|
|
72
|
-
**Step 2d — Load CLAUDE.md for every affected package:**
|
|
73
|
-
- Identify which packages in `packages/` are relevant to the topic
|
|
74
|
-
- Read `packages/<name>/CLAUDE.md` for each one
|
|
75
|
-
- At minimum read `packages/supabase/CLAUDE.md` if any DB work is involved
|
|
76
|
-
- At minimum read `packages/ui/CLAUDE.md` if any UI work is involved
|
|
77
|
-
|
|
78
|
-
3. **Web research** — search for current (2025-2026) best practices:
|
|
79
|
-
- How do major projects solve this?
|
|
80
|
-
- What tools/libraries exist?
|
|
81
|
-
- What are the common tradeoffs?
|
|
82
|
-
|
|
83
|
-
4. **Codebase analysis** — what do we already have?
|
|
84
|
-
- Search relevant packages for existing code
|
|
85
|
-
- Check `.rdc/research/` for prior research on this topic (fallback: `.rdc/research/`)
|
|
86
|
-
- Check `docs/archive/` for historical work
|
|
87
|
-
- Research agents should read relevant guides from `.rdc/guides/` (fallback: `.rdc/guides/`)
|
|
88
|
-
- Check work items for related epics
|
|
89
|
-
|
|
90
|
-
5. **Best-in-class comparison** — create a comparison table:
|
|
91
|
-
| Approach | Pros | Cons | Fit for Us |
|
|
92
|
-
|
|
93
|
-
6. **Surface unknowns** — what questions remain unanswered?
|
|
94
|
-
|
|
95
|
-
7. **Write research doc** to `.rdc/research/<topic-slug>.md` (fallback: `.rdc/research/<topic-slug>.md` if `.rdc/` does not exist):
|
|
96
|
-
```markdown
|
|
97
|
-
# Research: <Topic>
|
|
98
|
-
> Generated: <date> | Requested by: Project Lead
|
|
99
|
-
|
|
100
|
-
## Source Documents Read
|
|
101
|
-
(list every architecture doc, rules file, context file, and package CLAUDE.md loaded in Step 2)
|
|
102
|
-
|
|
103
|
-
## Question
|
|
104
|
-
## What We Already Have
|
|
105
|
-
## Best-in-Class Analysis
|
|
106
|
-
## Comparison Table
|
|
107
|
-
## Unknowns & Open Questions
|
|
108
|
-
## Recommendation (preliminary — not a decision)
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
8. **Report results:**
|
|
112
|
-
- Interactive: summarize findings. Do NOT create epics or write code.
|
|
113
|
-
- Unattended: skip summary, emit status block only:
|
|
114
|
-
```
|
|
115
|
-
PREPLAN_STATUS: { topic, doc_path, unknowns_count, recommendation_confidence: "high|medium|low", source_docs_read: [list] }
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
## Unattended Escalation
|
|
119
|
-
|
|
120
|
-
When `--unattended` and `recommendation_confidence` is `"low"` (≥5 unresolved unknowns,
|
|
121
|
-
or no clear best-fit approach exists), escalate via the advisor tool rather than stopping.
|
|
122
|
-
Provide the advisor with: topic, unknowns list, comparison table. Resume with advisor's
|
|
123
|
-
direction if given. If advisor cannot resolve, log and skip to next step.
|
|
124
|
-
|
|
125
|
-
## Rules
|
|
126
|
-
- **Source documents in Step 2 are MANDATORY — research without them is blind**
|
|
127
|
-
- Output is a RESEARCH DOC, not a plan
|
|
128
|
-
- Do not make architectural decisions — surface options with tradeoffs
|
|
129
|
-
- Do not create work items
|
|
130
|
-
- Do not write code
|
|
131
|
-
- Web search is mandatory — don't just analyze the codebase
|
|
132
|
-
- Keep the doc under 200 lines — concise, not exhaustive
|
|
133
|
-
- Unattended: NEVER pause for input; infer and proceed
|
|
134
|
-
- Always list source docs read in the output doc header
|
package/commands/release.md
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
|
|
3
|
-
description: rdc:release (repo, [version]) - [--patch, --minor, --major, --dry-run] — bump, tag, publish and verify a package
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# rdc:release — Generic Release
|
|
7
|
-
|
|
8
|
-
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
9
|
-
> Checklist-only output. No raw git/npm/CI dumps.
|
|
10
|
-
> One checklist upfront, updated in place, shown again at end with 1-line verdict.
|
|
11
|
-
|
|
12
|
-
## Checklist
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
rdc:release: <repo> vX.Y.Z -> vA.B.C
|
|
16
|
-
[ ] Source path resolved
|
|
17
|
-
[ ] Release metadata read
|
|
18
|
-
[ ] Working tree clean or user-approved dirty scope identified
|
|
19
|
-
[ ] Current version detected
|
|
20
|
-
[ ] New version computed
|
|
21
|
-
[ ] Dry-run gate handled
|
|
22
|
-
[ ] Version files updated
|
|
23
|
-
[ ] Tests/self-test passed
|
|
24
|
-
[ ] Commit created
|
|
25
|
-
[ ] Tag created
|
|
26
|
-
[ ] Branch and tag pushed
|
|
27
|
-
[ ] CI/publish status verified
|
|
28
|
-
[ ] Registry/package/deploy target shows vA.B.C, if applicable
|
|
29
|
-
[ ] Local install/update executed, if applicable
|
|
30
|
-
[ ] Installed/runtime version verified
|
|
31
|
-
[ ] Smoke test passed
|
|
32
|
-
✅ rdc:release <repo>: vA.B.C live and verified
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Rules
|
|
36
|
-
|
|
37
|
-
- Do not release without explicit user authorization.
|
|
38
|
-
- Prefer repo-local release instructions in `.rdc/release.json`, README, package scripts, or CI workflows.
|
|
39
|
-
- Never force push or bypass hooks.
|
|
40
|
-
- Never declare success without verifying the installed or deployed version.
|
|
41
|
-
|
|
42
|
-
For a `package`-class target that already resolves through `rdc-harness`
|
|
43
|
-
(a real monorepo subtree, not a standalone repo like this one), its
|
|
44
|
-
`packages/deploy/src/runners/registry-release.mjs` runner already proves the
|
|
45
|
-
"Tests/self-test passed" through "Local install/update executed" steps
|
|
46
|
-
safely — real `npm pack`, isolated-prefix install (never the real global
|
|
47
|
-
store), real verify, and `--live` explicitly gates the actual publish. Where
|
|
48
|
-
applicable, `node C:/Dev/rdc-harness/bin/rdc-harness.mjs deploy <slug>
|
|
49
|
-
[--live]` can supply those checklist rows' evidence directly instead of
|
|
50
|
-
hand-rolling the same pack/install/verify cycle. This does not replace
|
|
51
|
-
version bump/tag/push — the harness CLI does neither.
|
|
52
|
-
|
|
53
|
-
## RDC Skills Package
|
|
54
|
-
|
|
55
|
-
After publishing this package to npm, a clean-box install should use:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm install -g @lifeaitools/rdc-skills@latest
|
|
59
|
-
rdc-skills-install --profile core
|
|
60
|
-
```
|
package/commands/review.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: review
|
|
3
|
-
description: rdc:review () - [--unattended] — post-build gate over tsc, tests, docs and code review
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# review
|
|
7
|
-
|
|
8
|
-
Use Skill tool with skill: "review", passing `--unattended` through if given.
|
|
9
|
-
|
|
10
|
-
> This file previously carried a full duplicate of the procedure now owned by
|
|
11
|
-
> `skills/review/SKILL.md`. The two drifted — this copy was missing the
|
|
12
|
-
> mandatory code-review gate (step 8b) and the `engineering-behavior.md` read
|
|
13
|
-
> that the other had. One home for the content closes that class of bug
|
|
14
|
-
> permanently rather than requiring the next editor to remember to update
|
|
15
|
-
> both.
|
package/commands/status.md
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: status
|
|
3
|
-
description: rdc:status () — snapshot open epics, health, blockers and next action
|
|
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:status — Project Dashboard
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
- Start of any session
|
|
17
|
-
- Project lead asks "what's the status", "where are we", "what's open"
|
|
18
|
-
- Before deciding what to work on next
|
|
19
|
-
|
|
20
|
-
## Procedure
|
|
21
|
-
|
|
22
|
-
1. **Open epics:**
|
|
23
|
-
```sql
|
|
24
|
-
SELECT get_open_epics();
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
2. **Work item counts by status:**
|
|
28
|
-
```sql
|
|
29
|
-
SELECT status, count(*) FROM work_items
|
|
30
|
-
WHERE status != 'archived'
|
|
31
|
-
GROUP BY status ORDER BY status;
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
3. **Items by label/project (top 10 labels):**
|
|
35
|
-
```sql
|
|
36
|
-
SELECT unnest(labels) as label, count(*),
|
|
37
|
-
count(*) FILTER (WHERE status = 'done') as done,
|
|
38
|
-
count(*) FILTER (WHERE status = 'todo') as todo,
|
|
39
|
-
count(*) FILTER (WHERE status = 'in_progress') as wip
|
|
40
|
-
FROM work_items
|
|
41
|
-
GROUP BY label ORDER BY count DESC LIMIT 10;
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
4. **Recent activity (last 48 hours):**
|
|
45
|
-
```sql
|
|
46
|
-
SELECT title, status, updated_at
|
|
47
|
-
FROM work_items
|
|
48
|
-
WHERE updated_at > now() - interval '48 hours'
|
|
49
|
-
ORDER BY updated_at DESC LIMIT 15;
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
5. **Git status:**
|
|
53
|
-
```bash
|
|
54
|
-
git log --oneline -10
|
|
55
|
-
git status
|
|
56
|
-
git branch -v
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
6. **Infrastructure health** (if MCP available):
|
|
60
|
-
- Get infrastructure overview or diagnose issues
|
|
61
|
-
- Report any apps with failed builds or down containers
|
|
62
|
-
|
|
63
|
-
7. **Present as a compact dashboard:**
|
|
64
|
-
```
|
|
65
|
-
## Open Epics (N)
|
|
66
|
-
<table>
|
|
67
|
-
|
|
68
|
-
## Work Items: X done | Y todo | Z in_progress
|
|
69
|
-
|
|
70
|
-
## Recent (48h)
|
|
71
|
-
<list>
|
|
72
|
-
|
|
73
|
-
## Deployments
|
|
74
|
-
<green/red/yellow status>
|
|
75
|
-
|
|
76
|
-
## Recommended Next
|
|
77
|
-
<highest priority unstarted epic>
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Rules
|
|
81
|
-
- Keep output concise — this is a glance, not a deep dive
|
|
82
|
-
- Always end with a recommendation for what to work on next
|
|
83
|
-
- After the Recommended Next section, suggest which guide file from `.rdc/guides/` (fallback: `.rdc/guides/`) the recommended work would need
|
|
84
|
-
- Use database MCP for queries (not raw curl)
|
|
85
|
-
- If infrastructure MCP is unavailable, skip deployment status and note it
|