layout-system — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited layout-system (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Produce working, mobile-first layout code for the user's actual screens — a refactored page shell, grid, or component layout — not a CSS tutorial. Governing principle: content determines structure. Choose Grid vs Flexbox by the shape of the content, place breakpoints where the content breaks, and let flexible tracks absorb the rest.
skills/frontend-design/design-foundation.skills/frontend-design/typography-system.skills/frontend-design/visual-hierarchy-refactoring.**/layout.*, **/App.*, **/*page*, global CSS).width:\s*\d+px|w-\[\d+px\] — fixed widths (breakage source #1)position:\s*absolute outside overlays/badges — layout by coordinatesfloat:|margin-top:\s*-|margin-left:\s*- — legacy/negative-margin hacks@media — count distinct breakpoint values; >4 distinct min-widths = breakpoint sprawloverflow-x and 100vw — horizontal-scroll suspectsscreens, or media queries) — reuse them unless they're the problem.Ask in one batch, only if not inferable: which screen/flow matters most, and the smallest and largest viewports that matter (default: 320px–1440px, content capped ~1200–1280px). Infer density and stack from the code. Don't stall — with a named target and visible code, state assumptions and build.
repeat(auto-fit, minmax(min(100%, 280px), 1fr)) — zero media queries.grid-template-areas; collapse areas at smaller widths. Canonical:.shell { display: grid; gap: var(--space-4); grid-template-areas: "header" "main" "footer"; }
@media (min-width: 768px) {
.shell {
grid-template-columns: 250px minmax(0, 1fr);
grid-template-areas: "header header" "sidebar main" "footer footer";
}
.sidebar { position: sticky; top: 0; height: fit-content; }
}(minmax(0, 1fr) — not bare 1fr — so wide children can't blow out the track.)
container-type: inline-size on the wrapper, @container (min-width: …) on the component. Viewport media queries only for page-level structure.aspect-ratio + object-fit: cover; never fixed height on responsive images.rem for space/type, %/fr/minmax() for tracks, ch for text measure, px only for borders and true pixel concerns.For the full pattern gallery (hero, card grid, sidebar, responsive nav, holy-grail, sticky footer, container-query card), read references/layout-patterns.md and adapt rather than reinventing.
Test (or reason through, if you can't render) at 320, 375, 768, 1024, 1440. Look for: horizontal scroll, squeezed columns (<~250px of real content), text measure outside 45–75ch, touch targets <44px, content trapped under sticky elements.
Deliver code plus this summary:
## Layout changes
[Refactored files with full code — same styling system as the project]
## Decisions
| Question | Choice | Rule applied |
| Shell | Grid, template-areas | 2-D alignment needed |
| Card list | auto-fit minmax(280px, 1fr) | unknown item count → no media queries |
| Breakpoints | 768px, 1024px (existing tokens) | content broke at sidebar collapse |
| Container queries | card only | renders in 2 container widths |
## Smells removed
| Smell | Where | Replaced by |
| fixed width 960px | Header.tsx | max-width + margin-inline auto |
| ... |
## Verified
320 / 375 / 768 / 1024 / 1440 — [result per width, or "reasoned, not rendered" flagged]order) doesn't scramble DOM/tab orderaspect-ratio on media; no fixed-height image boxesskills/frontend-design/design-foundation.skills/frontend-design/typography-system (measure, fluid type) and skills/frontend-design/visual-hierarchy-refactoring (whitespace, grouping) refine, and that skills/frontend-design/component-architecture encodes as reusable layout components.skills/frontend-design/accessibility-excellence.references/layout-patterns.md — copy-adaptable patterns: hero, card grid, sidebar+main, responsive nav, holy grail, sticky footer, container-query card, aspect-ratio media, plus the breakpoint table. Read when building any standard pattern.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.