layoza/layoza/layoza-refine

Claude Code and agent skill by layoza/layoza

Trust tier 2
  • community
LLM review pending
Source check pending

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-refine

SKILL.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

  1. Brand authority. Run layoza inspect . --write if SITE-DNA.json is

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.

  1. 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).

  1. 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).

  1. 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.

  1. 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)

bash
# 1. Reversible baseline of every file you will edit (one --file per id via CLI)
layoza baseline create refine-<cmd>-css --file <path/to/styles.css>
layoza baseline create refine-<cmd>-html --file <path/to/page.html>
# 2. Before: measure, then keep a copy (qa overwrites its report)
layoza qa <page.html-or-url>
cp <dir>/qa/browser-qa-report.json <dir>/qa/before-<cmd>.json
# 3. One scoped change (the command's reference file)
# 4. After: measure again and compare
layoza qa <page.html-or-url>
# 5. Regression? restore every baseline you created
layoza baseline rollback refine-<cmd>-css

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:

bash
node -e "const fs=require('fs');for(const f of process.argv.slice(1)){const d=JSON.parse(fs.readFileSync(f,'utf8')),c={};for(const v of d.viewports)for(const i of v.issues)if(i.severity!=='critique')c[v.label+':'+i.rule]=(c[v.label+':'+i.rule]||0)+1;const k=['contrast_failures','unlabeled_controls','undersized_targets','missing_alt_count','heading_hierarchy_valid','reduced_motion_respected','h1_to_body_ratio','max_line_length_ch','font_family_count','unmeasured'];console.log(f,JSON.stringify({issues:c,craft:d.craft_critique,...Object.fromEntries(k.map(x=>[x,d[x]]))}))}" qa/before-<cmd>.json qa/browser-qa-report.json

Keep, fix, or roll back. Compare before-<cmd>.json with the new report:

OutcomeRule
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 regressedKeep. Open the screenshots and confirm the change is visible and on-brand.
Target metric did not moveThe 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

CommandUse whenProof it worked (layoza qa)Must not breakGuide
typesethierarchy muddy, text hard to readfewer 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 ≤ 75label-wrap, text-clip-or-bleedsystem-passes § Type
colorizegrey, colour without rolescontrast_failures = 0, min_contrast_ratio ≥ 4.5; fewer craft-gray-on-color, craft-gradient-textbrand colours in SITE-DNA.jsonsystem-passes § Colour
layoutcrowded, monotonous, misalignedfewer craft-monotonous-spacing, craft-cramped-padding, craft-nested-cards, heading-crowdingdocument-overflow, primary-action-below-foldsystem-passes § Layout
animatemotion missing or wrong0 text-hidden*, motion-ignores-reduce, reduced-motion-hides-text; fewer craft-bounce-easingvisible stable composition, keyboard usesystem-passes § Motion + `layoza-animations`
boldera section reads flatcraft-flat-type-hierarchy cleared; h1_to_body_ratio upcontrast, no new craft-*system-passes § Bolder
quietertoo loud, overstimulatingfewer craft-dark-glow, craft-radial-*, craft-gradient-text, craft-pulsing-dot, craft-gpt-thin-border-wide-shadowcontrast_failures, craft-flat-type-hierarchy must not appearintensity.md ctx
distillcluttered, too many choicesfewer craft-nested-cards, craft-icon-tile-stack, craft-repeated-container-text, craft-hero-eyebrow-chip; primary-action-below-fold cleared; font_family_count ≤ beforenav-unreachable, every route/form still worksintensity.md ctx
delightcorrect but forgettablejudgment + screenshots; no new findingsmotion rules as in animateintensity.md ctx
clarifylabels, errors, copy unclearunlabeled-control = 0, missing_alt_count = 0; fewer craft-marketing-buzzword, craft-theater-slop-phrase, craft-aphoristic-cadencelabel-wrap (longer labels wrap)copy-and-flow.md ctx
onboardfirst use / empty states weakprimary action in first viewport (primary-action-below-fold cleared); walkthrough evidencefocus-obscured, unlabeled-controlcopy-and-flow.md ctx
hardenonly works with perfect data0 focus-obscured, target-size, unlabeled-control, text-hidden*, interactive-overlap, text-clip-or-bleed on the stress copyeverything above on the real pageresilience.md
adaptbreaks or feels desktop-only on small screens0 document-overflow, nav-unreachable, menu-toggle-broken, label-wrap; primary-action-below-fold cleared at 375desktop screenshot unchanged in intentresilience.md
optimize (optional; explicit request only)slow load, jank, layout shiftlcp_ms ≤ 2500, cls ≤ 0.1, inp_ms ≤ 200 (lab; two runs agree)visual parity, broken-imageresilience.md + `layoza-performance`
audit"what's wrong with it?" (no fixes)scored report from layoza audit . --json + layoza qan/a (read-only)evaluate.md
critiquedesign-quality verdictP0–P3 list, specificity verdictn/a (read-only)finish.md § 3
polishfinal pass after any of the above0 error issues; warnings explainedeverythingfinish.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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/layoza/layoza/layoza-refine/badge)](https://verified-skill.com/skills/layoza/layoza/layoza-refine)

Something wrong with this skill or its page? Tell us.