跳到正文
Skillpedia
界面(UI/UX)5.5k · #14803

prettify

它能做什么

这项技能教智能体如何改善已有页面的外观。它分多轮进行小幅改动,检查多种屏幕尺寸,并保持结构、文案和品牌不变。

适用场景

  • ✓当页面或屏幕显得平淡或千篇一律,团队希望使其更精致的时候。
  • ✓当用户要求美化落地页、定价页、仪表盘或弹窗的时候。
  • ✓当团队希望进行多轮视觉打磨,而不做完整重新设计的时候。

技能链接

https://github.com/yournextstore/yournextstore/blob/main/.agents/skills/prettify/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/yournextstore/yournextstore/blob/main/.agents/skills/prettify/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请美化定价页。它看起来很平淡,请让它更丰富,但不要改动文案或布局结构。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会在三种宽度下截取当前页面的截图,根据设计检查清单为其打分,并在每一轮中做一项集中的改进。它会对既定的轮数重复此循环,并比较前后的变化。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Prettify

Improve the visual quality of an existing UI surface through small, targeted iterations. Works on any page or component: landing/marketing, pricing, docs, dashboards, admin tables, settings panels, modals, empty states, etc. Preserve the existing structure, copy, and brand. Do not redesign.

Inputs

The user gives you a target — a route (e.g. /, /pricing, /admin/products), a component file, a running URL, or a specific section/modal/state of a page. If unclear, ask once:

  • Which surface? (route, file path, or component)
  • For component-level targets: what state/route exposes it? (e.g. "the empty state on /admin/orders when there are no orders")
  • What feels off? (optional — gives you a starting hypothesis)
  • How many iterations? (default 5; user can request more)

If the dev server isn't running, start it (bun dev) before iterating. For authed surfaces (admin, settings), make sure you're signed in before screenshotting.

The Loop

Run this loop N times. Each pass should make one focused improvement, not a sweeping rewrite.

1. Screenshot the current state

Use Chrome DevTools MCP. Capture at all three required widths (mobile-first is mandatory for YNS):

  • 320px (mobile)
  • 768px (tablet)
  • 1280px (desktop)

Save screenshots so you can compare before/after across iterations.

2. Critique against the rubric

Score the current state across these dimensions. Focus the next change on the lowest-scoring one — don't try to fix everything at once.

Dimension What to look for
Visual hierarchy Does the eye know where to land first? Is the primary heading/action dominant? Are CTAs obvious without being loud? On data-heavy surfaces: is the most important column/value emphasized?
Typography Type scale ratio (1.25–1.5×). Heading weight contrast vs body. Tracking on display sizes. Line-height on body (~1.5). Tabular numerals on numeric tables.
Spacing & rhythm Vertical rhythm between sections/rows/cards. Generous breathing room around primary content. Consistent spacing scale (Tailwind 4/6/8/12/16/24). No cramped edges on mobile.
Color & contrast Is the palette doing work? Accent color used sparingly for emphasis (status, focus, primary action). Neutrals layered (not just white + black). Sufficient contrast (WCAG AA).
Depth & texture Subtle shadows, borders, gradients, noise, or backdrop blur where appropriate. Avoid flat-everywhere or shadow-everywhere.
Detail & richness Micro-details that signal craft: refined dividers, subtle animations, considered iconography, well-tuned focus rings, balanced asymmetry, considered empty/loading states.
Consistency Border radii, shadow tokens, button styles, table cell padding, form field heights all aligned. No one-off styles.
Mobile fidelity Mobile is not a shrunken desktop. Adjusted type sizes, stacked layouts, full-bleed sections, scrollable tables with sticky headers where appropriate.

3. Apply ONE targeted improvement

Pick the single highest-leverage change for this iteration. Examples of good targeted changes:

Marketing / landing surfaces:

  • "Increase H1 from text-4xl md:text-6xl to text-5xl md:text-7xl, tighten tracking to -0.02em."
  • "Add a subtle gradient backdrop behind the hero (bg-gradient-to-b from-white via-zinc-50 to-white)."
  • "Replace solid border on feature cards with border border-zinc-200/60 shadow-[0_1px_2px_rgba(0,0,0,0.04)]."
  • "Bump section padding from py-16 to py-24 md:py-32 for more breathing room."

App / admin / dashboard surfaces:

  • "Apply tabular-nums and right-align numeric columns; soften header row to text-zinc-500 uppercase text-xs tracking-wider."
  • "Tighten table row padding (py-3 → py-2.5) and add divide-y divide-zinc-100 for a calmer rhythm."
  • "Replace heavy card shadow with a hairline border + 1px shadow combo (border border-zinc-200/70 shadow-[0_1px_0_rgba(0,0,0,0.02)])."
  • "Add focus-visible:ring-2 ring-zinc-900/10 ring-offset-2 to interactive rows for a more refined focus state."

Component-level (modals, empty states, forms):

  • "Increase modal max-width and inner padding; make the title heavier and add a subtle muted subtitle."
  • "Replace the empty-state stock illustration with a refined icon, soften the helper text, lift the primary CTA."
  • "Align form field heights, increase label tracking, and unify input border to a single token."

Ex

常见问题

会运行多少轮?

这项技能默认运行五轮,用户可以要求更多。

它会重新设计页面吗?

不会。这项技能说明,应保持结构、文案和品牌不变。

它检查哪些屏幕宽度?

它检查移动端 320 像素、平板 768 像素和桌面 1280 像素。

详情

作者的原始描述

Iteratively improves the visual design of an existing page — making it more sophisticated, richer, and prettier — without redesigning from scratch. Works on any page or UI surface: landing pages, marketing pages, pricing, docs, dashboards, admin views, settings, modals, empty states, etc. Use when the user says "prettify", or that a page/screen/component "looks flat", "feels generic", "needs more polish", "make it prettier", "more sophisticated", "richer", or asks to improve, refine, or enhance an existing UI surface. Loops screenshot → critique → targeted edit → re-screenshot until it meets a

repo: yournextstore/yournextstore

热度

GitHub 星标
5.5k
排名
#14803
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能