一键导入
generate
Generate new HTML/CSS components following the Reality Reprojection design system from natural language descriptions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate new HTML/CSS components following the Reality Reprojection design system from natural language descriptions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run quality checks on a task's implementation before it closes to done. Triggers: 'is this ready?', 'run the review gate', 'check my work', 'I think this is done'. Reviews code + spec adherence, runs tests/build. Design review uses taskmaster:spec-review.
Log a lightweight idea into .taskmaster/ideas/. Triggers: '/add-idea', 'save this as an idea', 'remember this idea', 'log this idea', or something worth keeping, not yet a task. Only way - not backlog_idea_create directly.
Log/update/close project bugs in .taskmaster/bugs/. Triggers: 'log a bug', 'this is a bug', 'track this defect', 'I found a bug', 'shelve this for later', 'list open bugs', 'promote B-XX', 'close B-XX'. Also for ambiguous 'issue' phrasing lacking recurring/systemic/outstanding evidence - falls back here. Only correct way to transition a project Bug.
Scan the codebase for TODO/FIXME/HACK/XXX and cross-reference the backlog. Triggers: 'check todos', 'are my todos tracked', 'scan for todos', 'todo audit', 'what's untracked'.
Write/resolve/drop project decisions in .taskmaster/decisions/. Invoke when about to write an inline option menu - route here, not Options: in chat. Also 'choose between', 'pick an option', 'decide on', 'open question', 'resolve DEC-X', 'drop DEC-X'. Only correct way - do not call backlog_decision_create directly.
Close out a work session. Triggers: 'end session', 'I'm done for today', 'let's wrap up', 'mark this task done', 'save progress'. ONLY correct way to mark tasks done/in-review with a session record.
| name | generate |
| description | Generate new HTML/CSS components following the Reality Reprojection design system from natural language descriptions |
| argument-hint | ["component description","e.g. \"login form with email and password\""] |
You generate HTML and CSS components that conform to the Reality Reprojection design system. Every element you produce must use system tokens, classes, and patterns.
First: Load ${CLAUDE_PLUGIN_ROOT}/reference/compact-lookup.md (~1.5k tokens). This has HTML patterns, variants, component token names, override patterns, and rules for all 22 components.
Then assess: Is the compact lookup sufficient for this request?
1. Is this a standard component (button, card, badge, form, table, etc.)?
→ Compact lookup is enough. Generate immediately.
2. Does it involve materials (grain, frost, chromatic, shimmer)?
→ Load: ${CLAUDE_PLUGIN_ROOT}/reference/material-treatments.md ONLY (~3k tokens)
3. Does it involve a full page layout (dashboard, article, settings page)?
→ Load: ${CLAUDE_PLUGIN_ROOT}/reference/composition-recipes.md ONLY (~4k tokens)
4. Is it a novel component not in the compact lookup?
→ Load: ${CLAUDE_PLUGIN_ROOT}/reference/component-catalog.md ONLY (~5k tokens)
5. Do you need exact token CSS values (rare — only if building custom tokens)?
→ Load: ${CLAUDE_PLUGIN_ROOT}/reference/design-tokens.md ONLY (~4k tokens)
NEVER load multiple reference files for a single request.
Compact lookup + one targeted file handles 99% of requests.
GATE: ALL THREE must be "yes":
1. Have I checked the compact lookup AND loaded the one relevant reference file?
2. Is there a specific question I still cannot answer?
3. Can I name the exact file/section I need?
If any "no" → STOP. You have enough.
${CLAUDE_PLUGIN_ROOT}/reference/bible.html — 31k tokens. NEVER load whole. Lines 1584-1884 (components) or 1889-2112 (compositions) only.${CLAUDE_PLUGIN_ROOT}/deep-reference/ — 65k tokens across 38 files. ONE specific file only.Read the user's component description from $ARGUMENTS. Identify:
Use the system's class naming conventions:
.component-name (e.g., .card, .btn, .form-group).component-name--variant (e.g., .card--elevated, .btn--primary).component-name__child (e.g., .card__header, .alert__body).is-active, .is-expanded, .is-disabled, .is-current, .is-loadingAssign typographic voices correctly:
.declaration, .declaration--h3).narrator, .narrator--small).technical, .technical--small)If existing system classes don't fully cover the component, write custom CSS that:
--btn-bg: var(--signature-fill))var(--ease-hourglass), var(--ease-pendulum), var(--ease-bell), var(--ease-hourglass-settle)translateY(-1px) for buttons, translateX(2px) for tags/nav itemsscale() on hover. No ease or ease-in-out.[data-polarity="light"] overrides where needed@media (prefers-reduced-motion: reduce) fallbacks for animations--foreground-on-accent for any text on colored backgroundsFormat your response as:
## Generated: [Component Name]
### HTML
```html
[Complete HTML markup with system classes]
[CSS using only system tokens]
The project needs the Reality Reprojection CSS bundle. If not already set up:
/reality-reprojection:setup to bootstrap the full design system${CLAUDE_PLUGIN_ROOT}/bundle/reality-reprojection.css into the project<link href="https://fonts.googleapis.com/css2?family=Syne:wght@800&family=DM+Sans:ital,wght@0,400;0,600;0,700&family=JetBrains+Mono:wght@600&display=swap" rel="stylesheet">
<html data-polarity="dark"> (or "light")
## Rules — Non-Negotiable
- NEVER hardcode colors. Use `var(--token-name)`.
- NEVER use `ease`, `ease-in-out`, or raw cubic-bezier. Use system easing tokens.
- NEVER use `scale()` on hover.
- NEVER use fractional font sizes.
- NEVER use radii outside {2, 3, 4, 6, 8, 9999}px.
- ALWAYS support both polarities.
- ALWAYS include reduced-motion fallbacks for animations.
- ALWAYS use the correct typographic voice for the context.
- Prefer existing component classes over custom CSS.
- Do NOT write to files. Present the code for the user/agent to place.