agentleFS
theseus-runtheseus-run/theseus/.agents/skills/ui-layout-discipline/SKILL.md

ui-layout-discipline

Skill1 starsChanged 6 months agoMITView on GitHub

Use when building, changing, or reviewing UI layouts in Theseus or Icarus, especially data-dense dashboards, tables, calendars, matrices, cards, and cells with optional labels, badges, metrics, or status text.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for data-dense UI surfaces where layout stability matters.

    line 8
  2. Distinctive:

    If a table, calendar, matrix, or dashboard cell can show optional content, reserve space for the absent state or use a layout primitive …

    line 15
  3. Distinctive:

    Keep repeated cells visually isomorphic: same internal rows, same spacing, same alignment, same hit target.

    line 28
  4. Distinctive:

    Use browser verification after changing layout.

    line 30
  5. Distinctive:

    Before finishing UI work, verify:

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UI Layout Discipline

Use this skill for data-dense UI surfaces where layout stability matters.

Core Rule

Dynamic content must not accidentally change row height, column width, cell size, or neighboring layout geometry.

If a table, calendar, matrix, or dashboard cell can show optional content, reserve space for the absent state or use a layout primitive that guarantees stable dimensions.

Required Patterns

  • For matrix/table cells, use explicit CSS grid tracks, fixed/min heights, or table-native sizing. Do not let optional labels add a new row only in some cells.
  • Render an empty placeholder row for missing optional labels when the label row exists for other cells.
  • Constrain text that can grow with truncate, fixed tracks, line clamps, or an explicit detail surface. Do not let long status labels resize the cell.
  • Keep repeated cells visually isomorphic: same internal rows, same spacing, same alignment, same hit target.
  • Use browser verification after changing layout. Check both a populated cell and an empty cell in the same row.

Review Traps

  • Optional badges/tags adding height.
  • Text wrapping inside a fixed-format cell.
  • Hover/selected borders changing dimensions.
  • Cards inside cards used to solve spacing.
  • Fake dashboard/admin shell elements kept after the product surface narrows.

Acceptance Check

Before finishing UI work, verify:

  • cells with and without optional content have the same measured height
  • selected and unselected cells have the same dimensions
  • long labels do not push neighboring content
  • browser screenshot or DOM inspection confirms the intended stable layout

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.