@lifeaitools/rdc-skills 0.35.7 → 0.35.9

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.
@@ -1,148 +0,0 @@
1
- ---
2
- name: workitems
3
- description: rdc:workitems ([subcommand]) — create, update and query work items directly
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:workitems — Work Item Management
14
-
15
- ## Rules
16
-
17
- 1. **Epic first, always.** Never create a task without a parent epic.
18
- 2. **Label everything.** Minimum one system label per item.
19
- 3. **Check first.** `get_open_epics()` before creating anything new.
20
- 4. **Link design docs.** Put `.rdc/plans/` or `.rdc/research/` paths in descriptions (fallback: `.rdc/plans/` / `.rdc/research/`).
21
-
22
- ## Read Epics
23
-
24
- ```sql
25
- SELECT get_open_epics();
26
- SELECT get_open_epics('urgent');
27
- SELECT get_open_epics(p_label_filter := 'custom-label');
28
- ```
29
-
30
- ## Create Epic
31
-
32
- ```sql
33
- SELECT insert_work_item(
34
- p_title := 'EPIC: Clear descriptive title',
35
- p_description := 'What and why. Reference .rdc/plans/<n>.md if applicable.',
36
- p_item_type := 'epic',
37
- p_priority := 'high',
38
- p_labels := ARRAY['system-label'],
39
- p_source := 'planning'
40
- );
41
-
42
- -- Immediately populate governance refs. architecture_ref stays NULL unless this epic
43
- -- crosses an architectural boundary (storage authority, process topology, auth boundary,
44
- -- deployment model, persistence, service ownership, public contract) — setting it holds
45
- -- every child task for a required architecture-fidelity-* checklist row at close time.
46
- SELECT set_epic_governance_refs(
47
- p_epic_id := '<epic-uuid>'::uuid,
48
- p_plan_ref := '.rdc/plans/<n>.md or NULL',
49
- p_spec_ref := '.rdc/plans/<n>.md or NULL',
50
- p_architecture_ref := NULL,
51
- p_scoping_statement := '<one paragraph: what is in scope and what is explicitly out>'
52
- );
53
- ```
54
-
55
- ## Create Task
56
-
57
- ```sql
58
- SELECT insert_work_item(
59
- p_title := 'Specific actionable task title',
60
- p_description := 'What: <deliverable>
61
- Where: <files to create/modify>
62
- Agent type: frontend | backend | data | design | infra | content | cs2
63
- Guide: .rdc/guides/<type>.md (fallback: .rdc/guides/<type>.md)
64
- Design doc: .rdc/plans/<n>.md (fallback: .rdc/plans/<n>.md, if exists)
65
- Depends on: <other task title if sequential>
66
- Est: <hours>',
67
- p_parent_id := '<epic-uuid>'::uuid,
68
- p_item_type := 'task',
69
- p_priority := 'high',
70
- p_labels := ARRAY['system-label'],
71
- p_estimated_hours := 2,
72
- p_source := 'planning'
73
- );
74
- ```
75
-
76
- ## Update Status
77
-
78
- ```sql
79
- SELECT update_work_item_status('<uuid>'::uuid, 'in_progress');
80
- SELECT update_work_item_status('<uuid>'::uuid, 'review', '["Implementation complete; ready for validator"]'::jsonb, '<agent-session-id>', 'agent');
81
- SELECT update_work_item_status('<uuid>'::uuid, 'done', '["Validator verified implementation report, CodeFlow post, and checklist evidence"]'::jsonb, '<validator-session-id>', 'validator');
82
- SELECT update_work_item_status('<uuid>'::uuid, 'blocked', '["Why it is blocked"]'::jsonb);
83
- ```
84
-
85
- Non-epic `done` is a validator-only close and requires an existing
86
- `implementation_report.codeflow_post`, checked required checklist evidence, and
87
- originating-agent tick audit.
88
-
89
- ## Read Tasks in an Epic
90
-
91
- ```sql
92
- SELECT get_work_items_by_epic('<epic-uuid>'::uuid);
93
- SELECT get_work_items_by_epic('<epic-uuid>'::uuid, 'todo');
94
- ```
95
-
96
- ## Bump Epic Version
97
-
98
- ```sql
99
- SELECT bump_epic_version('<epic-uuid>'::uuid, '0.2.0', 'What changed', 'planning');
100
- ```
101
-
102
- ## Valid Values
103
-
104
- | Field | Values |
105
- |-------|--------|
106
- | status | `todo` `in_progress` `blocked` `review` `done` `archived` |
107
- | priority | `urgent` `high` `normal` `low` |
108
- | item_type | `epic` `task` `subtask` `bug` `spike` |
109
-
110
- ## System Labels
111
-
112
- | Label | When |
113
- |-------|------|
114
- | `project-a` | Your-app-specific work |
115
- | `project-b` | Another app work |
116
- | `cs2` | Core paradigm packages |
117
- | `hail` | Grammar, DSL compiler |
118
- | `pal` | Moment windows, memory |
119
- | `virtue` | Virtue engine, coherence |
120
- | `marketing` | Outreach, campaigns |
121
- | `media` | Assets, R2, image pipeline |
122
- | `infrastructure` | CI/CD, deployment |
123
- | `ui` | Component library |
124
- | `data` | Schema, migrations |
125
- | `content` | Copy, messaging |
126
- | `website` | Public-facing sites |
127
-
128
- ## Agent Type → Guide File Reference
129
-
130
- | Type | Guide | Use For |
131
- |------|-------|---------|
132
- | `frontend` | .rdc/guides/frontend.md | React, pages, UI, Tailwind |
133
- | `backend` | .rdc/guides/backend.md | API routes, database, auth |
134
- | `data` | .rdc/guides/data.md | Migrations, schema, RPC |
135
- | `design` | .rdc/guides/design.md | Brand, palette, OG images |
136
- | `infra` | .rdc/guides/infrastructure.md | CI/CD, deploy, DNS |
137
- | `content` | .rdc/guides/content.md | Copy, messaging, tone |
138
- | `cs2` | .rdc/guides/cs2.md | CS 2.0 paradigm |
139
- | `hail` | .rdc/guides/cs2.md + packages/hail/CLAUDE.md | Grammar, DSL |
140
- | `viz` | .rdc/guides/frontend.md + design.md | Custom visualizations |
141
-
142
- ## What NOT to Do
143
-
144
- - Never raw INSERT/UPDATE against work items — RPC functions only
145
- - Never create tasks without a parent epic
146
- - Never leave labels empty
147
- - Never write vague titles ("Fix stuff") — be specific
148
- - Never put design intention in the task — put it in `.rdc/research/` (fallback: `.rdc/research/`) and link