Agent skill

AIDD UI Layout Patterns

by paralleldrive in paralleldrive/aidd

Enforces a split of UI components into terminal and layout types, with layout components composing others through standard layout tokens, for cleaner structure and fewer re-renders.

MITAuto-check passedFrontend & Design

Install AIDD UI Layout Patterns

skills CLI
$ npx skills add paralleldrive/aidd --skill aidd-layout -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install paralleldrive/aidd aidd-layout --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/paralleldrive/aidd.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ai/skills/aidd-layout .claude/skills/aidd-layout && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aidd-layout
GitHub stars
384
Token cost
~562 tokens
SKILL.md length
90 words
Files
3 (incl. references)
Skills in repo
35
Repo updated
First seen
Licence
MIT

At a glance

Enforces a split of UI components into terminal and layout types, with layout components composing others through standard layout tokens, for cleaner structure and fewer re-renders.

  • Creating a new UI component and deciding what type it is
  • SKILL.md covers Terminal components, Layout components, Why this split matters and Execute
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Sorting out spacing and gaps between components

What it does

Every UI component is classified as one of two types with no overlap. A terminal component renders its own UI (buttons, inputs, cards, text) and holds the CSS for appearance. A layout component renders no UI itself, is composed only of other layout or terminal components, and should rarely need its own CSS, 90% of the time or more, because it uses the standard layout tokens documented in `references/design-tokens.md`.

The reasoning is efficiency: layout components that rarely re-render keep the structure above stable, while state changes and user interactions update at the terminal level. Reactive logic belongs in a layout component only when the layout itself is dynamic, such as tabs, accordions or animations. The skill is written partly in SudoLang and includes a routine to run when creating or changing a UI component that classifies it as terminal or layout.

When your agent uses it

  • Creating a new UI component and deciding what type it is
  • Sorting out spacing and gaps between components
  • Reducing re-renders by moving state down to terminal components

Example prompts

  • “Build a settings card grid and classify each component as terminal or layout.”
  • “This page component mixes spacing CSS with button markup. Split it properly.”
  • “Which of these components should be layout components, and why do they re-render so often?”

What it can do on your machine

Read from SKILL.md and the folder at commit 9a7c8e3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are sudolang).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

AIDD UI Layout Patterns loads about 562 tokens when it runs, and up to ~1.2k if it reads all its reference files. Until then it costs about 60 tokens; SKILL.md has 90 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~562
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from paralleldrive/aidd at commit 9a7c8e3, republished under its MIT licence (© paralleldrive). 90 words, ~562 tokens.

Download SKILL.mdSave it as .claude/skills/aidd-layout/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
aidd-layout
description
Enforces UI component layout and composition patterns. Use when designing layouts, creating UI components, spacing, gaps, or when the user asks about component hierarchy, terminal vs layout components, or re-render efficiency.

Layout and component types

UI components are one of two types with no overlap. Every component is either terminal or layout.


Terminal components

sudolang
TerminalComponent {
  renders: "own UI (buttons, inputs, cards, text, etc.)"
  contains: "CSS for appearance"
  never: "contain any external margin"
  role: "leaves of the component tree; own visual styling and content"
}

Layout components

sudolang
LayoutComponent {
  doesNotRender: "any UI themselves"
  composedOf: "other layout or terminal components only"
  responsibleFor: "interior gaps between children"
  never: "contain any external margin"
  css: "Should not need CSS 90% of the time or more — use standard layout tokens"
  reRender: "Generally no business logic; should never re-render — keeps re-renders at terminal levels"
  exception: "Some layout components explicitly manage state (animating, tabs, accordions) — those have logic and may re-render"
}

Should not need CSS 90% of the time or more — use the standard layout tokens. See design-tokens.


Why this split matters

Layout components that rarely re-render are efficient. State changes and user interactions trigger updates at terminal levels; layout structure above stays stable. Avoid putting reactive logic in layout components unless the layout itself is dynamic (tabs, accordions, animations).


Execute

sudolang
fn whenCreatingOrModifyingUIComponent() {
  Constraints {
    Classify as terminal or layout; no overlap
    Terminal: owns UI and CSS; never external margin
    Layout: no own UI; only layout/terminal children; owns interior gaps; never external margin
    Prefer standard layout tokens for layout components; avoid custom CSS when possible
    Keep layout components free of business logic unless they explicitly manage layout state (tabs, accordions, animations)
  }
}

See design-tokens for token reference.

© paralleldrive, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in ai/skills/aidd-layout of paralleldrive/aidd.

  • SKILL.md
  • README.md
  • references/design-tokens.md

Open the folder on GitHubat commit 9a7c8e3

Compare with similar skills

AIDD UI Layout Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

AIDD UI Layout Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
AIDD UI Layout Patterns this skillparalleldrive/aidd384—~562Automated safety check: PassMIT
Kaizen UINVIDIA/Personal-AI-Router1.6k—~4.7kAutomated safety check: PassApache-2.0
MCP Developmentcoollabsio/coolify63k1 repos~949Automated safety check: PassMIT
Design Guidepaperclipai/paperclip99k1 repos~3.1kAutomated safety check: PassMIT
Transitions PolishJakubantalik/transitions.dev4.6k2 repos~3.2kAutomated safety check: PassCustom licence
Web Style ExtractorLucent-Snow/style-extractor453—~3.8kAutomated safety check: PassNone

Similar skills

  • Kaizen UI

    NVIDIA/Personal-AI-Router

    Official

    Kaizen UI (KUI) component library and design-pattern advisor for NVIDIA applications.

    1.6k GitHub stars~4.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed
  • Design Guide

    paperclipai/paperclip

    Paperclip UI design system guide for building consistent, reusable frontend components.

    99k GitHub starsUsed in 1 repo~3.1k tokens
    Frontend & DesignAuto-check passed
  • Transitions Polish

    Jakubantalik/transitions.dev

    Audits existing UI animations against the transitions.dev motion-token scale and suggests tokens for duration, distance, scale, blur and easing.

    4.6k GitHub starsUsed in 2 repos~3.2k tokens
    Frontend & DesignAuto-check passed
  • Web Style Extractor

    Lucent-Snow/style-extractor

    Extracts evidence-backed style guides and motion appendices from websites, keeping reusable visual language and stripping product-specific content.

    453 GitHub stars~3.8k tokensUpdated 6 mo ago
    Frontend & DesignAuto-check passed
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Frontend & DesignAuto-check passed

More from paralleldrive/aidd

All 35 skills in this repo
  • AIDD Skill Authoring Guide

    paralleldrive/aidd

    Guides creating, reviewing or refactoring AI-Driven Development skills so each one stays minimal, composable and named around a single clear function.

    384 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Adobe Data ECS Plugin Rules

    paralleldrive/aidd

    Enforces @adobe/data/ecs practices when writing Database.Plugin definitions, including property order, plugin composition, services, components, resources and archetypes.

    384 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Error Causes Handling

    paralleldrive/aidd

    Has your agent throw and catch JavaScript and TypeScript errors with the error-causes library, using named causes, preserved originals and routed handlers.

    384 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Teaches the saga pattern with call and put so network requests and side effects stay out of the logic and sagas can be tested without mocks.

    384 GitHub stars~587 tokensUpdated 3 mo ago
    Auto-check passed
  • Lit Element Authoring

    paralleldrive/aidd

    Rules for writing Lit elements in an AIDD project: binding elements on DatabaseElement, observed values, presentation components and action-style callbacks.

    384 GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Epic Changelog Logger

    paralleldrive/aidd

    Adds completed epics to a changelog in reverse chronological order, one emoji-tagged line each, covering only significant user-facing work.

    384 GitHub stars~461 tokensUpdated 3 mo ago
    Auto-check passed

Questions about AIDD UI Layout Patterns

What does AIDD UI Layout Patterns do?

Enforces a split of UI components into terminal and layout types, with layout components composing others through standard layout tokens, for cleaner structure and fewer re-renders. Every UI component is classified as one of two types with no overlap. A terminal component renders its own UI (buttons, inputs, cards, text) and holds the CSS for appearance.

When should I use AIDD UI Layout Patterns?

AIDD UI Layout Patterns fits situations like: creating a new UI component and deciding what type it is; sorting out spacing and gaps between components; reducing re-renders by moving state down to terminal components.

How do I install AIDD UI Layout Patterns in Claude Code?

Run `npx skills add paralleldrive/aidd --skill aidd-layout -a claude-code`. Or copy the skill folder (ai/skills/aidd-layout in paralleldrive/aidd) into .claude/skills/aidd-layout in your project. Claude Code loads it when a task matches its description.

How do I install AIDD UI Layout Patterns in Codex?

Run `npx skills add paralleldrive/aidd --skill aidd-layout -a codex`. Or copy the skill folder (ai/skills/aidd-layout in paralleldrive/aidd) into .agents/skills/aidd-layout in your project. Codex loads it when a task matches its description.

Can I use AIDD UI Layout Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add paralleldrive/aidd --skill aidd-layout -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aidd-layout, .gemini/skills/aidd-layout, .github/skills/aidd-layout and .opencode/skills/aidd-layout in your project.

What does AIDD UI Layout Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: AIDD UI Layout Patterns is instructions for the agent only.

Does AIDD UI Layout Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is AIDD UI Layout Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does AIDD UI Layout Patterns use?

AIDD UI Layout Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does AIDD UI Layout Patterns use?

About 562 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 640 tokens, read only when the agent opens those files.

What are the alternatives to AIDD UI Layout Patterns?

Skills that share tags, products or a category with AIDD UI Layout Patterns: Kaizen UI (NVIDIA/Personal-AI-Router, 1.6k stars), MCP Development (coollabsio/coolify, 63k stars), Design Guide (paperclipai/paperclip, 99k stars) and Transitions Polish (Jakubantalik/transitions.dev, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains AIDD UI Layout Patterns?

paralleldrive (a GitHub organization) maintains it in paralleldrive/aidd, which has 384 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on June 12, 2026.

Source: paralleldrive/aidd on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.