GitHub - elayadesign/redesign-skill

Open original

A markdown rules file that makes AI coding assistants audit an existing site's design and fix it in place, covering fonts, color, spacing, states, and motion. It installs into Claude Code, Cursor, Codex, Windsurf, and similar tools by copying one SKILL.md file.

  • The skill reports a diagnosis first and waits for approval before changing anything, then fixes in priority order: fonts, color, states, layout, motion.
  • It enforces specific rules: approved fonts only (no Inter or Roboto), a closed spacing scale, and nested corner radius computed as inner = outer minus gap.
  • Design values live in one section at the bottom of SKILL.md, so you can swap in your own palette, fonts, and easing curve. It is MIT licensed and partly adapted from Leonxlnx/taste-skill.

The repo is a markdown "skill" file that turns an AI coding assistant into a design auditor for existing websites. You point it at a project, and it hunts for generic design patterns, missing UI states, and sloppy code, then patches them in place instead of rewriting the project. It's written to work with Claude Code, Cursor, Codex, Windsurf, Cline, or any tool that reads a rules file. Installation is mostly file copying: for Claude Code, you clone the repo and drop the `redesign-existing-projects` folder into `.claude/skills/`; for Cursor, you curl `SKILL.md` into `.cursor/rules/`; for Codex, Windsurf, and Cline, you copy the same file to `AGENTS.md`, `.windsurfrules`, or `.clinerules`. Claude.ai users without a terminal can upload the file to a Project instead. Once it's installed, you ask something like "audit this project and upgrade the design," and the tool reports its diagnosis before touching anything. You approve the plan, and fixes then roll out in priority order: fonts, color, states, layout, motion. The rules themselves are opinionated and fairly specific. Typography is limited to an approved font list, with Inter and Roboto explicitly banned, no italics, no black weights, and every font size snapped to the Tailwind scale. Color is a fixed dark palette with no background gradients, one accent color, and tinted shadows. Spacing comes from a closed token scale so the model can't invent random pixel values. One detail stands out: nested corner radii follow the formula inner = outer − gap, applied only when the result exceeds 2px, so a 16px card with 8px padding gets an 8px inner radius and the corners sit concentric. Other rules cover breaking the default three-equal-column layout, aligning baselines across cards, custom easing curves, IntersectionObserver-based reveals instead of scroll listeners, and a copy blacklist that bans Lorem Ipsum, "Acme Corp," and words like "Elevate" and "Seamless." Every interactive element is expected to have hover, active, focus, loading, empty, and error states, and the shipping checklist includes a 404 page, legal links, validation, favicon, meta tags, and alt text. Because the design values are just opinions written into the Design Values section at the bottom of `SKILL.md`, anyone can fork it and swap in their own fonts, hex codes, spacing scale, icon set, or easing curve, and the audit will then enforce their system instead. Parts are adapted from Leon Lin's taste-skill project, which is MIT licensed, and the repo itself is MIT too, so no attribution is required for reuse. For a read-it-later queue, the useful takeaway is the approach: a plain markdown file acting as a portable, reviewable design standard that any agent can load, which is a more practical pattern than most prompt-only design advice.

Ask about this article