Skills for Real Engineers. Straight from my .agents directory.
layout-grid
Agent skill fromdaveebbelaar/bama
Grid and alignment rules for a macOS SwiftUI app, with three checks that catch misalignment (a lint for off-grid numbers, a layout probe that measures real frames in snapshot mode, and a grid overlay). Use when building or reviewing a custom page, card, row, form, or sheet, after every build that touched layout, or when the user says something looks misaligned, crooked, cramped, or unevenly spaced.
How to install layout-grid
npx skills add daveebbelaar/bama# or add only this skill to Claude Code: copy the folder
skills/design/layout-grid/
# into
~/.claude/skills/layout-grid/ (all projects)
.claude/skills/layout-grid/ (one project)
1# Layout grid23Agents guess numbers. A guessed `.padding(13)` looks almost right and4makes the whole app feel slightly off. This skill replaces guessing with5one scale and three checks that fail when something is off.67The template has everything in place: `Sources/<App>/UI/Grid.swift` and8`tools/`. For an app made before this skill, copy `UI/Grid.swift`,9`tools/grid-lint.sh`, and `tools/check-layout.swift` from the `new-mac-app`10skill's template, and the layout file line from its `Snapshot.swift`.1112## The rules13141. Every padding, spacing, and size comes from `Space`: `xs 4`, `sm 8`,15 `md 12`, `lg 16`, `xl 20`, `xxl 24`, `section 32`. Raw numbers are16 0, 1, 2, or a multiple of 4.172. Pages and windows have a 20 pt margin (`Space.margin`). Cards pad 1618 (`Space.lg`). Related controls sit 8 apart, groups 20 to 24, sections 32.193. Each column has one leading edge. Titles, text, cards, and buttons in a20 column start on the same x. Indent on purpose, by a step of the scale.214. Let containers do the aligning:22 - Labels with controls: `Form` with `.formStyle(.grouped)`, or23 `.columns` for the Mac layout of right-aligned labels.24 - Rows and columns of values: `Grid` and `GridRow`.25 - A label with a value: `LabeledContent`.26 - Text of different sizes in one row: `HStack(alignment: .firstTextBaseline)`.27 - Numbers in a column: `.monospacedDigit()`, trailing aligned.28 - An icon with text: `Label`.29…
Excerpt shown under the repository's MIT license.
More skills in bama
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
