一键导入
audit-styles
Audit component CSS for arbitrary colors, font sizes, and spacing that violate ui-design.md token system. Report violations and optionally fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit component CSS for arbitrary colors, font sizes, and spacing that violate ui-design.md token system. Report violations and optionally fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | audit-styles |
| description | Audit component CSS for arbitrary colors, font sizes, and spacing that violate ui-design.md token system. Report violations and optionally fix. |
| allowed-tools | Read, Glob, Grep, Agent, Bash(ls *) |
Scan Svelte component <style> blocks for values that violate the design token system defined in docs/ai/ui-design.md.
rgba(30,32,40,*) not matching any --lz-* token opacity step (0.06, 0.08, 0.10, 0.12, 0.15, 0.35, 0.50, 0.55, 0.70)rgba(237,232,220,*) not matching any --dz-* / --dk-* token opacity step (0.06, 0.08, 0.10, 0.12, 0.15, 0.25, 0.30, 0.35, 0.45, 0.55, 0.70, 0.85, 0.90)rgba(120,120,69,*) not matching any --olive-* accent overlay (0.08, 0.15, 0.30, 0.40)rgba(68,114,180,*) not matching any --blue-* accent overlay (0.08, 0.13)rgba(232,160,144,*) not matching any --salmon-* accent overlay (0.06, 0.08)rgba(248,113,113,*) or rgba(229,115,115,*) not matching --danger-border (0.40) or --danger-bg-hover (0.15)#xxx / #xxxxxx) that is not a CSS variable reference — exceptions: #fff in piano keys, CPU meter semantic colorsfont-size value below 7px (minimum per spec)font-size not matching the component's spec table in ui-design.mdgap, padding, or margin value not matching the spacing system (2, 4, 8, 12, 16px)8px 12px 10px) is allowed when documented in the component specIf a component name is provided as argument (e.g., /audit-styles StepGrid), audit only that component.
Otherwise, audit ALL .svelte files in src/lib/components/.
docs/ai/ui-design.md to load the current token system and component specs.<style> block.## Style Audit Report
### ComponentName.svelte
| Line | Property | Current Value | Expected | Severity |
|------|----------|---------------|----------|----------|
| 123 | color | #e57373 | var(--color-danger) | error |
| 456 | border | rgba(30,32,40,0.07) | 0.06 (--lz-divider) | warning |
### ComponentName.svelte — OK (no violations)
<style> blocks, not inline style= attributes that use dynamic valuesvar(--*) references — those are already tokenizedtransparent, inherit, none, currentColorBump version, generate changelog draft, tag, and deploy a release.
Create a feature branch, commit changes, push, and open a PR to main.
Check docs/ai/ spec files and ADRs for inconsistencies with the actual codebase. Report only, no modifications.
Check docs/ai/ spec files and ADRs for inconsistencies with the codebase, then fix all discrepancies.
Scan the codebase for security vulnerabilities. Check OWASP top 10, input validation, auth, crypto, and known BACKLOG security items.
Scan the project for refactoring opportunities, then fix them. No behavior/visual changes.