@lifeaitools/rdc-skills 0.9.24 → 0.9.26
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/README.md +1 -1
- package/package.json +2 -2
- package/skills/design/SKILL.md +80 -4
- package/skills/fixit/SKILL.md +6 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifeaitools/rdc-skills",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.26",
|
|
4
4
|
"description": "RDC typed-agent dispatch skill suite for Claude Code — plan, build, review, overnight builds",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"type": "plugin",
|
|
20
20
|
"skills": "skills/",
|
|
21
21
|
"guides": "guides/",
|
|
22
|
-
"version": "0.9.
|
|
22
|
+
"version": "0.9.26",
|
|
23
23
|
"commands": "commands/"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
package/skills/design/SKILL.md
CHANGED
|
@@ -27,6 +27,7 @@ RDC-owned design execution for Studio and LIFEAI interfaces. This skill is the S
|
|
|
27
27
|
## Arguments
|
|
28
28
|
|
|
29
29
|
- `rdc:design` — show the command menu
|
|
30
|
+
- `rdc:design edit <target>` — start a local source-edit session for a URL, app, brand, route, or file
|
|
30
31
|
- `rdc:design studio <target>` — Studio-aware design task
|
|
31
32
|
- `rdc:design tokens <brand-or-route>` — token model, resolver, export, or governance task
|
|
32
33
|
- `rdc:design palette <brief>` — Palette Library or palette generation task
|
|
@@ -57,8 +58,10 @@ Project docs to read for Studio work:
|
|
|
57
58
|
## Procedure
|
|
58
59
|
|
|
59
60
|
1. **Classify the task.**
|
|
61
|
+
- `edit` means start a local source-edit session. Do not show the generic command menu for `edit`.
|
|
60
62
|
- `studio`, `tokens`, `palette`, and `theme` always load the Studio model.
|
|
61
63
|
- `palette`, `theme`, and `colorize` also load the Rampa reference.
|
|
64
|
+
- Any task involving colors, palettes, ramps, contrast, neutrals, light/dark color pairs, status colors, chart colors, or theme colors loads the Rampa reference.
|
|
62
65
|
- `audit`, `critique`, `polish`, and `craft` load Studio model when the target is inside Studio or uses Studio tokens.
|
|
63
66
|
|
|
64
67
|
2. **Read the actual system context.**
|
|
@@ -72,24 +75,96 @@ Project docs to read for Studio work:
|
|
|
72
75
|
- Live editor: RDC Native Local Debug only — `/editor/local/*`, `/api/editor/local-debug`, `/studio/debug/*`, `/studio/claude/*`, and `scripts/studio-debug-poll.mjs`.
|
|
73
76
|
- Components: `@regen/ui`, Studio component registry, and existing local components.
|
|
74
77
|
|
|
75
|
-
4. **
|
|
78
|
+
4. **For `edit`, start the local session directly.**
|
|
79
|
+
- Intent syntax:
|
|
80
|
+
```powershell
|
|
81
|
+
rdc:design edit <url|domain|brand|app|file>
|
|
82
|
+
```
|
|
83
|
+
- Required variables:
|
|
84
|
+
- `target`
|
|
85
|
+
- `brandSlug`
|
|
86
|
+
- `appSlug`
|
|
87
|
+
- `repoRoot`
|
|
88
|
+
- `cwd`
|
|
89
|
+
- `connectorBaseUrl`
|
|
90
|
+
- `studioOrigin`
|
|
91
|
+
- `modeDefault`
|
|
92
|
+
- Fill missing variables from the obvious target mapping before asking:
|
|
93
|
+
- `test`, `studio_test`, `studio-test` -> `--brand test --app studio_test`
|
|
94
|
+
- `prt`, `prt-portal`, `prtrust.fund`, `dev.prtrust.fund` -> `--brand prt --app prt`
|
|
95
|
+
- If the target is a file path and brand/app are not obvious, ask one concise question for the missing brand/app. Do not search broadly or show the generic command menu.
|
|
96
|
+
- Canonical start call:
|
|
97
|
+
```powershell
|
|
98
|
+
curl.exe -s -X POST "http://127.0.0.1:52437/studio/debug/start" `
|
|
99
|
+
-H "Content-Type: application/json" `
|
|
100
|
+
-d "{\"brandSlug\":\"<brandSlug>\",\"appSlug\":\"<appSlug>\",\"repoRoot\":\"C:/Dev/regen-root\",\"cwd\":\"C:/Dev/regen-root\",\"modeDefault\":\"direct_edit\",\"startedBy\":\"claude-cli\"}"
|
|
101
|
+
```
|
|
102
|
+
- Expected successful response shape:
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"ok": true,
|
|
106
|
+
"sessionId": "studio-...",
|
|
107
|
+
"token": "...",
|
|
108
|
+
"devUrl": "http://localhost:3006",
|
|
109
|
+
"relayBaseUrl": "http://127.0.0.1:52437/studio/debug/studio-...",
|
|
110
|
+
"claudeBaseUrl": "http://127.0.0.1:52437/studio/claude/studio-...",
|
|
111
|
+
"pollCommand": "node scripts/studio-debug-poll.mjs --session ... --token ... --relay ..."
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
- Construct the Studio attach URL exactly:
|
|
115
|
+
```txt
|
|
116
|
+
http://localhost:3011/editor/local/<brandSlug>?attach=1&sessionId=<sessionId>&token=<token>
|
|
117
|
+
```
|
|
118
|
+
- Never send the user to `/editor/local/<brandSlug>` without `attach=1&sessionId=...&token=...`.
|
|
119
|
+
- Canonical poll call:
|
|
120
|
+
```powershell
|
|
121
|
+
curl.exe -s "http://127.0.0.1:52437/studio/claude/<sessionId>/poll?token=<token>&timeout=600000"
|
|
122
|
+
```
|
|
123
|
+
- Canonical reply call:
|
|
124
|
+
```powershell
|
|
125
|
+
curl.exe -s -X POST "http://127.0.0.1:52437/studio/claude/<sessionId>/reply" `
|
|
126
|
+
-H "Content-Type: application/json" `
|
|
127
|
+
-d "{\"token\":\"<token>\",\"eventId\":\"<eventId>\",\"status\":\"done\",\"message\":\"Edited <path>\",\"filesChanged\":[\"<path>\"]}"
|
|
128
|
+
```
|
|
129
|
+
- Allowed terminal statuses are `done`, `error`, `blocked`, and `needs_reference`.
|
|
130
|
+
- Convenience helper, equivalent to the canonical start call plus attach URL construction:
|
|
131
|
+
```powershell
|
|
132
|
+
node scripts/studio-debug-start.mjs --target <url|domain|brand|app|file> [--brand <slug>] [--app <slug>] [--mode direct_edit|variant_edit|reference_replace|note] [--studio-origin http://localhost:3011] [--connector http://127.0.0.1:52437] [--repo-root C:/Dev/regen-root] [--cwd C:/Dev/regen-root] [--dev-url <url>] [--dev-command <command>] [--no-launch]
|
|
133
|
+
```
|
|
134
|
+
- Helper output contract:
|
|
135
|
+
```txt
|
|
136
|
+
STUDIO_URL=http://localhost:3011/editor/local/<brandSlug>?attach=1&sessionId=...&token=...
|
|
137
|
+
POLL_COMMAND=node scripts/studio-debug-poll.mjs --session ... --token ... --relay ...
|
|
138
|
+
SESSION_FILE=.studio-debug/<sessionId>.json
|
|
139
|
+
```
|
|
140
|
+
- If using the helper, run:
|
|
141
|
+
```powershell
|
|
142
|
+
node scripts/studio-debug-start.mjs --target <target>
|
|
143
|
+
```
|
|
144
|
+
- Return `STUDIO_URL` and `POLL_COMMAND` to the user. If operating as Claude CLI, open or instruct opening `STUDIO_URL`, then run `POLL_COMMAND`.
|
|
145
|
+
- After an event is received, edit the source directly and reply with the helper or canonical reply call:
|
|
146
|
+
```powershell
|
|
147
|
+
node scripts/studio-debug-poll.mjs --session <sessionId> --token <token> --relay <claudeBaseUrl> --reply <eventId> done --file <path> --message "Edited <path>"
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
5. **Use Rampa only as proposal tooling.**
|
|
76
151
|
- Run Rampa CLI for color ramps, APCA/WCAG checks, tinted neutrals, status palettes, or data-viz palettes.
|
|
77
152
|
- Treat output as draft design material.
|
|
78
153
|
- Persist only after mapping into Studio token roles or Palette Library payloads.
|
|
79
154
|
|
|
80
|
-
|
|
155
|
+
6. **Apply RDC design rules.**
|
|
81
156
|
- Use Studio tokens for production surfaces.
|
|
82
157
|
- Do not hardcode color/font/spacing when a token exists.
|
|
83
158
|
- Do not modify locked governance tokens.
|
|
84
159
|
- Keep product UIs compact, operational, and scannable.
|
|
85
160
|
- Avoid generic AI design patterns and card-heavy layouts.
|
|
86
161
|
|
|
87
|
-
|
|
162
|
+
7. **Plan edits before mutating files.**
|
|
88
163
|
- State the files/routes/tables involved.
|
|
89
164
|
- Use RDC work-item protocol for non-trivial implementation.
|
|
90
165
|
- Keep unrelated installed skills and vendor artifacts untouched.
|
|
91
166
|
|
|
92
|
-
|
|
167
|
+
8. **Verify.**
|
|
93
168
|
- Run scoped tests only.
|
|
94
169
|
- For Studio: prefer route smoke checks, token API checks, and browser screenshots when UI changed.
|
|
95
170
|
- For CLI prompt work: run `node C:/Dev/rdc-skills/scripts/rdc-design-cli.mjs <command> <brief>` and inspect the generated report under `.rdc/reports/rdc-design-cli/`.
|
|
@@ -98,6 +173,7 @@ Project docs to read for Studio work:
|
|
|
98
173
|
|
|
99
174
|
| Command | Purpose |
|
|
100
175
|
|---|---|
|
|
176
|
+
| `edit` | Start a local source-edit session for a URL, app, brand, route, or file |
|
|
101
177
|
| `studio` | Studio-aware design/build task with token, route, and editor context |
|
|
102
178
|
| `tokens` | Diagnose or design token usage, resolver flow, API/export, governance |
|
|
103
179
|
| `palette` | Palette Library work, palette generation, external Palette Designer handoff |
|
package/skills/fixit/SKILL.md
CHANGED
|
@@ -93,7 +93,7 @@ Submit implementation report first, then mark done:
|
|
|
93
93
|
|
|
94
94
|
```sql
|
|
95
95
|
SELECT submit_implementation_report('<id>'::uuid,
|
|
96
|
-
'{"tldr":"<one sentence>","assumptions":[],"deviations":[],"uncertainty":[],"detail":"<what was fixed>","flags":[]}'::jsonb
|
|
96
|
+
'{"tldr":"<one sentence>","assumptions":[],"deviations":[],"uncertainty":[],"detail":"<what was fixed>","flags":[],"transactional":false,"memory_records":[]}'::jsonb
|
|
97
97
|
);
|
|
98
98
|
|
|
99
99
|
SELECT update_work_item_status('<id>'::uuid, 'done',
|
|
@@ -101,6 +101,11 @@ SELECT update_work_item_status('<id>'::uuid, 'done',
|
|
|
101
101
|
);
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
+
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:
|
|
105
|
+
```bash
|
|
106
|
+
node scripts/work-item-memory.mjs <work-item-id>
|
|
107
|
+
```
|
|
108
|
+
|
|
104
109
|
```bash
|
|
105
110
|
rm {USER_HOME}/.claude/fixit.marker
|
|
106
111
|
```
|