layout-grid
Skill1.7k starsChanged 11 days agoMITView on GitHub
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.
4 other projects use a version of this, 2 of them edited.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- Stijnus/dsh-rev-engedited, first seen Nov 8, 2026
- daveebbelaar/bawaedited, first seen Nov 8, 2026
- miovrag/claude-skillstheir own version, first seen Jun 12, 2026
- launchapp-dev/animus-clitheir own version, first seen Mar 15, 2026
Who's talking about daveebbelaar/bama
- Dave Ebbelaar“This Free Repo Lets Claude Code Build Any Mac App”YouTube · Oct 26, 2026 · 121k views
- tamhn“Claude Giờ Làm Được MỌI Ứng Dụng Mac (Skill Miễn Phí)”YouTube · Oct 29, 2026 · 8.1k views
- Claudical“App Store 대신 말로 만드는 Mac 앱 | Claude Code 플러그인 BAMA”YouTube · Nov 3, 2026 · 1.9k views
- Daksh“BAMA AI Agent builds native Mac apps from screenshots #shorts”YouTube · Oct 28, 2026 · 742 views
- Tech by Thilak“Claude can now clone Mac apps (BAMA, free and open source)”YouTube · Nov 2, 2026 · 310 views
The biggest 5 of 42 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 42
Talked about on GitHub, YouTube and the web (42 times).
On GitHub · 20
- Nov 5, 2026agent-skills.github.daveebbelaar.bama: 0-unstable-2026-11-01 → 1.1.1 — sudosubin/agents.nix0 reactions
- Nov 5, 2026claude-code-plugins.github.daveebbelaar.bama: 0-unstable-2026-11-01 → 1.1.1 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-plugins.github.daveebbelaar.bama: 0-unstable-2026-10-29 → 0-unstable-2026-11-01 — sudosubin/agents.nix0 reactions
- Nov 1, 2026agent-skills.github.daveebbelaar.bama: 0-unstable-2026-10-29 → 0-unstable-2026-11-01 — sudosubin/agents.nix0 reactions
- Nov 1, 2026[GitHub Radar] 2026-11-01: 3 repo đáng xem — mrxcode-debug/pdt-github-hot-radar0 reactions
15 more on GitHub
- Oct 30, 2026H: Mac app (SwiftUI shell around the Rust binary), replaces the AppleScript droplet — fastermadman/PDFable0 reactions · 1 comment
- Oct 29, 2026agent-skills.github.daveebbelaar.bama: 0-unstable-2026-10-27 → 0-unstable-2026-10-29 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-plugins.github.daveebbelaar.bama: 0-unstable-2026-10-27 → 0-unstable-2026-10-29 — sudosubin/agents.nix0 reactions
- Oct 28, 2026[Candidate] daveebbelaar/bama/skills/design/layout-grid - layout-grid — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 28, 2026[Candidate] daveebbelaar/bama/skills/design/design-system - design-system — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 28, 2026[Candidate] daveebbelaar/bama/skills/design/design-kit - design-kit — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 27, 2026agent-skills.github.daveebbelaar.bama: init at 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026[Candidate] daveebbelaar/bama/skills/design/design-from-app - design-from-app — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 27, 2026[Candidate] daveebbelaar/bama/skills/design/app-icon - app-icon — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 27, 2026[Candidate] daveebbelaar/bama/skills/code/swift-swiftui - swift-swiftui — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 27, 2026claude-code-plugins.github.daveebbelaar.bama: 0-unstable-2026-10-26 → 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026[Candidate] daveebbelaar/bama/skills/code/performance - performance — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 27, 2026[Candidate] daveebbelaar/bama/skills/code/os-integrations - os-integrations — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 27, 2026[Candidate] daveebbelaar/bama/skills/code/improve-architecture - improve-architecture — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 27, 2026claude-code-plugins.github.daveebbelaar.bama: init at 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
On YouTube · 13
- Oct 26, 2026This Free Repo Lets Claude Code Build Any Mac App — Dave Ebbelaar121k views · 118 comments
- Oct 29, 2026Claude Giờ Làm Được MỌI Ứng Dụng Mac (Skill Miễn Phí) — tamhn8.1k views · 5 comments
- Nov 3, 2026App Store 대신 말로 만드는 Mac 앱 | Claude Code 플러그인 BAMA — Claudical1.9k views · 1 comment
- Oct 28, 2026BAMA AI Agent builds native Mac apps from screenshots #shorts — Daksh742 views
- Nov 2, 2026Claude can now clone Mac apps (BAMA, free and open source) — Tech by Thilak310 views
8 more on YouTube
- Oct 29, 2026Claude Code Mac App: One Sentence In, a Working App Out (Free BAMA Repo) — Simply AI217 views
- Oct 29, 2026Clone any native Mac app using AI agents 🚀 — LookOnThisGit117 views · 1 comment
- Nov 1, 2026AI Se Apni Mac App? 🖥️ — Suresh52 views
- Nov 2, 2026See an app you like? Claude Code rebuilds it as a Mac app (BAMA) — RocketLauncher Code40 views
- Oct 27, 2026Your AI can now build real Mac apps #shorts — No Short Answers36 views · 1 comment
- Oct 27, 2026BAMA: Agent Skills That Build Native Mac Apps #Shorts — Brix AI30 views
- Oct 29, 2026BAMA + 2 more repos · hotin.ai daily Oct 29, 2026 #Shorts — HotInAI27 views
- Nov 4, 2026bama: Rebuild any Mac app instantly — Dail Finds Dev | Repos, Tools, Sites2 views
On the web · 9
- Oct 30, 2026Build your own Mac app with Claude Code | aruntastic — aruntastic.com
- Oct 26, 2026This Free Repo Lets Claude Code Build Any Mac App · CHOOSETO.AI — chooseto.ai
- Oct 24, 2026daveebbelaar/bama - The Skill Leaderboard — skillleaderboard.com
- Feb 15, 2026Product TEA Test: GAMMA - by TEA (The Era Arc) and Sam Li — tea2025.substack.com
- Dec 28, 2025My Experience Using the BMAD Framework on a Personal Project (Patience Required) — dev.to
4 more on the web
- Dec 6, 2025Finding My Brain Again in the Middle of the AI Fire hose | by Shay Dratler — dratler-shay.medium.com
- Sep 14, 2025#6 - ChatGPT Agent, Youware, Gamma - by Brandon — behindonai.substack.com
- Jul 16, 2025My 15 favorite apps I use daily. We spend hours each day on our phones… | by Bex Jeanson — userbexperiencedesign.medium.com
- Aug 11, 2023Last Day with @daveebbelaar here at Termene.ro in Nuba, Mamaia. I got some great insight on how to code an AI Agent that can take notes for your meetings and organise them … | David Podut — linkedin.com
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- daveebbelaar/bawa★ 1735% same
- Stijnus/dsh-rev-eng★ 199% same
Wrote their own version · 2
- launchapp-dev/animus-cli★ 39same name
- miovrag/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-cliSkill
- improve-architectureSkill
- os-integrationsSkill
- performanceSkill
- swift-swiftuiSkill
- app-iconSkill
- design-from-appSkill
- design-kitSkill
- design-systemSkill
- mac-designSkill
- ux-designSkill
- cloneSkill
- researchSkill
- user-storiesSkill
- build-and-verifySkill
- improve-loopSkill
- test-mac-appSkill
- app-briefSkill
- bamaSkill
- new-mac-appSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Every padding, spacing, and size comes from Space: xs 4, sm 8, md 12, lg 16, xl 20, xxl 24, section 32.
- Distinctive: line 44
Run it after every build that touched views:
- Distinctive: line 96
Never overlaps another probe in its area.
- Very specific: line 120
Run the snapshots once with scroll bars on, because a scroll bar that takes width moves centered content (mac-design, app-shell.md):
- Distinctive: line 132
When a check fails and the cause is not clear, draw the grid over the window:
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Layout grid
Agents guess numbers. A guessed .padding(13) looks almost right and
makes the whole app feel slightly off. This skill replaces guessing with
one scale and three checks that fail when something is off.
The template has everything in place: Sources/<App>/UI/Grid.swift and
tools/. For an app made before this skill, copy UI/Grid.swift,
tools/grid-lint.sh, and tools/check-layout.swift from the new-mac-app
skill's template, and the layout file line from its Snapshot.swift.
The rules
- Every padding, spacing, and size comes from
Space:xs 4,sm 8,md 12,lg 16,xl 20,xxl 24,section 32. Raw numbers are 0, 1, 2, or a multiple of 4. - Pages and windows have a 20 pt margin (
Space.margin). Cards pad 16 (Space.lg). Related controls sit 8 apart, groups 20 to 24, sections 32. - Each column has one leading edge. Titles, text, cards, and buttons in a column start on the same x. Indent on purpose, by a step of the scale.
- Let containers do the aligning:
- Labels with controls:
Formwith.formStyle(.grouped), or.columnsfor the Mac layout of right-aligned labels. - Rows and columns of values:
GridandGridRow. - A label with a value:
LabeledContent. - Text of different sizes in one row:
HStack(alignment: .firstTextBaseline). - Numbers in a column:
.monospacedDigit(), trailing aligned. - An icon with text:
Label.
- Labels with controls:
- Sheets are 360, 480, or 640 wide. Controls take their height from
.controlSize, never from a fixed height. - Nested corners are concentric: inner radius = outer radius - padding.
.offsetand.positionmove a view after layout, so nothing lines up with it. Use them only for motion and drag previews, with// grid: ok <why>on the line.- Long text truncates with its full value in a tooltip. Nothing clips.
Check 1: lint the code
Run it after every build that touched views:
tools/grid-lint.sh
# Sources/Tasks/TaskRow.swift:14: off grid (10): .padding(.horizontal, 10)
# FAIL grid-lint: 1 lines off the gridFix each line with a Space token.
Check 2: probe the real layout
Mark what you lay out yourself: the page, its sections, cards, rows in a card, sheet content. System lists, forms, sidebars, and toolbars align themselves and need no probes. Your own rows beside them do.
A check only sees what has probes. A screen with two probes passes while everything else is off, so read the count in the PASS line.
VStack(alignment: .leading, spacing: Space.xxl) {
Text("Today").gridProbe("title", area: "page")
StatsRow().gridProbe("stats", area: "page")
TaskCard()
.gridArea("card", inset: Space.lg)
.gridProbe("card", area: "page")
}
.padding(Space.margin)
.gridArea("page").gridArea marks a container and its inset. .gridProbe marks a view in
it. Probes with the same edge (default "lead") must share one leading
edge. Pass edge: nil for views that sit side by side.
Snapshot mode writes a <page>-<mode>-layout.json next to every PNG.
Check them:
swift tools/check-layout.swift /tmp/<App>-shots/*-layout.json
# PASS today-light-layout.json: 12 probes in 2 areas
# FAIL inbox-light-layout.json
# - edge page/lead has 2 leading edges: title 320, list 324It checks that every probe:
- Starts on a whole or half point, so its edges stay sharp.
- Starts a multiple of 4 pt from its area's edge.
- Stays inside its area's inset on both sides.
- Shares one leading edge with the others on its edge.
- Sits a multiple of 4 pt below the probe above it.
- Never overlaps another probe in its area.
Line up across areas
Rules 2 to 6 stay inside one area. Views in different areas, like text in a scroll
view and a chat box outside it, need an edge that starts with =:
TextColumn().gridProbe("column", area: "", edge: "=reading")
Composer().gridProbe("composer", area: "", edge: "=reading")| Edge | Must match |
=name | left and right |
=name< | left |
=name> | right |
=name| | center |
=name_ | bottom |
These probes skip rules 2 to 6, so a view off the 4 pt grid can still match a
system edge. To check one view against two groups, add a second .gridProbe with
a different name, because a probe with the same name replaces the first.
Run the snapshots once with scroll bars on, because a scroll bar that takes width
moves centered content (mac-design, app-shell.md):
tools/snap.sh -AppleShowScrollBars AlwaysThe probes keep one frame per name across all windows. When a second window shows the same views, its layout file mixes both windows, so check that window by its PNG.
Check 3: look at the grid
When a check fails and the cause is not clear, draw the grid over the window:
APP_GRID=1 APP_STORE=/tmp/<App>-test.store APP_SNAPSHOT=/tmp/<App>-grid \
~/Applications/<App>.app/Contents/MacOS/<App>The PNGs show an 8 pt grid, each area in blue with its inset dashed, and each probe in pink with its name. Open them with the Read tool.
Fix a failure
| Message | Usual cause | Fix |
| starts 23 pt into page | a raw padding on one child | remove it, use the stack's Space padding |
| 2 leading edges | a centered stack, or one child with extra padding | alignment: .leading on the stack |
| gap 10 pt | spacing: 10, or a Spacer(minLength:) | a Space token |
| inside its 20 pt inset | a missing margin, or a fixed width wider than the parent | .padding(Space.margin), maxWidth instead of width |
| overlap | .offset, .position, or a fixed height | remove it, let the stack size the view |
| x between pixels | a fractional number | a whole number from Space |
=name has different left edges | a scroll bar that takes width, or a panel's gap on the content's side | mac-design, app-shell.md, "Line up the content" |
Done when tools/grid-lint.sh passes, tools/check-layout.swift passes
on the layout files of every page you touched, and every custom page and
card has a .gridArea with probes on its main parts.
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
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.

