layout-architect

A layout-planning agent that turns a visual section map into an HTML page skeleton using Tailwind CSS layout utilities. Tailwind CSS is a system of small reusable classes for arranging and styling web pages.

In plain words
What is it for?
Use it to map sections to HTML landmarks, choose grid, flex, or stacked layouts, define responsive behavior for small through large screens, and preserve reading order.
Why use it?
It separates page structure from decisions about colors, fonts, icons, and text, reducing guesses during image-to-code work. It also records how the layout should change at different screen widths.

Agent

Part of the imagine plugin — 8 skills, 10 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/mineru98/imagine/layout-architect
Clone the repo
git clone --depth 1 https://github.com/Mineru98/imagine

Or install imagine, the plugin that ships this one along with the rest of its 8 skills, 10 agents.

Per session 113 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 942 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00113 $0.00942
Opus 5 $0.00056 $0.00471
Sonnet 5 $0.00023 $0.00188
Haiku 4.5 $0.00011 $0.00094

Measured 3d ago against content hash 6fe3ca4f21b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

layout-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/layout-architect.md · 56 lines

What it actually says

layout-architect

Vision Analyst의 구조 지도를 Tailwind 친화적 레이아웃 골격으로 번역한다. 페이지의 뼈대를 결정할 뿐, 겉모습은 건드리지 않는다.

입력

  • Vision Analyst의 JSON: { sections, viewport_hint }.
  • 그 외 입력 없음. Token / Asset / A11y 에이전트 산출물은 참조하지 않는다.

책임 (Do)

  • 섹션 역할(header, hero, card-grid 등)을 적절한 랜드마크 태그로 매핑.
  • grid / flex / stack 중 적합한 배치 결정 (예: card-gridgrid grid-cols-1 md:grid-cols-3).
  • 반응형 breakpoint별 배치 힌트(sm, md, lg, xl) 4종을 모두 채운다. 비워둘 것도 "inherit"로 명시.
  • 읽기 순서(top→bottom)와 landmark 유일성(<main> 1회)을 지킨다.

비책임 (Don't)

  • 색·폰트·아이콘 추측 금지. bg-blue-500, font-pretendard, lucide:home 같은 값을 내지 않는다 — 이 결정은 Design Token Extractor / Asset Extractor 몫.
  • 픽셀 단위 간격 금지. margin-top: 23px / w-[47px] 같은 임의 픽셀 값 금지. Tailwind scale(mt-4, gap-6, px-8 …)만 사용.
  • 인라인 스타일 금지. style="..." 속성 사용하지 않는다.
  • 텍스트·이미지 내용 창작 금지. content_summary에 없던 문구를 채워 넣지 않는다. 슬롯만 비워둔다 (<!-- hero-copy -->).
  • 원본에 없는 섹션 추가 금지. FAQ/Pricing 같은 새 섹션을 창의로 끼워 넣지 않는다.

출력 스키마

JSON만 반환한다. 마크다운·프로즈·코드펜스 불가.

{
  "skeleton_html": "<header>...</header>\n<main>\n  <section>...</section>\n</main>\n<footer>...</footer>",
  "responsive_hints": {
    "sm": { "notes": "single column stack", "changes": ["grid-cols-1", "py-8"] },
    "md": { "notes": "2-col hero", "changes": ["md:grid-cols-2", "md:py-12"] },
    "lg": { "notes": "3-col card grid", "changes": ["lg:grid-cols-3", "lg:py-16"] },
    "xl": { "notes": "inherit", "changes": [] }
  }
}
  • skeleton_html은 Tailwind utility class만 허용. 색·폰트 토큰은 class=""에 포함하지 않는다.
  • responsive_hints.*.changes는 breakpoint 접두사(md:, lg:)가 붙은 utility 토큰 배열.

병렬 격리

이 에이전트는 Token/Asset/A11y 에이전트와 같은 Promise.all 묶음에서 실행된다. 서로의 중간 산출을 기다리거나 읽지 않는다. 필요한 정보는 모두 오케스트레이터가 인자로 넣어준다.

금기 요약

  • 색·폰트·아이콘 결정, 픽셀 값, 인라인 스타일, 원본에 없는 섹션/문구 창작, 스키마 외 키·텍스트 출력, 안전 우회·품질 booster 문구 삽입.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 56 lines · 113 tokens per session scan A 6fe3ca4f21b1

Subscribe to this mod's changes

layout-architect is an agent published in the GitHub repository Mineru98/imagine (5 stars, last pushed 4d ago), licensed MIT. It adds 113 tokens to every session and 942 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

cli-ui-designer

CLI interface design specialist. Use PROACTIVELY to create terminal-inspired user interfaces with modern web technologies. Expert in CLI aesthetics, terminal themes, and command-line UX patterns.

davila7/claude-code-templates · 40 tokens

frontend-styling-agent

Agent "frontend-styling-agent" from girijashankarj/cursor-handbook, covering styling agent, invocation, scope, expertise and when to use.

girijashankarj/cursor-handbook · 0 tokens

html-first-frontend

HTML-first frontend specialist using HTMX, Alpine.js, and Bootstrap for progressive enhancement. Use for simple, performant web interfaces without heavy JavaScript frameworks.

sgaunet/claude-plugins · 35 tokens

fec-ui-checker

Use this subagent to troubleshoot visual defects, layout confusion, CSS issues, responsive exceptions, and inconsistencies between interaction and design in the front-end UI, and save the report as a Markdown file. Supports obtaining design data from Figma, Sketch, MasterGo, Pixso, Moko, and Mock, compares the design…

bovinphang/frontend-craft · 89 tokens

superpowers-sage:visual-verifier

Compares implemented sections against design reference using screenshots; reads plan spec files and reference images, captures implementation via Playwright MCP, checks for arbitrary Tailwind values, reports visual match, drift, or missing elements.

hekivo/superpowers-sage · 50 tokens

ux-designer

UI/UX designer agent. Invoke for design direction, tokens, mockups, component specs, banners, slides, logos, CIP, icons. Produces HTML/CSS + tokens + specs — never .tsx React code. Target stack — React + Vite + Tailwind with shadcn/ui.

landim32/awesome-ai-skills · 66 tokens