ai/skills/aidd-layout/SKILL.md
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.
npx skillsauth add paralleldrive/aidd aidd-layoutInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
UI components are one of two types with no overlap. Every component is either terminal or layout.
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"
}
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.
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).
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.
documentation
Top tier author skill for delivering essential truths with the persuasive power to inspire positive change. Use when writing, reviewing, editing, or scoring any content.
development
Guide for crafting high-quality AIDD skills. Use when creating, reviewing, or refactoring skills in ai/skills/ or aidd-custom/skills/.
testing
Reflective Thought Composition. Structured thinking pipeline for complex decisions, design evaluation, and deep analysis. Use when quality of reasoning matters more than speed of response.
tools
Teaches agents how to write correct riteway ai prompt evals (.sudo files) for multi-step flows that involve tool calls. Use when writing prompt evals, creating .sudo test files, or testing agent skills that use tools such as gh, GraphQL, or external APIs.