@lifeaitools/rdc-skills 0.25.0 → 0.25.2
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 +1560 -1518
- package/.github/workflows/self-test.yml +34 -34
- package/CHANGELOG.md +322 -310
- package/MANIFEST.md +224 -221
- package/README.md +379 -377
- package/commands/build.md +181 -181
- package/commands/collab.md +180 -180
- package/commands/deploy.md +148 -148
- package/commands/fixit.md +150 -150
- package/commands/handoff.md +173 -173
- package/commands/overnight.md +220 -220
- package/commands/plan.md +158 -158
- package/commands/preplan.md +131 -131
- package/commands/prototype.md +145 -145
- package/commands/report.md +99 -99
- package/commands/review.md +120 -120
- package/commands/status.md +86 -86
- package/commands/workitems.md +127 -127
- package/git-sha.json +1 -1
- package/guides/agent-bootstrap.md +195 -195
- package/guides/agents/backend.md +102 -102
- package/guides/agents/content.md +94 -94
- package/guides/agents/cs2.md +56 -56
- package/guides/agents/data.md +86 -86
- package/guides/agents/design.md +77 -77
- package/guides/agents/frontend.md +91 -91
- package/guides/agents/infrastructure.md +81 -81
- package/guides/agents/setup.md +272 -272
- package/guides/agents/verify.md +119 -119
- package/guides/agents/viz.md +106 -106
- package/package.json +57 -57
- package/scripts/install-rdc-skills.js +1401 -1289
- package/scripts/self-test.mjs +1460 -1460
- package/scripts/validate-publish-manifests.js +502 -502
- package/skills/build/SKILL.md +574 -559
- package/skills/channel-formatter/SKILL.md +538 -538
- package/skills/collab/SKILL.md +239 -239
- package/skills/convert/SKILL.md +167 -167
- package/skills/deploy/SKILL.md +541 -541
- package/skills/design/SKILL.md +205 -205
- package/skills/env/SKILL.md +141 -0
- package/skills/fixit/SKILL.md +203 -203
- package/skills/fs-mcp/SKILL.md +37 -2
- package/skills/handoff/SKILL.md +236 -236
- package/skills/new-model/SKILL.md +49 -0
- package/skills/onramp/SKILL.md +1459 -248
- package/skills/overnight/SKILL.md +251 -251
- package/skills/plan/SKILL.md +345 -345
- package/skills/preplan/SKILL.md +90 -90
- package/skills/prototype/SKILL.md +150 -150
- package/skills/regen-media/SKILL.md +94 -0
- package/skills/release/SKILL.md +140 -140
- package/skills/report/SKILL.md +100 -100
- package/skills/review/SKILL.md +159 -151
- package/skills/self-test/SKILL.md +108 -108
- package/skills/status/SKILL.md +99 -99
- package/skills/tests/MATRIX.md +55 -54
- package/skills/tests/onramp.test.json +87 -87
- package/skills/tests/rdc-regen-media.test.json +29 -0
- package/skills/watch/SKILL.md +84 -84
- package/skills/workitems/SKILL.md +151 -151
package/commands/review.md
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: rdc:review
|
|
3
|
-
description: >-
|
|
4
|
-
Usage `rdc:review [--unattended]` — tests, typecheck, stale docs, export conflicts across modified packages. Fixes issues found. Use after a build session or before merging to main.
|
|
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:review — Quality Gate
|
|
17
|
-
|
|
18
|
-
## When to Use
|
|
19
|
-
- After a build session (especially overnight builds)
|
|
20
|
-
- Before merging development → main/production
|
|
21
|
-
- Project lead asks "review the work", "is everything clean"
|
|
22
|
-
- Before any production deployment
|
|
23
|
-
- Called by `rdc:overnight` after each epic build completes
|
|
24
|
-
|
|
25
|
-
## Arguments
|
|
26
|
-
- `rdc:review` — interactive review, pauses on issues needing judgment
|
|
27
|
-
- `rdc:review --unattended` — silent mode, auto-fixes everything fixable
|
|
28
|
-
|
|
29
|
-
## Procedure
|
|
30
|
-
|
|
31
|
-
1. **Identify modified packages:**
|
|
32
|
-
```bash
|
|
33
|
-
git diff --name-only origin/main...HEAD | grep "^packages/" | cut -d/ -f2 | sort -u
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
2. **Run tests for each modified package:**
|
|
37
|
-
```bash
|
|
38
|
-
cd packages/<name> && npx vitest run 2>&1 | tail -10
|
|
39
|
-
```
|
|
40
|
-
Report: package → test count → pass/fail → new tests added
|
|
41
|
-
|
|
42
|
-
**IMPORTANT:** `pnpm build` must NEVER be run (crashes system). Use `npx tsc --noEmit --project <path>/tsconfig.json` for typecheck instead. For packages without tests, typecheck is the verification method. Do NOT run vitest across the entire monorepo — check only modified packages individually.
|
|
43
|
-
|
|
44
|
-
3. **Check test coverage delta:**
|
|
45
|
-
```bash
|
|
46
|
-
git diff origin/main...HEAD -- packages/*/src/ | grep -c "^+" | head -5
|
|
47
|
-
git diff origin/main...HEAD -- packages/*/test* packages/*/src/**/*.test.* packages/*/src/**/*.spec.* 2>/dev/null | grep -c "^+" || echo 0
|
|
48
|
-
```
|
|
49
|
-
Flag any package where implementation lines added > 50 but test lines added = 0.
|
|
50
|
-
|
|
51
|
-
4. **Check for export conflicts:**
|
|
52
|
-
- Read `packages/*/src/index.ts` for any package with new exports
|
|
53
|
-
- Look for duplicate export names across the barrel
|
|
54
|
-
- Verify aliased exports don't shadow each other
|
|
55
|
-
|
|
56
|
-
5. **Check for TODO/FIXME/HACK:**
|
|
57
|
-
```bash
|
|
58
|
-
grep -rn "TODO\|FIXME\|HACK\|XXX" packages/*/src/ --include="*.ts" --include="*.tsx"
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
6. **Check package versions:**
|
|
62
|
-
- Any package with significant new code should have a version bump
|
|
63
|
-
- Compare package.json versions to what's in `docs/SYSTEM-STATE.md`
|
|
64
|
-
|
|
65
|
-
7. **Check for stale CLAUDE.md:**
|
|
66
|
-
- If new modules were added to a package, does its CLAUDE.md mention them?
|
|
67
|
-
- Flag any package where exports grew by >10 lines but CLAUDE.md wasn't updated
|
|
68
|
-
|
|
69
|
-
8. **Orphan work item audit:**
|
|
70
|
-
```sql
|
|
71
|
-
SELECT id, title, item_type, status, source, created_at::date
|
|
72
|
-
FROM work_items
|
|
73
|
-
WHERE parent_id IS NULL
|
|
74
|
-
AND item_type NOT IN ('epic', 'bug')
|
|
75
|
-
AND status NOT IN ('done', 'archived')
|
|
76
|
-
ORDER BY created_at DESC;
|
|
77
|
-
```
|
|
78
|
-
For each orphaned task found:
|
|
79
|
-
- If it clearly belongs to an open epic → attach it: `UPDATE work_items SET parent_id = '<epic-id>' WHERE id = '<task-id>'`
|
|
80
|
-
- If unclear → report (interactive) or flag in REVIEW_STATUS (unattended)
|
|
81
|
-
- Never silently leave orphaned tasks
|
|
82
|
-
|
|
83
|
-
9. **Verification gate — dispatch the verify agent:**
|
|
84
|
-
After any fixes land, run the verify gate on every touched package. See `guides/agents/verify.md`.
|
|
85
|
-
**Iron Law: no CLEAN verdict without fresh evidence.** Quote the vitest + tsc output in the report.
|
|
86
|
-
If verify fails → do NOT emit CLEAN. Loop back, fix, re-run verify.
|
|
87
|
-
|
|
88
|
-
10. **Fix issues found:**
|
|
89
|
-
- Failing tests → fix and commit
|
|
90
|
-
- Export conflicts → resolve and commit
|
|
91
|
-
- Missing version bumps → bump and commit
|
|
92
|
-
- All fixes as separate commits with descriptive messages
|
|
93
|
-
|
|
94
|
-
**Judgment calls:**
|
|
95
|
-
- Interactive: report — don't guess
|
|
96
|
-
- Unattended: escalate via advisor tool with: error message, surrounding context,
|
|
97
|
-
two most likely fix paths. Resume with advisor's recommendation.
|
|
98
|
-
If advisor unavailable: take the most conservative path, flag in status block.
|
|
99
|
-
|
|
100
|
-
11. **Report:**
|
|
101
|
-
- Interactive:
|
|
102
|
-
```
|
|
103
|
-
## Review Results
|
|
104
|
-
| Package | Tests | Pass/Fail | New Tests | Issues |
|
|
105
|
-
## Fixed
|
|
106
|
-
## Remaining Issues
|
|
107
|
-
## Verdict: CLEAN / HAS ISSUES
|
|
108
|
-
```
|
|
109
|
-
- Unattended: emit status block only:
|
|
110
|
-
```
|
|
111
|
-
REVIEW_STATUS: { verdict: "CLEAN|HAS_ISSUES", packages_checked, tests_passed, tests_failed, new_tests_added, fixes_applied, escalations }
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
## Rules
|
|
115
|
-
- Do NOT run `pnpm build` (crashes system) — vitest only
|
|
116
|
-
- Interactive: fix what you can, flag what needs decision
|
|
117
|
-
- Unattended: fix everything fixable; escalate judgment calls to advisor
|
|
118
|
-
- Each fix is a separate commit (not batched)
|
|
119
|
-
- Always push fixes to origin after committing *(skip if `$RDC_TEST=1` — echo `[RDC_TEST] skipping git push` instead)*
|
|
120
|
-
- Unattended: NEVER pause for input
|
|
1
|
+
---
|
|
2
|
+
name: rdc:review
|
|
3
|
+
description: >-
|
|
4
|
+
Usage `rdc:review [--unattended]` — tests, typecheck, stale docs, export conflicts across modified packages. Fixes issues found. Use after a build session or before merging to main.
|
|
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:review — Quality Gate
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
- After a build session (especially overnight builds)
|
|
20
|
+
- Before merging development → main/production
|
|
21
|
+
- Project lead asks "review the work", "is everything clean"
|
|
22
|
+
- Before any production deployment
|
|
23
|
+
- Called by `rdc:overnight` after each epic build completes
|
|
24
|
+
|
|
25
|
+
## Arguments
|
|
26
|
+
- `rdc:review` — interactive review, pauses on issues needing judgment
|
|
27
|
+
- `rdc:review --unattended` — silent mode, auto-fixes everything fixable
|
|
28
|
+
|
|
29
|
+
## Procedure
|
|
30
|
+
|
|
31
|
+
1. **Identify modified packages:**
|
|
32
|
+
```bash
|
|
33
|
+
git diff --name-only origin/main...HEAD | grep "^packages/" | cut -d/ -f2 | sort -u
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
2. **Run tests for each modified package:**
|
|
37
|
+
```bash
|
|
38
|
+
cd packages/<name> && npx vitest run 2>&1 | tail -10
|
|
39
|
+
```
|
|
40
|
+
Report: package → test count → pass/fail → new tests added
|
|
41
|
+
|
|
42
|
+
**IMPORTANT:** `pnpm build` must NEVER be run (crashes system). Use `npx tsc --noEmit --project <path>/tsconfig.json` for typecheck instead. For packages without tests, typecheck is the verification method. Do NOT run vitest across the entire monorepo — check only modified packages individually.
|
|
43
|
+
|
|
44
|
+
3. **Check test coverage delta:**
|
|
45
|
+
```bash
|
|
46
|
+
git diff origin/main...HEAD -- packages/*/src/ | grep -c "^+" | head -5
|
|
47
|
+
git diff origin/main...HEAD -- packages/*/test* packages/*/src/**/*.test.* packages/*/src/**/*.spec.* 2>/dev/null | grep -c "^+" || echo 0
|
|
48
|
+
```
|
|
49
|
+
Flag any package where implementation lines added > 50 but test lines added = 0.
|
|
50
|
+
|
|
51
|
+
4. **Check for export conflicts:**
|
|
52
|
+
- Read `packages/*/src/index.ts` for any package with new exports
|
|
53
|
+
- Look for duplicate export names across the barrel
|
|
54
|
+
- Verify aliased exports don't shadow each other
|
|
55
|
+
|
|
56
|
+
5. **Check for TODO/FIXME/HACK:**
|
|
57
|
+
```bash
|
|
58
|
+
grep -rn "TODO\|FIXME\|HACK\|XXX" packages/*/src/ --include="*.ts" --include="*.tsx"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
6. **Check package versions:**
|
|
62
|
+
- Any package with significant new code should have a version bump
|
|
63
|
+
- Compare package.json versions to what's in `docs/SYSTEM-STATE.md`
|
|
64
|
+
|
|
65
|
+
7. **Check for stale CLAUDE.md:**
|
|
66
|
+
- If new modules were added to a package, does its CLAUDE.md mention them?
|
|
67
|
+
- Flag any package where exports grew by >10 lines but CLAUDE.md wasn't updated
|
|
68
|
+
|
|
69
|
+
8. **Orphan work item audit:**
|
|
70
|
+
```sql
|
|
71
|
+
SELECT id, title, item_type, status, source, created_at::date
|
|
72
|
+
FROM work_items
|
|
73
|
+
WHERE parent_id IS NULL
|
|
74
|
+
AND item_type NOT IN ('epic', 'bug')
|
|
75
|
+
AND status NOT IN ('done', 'archived')
|
|
76
|
+
ORDER BY created_at DESC;
|
|
77
|
+
```
|
|
78
|
+
For each orphaned task found:
|
|
79
|
+
- If it clearly belongs to an open epic → attach it: `UPDATE work_items SET parent_id = '<epic-id>' WHERE id = '<task-id>'`
|
|
80
|
+
- If unclear → report (interactive) or flag in REVIEW_STATUS (unattended)
|
|
81
|
+
- Never silently leave orphaned tasks
|
|
82
|
+
|
|
83
|
+
9. **Verification gate — dispatch the verify agent:**
|
|
84
|
+
After any fixes land, run the verify gate on every touched package. See `guides/agents/verify.md`.
|
|
85
|
+
**Iron Law: no CLEAN verdict without fresh evidence.** Quote the vitest + tsc output in the report.
|
|
86
|
+
If verify fails → do NOT emit CLEAN. Loop back, fix, re-run verify.
|
|
87
|
+
|
|
88
|
+
10. **Fix issues found:**
|
|
89
|
+
- Failing tests → fix and commit
|
|
90
|
+
- Export conflicts → resolve and commit
|
|
91
|
+
- Missing version bumps → bump and commit
|
|
92
|
+
- All fixes as separate commits with descriptive messages
|
|
93
|
+
|
|
94
|
+
**Judgment calls:**
|
|
95
|
+
- Interactive: report — don't guess
|
|
96
|
+
- Unattended: escalate via advisor tool with: error message, surrounding context,
|
|
97
|
+
two most likely fix paths. Resume with advisor's recommendation.
|
|
98
|
+
If advisor unavailable: take the most conservative path, flag in status block.
|
|
99
|
+
|
|
100
|
+
11. **Report:**
|
|
101
|
+
- Interactive:
|
|
102
|
+
```
|
|
103
|
+
## Review Results
|
|
104
|
+
| Package | Tests | Pass/Fail | New Tests | Issues |
|
|
105
|
+
## Fixed
|
|
106
|
+
## Remaining Issues
|
|
107
|
+
## Verdict: CLEAN / HAS ISSUES
|
|
108
|
+
```
|
|
109
|
+
- Unattended: emit status block only:
|
|
110
|
+
```
|
|
111
|
+
REVIEW_STATUS: { verdict: "CLEAN|HAS_ISSUES", packages_checked, tests_passed, tests_failed, new_tests_added, fixes_applied, escalations }
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Rules
|
|
115
|
+
- Do NOT run `pnpm build` (crashes system) — vitest only
|
|
116
|
+
- Interactive: fix what you can, flag what needs decision
|
|
117
|
+
- Unattended: fix everything fixable; escalate judgment calls to advisor
|
|
118
|
+
- Each fix is a separate commit (not batched)
|
|
119
|
+
- Always push fixes to origin after committing *(skip if `$RDC_TEST=1` — echo `[RDC_TEST] skipping git push` instead)*
|
|
120
|
+
- Unattended: NEVER pause for input
|
package/commands/status.md
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: rdc:status
|
|
3
|
-
description: >-
|
|
4
|
-
Usage `rdc:status` — open epics, work items by project, Coolify health, blockers, next recommended action. Read-only situational awareness.
|
|
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
|
-
|
|
14
|
-
# rdc:status — Project Dashboard
|
|
15
|
-
|
|
16
|
-
## When to Use
|
|
17
|
-
- Start of any session
|
|
18
|
-
- Project lead asks "what's the status", "where are we", "what's open"
|
|
19
|
-
- Before deciding what to work on next
|
|
20
|
-
|
|
21
|
-
## Procedure
|
|
22
|
-
|
|
23
|
-
1. **Open epics:**
|
|
24
|
-
```sql
|
|
25
|
-
SELECT get_open_epics();
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
2. **Work item counts by status:**
|
|
29
|
-
```sql
|
|
30
|
-
SELECT status, count(*) FROM work_items
|
|
31
|
-
WHERE status != 'archived'
|
|
32
|
-
GROUP BY status ORDER BY status;
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
3. **Items by label/project (top 10 labels):**
|
|
36
|
-
```sql
|
|
37
|
-
SELECT unnest(labels) as label, count(*),
|
|
38
|
-
count(*) FILTER (WHERE status = 'done') as done,
|
|
39
|
-
count(*) FILTER (WHERE status = 'todo') as todo,
|
|
40
|
-
count(*) FILTER (WHERE status = 'in_progress') as wip
|
|
41
|
-
FROM work_items
|
|
42
|
-
GROUP BY label ORDER BY count DESC LIMIT 10;
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
4. **Recent activity (last 48 hours):**
|
|
46
|
-
```sql
|
|
47
|
-
SELECT title, status, updated_at
|
|
48
|
-
FROM work_items
|
|
49
|
-
WHERE updated_at > now() - interval '48 hours'
|
|
50
|
-
ORDER BY updated_at DESC LIMIT 15;
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
5. **Git status:**
|
|
54
|
-
```bash
|
|
55
|
-
git log --oneline -10
|
|
56
|
-
git status
|
|
57
|
-
git branch -v
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
6. **Infrastructure health** (if MCP available):
|
|
61
|
-
- Get infrastructure overview or diagnose issues
|
|
62
|
-
- Report any apps with failed builds or down containers
|
|
63
|
-
|
|
64
|
-
7. **Present as a compact dashboard:**
|
|
65
|
-
```
|
|
66
|
-
## Open Epics (N)
|
|
67
|
-
<table>
|
|
68
|
-
|
|
69
|
-
## Work Items: X done | Y todo | Z in_progress
|
|
70
|
-
|
|
71
|
-
## Recent (48h)
|
|
72
|
-
<list>
|
|
73
|
-
|
|
74
|
-
## Deployments
|
|
75
|
-
<green/red/yellow status>
|
|
76
|
-
|
|
77
|
-
## Recommended Next
|
|
78
|
-
<highest priority unstarted epic>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Rules
|
|
82
|
-
- Keep output concise — this is a glance, not a deep dive
|
|
83
|
-
- Always end with a recommendation for what to work on next
|
|
84
|
-
- After the Recommended Next section, suggest which guide file from `.rdc/guides/` (fallback: `.rdc/guides/`) the recommended work would need
|
|
85
|
-
- Use database MCP for queries (not raw curl)
|
|
86
|
-
- If infrastructure MCP is unavailable, skip deployment status and note it
|
|
1
|
+
---
|
|
2
|
+
name: rdc:status
|
|
3
|
+
description: >-
|
|
4
|
+
Usage `rdc:status` — open epics, work items by project, Coolify health, blockers, next recommended action. Read-only situational awareness.
|
|
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
|
+
|
|
14
|
+
# rdc:status — Project Dashboard
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
- Start of any session
|
|
18
|
+
- Project lead asks "what's the status", "where are we", "what's open"
|
|
19
|
+
- Before deciding what to work on next
|
|
20
|
+
|
|
21
|
+
## Procedure
|
|
22
|
+
|
|
23
|
+
1. **Open epics:**
|
|
24
|
+
```sql
|
|
25
|
+
SELECT get_open_epics();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
2. **Work item counts by status:**
|
|
29
|
+
```sql
|
|
30
|
+
SELECT status, count(*) FROM work_items
|
|
31
|
+
WHERE status != 'archived'
|
|
32
|
+
GROUP BY status ORDER BY status;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
3. **Items by label/project (top 10 labels):**
|
|
36
|
+
```sql
|
|
37
|
+
SELECT unnest(labels) as label, count(*),
|
|
38
|
+
count(*) FILTER (WHERE status = 'done') as done,
|
|
39
|
+
count(*) FILTER (WHERE status = 'todo') as todo,
|
|
40
|
+
count(*) FILTER (WHERE status = 'in_progress') as wip
|
|
41
|
+
FROM work_items
|
|
42
|
+
GROUP BY label ORDER BY count DESC LIMIT 10;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
4. **Recent activity (last 48 hours):**
|
|
46
|
+
```sql
|
|
47
|
+
SELECT title, status, updated_at
|
|
48
|
+
FROM work_items
|
|
49
|
+
WHERE updated_at > now() - interval '48 hours'
|
|
50
|
+
ORDER BY updated_at DESC LIMIT 15;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
5. **Git status:**
|
|
54
|
+
```bash
|
|
55
|
+
git log --oneline -10
|
|
56
|
+
git status
|
|
57
|
+
git branch -v
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
6. **Infrastructure health** (if MCP available):
|
|
61
|
+
- Get infrastructure overview or diagnose issues
|
|
62
|
+
- Report any apps with failed builds or down containers
|
|
63
|
+
|
|
64
|
+
7. **Present as a compact dashboard:**
|
|
65
|
+
```
|
|
66
|
+
## Open Epics (N)
|
|
67
|
+
<table>
|
|
68
|
+
|
|
69
|
+
## Work Items: X done | Y todo | Z in_progress
|
|
70
|
+
|
|
71
|
+
## Recent (48h)
|
|
72
|
+
<list>
|
|
73
|
+
|
|
74
|
+
## Deployments
|
|
75
|
+
<green/red/yellow status>
|
|
76
|
+
|
|
77
|
+
## Recommended Next
|
|
78
|
+
<highest priority unstarted epic>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Rules
|
|
82
|
+
- Keep output concise — this is a glance, not a deep dive
|
|
83
|
+
- Always end with a recommendation for what to work on next
|
|
84
|
+
- After the Recommended Next section, suggest which guide file from `.rdc/guides/` (fallback: `.rdc/guides/`) the recommended work would need
|
|
85
|
+
- Use database MCP for queries (not raw curl)
|
|
86
|
+
- If infrastructure MCP is unavailable, skip deployment status and note it
|