Add skill: generate custom styles from app design system
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css, typescript
Research direction
Start with the existing style definitions in renderer.ts and widget-renderer.tsx, then inspect apps/mcp/skills/, server.ts, assemble_document, and the README. Trace how MCP prompts and theme data are registered and applied. Done means the new skill and prompt are available, overrides can be applied by assemble_document, and the README includes a usage example.
Written by the indexing model from the issue text.
Description
Summary
Create a new agent skill that analyzes the host application's existing styles (colors, typography, spacing, borders, etc.) and generates matching CSS/design tokens for UI component generation. This would allow the assemble_document tool to produce widgets that visually match the consuming application rather than using the default OpenGenerativeUI theme.
Motivation
Currently, renderer.ts ships a hardcoded design system (forked from widget-renderer.tsx). When users integrate the MCP server into their own apps, the generated widgets look like OpenGenerativeUI — not like their app. A style-extraction skill would close this gap by letting the agent adapt generated UI to the host app's look and feel.
Proposed approach
- Add a new skill file (
skills/custom-styles-skill.txt) with instructions for:- Extracting CSS custom properties, Tailwind config, or design tokens from the host app
- Mapping extracted values to the OpenGenerativeUI CSS variable schema (
--color-*,--font-*,--border-radius-*) - Generating a theme override block that
assemble_documentcan merge with the base styles
- Expose the skill via a new MCP prompt (e.g.
customize_theme) - Optionally extend the
assemble_documenttool to accept athemeOverridesparameter
Acceptance criteria
- New skill file in
apps/mcp/skills/ - Registered as an MCP prompt in
server.ts - Agent can read a target app's styles and produce a compatible CSS override
-
assemble_documentsupports applying the override - README updated with usage example
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CopilotKit/OpenGenerativeUI
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
CopilotKit/OpenGenerativeUI#87 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in CopilotKit/OpenGenerativeUI
Similar issues
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
supermomonga/zcode-acp#24 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/growthbook#7100 ·
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100