layout-spec-auditor

layout-spec-auditor is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 119 tokens per session (2,327 once invoked), scanned A, original, Apache-2.0.

An image and layout checker that compares a picture or planned dimensions with a design specification. It checks the aspect ratio, resolution, safe margins for text, file size, and amount of text.

In plain words
What is it for?
Use it to approve graphics for a named platform and identify which layout or file requirements need fixing.
Why use it?
It catches delivery problems before an image is published, such as the wrong shape, unreadable edge placement, or an oversized file. It can inspect a real image or audit declared dimensions when no image exists yet.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/spec_audit.py --image cover.png --platform wechat-header.

Good fit Use it to approve graphics for a named platform and identify which layout or file requirements need fixing.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/layout-spec-auditor

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for layout-spec-auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/layout-spec-auditor/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/layout-spec-auditor)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/layout-spec-auditor"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/layout-spec-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for layout-spec-auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/layout-spec-auditor"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/layout-spec-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.02327
Opus 5.5 $0.00048 $0.00931
Sonnet 5.5 $0.00024 $0.00465
Haiku 4.5 $0.00012 $0.00233

Measured 2mo ago against content hash decb6944a2a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

layout-spec-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

site/skills/design/layout-spec-auditor/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Layout Spec Auditor

Chain gatekeeper. After the image is generated, it passes three gates before delivery: is the ratio right, is resolution enough, is text safe. The canvas agreed at the spec stage—off by 1% at delivery means rework.

Domain Tacit Knowledge (Four Things to Know Before Auditing)

1. Safe-area numbers come from measured platform UI positions, not empirical mysticism. This skill's "8% on all sides / 15% bottom" corresponds to measured fact: Douyin and Bilibili covers overlay duration labels in the lower-left, vertical platforms have progress bars and interaction buttons at bottom, Xiaohongshu/Douyin feed cards have rounded-corner cropping—text or subject landing in these areas gets covered by UI, not "slightly cropped". Different platforms' overlay positions differ, so look up by platform, don't apply universal values.

2. Contrast isn't an aesthetic issue, it's a compliance issue. WCAG 2.x quantitative floor: body text vs background 4.5:1 (AA), large text and UI components 3:1, AAA 7:1. This isn't editorial preference—WebAIM's million-page annual scans show for years running, insufficient contrast is the #1 web accessibility violation (about 80% of home pages hit in recent scans). Same for text burned into images: on-image title vs background contrast below 4.5:1 is unreadable in bright-screen/thumbnail size; audit records it as "compliance failure", not "style suggestion".

3. Color-vision redundancy: about 8% of men have color-vision deficiency. Color blindness isn't rare (US National Eye Institute epidemiology: about 8% of men, about 0.5% of women); red-green contrast is the most common failure combo. If the image has information encoded only by color (status, category, before/ after comparison), add one audit check: is the information still distinguishable after grayscale (desaturate the screenshot and glance, costs 10 seconds). "Pass/fail" markers coded only by red/green are recorded as fail.

4. The squint test is structural check, not aesthetic judgment. This skill doesn't judge aesthetics (that's design critique's job), but "is the first-glance landing the subject" is a structural problem: shrink the image to thumb size (or squint blur), if the first place the eye lands isn't the subject specified in the spec, hierarchy failed—this directly corresponds to Gestalt contrast principle and the universal squint test, is judgeable, and therefore belongs in spec audit scope.

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +60 lines · -9 tokens per session decb6944a2a3
  2. 2mo ago Changed · +15 lines 3a561e212231
  3. 2mo ago First seen · 103 lines · 128 tokens per session scan A e0817a47986f

Subscribe to this mod's changes

layout-spec-auditor is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 119 tokens to every session and 2,327 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.

Related

layout-spec-auditor compared with skills from other repositories

layout-spec-auditor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
layout-spec-auditorMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A119Claude Code, Codex
anatomyNousResearch/hermes-agentSkill267ktodayMITA15Claude Code, Codex
ip-as-logoNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
archifyNousResearch/hermes-agentSkill267ktodayMITA12Claude Code, Codex
html-artifactslangchain-ai/open-sweSkill11ktodayMITA52Claude Code, Codex
show-mehumanlayer/humanlayerSkill13k7d agoApache-2.0A25Claude Code
anywhere-uianywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A46Claude Code, Codex