layoza/layoza/layoza-refine
Claude Code and agent skill by layoza/layoza
- community
Checking that the SKILL.md file is still in the repository.
Targeted refinement commands for an EXISTING page or component (Mode C): quieter, distill, delight, clarify, onboard, harden, adapt, optimize, audit, plus the type/colour/layout/motion/bolder passes and polish/critique from layoza-art-direction. Every command runs as a measured loop: baseline, `layoza qa` before, one scoped change, `layoza qa` after, regression check, rollback for a genuine visual, interaction or accessibility regression. Speed checks are optional. The site's own brand DNA wins.
Install
npx vskill@latest install layoza/layoza/layoza-refineSKILL.md
The same SKILL.md was published earlier as layoza/layoza/layoza-refine.
Layoza — Refine an existing page
A refinement is one scoped command on one target (a page, section, or component that already exists), proven by measurement. Design improvement is judged on before/after renders, brief fidelity and usability; measurements support that judgment. Speed numbers are not design gates.
0. Before any command
- Brand authority. Run
layoza inspect . --writeifSITE-DNA.jsonis
missing or layoza baseline (freshness) says it is stale. Tokens recorded in SITE-DNA.json / DESIGN.md (colours, fonts, radii, spacing, motion) win over every taste ban in this skill and in layoza-art-direction. An explicit user instruction (palette, stack, layout, motion library, scope) overrides both the brand DNA and every Layoza default. A craft-* finding on a recorded brand token is not a defect: declare it in the page head, e.g. <meta name="layoza-brand-allow" content="font:Inter, palette:cream"> (suppressed findings stay listed in craft_critique_suppressed). Only declare what SITE-DNA.json actually records; using the meta to silence a finding the brand does not own is gaming the checker.
- Product context. Commands marked ctx below need to know who the page is
for and what the visitor came to do. Read PRODUCT.md; if it is missing, build it with `layoza-discovery-audit` step 0 (pre-filled from inspect output; ask only for the gaps).
- Surface. Decide whether the target is Persuade, Operate, Read, or
Experience (surfaces.md). The same command means different things on each (quieter on a dashboard = less noise; on a portfolio = more air around the work).
- Scope is sovereign. Touch only the named target. A command that needs a
new identity (new palette, new fonts) has become a Mode D redesign: stop and say so.
- No new directions. Never offer three directions, hero sketches or a pick
for an existing site; the incumbent design is the direction. If you log the loop in .layoza/direction.md, record PICKED: existing — <design followed>.
1. The measured loop (every command)
Over MCP the same loop is: safe_rollback {action:"create", baseline_id, files:[...], write_approved:true} (also saves the "before" audit) → capture_screenshots → change → capture_screenshots → compare_before_after {path, baseline_id} (separates intended changes from regressions) → safe_rollback {action:"rollback"} if needed.
Where the evidence is. Rule hits live in viewports[].issues[] of qa/browser-qa-report.json (rule, severity: error / warning / critique); design rules are craft-* (summary in craft_critique). The CLI summary prints the same hits upper-cased (A11Y-FOCUS-OBSCURED, CRAFT-KICKER-ABOVE-HEADING). Side-by-side summary of two reports:
Keep, fix, or roll back. Compare before-<cmd>.json with the new report:
| Outcome | Rule | |
|---|---|---|
| Regression (any of the list below) | Fix it in the same round, re-measure; still worse → roll back and report. Never ship a refinement that introduces a genuine visual, interaction or accessibility defect. | |
| Target metric moved, nothing regressed | Keep. Open the screenshots and confirm the change is visible and on-brand. | |
| Target metric did not move | The change did not do what the command claims. Re-read the finding, or report "no measurable effect" honestly. | |
| Command has no metric (judgment only) | Say so; evidence is the before/after screenshots at all three widths plus the reference file's verify list. |
A regression is: a new error rule in issues; contrast_failures, undersized_targets, unlabeled_controls, or missing_alt_count going up; heading_hierarchy_valid or landmarks_present going true → false; a new focus-ring-missing, motion-ignores-reduce or reduced-motion-hides-text (reduced_motion_respected: null = nothing to reduce, fine); or a genuine new visual defect in the screenshots. Speed values (optional, null if unmeasured) never force rollback or another design round.
Two fix rounds per command maximum (same ceiling as finish.md).
2. Commands
| Command | Use when | Proof it worked (layoza qa) | Must not break | Guide | |
|---|---|---|---|---|---|
typeset | hierarchy muddy, text hard to read | fewer craft-tight-leading, cramped-leading, craft-flat-type-hierarchy, craft-line-length, craft-tiny-text, craft-undersized-ui-text; h1_to_body_ratio, max_line_length_ch ≤ 75 | label-wrap, text-clip-or-bleed | system-passes § Type | |
colorize | grey, colour without roles | contrast_failures = 0, min_contrast_ratio ≥ 4.5; fewer craft-gray-on-color, craft-gradient-text | brand colours in SITE-DNA.json | system-passes § Colour | |
layout | crowded, monotonous, misaligned | fewer craft-monotonous-spacing, craft-cramped-padding, craft-nested-cards, heading-crowding | document-overflow, primary-action-below-fold | system-passes § Layout | |
animate | motion missing or wrong | 0 text-hidden*, motion-ignores-reduce, reduced-motion-hides-text; fewer craft-bounce-easing | visible stable composition, keyboard use | system-passes § Motion + `layoza-animations` | |
bolder | a section reads flat | craft-flat-type-hierarchy cleared; h1_to_body_ratio up | contrast, no new craft-* | system-passes § Bolder | |
quieter | too loud, overstimulating | fewer craft-dark-glow, craft-radial-*, craft-gradient-text, craft-pulsing-dot, craft-gpt-thin-border-wide-shadow | contrast_failures, craft-flat-type-hierarchy must not appear | intensity.md ctx | |
distill | cluttered, too many choices | fewer craft-nested-cards, craft-icon-tile-stack, craft-repeated-container-text, craft-hero-eyebrow-chip; primary-action-below-fold cleared; font_family_count ≤ before | nav-unreachable, every route/form still works | intensity.md ctx | |
delight | correct but forgettable | judgment + screenshots; no new findings | motion rules as in animate | intensity.md ctx | |
clarify | labels, errors, copy unclear | unlabeled-control = 0, missing_alt_count = 0; fewer craft-marketing-buzzword, craft-theater-slop-phrase, craft-aphoristic-cadence | label-wrap (longer labels wrap) | copy-and-flow.md ctx | |
onboard | first use / empty states weak | primary action in first viewport (primary-action-below-fold cleared); walkthrough evidence | focus-obscured, unlabeled-control | copy-and-flow.md ctx | |
harden | only works with perfect data | 0 focus-obscured, target-size, unlabeled-control, text-hidden*, interactive-overlap, text-clip-or-bleed on the stress copy | everything above on the real page | resilience.md | |
adapt | breaks or feels desktop-only on small screens | 0 document-overflow, nav-unreachable, menu-toggle-broken, label-wrap; primary-action-below-fold cleared at 375 | desktop screenshot unchanged in intent | resilience.md | |
optimize (optional; explicit request only) | slow load, jank, layout shift | lcp_ms ≤ 2500, cls ≤ 0.1, inp_ms ≤ 200 (lab; two runs agree) | visual parity, broken-image | resilience.md + `layoza-performance` | |
audit | "what's wrong with it?" (no fixes) | scored report from layoza audit . --json + layoza qa | n/a (read-only) | evaluate.md | |
critique | design-quality verdict | P0–P3 list, specificity verdict | n/a (read-only) | finish.md § 3 | |
polish | final pass after any of the above | 0 error issues; warnings explained | everything | finish.md § 2–4 |
Typical order when the user says "improve it": audit → the P0/P1 commands it names (usually harden, adapt, clarify) → at most one intensity command (quieter or bolder, never both) → polish.
3. Report
Per command: target, the before → after values of its proof metrics (copied from the reports; null = unmeasured), regressions found and how they were resolved or rolled back, screenshots opened, and what remains open. Lab Core Web Vitals are LaboratorySynthetic; never present them as field data.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/layoza-refine/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/layoza/layoza/layoza-refine)