spacing

spacing is a skill for Claude Code, Codex from Dragoon0x/dragoon-skills. It costs 107 tokens per session (309 once invoked), scanned A, original, MIT.

A command that detects a project's spacing grid, such as 4 pixels or 8 pixels, and generates eight named spacing tokens from it. Tokens are reusable labels like sm, md, and lg for consistent layout measurements.

In plain words
What is it for?
Use it to formalize spacing tokens, create a layout scale, or export the scale in a format such as Tailwind. It supports a preview first and an option to write the file.
Why use it?
It replaces scattered spacing values with a common scale based on the project's existing design rhythm. This makes layout spacing easier to reuse and standardize.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to formalize spacing tokens, create a layout scale, or export the scale in a format such as Tailwind. It supports a preview first and an option to write the file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dragoon0x/dragoon-skills/spacing
Install

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.

Any agent
npx skills add Dragoon0x/dragoon-skills --skill spacing
Clone the repo
git clone --depth 1 https://github.com/Dragoon0x/dragoon-skills

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 spacing

README.md
[![agentmods](https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/spacing/github.svg)](https://agentmods.dev/skills/dragoon0x/dragoon-skills/spacing)
Your own site
<a href="https://agentmods.dev/skills/dragoon0x/dragoon-skills/spacing"><img src="https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/spacing/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 spacing

Your own site · 80×15
<a href="https://agentmods.dev/skills/dragoon0x/dragoon-skills/spacing"><img src="https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/spacing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 309 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.00107 $0.00309
Opus 5.5 $0.00043 $0.00124
Sonnet 5.5 $0.00021 $0.00062
Haiku 4.5 $0.00011 $0.00031

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

Security

Grade A, and why

spacing 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/spacing.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/spacing/SKILL.md · 31 lines

What it actually says

/spacing

Generates a spacing scale token file anchored on your detected grid.

When to use

  • The user wants to formalize spacing tokens
  • The user asks to "extract spacing", "create a spacing scale", "scaffold layout tokens"
  • Cleaning up a codebase that has many off-grid values

Scale produced

8 steps as multiples of the detected grid:

  • xs (0.5x), sm (1x), md (2x), lg (3x), xl (4x), 2xl (6x), 3xl (8x), 4xl (12x)

For an 8px grid: 4, 8, 16, 24, 32, 48, 64, 96.

Run it

dragoon spacing
dragoon spacing --apply
dragoon spacing --format tailwind --apply
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 31 lines · 107 tokens per session scan A 967ee4f6ad3d

Subscribe to this mod's changes

spacing is a skill published in the GitHub repository Dragoon0x/dragoon-skills (4 stars, last pushed 6mo ago), licensed MIT. It adds 107 tokens to every session and 309 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

role-ui-ux-designer

Use when orchestrating UI/UX design systems, anti-AI-slop frontend styling, tactile micro-interactions, responsive design tokens, accessibility standards, and high-fidelity interface engineering.

oyi77/1ai-skills · 44 tokens

figma-extract-design-system

Extract a design system from vibe-coded production apps that never had one: inventory components, mine de-facto styling into DTCG tokens, scaffold a Storybook package, port components, and optionally round-trip tokens/components into Figma. Use when the user wants to 'extract a design system', 'create a design system…

southleft/figma-console-mcp-skills · 133 tokens

figma-blame-node

Find which Figma version introduced a specific change — a component property or a child node — via a binary search over version history (log2(N) API calls instead of N). Answers 'who added this and when'. Use when the user wants git-blame-style attribution for a Figma design — triggers: 'when was this component…

southleft/figma-console-mcp-skills · 176 tokens

figma-generate-component-doc

Generate complete Markdown documentation for a Figma component — anatomy/layer tree, design tokens (colors, spacing, typography), states/variants matrix, accessibility notes, content guidelines, and optional code-parity + YAML frontmatter. Use when the user wants a docs page or handoff spec for a component or…

southleft/figma-console-mcp-skills · 150 tokens

figma-version-history

List a Figma file's version history, snapshot the file at any past version, and diff two versions (added/removed/renamed pages plus deep per-component changes). Use when the user wants to inspect Figma history — triggers: 'list Figma versions', 'what versions does this file have', 'show version history', 'snapshot…

southleft/figma-console-mcp-skills · 181 tokens

design-engineering

Premium design engineering skill for agentic workflows — produces high-end, distinctive UI designs using DESIGN.md as the portable contract across Pencil MCP (in-IDE canvas), Figma MCP (team handoff + design tokens), and Google Stitch (vibe exploration + AI generation). Enforces anti-generic principles, WCAG 2.2 AA…

broomva/skills · 231 tokens