Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fubits1/svelte-skills --skill css-subgridgit clone --depth 1 https://github.com/fubits1/svelte-skillsWrote 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.
[](https://agentmods.dev/skills/fubits1/svelte-skills/css-subgrid)<a href="https://agentmods.dev/skills/fubits1/svelte-skills/css-subgrid"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/css-subgrid/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.
<a href="https://agentmods.dev/skills/fubits1/svelte-skills/css-subgrid"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/css-subgrid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.01161 |
| Opus 5.5 | $0.00018 | $0.00464 |
| Sonnet 5.5 | $0.00009 | $0.00232 |
| Haiku 4.5 | $0.00005 | $0.00116 |
Grade A, and why
css-subgrid 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.
How it starts
The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CSS Subgrid for Card Layouts
Overview
CSS Subgrid lets grid children inherit parent track sizing, so inner content (icons, labels, prices, CTAs) aligns across sibling cards without fixed heights or hacks.
When to Use
- Repeated card/tile components where inner elements must align horizontally across cards
- Icon + label grids where icons should share a row track
- Any layout where variable-length content in one card shouldn't break alignment with siblings
When NOT to use:
- Single-column layouts (no siblings to align with)
- Cards with identical fixed content heights (subgrid adds no value)
Core Pattern
/* Parent: responsive wrapping grid */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 200px));
justify-content: center;
gap: 1rem;
}
/* Child: spans N rows and inherits parent row tracks */
.card {
display: grid;
grid-row: span 2; /* one per content section: icon + label = 2 */
grid-template-rows: subgrid;
justify-items: center;
align-content: center;
gap: 0.5rem;
}
How it works
- Parent defines columns with
auto-fill+minmax()for responsive wrapping - Parent does NOT need explicit
grid-template-rows: implicitautorows are created - Child uses
grid-row: span N(N = number of content sections per card) - Child uses
grid-template-rows: subgridto inherit parent row tracks - All cards in the same visual row share track heights, so content aligns
Key Decisions
Column sizing: minmax(min, max) NOT minmax(min, 1fr)
Using 1fr as max stretches cards to fill available space, cards become too wide and look bad:
/* BAD: cards stretch to fill row */
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
/* GOOD: cards stay compact, max 200px */
grid-template-columns: repeat(auto-fill, minmax(140px, 200px));
Use justify-content: center on the parent to center the grid tracks.
auto-fill vs auto-fit
auto-fill: creates as many tracks as fit, empty tracks remain (grid stays compact)auto-fit: collapses empty tracks, items stretch to fill (can cause unwanted stretching with1fr)
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.
- 2mo ago First seen · 124 lines · 46 tokens per session scan A 2b78e38ee191
css-subgrid is a skill published in the GitHub repository fubits1/svelte-skills (10 stars, last pushed 12d ago), licensed MIT. It adds 46 tokens to every session and 1,161 once invoked, about $0.0002 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-08-31.
css-subgrid compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| css-subgridfubits1/svelte-skills | Skill | 10 | 12d ago | MIT | A | 46 | Claude Code |
| anti-slop-designsickn33/agentic-awesome-skills | Skill | 49k | yesterday | MIT | A | 34 | Claude Code |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | yesterday | MIT | A | 214 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | 4d ago | MIT | A | 52 | Codex |
| open-design-setupcompozy/compozy | Skill | 2.8k | yesterday | MIT | A | 67 | Claude Code, Codex |
| edit-sitemicrosoft/power-platform-skills | Skill | 1.1k | yesterday | MIT | A | 104 | Claude Code |
| frontend-visual-qadaymade/claude-code-skills | Skill | 1.5k | yesterday | MIT | A | 125 | Claude Code, Codex |