agentleFS
pavel-molyanovpavel-molyanov/molyanov-ai-dev/skills/layout-writing/SKILL.md

layout-writing

Skill296 starsChanged 4 months agoMITView on GitHub

Reproduces and adjusts web layouts from Figma, Claude Design exports, screenshots, or an existing project style with high visual fidelity and proportional verification. Use when: "сверстай по Figma", "поправь вёрстку", "подвинь блок", "перенеси из Claude Design", "сделай адаптив", "добавь в том же стиле", "implement layout", "match Figma", "fix responsive layout". Use alongside code-writing for mixed layout and business-logic tasks; use code-writing alone for logic-only work. Blank-slate visual design is outside this skill.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read repository guidance, the affected component and styles, tokens, fonts, images, nearby components, and the relevant run or build …

    line 16
  2. Distinctive:

    Ask only for blockers that project or source evidence cannot resolve: the relevant frame when a Figma link names only a file, substitution …

    line 26
  3. Distinctive:

    Treat a new requirement, state, edge case, or improvement discovered during implementation or review as a proposal, not authorization.

    line 30
  4. Distinctive:

    every established exact-source or user-screenshot viewport.

    line 48
  5. Distinctive:

    Use the owning source height when known.

    line 50
  6. Very specific:

    Before capturing, create one temporary evidence root outside the repository.

    line 52
  7. Distinctive:

    Run the smallest project check that proves the changed route still compiles or renders.

    line 60
  8. Very specific:

    Run no more than two review waves.

    line 64
  9. Distinctive:

    Stop after a clean wave or when no authorized correction changes the result.

    line 78
  10. Distinctive:

    After wave 2, do not launch another reviewer automatically.

    line 81

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Layout Writing

Deliver a layout that matches its exact source where one exists, fills only genuinely unspecified decisions from project evidence, and works at relevant widths in the existing codebase.

Scope and Source

  1. Read repository guidance, the affected component and styles, tokens, fonts, images, nearby components, and the relevant run or build command.
  2. Classify the scope:
    • selected area — verify the changed element, component, or section with its nearest context;
    • whole page — build an ordered inventory of every major visual block from source metadata, node IDs, a DOM outline, or complete source-image segments, then verify every item.
  3. With an exact source, apply reproduce.md — source acquisition, native-size evidence, and comparison. Without an exact source, apply design-decisions.md — project-first decisions for unspecified values. For a partial source, apply each reference only to the area it governs.
  4. Ask only for blockers that project or source evidence cannot resolve: the relevant frame when a Figma link names only a file, substitution of a required missing font or asset, or expansion beyond the requested scope.

Treat a new requirement, state, edge case, or improvement discovered during implementation or review as a proposal, not authorization. If it changes the agreed presentation, behavior, scope, approach, or material complexity, explain it and get the user's decision first. Correct autonomously only a local mismatch in agreed normal presentation. Treat a rare or source-undefined viewport, content state, or interaction state as a user decision even when its correction looks local.

layout-writing owns markup structure, styles, responsive behavior, typography, asset placement, and visual verification. code-writing owns data flow, state, APIs, validation, and business behavior; use both for mixed work.

Implement and Capture Evidence

  1. Reuse suitable project components, tokens, primitives, fonts, images, and the asset pipeline. Implement the smallest change that satisfies the request; exact-source values override general design taste, while unspecified decisions follow project evidence.
  2. Build a deduplicated viewport list for capture.mjs and pass it explicitly with --viewports:
    • 360, 430, 768, and 1440 widths for baseline responsive coverage;
    • every established exact-source or user-screenshot viewport;
    • widths immediately before and after affected CSS breakpoints. Use the owning source height when known; otherwise choose one stable representative height and reuse it across captures and reruns.
  3. Before capturing, create one temporary evidence root outside the repository. Give every capture or overlay invocation a new child --out path because the scripts reject existing targets and prior evidence must remain unchanged.
  4. At every chosen width, render the selected area or every whole-page inventory block with its nearest relevant context and affected states. Apply the native-size comparison procedure from reproduce.md wherever an exact source exists; otherwise inspect composition, wrapping, clipping, crop, states, and horizontal overflow.
  5. Correct confirmed mismatches and repeat only affected blocks and widths with new output paths. Run the smallest project check that proves the changed route still compiles or renders.

Review and Hand Off

Run no more than two review waves. After every implementation, run wave 1 with one fresh layout-reviewer without a model override. Pass the request, scope, changed files, applicable repository instructions and project-pattern evidence, source mode and responsibility boundary, all checked widths, site images for every checked block and state, source and difference images where applicable, and the complete inventory and evidence set for a whole page or segmented tall block. Include reviewers required by other active skills in these same waves instead of starting a separate wave sequence.

Review findings are diagnoses, not a work queue. Check the evidence and exact correction. Apply only an authorized local correction to agreed normal presentation. If the scenario is rare or unagreed, or the correction adds behavior, state, markup states, component contracts, architecture, or material complexity, reject it with a short reason or ask the user before editing. user_decision_required: false does not replace this check. After an authorized correction changes the reviewed result, recapture affected evidence and run wave 2 with a fresh layout-reviewer. Stop after a clean wave or when no authorized correction changes the result; do not start a wave only for a finding that awaits the user's decision.

After wave 2, do not launch another reviewer automatically. Correct remaining local mismatches inside the agreed presentation, recapture and inspect the affected widths and states, and report any remaining findings or required user decisions.

Hand off with the change summary, checks run, widths and blocks actually verified, finding dispositions, and known evidence limitations.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.