style-apply
Apply a Style to any artifact in the workspace (presentation, card, poster, social post, web page). Use when the user says "apply style X", "render this with style X", or wants to reuse a saved style on a new piece.
- License 许可
- MIT
- 所属仓库
- clawic/Clawix
- 最近更新
- 2026-06-06
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- style-apply
- keywords
- [ "style", "apply", "render", "template", "brand" ]
- description
- Apply a Style to any artifact in the workspace (presentation, card, poster, social post, web page). Use when the user says "apply style X", "render this with style X", or wants to reuse a saved style on a new piece.
03 SKILL.md 正文
style-apply
Take an existing Style (.claw/styles/<id>/) and apply it to a Template instance, producing one or more outputs.
Inputs
styleId: id of an existing Style. List withclaw style list.templateId: id of an existing Template. List withclaw template list [--category <cat>].variantId: optional, defaults to the template's first variant.data: a JSON file with values for the template's slots.format: one or more ofhtml,pdf,png,svg,pptx. Defaults tohtml.
Procedure
- Confirm both resources exist:
claw style get <styleId> claw template get <templateId> - Compose the
data.jsonfor the template's slots. For each slot the template declares:kind:heading,subheading,body,list,quote,metric,image,logo,button,divider,shape,table.required: whether to fail if missing.maxLength/maxItems: respect these or surface a warning.
- Render:
claw template render <templateId> --style <styleId> --data data.json --format <fmt> --out <path> - Register the output as a generated example under the style for future "more like this" requests.
Constraints
- Never edit the Style as a side effect of applying it. Applying is a read on the Style.
- If a slot is required and missing, fail with a clear error pointing at the slot id.
- Multiple formats can be produced in one call:
--format pdf,png,html.
04 同仓库更多 Skills
visual-regression
Run and interpret Clawix UI geometry, screenshot, protected-surface, and debt-baseline checks without authorizing visual repair.
ui-performance-budget
Capture and compare Clawix UI performance budgets for critical flows before optimizing visible or runtime UI behavior.
ui-implementation
Implement functional Clawix UI wiring while respecting visual mutation boundaries, pattern contracts, protected surfaces, and debt baselines.
ui-canon-review
Review whether a Clawix UI pattern, visual decision, copy change, or component extraction belongs in canon, debt, exception, or protected-surface scope.
theme-factory
Produce variants of an existing Style by shifting tone (light/dark), density (compact/relaxed), or accent (palette rotation) while preserving the brand identity. Use when the user wants alternate themes derived from one brand.
template-render
Render a Template + data + Style into a final artifact in one of HTML, PDF, PNG, SVG or PPTX. Use whenever the user asks for a concrete deliverable like "make me a poster", "render a card", "give me a one-pager".