screens-guide

The source of screens.guide: the screen sizes, safe-area insets, corner
radii, system bars and margins of iPhones, iPads and Android devices, as measured on Xcode
simulators and Android emulators. The site publishes them for coding agents first, as JSON, CSV, a
JSON Schema, llms.txt, Markdown copies, an MCP server and an agent skill, and for people second,
as tables, drawings and playgrounds. Modaal measures and publishes the data.
specs/ has three specs, and each one's "Phasing" section lists the commits that build
the site. The dataset is in data/ (spec 001 phase 3), the pages in src/pages/ (phase 4), and the
files for agents beside them (phase 5).
| spec | what it plans |
|---|
| 001-site-and-dataset | the dataset, the pages, the files for agents, the analytics, the hosting |
| 002-agent-interfaces | the MCP server, Markdown by content negotiation, the skill and the Claude Code plugin |
| 003-data-rounds | the measurement rounds that add devices and fields after launch |
The skill and the plugin
skills/ is a Claude Code plugin, and the repository is its marketplace. The plugin carries one
skill and connects the MCP server at https://screens.guide/mcp.
| skill | what it does |
|---|
screens-guide | lays out and reviews a mobile screen against the measured windows, safe areas, corner radii, system bars, size classes and folds, through the MCP tools, the data files or its own snapshot references/devices.md |
Install it in Claude Code:
/plugin marketplace add modaal-agent/screens-guide
/plugin install screens-guide@screens-guide
On Claude Code 2.1.275 or later, one line does both:
/plugin install screens-guide --marketplace modaal-agent/screens-guide. Other agents install the
skill alone with npx skills add modaal-agent/screens-guide. https://screens.guide/agents gives
every channel's steps.
Build and run
The site needs Node 24 (.node-version). The repository checks need bash and python3:
bash scripts/check-agent-rules.sh # AGENTS.md and CLAUDE.md are byte-identical
scripts/check-skills.sh # skills, plugin manifests and spec references
scripts/check-skills.sh --self-test # each check red against a seeded violation
npm ci
npm run check:data # data/devices.json against its schema and rules
npm run check # astro check: the pages' and the code's types
npm run build # the static site, into dist/
npm test # vitest; its site tests read dist/, so build first
npm run gen:skill # skills/screens-guide/references/devices.md from data/devices.json
npm run dev # the site at http://localhost:4321, rebuilt on each save
npx wrangler dev # dist/ and the MCP server as the Worker serves them, at http://localhost:8787
Deploy
.github/workflows/deploy.yml runs the checks, builds the site and runs npx wrangler deploy on
every push to main. The Worker screens-guide (wrangler.jsonc) serves dist/ as static assets
at https://screens.guide, and runs worker/index.ts for the routes in worker/routes.ts: /mcp,
the MCP server; the pages, which it answers with HTML or their Markdown copy by the Accept header;
and the data and text files, which it counts. The workflow needs
the repository secret CLOUDFLARE_API_TOKEN and the repository variable CLOUDFLARE_ACCOUNT_ID.
Layout