CSS Flexbox/Grid Layout Generator skill for Claude and Codex
Turns a plain-language page layout (header, columns, sticky footer) into working HTML and CSS, choosing Grid, Flexbox, or Tailwind classes to match…
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when a described page layout such as header, sidebar, card columns, and sticky footer needs working HTML and CSS using Grid, Flexbox, or Tailwind. Do not use for fixing a layout that already exists, single-component alignment problems, or design mockups without code. Related topics: coding, css, design.
What it will ask you for
- Layout strategy (choose one: CSS Grid, Flexbox, Tailwind CSS classes, Pick the best fit)
- Describe the desired layout (longer free text)
- Responsive (mobile-friendly) (choose one: Yes, No)
- Gap or spacing between regions (choose one: Small (8px), Medium (16px), Large (32px), Custom)
- Alignment (choose any: Center items vertically, Center items horizontally, Space evenly, Stretch to fill)
- Include HTML boilerplate (choose one: Yes, No)
How it works
- Parse the description into regions and decide Grid for two-dimensional page structure and Flexbox for one-dimensional groups, stating the choice when the strategy is open.
- Write semantic HTML for each region, with full boilerplate when requested.
- Write mobile-first CSS or Tailwind classes that build the columns at wider widths and implement the sticky footer with a min-height wrapper.
- Apply the gap and alignment options to their correct axis and comment the region rules.
- Check that the markup renders a usable single column with the CSS removed, then add the two-sentence extension note.
What you get
Two fenced code blocks, HTML then CSS (or Tailwind-classed HTML alone), followed by two sentences on extending the layout with another region.
What it watches out for
- Using Flexbox for a page grid with both rows and columns, which needs wrappers and width maths that Grid areas avoid.
- Making the footer sticky with position: fixed, which overlaps content on short pages instead of sitting at the bottom.
- Writing desktop-first CSS, so the mobile layout becomes an afterthought of overrides.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.