Better Layout logo

Better Layout

Community
hsynozdamar-byte
better-layout

Layout structure: grouping, alignment, reading order, spacing, safe areas, breakpoints, RTL. Use when building or reviewing layout, or when a screen feels cluttered, misaligned or breaks on resize.

Overview

Publisherhsynozdamar-byte
Repositoryclaude-skills-edited
Skill namebetter-layout
Stars
63
Forks
1
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hsynozdamar-byte on GitHub. Read the source before you install it.

Installation

Install the Better Layout AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hsynozdamar-byte/claude-skills-edited/tree/main/skills/better-layout
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hsynozdamar-byte/claude-skills-edited.git /tmp/claude-skills-edited
mkdir -p .claude/skills
cp -r /tmp/claude-skills-edited/skills/better-layout .claude/skills/better-layout
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Better Layout in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Better Layout on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Better Layout is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Layout

Position, spacing and alignment carry hierarchy before a word is read. Build that structure, then stress-test it: resize it, translate it, mirror it for RTL.

Write fixes in the project's styling system. The numbers below are starting points for projects with no density or spacing system, and compact professional tools can go tighter as long as the stress tests still pass.

Hit areas and focus belong to better-accessibility, radius and motion to better-ui, measure and text spacing to better-typography.

Grouping and hierarchy

  • Space first, shapes second, lines last. Gap between groups at least 2x the gap within one (8px inside, 16px+ between). A separator is for dense data (tables, long settings) and stays quiet; never stack one on a gap that already did the job.
  • Controls look like controls. Every interactive element gets a fill, border, underline or a consistent control zone. The reverse too: a static badge shaped like a button collects dead clicks.
  • Shared edges. Few alignment edges, everything on them. One spacing step per level of nesting (16px is a good default). Numbers in tables align trailing, text leading.
  • Order by importance. Key fact near the top and leading edge; within a row, identity leads, metadata and actions trail. Don't bury the one number the user came for under secondary detail.
  • Light entry point. One primary action per view. Past two or three secondary actions, move them into a menu. A short view linking deeper beats a long one showing everything.

Spacing and edges

  • Between targets. 12px between bordered or filled controls, 24px around borderless text or icon buttons (the space is their only boundary), 24px+ between unrelated groups. Keep an existing usable density instead of inflating it.
  • Inset buttons. Full-width buttons in content stay inside the layout margins (start near 16px on mobile) with a visible radius. Edge-to-edge is fine when it's deliberate platform chrome that respects safe areas.
  • Content bleeds, controls float. Backgrounds, media and scroll lists may reach the viewport edges; text and controls stay inside margins and env(safe-area-inset-*). Sticky chrome floats above content.
  • Hint at hidden content. Collapsed or off-screen content needs a cue: the next card peeking 16 to 32px past the edge, or a disclosure labelled with what it hides ("Show 12 more results", not "More"). A row that ends exactly at the edge looks complete, so nobody scrolls.

Adaptivity

  • Logical properties for anything direction-dependent (ms-4 pe-6 text-start, inset-inline-end). Physical sides only for physical geometry such as a notch. Sequences (steps, ratings, progress) mirror in RTL; digits never reverse.
  • Breakpoints come from content. Break where the layout stops fitting, not at 768/1024 by default. Collapse late. Prefer container queries for components so a card adapts to its column, not the viewport. Test the smallest and largest sizes first.
  • Plan for growth. Translations grow, and short labels grow the most. No fixed width or height on text containers (max-width, min-height, wrapping instead); buttons size from padding, not a fixed width. Test with pseudo-localization.
  • Never clip the critical action. Keep primary actions out of places resizing, a fixed-height modal or the keyboard can cut off. A modal's content scrolls; its action row doesn't.

CSS for the peeking scroller, full-bleed grid, safe-area FAB, container query and the logical property map: references/recipes.md.

Reporting (standalone)

HIGH: content or an action blocked at a supported viewport. MEDIUM: hurts hierarchy, reading order or adaptability. LOW: isolated alignment or spacing. One row per root cause: Severity, Location (path:line), Before, After, Why. Check every supported width, 200% zoom and the RTL mirror; mark what you couldn't run Not verified. End with Block if any HIGH, else Approve.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Better Layout AI skill do?

Layout structure: grouping, alignment, reading order, spacing, safe areas, breakpoints, RTL. Use when building or reviewing layout, or when a screen feels cluttered, misaligned or breaks on resize.

Why use Better Layout on TypingMind?

Because you install it once and use it with any model. Better Layout is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Better Layout in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hsynozdamar-byte/claude-skills-edited/tree/main/skills/better-layout. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Better Layout?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Better Layout?

As many as you like. As long as a model supports skills, you can use Better Layout with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Better Layout AI skill free?

It is published on GitHub by hsynozdamar-byte. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇