retrofit
Skill1 starsChanged 3 months agoMITView on GitHub
Entry point for existing Next.js sites that ultraweb did not build — inventory the codebase and routes, sweep for banned-list patterns, boot the site, screenshot every page at 375/768/1440, score it against the taste constitution via the design-judge rubric, and write design/RETROFIT.md — scored gaps each mapped to the one ultraweb skill that fixes it, phased into quick wins → system fixes → direction change, each phase then executed via ultraweb:iterate. Invoke when the user points at an existing site and asks to "improve", "audit the design", "modernize", "redesign", or "bring it up to standard", or asks "how bad is my site". For building from scratch use the root ultraweb skill; for a scoped change to a site that already has design/* artifacts use ultraweb:iterate directly.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- thettwe/nyanntheir own version, first seen Aug 22, 2026
- soltraveler-sri/Steerable-Protocoltheir own version, first seen Jul 17, 2026
- piyushverma0/android-agent-skillstheir own version, first seen Mar 14, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- piyushverma0/android-agent-skills★ 15same name
- thettwe/nyann★ 6same name
- soltraveler-sri/Steerable-Protocol★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- ultrawebSkill
- analyticsSkill
- animejsSkill
- api-designSkill
- app-structureSkill
- assetsSkill
- authSkill
- award-canonSkill
- briefSkill
- buttonsSkill
- cardsSkill
- cartSkill
- checkpointSkill
- colorSkill
- command-paletteSkill
- component-apiSkill
- consentSkill
- content-cmsSkill
- copywritingSkill
- databaseSkill
- data-displaySkill
- data-fetchingSkill
- depthSkill
- directionSkill
- emailSkill
- faqSkill
- feature-sectionsSkill
- footerSkill
- formsSkill
- gate-accessibilitySkill
- gate-antislopSkill
- gate-codeSkill
- gate-contentSkill
- gate-performanceSkill
- gate-responsiveSkill
- gate-visualSkill
- handoffSkill
- heroSkill
- hidden-craftSkill
- i18nSkill
- iconsSkill
- identitySkill
- imagerySkill
- iterateSkill
- layout-gridSkill
- marginaliaSkill
- media-optimizationSkill
- micro-interactionsSkill
- mockupSkill
- motion-languageSkill
- navigationSkill
- overlaysSkill
- page-transitionsSkill
- paymentsSkill
- physicsSkill
- previewSkill
- pricingSkill
- print-craftSkill
- product-detailSkill
- routingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Every hit is a pre-scored gap with file:line evidence.
- Distinctive: line 88
Every gap mapped to "rebuild it" — Phase C is the exception.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
retrofit — diagnose before redesigning
Stage: Entry point — before any pipeline phase, for sites ultraweb did not build - Reads: existing codebase, running site, taste - Writes: design/RETROFIT.md, design/screenshots/retrofit/*, qa/visual/round-1/VERDICT.md, reconstructed design/BRIEF.md + DIRECTION.md
Standard
A diagnosis a studio would charge for: every gap carries evidence (a screenshot path or a file:line grep hit), a score against the taste rubric, the ONE ultraweb skill that fixes it, and a phase. Scores come from looking at rendered pages — never from reading code alone. Retrofit is a mutating audit and says so up front: it writes the design record into the repo (design/RETROFIT.md, screenshots, a reconstructed BRIEF.md + DIRECTION.md) and touches app code only where required to boot the site — each boot fix named in RETROFIT.md. All treatment happens afterward, through ultraweb:iterate, one approved phase at a time.
Process
- Qualify the patient. First: if
design/DIRECTION.mdalready exists, STOP — this is an ultraweb site, and retrofit against it would overwrite real recorded decisions with reconstructed guesses. A complete record isultraweb:iterate's case; a partial one is the root skill's §Resuming ladder. Then read package.json and the tree. Next.js App Router → proceed. Pages Router, CRA, or another framework → say so and stop; retrofit audits, it doesn't port. Offer a freshultrawebbuild as the alternative. - Inventory. Routes (every
app/**/page.tsx), components, styling entry (@themein app/globals.css vstailwind.config.js— the config file marks Tailwind v3), and deps of record: next major,framer-motionvsmotion, zod major,middleware.ts(pre-Next-16 signal) vsproxy.ts. Collect any written direction statement too (style guide, brand page, README §design) — step 6 needs it. - Static anti-slop sweep — grep the banned list before rendering anything:
lorem,href="#",Feature 1,placeholder.comfrom-purple-|from-violet-|to-blue-and headlinebg-clip-textgradient text✨|🚀|🎉and emoji-as-icons in TSX- counts of
rounded-xlandshadow-lg— near-universal usage = depth without hierarchy Elevate|Unlock the power|Seamlessly|Empower|Welcome toEvery hit is a pre-scored gap with file:line evidence.
- Boot it.
npm install,npm run dev. Won't start → hand the verbatim error to stack-doctor and apply the minimal fix that gets pixels on screen. No other code changes during the audit. - Screenshot everything. pixel-qa drives Playwright MCP,
outputDir: design/screenshots/retrofit/: viewport frames per route at 375/768/1440, light + dark when a toggle exists, plus 1440 sectionals. No full-page captures — the judge refuses frames >2500px. Console errors are recorded as gaps. - Score.
mkdir -p qa, then dispatch design-judge as round 1, pointed atdesign/screenshots/retrofit/as the round directory (frames + sectionals), the project and plugin roots. Nodesign/DIRECTION.mdexists — step 1 refused the site if it did — so hand it the step-2 direction statement as the stand-in and tell it to score against the taste constitution and the award-canon invariants alone. It scores its own fixed six axes, writes the full review toqa/visual/round-1/VERDICT.md, returns ≤700 tokens: scores, ranked defects, verdict, plus round-1's antislop/responsive lines — fold every violation into the gap table. Compute the mean and the worst axis yourself from that table — the judge returns neither. - Map every gap to one skill (table below). A gap without a named fixing skill isn't finished — "improve the design" ships nothing.
- Phase the plan into design/RETROFIT.md: A quick wins → B system fixes → C direction change (only when triggered).
- Bootstrap the artifacts iterate needs. Reverse-engineer design/BRIEF.md from the evident site (audience, purpose, pages, backend surface) — including the machine-read fields every consumer expects:
Deployment mode: production(an existing live site is production; never guess demo) and, when the site serves a named market, §Compliance facts reconstructed from the Impressum and shop surface (flag each entrycounsel-needed— reconstructed facts are assumptions, not knowledge). Write design/DIRECTION.md as the TARGET direction — the existing aesthetic sharpened, or, when Phase C triggers, a fresh pick via ultraweb:direction. - Hand off. Present RETROFIT.md. Each approved phase executes via
ultraweb:iteratewith this file as the change request. Phase C is the burn-it-down case: get explicit user confirmation of scope before starting it.
Scoring rubric
design-judge's six fixed axes, 1–10 per page — Motion folded into Craft (its contract has no Motion axis):
| Axis | 8–10 looks like | ≤4 means |
| Hierarchy | the eye lands where the page intends | everything shouts equally |
| Typography | real pairing, hero ≥3.5× body | default Inter at timid sizes |
| Spacing | compression and release on a base unit | uniform py-24 wallpaper |
| Color | one accent doing real work, AA verified | slate + purple gradient, or gray soup |
| Distinctiveness | a point of view and a signature move | interchangeable template |
| Craft | focus rings, favicon, optical alignment; purposeful motion, one easing family, reduced-motion path | defaults in the last 2%; everything fades up, or nothing moves |
Report the WORST axis alongside the mean — a 7.0 average hiding a 2/10 distinctiveness IS a distinctiveness problem. Triggers: any axis ≤4 → its system fix goes to Phase B. Distinctiveness ≤4, or no identifiable direction at all → Phase C candidate.
Gap → skill map (canonical examples)
| Gap found | Fixing skill | Phase |
| Dead startup copy, lorem, "Feature 1" | copywriting | A |
| Emoji as icons | icons | A |
| Missing metadata / OG image / favicon | seo | A |
| No focus-visible, contrast failures | micro-interactions + color (verify via gate-accessibility) | A |
| Untouched shadcn look (Inter, slate, default radius) | tokens + color + typography | B |
| Uniform section rhythm, everything centered | layout-grid | B |
| Three identical icon-cards as "features" | feature-sections | B |
| Dark mode absent, or an inversion filter | color + tokens | B |
| Motion on everything, or none at all | motion-language + scroll-motion | B |
| Tailwind v3 config / framer-motion / middleware.ts | stack migration first — prerequisite to all Phase B token work; verify steps against current migration docs | B-0 |
| No point of view; template look | direction, then Phase 3 of the root pipeline | C |
RETROFIT.md format
# Retrofit — <site> (<date>)
Verdict: <one sentence>. Mean <n>/10, worst axis: <axis> <n>/10.
## Scorecard
| axis | score | evidence (screenshot / file:line) |
## Gaps
| # | gap | evidence | severity P0–P3 | skill | phase |
## Plan
- Phase A — quick wins (hours, local, reversible): #3, #7, #9…
- Phase B — system fixes (globals.css tokens + foundation skills): #1, #2… [B-0 stack migration first if flagged]
- Phase C — direction change (only if triggered; confirm scope with the user): …
Execute each phase via ultraweb:iterate, pointing it at this file and the phase id.Anti-patterns
- Fixing while auditing — the only permitted edit is whatever boots the dev server
- Scores produced without screenshots — code reading is inventory, not judgment
- "Improve visual hierarchy" with no skill, no evidence, no phase — that's a shrug, not a gap
- Every gap mapped to "rebuild it" — Phase C is the exception; most sites need B
- Reporting only the mean score — the worst axis is the headline
- Treating
tailwind.config.jsas cosmetic — it blocks the entire token strategy; migration is B-0 - Skipping the artifact bootstrap — iterate refuses sites without design/BRIEF.md and DIRECTION.md
Worked example — Ledger & Lane, auditing the firm's inherited site
Moved to references/example.md — read only when this build's case is genuinely ambiguous; the sections above are the decision material.
Composes with
Moved to references/composes.md — the handoff map; load it when orchestrating this skill against its neighbors.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

