figma-spacing-system

figma-spacing-system is a skill for Claude Code from cnfeat/top-pm-skills. It costs 73 tokens per session (906 once invoked), scanned A, original, MIT.

A guide for defining consistent spacing and layout rules in a Figma design system. It sets a base measurement, spacing scale, grid, and conventions for component and page layouts.

In plain words
What is it for?
Use it to establish spacing tokens, responsive grids, component padding, and section spacing for web or mobile designs.
Why use it?
It gives designers and developers shared measurements, reducing inconsistent gaps and unclear handoff decisions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pm-figma plugin — 10 skills shipped together

Good fit Use it to establish spacing tokens, responsive grids, component padding, and section spacing for web or mobile designs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cnfeat/top-pm-skills/figma-spacing-system
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 cnfeat/top-pm-skills --skill figma-spacing-system
Clone the repo
git clone --depth 1 https://github.com/cnfeat/top-pm-skills

Made for: Claude Code.

Or install pm-figma, the plugin that ships this one along with the rest of its 10 skills.

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 figma-spacing-system

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cnfeat/top-pm-skills/figma-spacing-system"><img src="https://agentmods.dev/badge/skills/cnfeat/top-pm-skills/figma-spacing-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 906 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.00073 $0.00906
Opus 5 $0.00036 $0.00453
Sonnet 5 $0.00015 $0.00181
Haiku 4.5 $0.00007 $0.00091

Measured 8d ago against content hash 1ad27b0058d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

figma-spacing-system 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 8d 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.

参考skill/pm-claude-skills-main/pm-claude-skills-main/plugins/pm-figma/skills/figma-spacing-system/SKILL.md · 85 lines

How it starts

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

Figma Spacing System Skill

Produces a complete spacing and layout token system — the foundation that makes a design system consistent and developer handoff unambiguous.

Required Inputs

  • Platform (iOS / Android / Web / Multi-platform)
  • Base unit (4px / 8px — default to 8px)
  • Design system name (for token naming)
  • Component density (compact / standard / comfortable)
  • Grid requirements (or "derive from platform standard")

Output Structure

1. Base Unit

[4px or 8px] with rationale. All values must be multiples.

2. Spacing Scale

Token Value Use case
spacing.none 0px Removing space intentionally
spacing.xs 4/8px Icon padding, tight labels
spacing.sm 8/12px Internal component padding compact
spacing.md 12/16px Internal component padding standard
spacing.lg 16/24px Section padding, card internal
spacing.xl 24/32px Between components
spacing.2xl 32/48px Section separation
spacing.3xl 48/64px Page-level breaks
spacing.4xl 64/96px Hero sections

3. Layout Grid

Mobile (375px): 4 columns, margin [value], gutter [value] Tablet (768px): 8 columns, margin [value], gutter [value] Desktop (1440px): 12 columns, margin [value], gutter [value], max content width [value]

4. Component Spacing Conventions

Context Token Example
Button horizontal padding spacing.md Left/right
Button vertical padding spacing.sm Top/bottom
Card internal padding spacing.lg All sides
Input padding spacing.sm vertical, spacing.md horizontal
Icon gap from label spacing.xs
Section gap spacing.xl

5. Figma Implementation

  1. Create SPACING page documenting each token visually
  2. Resources > Variables > create Number collection named Spacing
  3. Apply variables to Auto Layout padding/gap values
  4. Share token names with engineers as-is or via Tokens Studio

6. Anti-Patterns to Avoid

  • Values not on the scale (13px, 22px) — round to nearest token
  • Absolute pixel values in components instead of tokens
  • Mixing 4px and 8px base units in the same product

Read the full file on GitHub · 85 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. 8d ago First seen · 85 lines · 73 tokens per session scan A 1ad27b0058d2

Subscribe to this mod's changes

figma-spacing-system is a skill published in the GitHub repository cnfeat/top-pm-skills (48 stars, last pushed 3mo ago), licensed MIT. It adds 73 tokens to every session and 906 once invoked, about $0.0004 per session on Opus 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-03.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens