skills/design/SKILL.md
Usage `rdc:design <topic>` — RDC-owned design work for Studio, Palette Library, and token-aware UI systems. Use for Rampant color work or design-system-first builds owned by the design cell. Not for general UI polish — use impeccable for that.
npx skillsauth add LIFEAI/rdc-skills rdc:designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
⚠️ OUTPUT CONTRACT (READ FIRST):
guides/output-contract.mdChecklist-only output. No tool-call narration. No raw MCP/JSON/log dumps. One checklist upfront, updated in place, shown again at end with a 1-line verdict.
If dispatching subagents or running as a subagent: read
{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.mdfirst (fallback:{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md).
Sandbox contract: This skill honors
RDC_TEST=1perguides/agent-bootstrap.md§ RDC_TEST Sandbox Contract. Destructive external calls, Supabase writes, git pushes, package publishes, and deploys are skipped underRDC_TEST=1.
RDC-owned design execution for Studio and LIFEAI interfaces. This skill is the Studio-aware design authority for RDC token, palette, theme, component, and local-debug work.
{PROJECT_ROOT}rdc:design — show the command menurdc:design edit <target> — start a local source-edit session for a URL, app, brand, route, or filerdc:design studio <target> — Studio-aware design taskrdc:design tokens <brand-or-route> — token model, resolver, export, or governance taskrdc:design palette <brief> — Palette Library or palette generation taskrdc:design theme <brief> — theme generation/application taskrdc:design colorize <target> — Rampa-assisted color-system workrdc:design audit <target> — design quality auditrdc:design critique <target> — UX/design critiquerdc:design polish <target> — final visual and interaction passrdc:design craft <feature> — shape and build a token-aware UI featureLoad only what applies, but do not skip the Studio model for Studio/token/palette/theme work.
| Task type | Required reference |
|---|---|
| Studio, tokens, palettes, themes, editor | skills/design/reference/studio-model.md |
| Color generation, ramps, contrast, neutrals | skills/design/reference/rampa.md |
| Ownership, operating boundary, attribution files | skills/design/reference/ownership.md |
Project docs to read for Studio work:
docs/systems/studio/ARCHITECTURE.mdapps/studio/CLAUDE.md.claude/context/design-system-global.mdClassify the task.
edit means start a local source-edit session. Do not show the generic command menu for edit.studio, tokens, palette, and theme always load the Studio model.palette, theme, and colorize also load the Rampa reference.audit, critique, polish, and craft load Studio model when the target is inside Studio or uses Studio tokens.Read the actual system context.
docs/systems/studio/ARCHITECTURE.md and apps/studio/CLAUDE.md..claude/context/design-system-global.md.CLAUDE.md if present.Find the source of truth before proposing changes.
/editor/local/*, /api/editor/local-debug, /studio/debug/*, /studio/claude/*, and scripts/studio-debug-poll.mjs.@regen/ui, Studio component registry, and existing local components.For edit, start the local session directly.
rdc:design edit <url|domain|brand|app|file>
targetbrandSlugappSlugrepoRootcwdconnectorBaseUrlstudioOriginmodeDefaulttest, studio_test, studio-test -> --brand test --app studio_testprt, prt-portal, prtrust.fund, dev.prtrust.fund -> --brand prt --app prtcurl.exe -s -X POST "http://127.0.0.1:52437/studio/debug/start" `
-H "Content-Type: application/json" `
-d "{\"brandSlug\":\"<brandSlug>\",\"appSlug\":\"<appSlug>\",\"repoRoot\":\"{PROJECT_ROOT}\",\"cwd\":\"{PROJECT_ROOT}\",\"modeDefault\":\"direct_edit\",\"startedBy\":\"claude-cli\"}"
{
"ok": true,
"sessionId": "studio-...",
"token": "...",
"devUrl": "http://localhost:3006",
"relayBaseUrl": "http://127.0.0.1:52437/studio/debug/studio-...",
"claudeBaseUrl": "http://127.0.0.1:52437/studio/claude/studio-...",
"pollCommand": "node scripts/studio-debug-poll.mjs --session ... --token ... --relay ..."
}
http://localhost:3011/editor/local/<brandSlug>?attach=1&sessionId=<sessionId>&token=<token>
/editor/local/<brandSlug> without attach=1&sessionId=...&token=....curl.exe -s "http://127.0.0.1:52437/studio/claude/<sessionId>/poll?token=<token>&timeout=600000"
curl.exe -s -X POST "http://127.0.0.1:52437/studio/claude/<sessionId>/reply" `
-H "Content-Type: application/json" `
-d "{\"token\":\"<token>\",\"eventId\":\"<eventId>\",\"status\":\"done\",\"message\":\"Edited <path>\",\"filesChanged\":[\"<path>\"]}"
done, error, blocked, and needs_reference.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 {PROJECT_ROOT}] [--cwd {PROJECT_ROOT}] [--dev-url <url>] [--dev-command <command>] [--no-launch]
STUDIO_URL=http://localhost:3011/editor/local/<brandSlug>?attach=1&sessionId=...&token=...
POLL_COMMAND=node scripts/studio-debug-poll.mjs --session ... --token ... --relay ...
SESSION_FILE=.studio-debug/<sessionId>.json
node scripts/studio-debug-start.mjs --target <target>
STUDIO_URL and POLL_COMMAND to the user. If operating as Claude CLI, open or instruct opening STUDIO_URL, then run POLL_COMMAND.node scripts/studio-debug-poll.mjs --session <sessionId> --token <token> --relay <claudeBaseUrl> --reply <eventId> done --file <path> --message "Edited <path>"
Use Rampa only as proposal tooling.
Apply RDC design rules.
Plan edits before mutating files.
Verify.
node {RDC_SKILLS_ROOT}/scripts/rdc-design-cli.mjs <command> <brief> and inspect the generated report under .rdc/reports/rdc-design-cli/.| Command | Purpose |
|---|---|
| edit | Start a local source-edit session for a URL, app, brand, route, or file |
| studio | Studio-aware design/build task with token, route, and editor context |
| tokens | Diagnose or design token usage, resolver flow, API/export, governance |
| palette | Palette Library work, palette generation, external Palette Designer handoff |
| theme | Theme creation/application/export against Studio's canonical model |
| colorize | Rampa-assisted color relationships and contrast checks |
| audit | Technical and visual audit |
| critique | UX/design review |
| polish | Final detail pass |
| craft | Shape and build a token-aware interface |
Use the local helper to see exactly how much instruction text the skill is generating before sending it through an agent:
node {RDC_SKILLS_ROOT}/scripts/rdc-design-cli.mjs studio "audit the Studio palette page"
node {RDC_SKILLS_ROOT}/scripts/rdc-design-cli.mjs palette "generate a PRT palette workflow"
node {RDC_SKILLS_ROOT}/scripts/rdc-design-cli.mjs --json theme "RDC earth-forward light theme"
The helper writes logs to:
{RDC_SKILLS_ROOT}/.rdc/reports/rdc-design-cli/
Each run includes character count, word count, approximate token count, references loaded, and the final prompt text.
/api/editor/render route.development
Read recent enhancement-log entries, cluster failures by pattern, generate candidate verifier rules, test them against the known-good corpus and the failure corpus, and propose pull requests adding the highest-confidence rules to forbidden-patterns.json. Use this skill on a nightly cadence (3 AM PT), or manually when the user says "extract verifier rules", "promote enhancement log", "what new rules should we add", or after a significant brochure run produced many failures.
testing
Orchestrate a Brochurify job from source ingest through delivered PDF, using six parallel-dispatched typed sub-agents and the convergence loop. Use this skill EVERY TIME the user invokes Brochurify directly via "brochurify this", "make a brochure from", "convert this to a brochure PDF", or "rdc:brochurify". Also runs automatically when a job arrives from the broker via monkey_dispatch. The skill enforces D-001 through D-016 from the brochurify DECISIONS-LOG.
devops
The mandatory contract for authoring brochure JSX using @lifeai/brochure-kit. Use this skill EVERY TIME any AI engine (Claude, Cursor, Copilot, /design, Cowork, v0) generates JSX intended for the Brochurify pipeline — whether the user says "write a brochure," "make a one-pager," "draft a PDF report," or any equivalent. Also trigger when a file imports from @lifeai/brochure-kit. Failing to read this skill before authoring is a defect.
testing
Usage `rdc:housekeeping [--fix]` — Weekly maintenance audit: directory structure verification, PUBLISH.md URL validation, CLAUDE.md freshness, orphan detection, places compliance, and stale version scan. Produces `.rdc/reports/YYYY-MM-DD-housekeeping.md`. With `--fix`, auto-remediate safe issues.