前端界面设计与优化
impeccable
当用户想要设计、重新设计、塑造、评审、审查、打磨、澄清、提炼、强化、优化、适配、添加动画、上色、提取或以其他方式改进前端界面时使用。涵盖网站、落地页、仪表盘、产品 UI、应用外壳、组件、表单、设置、新手引导和空状态。可处理 UX 审查、视觉层次、信息架构、认知负荷、无障碍性、性能、响应式行为、主题化、反模式、排版、字体、间距、布局、对齐、颜色、动效、微交互、UX 文案、错误状态、边界情况、i18n 以及可复用的设计系统或设计令牌。也适用于需要将平淡设计变得更大胆或更令人愉悦的场景、需要让张扬的设计变得更内敛的场景、在浏览器中对 UI 元素进行实时迭代,或需要实现 ambitious 且技术上令人惊叹的视觉效果。不适用于纯后端或非 UI 的任务。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- impeccable
- license
- Apache 2.0
- version
- 4.0.4
- description
- Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
- allowed-tools
- [ "Bash(npx impeccable *)", "Bash(node .opencode/skills/impeccable/scripts/*)" ]
- argument-hint
- [shape · audit|critique · animate|bolder|colorize|delight|layout|overdrive|quieter|typeset · adapt|clarify|distill · harden|onboard|optimize|polish · init|document|extract|live] [target]
- user-invocable
- true
02 资源文件 142
- 参考文档reference/adapt.md10.1 KB
- 参考文档reference/adapt.native.md3.8 KB
- 参考文档reference/android.md3.2 KB
- 参考文档reference/animate.md4.7 KB
- 参考文档reference/audit.md7.7 KB
- 参考文档reference/audit.native.md8.2 KB
- 参考文档reference/bolder.md3.1 KB
- 参考文档reference/clarify.md4.5 KB
- 参考文档reference/colorize.md4.4 KB
- 参考文档reference/craft-floor.md3.7 KB
- 参考文档reference/craft.md555 B
- 参考文档reference/critique.md39.0 KB
- 参考文档reference/delight.md3.6 KB
- 参考文档reference/distill.md5.5 KB
- 参考文档reference/doctor.md4.6 KB
- 参考文档reference/document.md26.8 KB
- 参考文档reference/extract.md3.3 KB
- 参考文档reference/harden.md8.3 KB
- 参考文档reference/hooks.md11.6 KB
- 参考文档reference/init.md8.6 KB
- 参考文档reference/ios.md2.9 KB
- 参考文档reference/layout.md5.0 KB
- 参考文档reference/live-setup.md7.3 KB
- 参考文档reference/live.md34.8 KB
- 参考文档reference/new-work.md27.2 KB
- 参考文档reference/onboard.md7.6 KB
- 参考文档reference/operate.md4.0 KB
- 参考文档reference/optimize.md7.4 KB
- 参考文档reference/overdrive.md8.6 KB
- 参考文档reference/polish.md5.1 KB
- 参考文档reference/quieter.md4.7 KB
- 参考文档reference/routing.md2.9 KB
- 参考文档reference/shape.md3.5 KB
- 参考文档reference/typeset.md5.1 KB
- 参考文档reference/visualize.md10.2 KB
- 脚本scripts/command-metadata.json7.7 KB
- 脚本scripts/concept-seed.mjs27.0 KB
- 脚本scripts/context-signals.mjs14.0 KB
- 脚本scripts/context.mjs58.4 KB
- 脚本scripts/critique-storage.mjs7.9 KB
- 脚本scripts/detect-csp.mjs6.6 KB
- 脚本scripts/detect.mjs620 B
- 脚本scripts/detector/browser/injected/index.mjs79.6 KB
- 脚本scripts/detector/cli/main.mjs18.8 KB
- 脚本scripts/detector/design-system.mjs34.3 KB
- 脚本scripts/detector/detect-antipatterns-browser.js358.1 KB
- 脚本scripts/detector/detect-antipatterns.mjs1.8 KB
- 脚本scripts/detector/engines/browser/detect-url.mjs14.1 KB
- 脚本scripts/detector/engines/regex/detect-text.mjs34.5 KB
- 脚本scripts/detector/engines/static-html/css-cascade.mjs42.7 KB
- 脚本scripts/detector/engines/static-html/detect-html.mjs11.7 KB
- 脚本scripts/detector/engines/visual/screenshot-contrast.mjs6.4 KB
- 脚本scripts/detector/findings.mjs766 B
- 脚本scripts/detector/node/file-system.mjs7.6 KB
- 脚本scripts/detector/profile/profiler.mjs4.4 KB
- 脚本scripts/detector/registry/antipatterns.mjs27.2 KB
- 脚本scripts/detector/rules/checks.mjs246.3 KB
- 脚本scripts/detector/shared/color.mjs4.4 KB
- 脚本scripts/detector/shared/constants.mjs4.6 KB
- 脚本scripts/detector/shared/fonts.mjs852 B
- 脚本scripts/detector/shared/inline-ignores.mjs6.0 KB
- 脚本scripts/detector/shared/page.mjs252 B
- 脚本scripts/doctor.mjs11.6 KB
- 脚本scripts/embed-prompt.mjs5.8 KB
- 脚本scripts/generate-image.mjs9.6 KB
- 脚本scripts/hook-admin.mjs28.4 KB
- 脚本scripts/hook-before-edit.mjs18.3 KB
- 脚本scripts/hook-lib.mjs81.4 KB
- 脚本scripts/hook.mjs2.6 KB
- 脚本scripts/lib/artifact-schema.mjs3.8 KB
- 脚本scripts/lib/composition-catalog.mjs10.0 KB
- 脚本scripts/lib/concept-catalog.mjs17.4 KB
- 脚本scripts/lib/design-parser.mjs25.2 KB
- 脚本scripts/lib/impeccable-config.mjs22.2 KB
- 脚本scripts/lib/impeccable-paths.mjs4.9 KB
- 脚本scripts/lib/is-generated.mjs2.2 KB
- 脚本scripts/lib/provider.mjs329 B
- 脚本scripts/lib/roll-selection.mjs16.9 KB
- 脚本scripts/lib/staleness-deep.mjs19.6 KB
- 脚本scripts/lib/staleness-notice.mjs6.5 KB
- 脚本scripts/lib/staleness.mjs19.0 KB
- 脚本scripts/lib/surface-briefs.mjs6.1 KB
- 脚本scripts/lib/target-args.mjs1.1 KB
- 脚本scripts/lib/target-slug.mjs1.0 KB
- 脚本scripts/lib/template-extensions.mjs5.3 KB
- 脚本scripts/live-accept.mjs35.5 KB
- 脚本scripts/live-browser-dom.js4.2 KB
- 脚本scripts/live-browser-session.js3.2 KB
- 脚本scripts/live-browser.js489.1 KB
- 脚本scripts/live-commit-manual-edits.mjs41.2 KB
- 脚本scripts/live-complete.mjs4.7 KB
- 脚本scripts/live-copy-edit-agent.mjs28.2 KB
- 脚本scripts/live-discard-manual-edits.mjs1.6 KB
- 脚本scripts/live-inject.mjs18.1 KB
- 脚本scripts/live-insert.mjs9.8 KB
- 脚本scripts/live-manual-edit-evidence.mjs11.6 KB
- 脚本scripts/live-poll.mjs15.7 KB
- 脚本scripts/live-resume.mjs6.0 KB
- 脚本scripts/live-server.mjs66.1 KB
- 脚本scripts/live-status.mjs2.6 KB
- 脚本scripts/live-target.mjs934 B
- 脚本scripts/live-wrap.mjs38.2 KB
- 脚本scripts/live.mjs13.1 KB
- 脚本scripts/live/accept-css.mjs22.0 KB
- 脚本scripts/live/accept-verify.mjs2.7 KB
- 脚本scripts/live/browser-script-parts.mjs2.1 KB
- 脚本scripts/live/completion.mjs1.4 KB
- 脚本scripts/live/event-validation.mjs9.4 KB
- 脚本scripts/live/frameworks/astro.mjs1.7 KB
- 脚本scripts/live/frameworks/detect-utils.mjs2.1 KB
- 脚本scripts/live/frameworks/index.mjs5.7 KB
- 脚本scripts/live/frameworks/journal.mjs7.0 KB
- 脚本scripts/live/frameworks/nextjs.mjs1.7 KB
- 脚本scripts/live/frameworks/nuxt.mjs5.1 KB
- 脚本scripts/live/frameworks/script-src.mjs699 B
- 脚本scripts/live/frameworks/static-html.mjs656 B
- 脚本scripts/live/frameworks/sveltekit.mjs1.8 KB
- 脚本scripts/live/frameworks/tag-strategy.mjs10.6 KB
- 脚本scripts/live/frameworks/tanstack-start.mjs1.6 KB
- 脚本scripts/live/frameworks/vite-generic.mjs1.3 KB
- 脚本scripts/live/generation-preflight.mjs5.8 KB
- 脚本scripts/live/insert-ui.mjs15.3 KB
- 脚本scripts/live/instructions.mjs12.9 KB
- 脚本scripts/live/manual-apply.mjs34.1 KB
- 脚本scripts/live/manual-edit-routes.mjs14.6 KB
- 脚本scripts/live/manual-edits-buffer.mjs5.0 KB
- 脚本scripts/live/poll-lanes.mjs759 B
- 脚本scripts/live/roots.mjs20.4 KB
- 脚本scripts/live/session-store.mjs22.4 KB
- 脚本scripts/live/source-lock.mjs3.6 KB
- 脚本scripts/live/source-search.mjs4.2 KB
- 脚本scripts/live/svelte-ast.mjs37.7 KB
- 脚本scripts/live/svelte-component.mjs49.6 KB
- 脚本scripts/live/sveltekit-adapter.mjs11.1 KB
- 脚本scripts/live/tanstack-adapter.mjs9.5 KB
- 脚本scripts/live/ui-core.mjs5.4 KB
- 脚本scripts/live/vocabulary.mjs7.0 KB
- 脚本scripts/modern-screenshot.umd.js28.6 KB
- 脚本scripts/palette.mjs55.5 KB
- 脚本scripts/pin.mjs6.3 KB
- 脚本scripts/serve-question.mjs60.2 KB
- 脚本scripts/surface-brief.mjs2.5 KB
03 SKILL.md 正文
This skill gives you the tools and permission to create design that earns to be called out-of-distribution craft: Whereas before, your design work would have been safe, timid and measured, you now approach every design task as a award-winning design director with impeccable understanding for what makes exceptional design work: production-grade code, peak creativity, a clear POV, deep understanding of the needs of the client and users, and exceptional craft.
Core principles:
- Go all out. No hedging, no shortcuts. The deliverable must be complete (except assets the user must provide).
- Dream big and bold. Distinct, beautiful, outstanding and highly inspiring work.
- Verify in bounded passes, not a loop, and the ceiling covers the whole cycle: screenshots, defect scans, micro-edits, and rebuilds alike. Build fully, inspect once with a batched round (desktop and mobile together), fix everything it shows in one batch, confirm with at most one more round, and stop polishing. Open-ended self-QA burns the user's money doing worse what the finish handoffs do better.
Setup
- Run
node .opencode/skills/impeccable/scripts/context.mjsonce per session (if the runtime shows this skill's loaded base directory, runnode <skill-base-dir>/scripts/context.mjs; keep cwd at the user's project). Pass a named source file or route as--target <path>. It loads PRODUCT.md, DESIGN.md, the matching surface brief, and native-platform guidance when applicable; follow its directives and do not rerun it. - Before acting, load the one playbook that owns the request: the Commands table's reference for an explicit or clearly implied sub-command, or reference/new-work.md for a new surface or replacement visual world. Then inspect the target and at least one representative source of incumbent visual truth (tokens, theme, CSS, component, or asset) before editing.
- After analysis and direction are resolved, load reference/craft-floor.md immediately before editing UI. It carries the quality floor, the absolute bans, and the reflexes no detector catches. Do not load it for planning-only work.
How to design
- The brief wins. Honor pinned aesthetics, eras, materials, fonts, and palettes even when they conflict with a saturated-pattern warning. Redirecting a clear brief toward your taste is failure.
- Refinement preserves; redesign replaces. Refinement keeps the incumbent identity, behavior, copy, and everything outside scope. Ask before replacing factual copy or adding claims. Redesign keeps product truth, content, function, native affordances, and constraints, but treats the old look as evidence and anti-reference; choose a replacement world in new-work and replace DESIGN.md. Never split the difference into polish on the discarded look.
- Visual authority is evidence, not a filename. Missing DESIGN.md alone does not make a project greenfield; new-work decides whether to preserve, expand, or replace the incumbent world.
Modes
The mode names what the visitor's success looks like on this surface.
- Persuade: the visitor decides and acts; design is the product. Landing pages, marketing, campaigns, pricing. Earn attention and action. Ship real imagery when the brief needs it; follow the committed world, not category habit.
- Operate: the visitor completes a task. App UI, dashboards, editors, admin, settings, tools. Scanability, consistency, native expectations, and the real usage scene outrank expression. Brand lives in precise details.
- Read: the visitor understands something. Docs, articles, guides, help, changelogs. Structure for comprehension, then make the reading experience worth staying in.
- Experience: the visitor is inside the work itself. Portfolios, galleries, showcases. Let the artifact lead from the first viewport; the interface recedes.
Choose the mode from the requested surface, not the product, and persist it only in that surface brief. A tool's landing page is still Persuade; a fashion house's documentation is still Read; a docs index is Read, not Persuade. See new-work.md for new surfaces and operate.md for deeper Operate/Read guidance.
Commands
| Command | Category | Description | Reference |
|---|---|---|---|
craft [feature] |
Build | Deprecated alias for an ordinary new-work request | reference/craft.md |
shape [feature] |
Build | Plan UX/UI before writing code | reference/shape.md |
init |
Build | Capture durable product context in PRODUCT.md | reference/init.md |
document |
Build | Generate DESIGN.md from existing project code | reference/document.md |
extract [target] |
Build | Pull reusable tokens and components into design system | reference/extract.md |
critique [target] |
Evaluate | UX design review with heuristic scoring | reference/critique.md |
audit [target] |
Evaluate | Technical quality checks (a11y, perf, responsive) | reference/audit.md · native: reference/audit.native.md |
polish [target] |
Refine | Final quality pass before shipping | reference/polish.md |
bolder [target] |
Refine | Amplify safe or bland designs | reference/bolder.md |
quieter [target] |
Refine | Tone down aggressive or overstimulating designs | reference/quieter.md |
distill [target] |
Refine | Strip to essence, remove complexity | reference/distill.md |
harden [target] |
Refine | Production-ready: errors, i18n, edge cases | reference/harden.md |
onboard [target] |
Refine | Design first-run flows, empty states, activation | reference/onboard.md |
animate [target] |
Enhance | Add purposeful animations and motion | reference/animate.md |
colorize [target] |
Enhance | Add strategic color to monochromatic UIs | reference/colorize.md |
typeset [target] |
Enhance | Improve typography hierarchy and fonts | reference/typeset.md |
layout [target] |
Enhance | Fix spacing, rhythm, and visual hierarchy | reference/layout.md |
delight [target] |
Enhance | Add personality and memorable touches | reference/delight.md |
overdrive [target] |
Enhance | Push past conventional limits | reference/overdrive.md |
clarify [target] |
Fix | Improve UX copy, labels, and error messages | reference/clarify.md |
adapt [target] |
Fix | Adapt for different devices and screen sizes | reference/adapt.md · native: reference/adapt.native.md |
optimize [target] |
Fix | Diagnose and fix UI performance | reference/optimize.md |
live |
Iterate | Visual variant mode: pick elements in the browser, generate alternatives | reference/live.md |
Routing:
- No argument: read routing.md and present its context-aware menu; never auto-run a command.
- Explicit or clearly implied command: load its reference (native variant on native platforms) and follow it. Ask once if two commands fit.
- Otherwise: treat the request as general design work. Missing PRODUCT.md routes a new surface or replacement world through init, then new-work; a narrow refinement of existing code proceeds on the incumbent implementation as context.mjs directs, offering init afterward rather than blocking on it.
teachaliasesinit.craftis a deprecated alias for ordinary new-work and adds nothing.shapeowns task discovery, then enters new-work only for visual-world and surface-concept decisions.
After init writes PRODUCT.md, resume without rerunning context.mjs; init loads the native platform reference itself when the platform it recorded is ios, android, or adaptive.
Pin / Unpin: node .opencode/skills/impeccable/scripts/pin.mjs <pin|unpin> <command> creates or removes a standalone /<command> shortcut. Report the script's result concisely; relay stderr verbatim on error.
Hooks: /impeccable hooks <on|off|status|ignore-rule|ignore-file|ignore-value|reset> manages the design detector hook for this project (auto-runs the detector after UI file edits and surfaces findings). Load reference/hooks.md when the user invokes it with any argument.
Doctor: /impeccable doctor reports and repairs drift between this project's Impeccable artifacts (PRODUCT.md, DESIGN.md and its sidecar, config, surface briefs, the hook) and what this version reads. Load reference/doctor.md when the user invokes it, or when they ask what is out of date, stale, or needs refreshing. A CONTEXT_STALE directive in Setup's output is the cheap subset of the same report; act on it there per its own instructions rather than running doctor unasked.
Never repair drift as a side effect of a design task. A CONTEXT_STALE finding is reported, not acted on, unless the user asks. The one exception is a finding marked auto, which the next write to that file performs anyway.
04 同仓库更多 Skills
技能创建与优化
skill-creator
创建新技能、修改并改进现有技能,以及衡量技能性能。当用户想要从零开始创建技能、编辑或优化现有技能、运行评测(evals)测试技能、通过方差分析对技能性能进行基准测试,或优化技能描述以提升触发准确率时使用。
退货与逆向物流处理
returns-reverse-logistics
涵盖退货授权、收货与检验、处置决策、退款处理、欺诈检测和保修索赔管理的成套专业知识。基于具备 15 年以上经验的退货运营经理的实践经验。包含分级框架、处置经济性分析、欺诈模式识别和供应商追偿流程。适用于处理产品退货、逆向物流、退款决策、退货欺诈检测或保修索赔。
质量不合格项调查与 CAPA 管理
quality-nonconformance
面向受监管制造业的质量控制、不合格项调查、根本原因分析、纠正措施与供应商质量管理的系统化专业知识。由在 FDA、IATF 16949 和 AS9100 环境下拥有 15 年以上经验的质量工程师总结而成。涵盖 NCR 生命周期管理、CAPA 系统、SPC 解读与审核方法。适用于调查不合格项、开展根本原因分析、管理 CAPA、解读 SPC 数据或处理供应商质量问题等场景。
生产排程与产线平衡优化
production-scheduling
面向离散制造和批量生产的生产排程、作业排序、产线平衡、换型优化与瓶颈解决的系统化专业知识。由拥有 15 年以上经验的生产计划员总结而成。涵盖 TOC/鼓-缓冲-绳(drum-buffer-rope)、SMED、OEE 分析、中断响应框架以及 ERP/MES 交互模式。适用于生产排程、瓶颈解决、换型优化、中断响应或产线平衡等场景。
物流异常与理赔处理
logistics-exception-management
用于处理货运异常、货物延误、损坏、丢失及承运商争议的规范化专业知识。源自拥有 15 年以上运营经验的物流专业人士。包含升级处理流程、承运商特定行为、索赔程序及判断框架。在处理运输异常、货运索赔、交付问题或承运商争议时使用。
库存需求预测与补货计划
inventory-demand-planning
面向多门店零售商的需求预测、安全库存优化、补货计划和促销增量估算的规范化专业知识。由拥有 15 年以上经验、管理数百个 SKU 的需求规划师提炼而成。包含预测方法选择、ABC/XYZ 分析、季节转换管理和供应商谈判框架。适用于需求预测、设定安全库存、规划补货、管理促销或优化库存水平等场景。