padding-maker

A Figma layout tool that adds consistent inner space around the contents of selected frames or sections. It can reposition the children and resize the container to fit the new spacing.

In plain words
What is it for?
Use it to add padding to one or more selected Figma frames or sections, including layouts with multiple child elements.
Why use it?
It removes the need to measure, move, and resize each layout element by hand when adding padding.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/madebypan/figcc/padding-maker
Any agent
npx skills add madebypan/FigCC --skill padding-maker
Clone the repo
git clone --depth 1 https://github.com/madebypan/FigCC

Made for: Claude Code, Codex.

Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 774 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00774
Opus 5 $0.00009 $0.00387
Sonnet 5 $0.00003 $0.00155
Haiku 4.5 $0.00002 $0.00077

Measured 2d ago against content hash 9cb5887a87d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

padding-maker 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 2d 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.

skills/padding-maker/SKILL.md · 111 lines

How it starts

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

Skill: Padding Maker

You are an expert at adding padding inside Figma frames and sections. When the user asks to add padding, spacing, or "hug" content inside a frame, follow these patterns.

What this does

  • Calculates the bounding box of all children in a frame or section
  • Repositions all children outward to create uniform padding space
  • Resizes the frame/section to accommodate the new padding
  • Works with multiple selected frames at once

Core logic

const paddingAmount = 16; // default, or use value from user
const selection = figma.currentPage.selection;

if (selection.length === 0) {
  figma.notify('Please select a frame or section to add padding to.');
  figma.closePlugin();
  return;
}

const processedNodes = [];

for (const node of selection) {
  if (node.type !== 'FRAME' && node.type !== 'SECTION') {
    figma.notify(`"${node.name}" is not a frame or section. Skipping.`);
    continue;
  }

  const children = [...node.children];

  if (children.length === 0) {
    figma.notify(`"${node.name}" has no children. Skipping.`);
    continue;
  }

  // Calculate bounding box of all children
  let minX = Infinity,
    minY = Infinity;
  let maxX = -Infinity,
    maxY = -Infinity;

  for (const child of children) {
    minX = Math.min(minX, child.x);
    minY = Math.min(minY, child.y);
    maxX = Math.max(maxX, child.x + child.width);
    maxY = Math.max(maxY, child.y + child.height);
  }

  // Shift children to create padding
  const offsetX = paddingAmount - minX;
  const offsetY = paddingAmount - minY;

  for (const child of children) {
    child.x += offsetX;
    child.y += offsetY;
  }

  // Resize frame to fit children + padding on all sides
  const newWidth = maxX - minX + paddingAmount * 2;
  const newHeight = maxY - minY + paddingAmount * 2;

  if (node.type === 'SECTION') {
    node.resizeWithoutConstraints(newWidth, newHeight);
  } else {
    node.resize(newWidth, newHeight);
  }

  processedNodes.push(node);
}

if (processedNodes.length > 0) {
  figma.notify(`Added ${paddingAmount}px padding to ${processedNodes.length} frame(s).`);
}

Read the full file on GitHub · 111 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. 2d ago First seen · 111 lines · 17 tokens per session scan A 9cb5887a87d0

Subscribe to this mod's changes

padding-maker is a skill published in the GitHub repository madebypan/FigCC (22 stars, last pushed 26d ago), licensed MIT. It adds 17 tokens to every session and 774 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

figma-typings-audit

Upgrade @figma/plugin-typings and absorb what the new version exposes. Diffs the .d.ts between the installed and the target version (that package ships no changelog), sorts the changes into breakage / new API / silently-added fields, maps each onto the sandbox handlers, the hand-written Zod mirrors in shared, and the…

awdr74100/figwright · 133 tokens

mcp-sdk-audit

Upgrade @modelcontextprotocol/server (the MCP TypeScript SDK v2) and prove the wire contract survived. The SDK is a runtime dependency whose breakage lands on the wire, not in the type checker — so this sorts each release by which SDK source files it touched (Figwright uses only the server + stdio slice of a…

awdr74100/figwright · 159 tokens

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

figma-build

Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design system (components, variables, styles) instead of drawing primitives with hardcoded values. Triggers whenever the user wants something created or updated IN Figma from code or a spec — e.g.…

awdr74100/figwright · 180 tokens

figma-ui-restore

使用 Figma Agent Kit(figma-agent-mcp + Desktop 插件)将 Figma 画板/Frame 按 scope 做 1:1 UI 还原:锁 scope、TEXT 全量归类、切图打标、3× savescreenshots、 bounds 落码、分块对照与验收清单。适用于「按 Figma 还原页面 / 组件 / 弹窗」、 「1:1 还原」「切图落盘」「对照设计稿验收」等场景。默认 strict;用户明文 fast 时可压缩部分步骤。.

ChinaCarlos/figma-agent-kit · 135 tokens

claude-design-skill

Claude Code-based design skill for hi-fi prototyping and Figma MCP-driven precision design work. Built around three load-bearing rules — fact verification before assumptions, confidentiality gate before any external call, and a strip-then-scan import gate for AI-generated assets — wired into Codex CLI (GPT-5.5…

0xmhha/claude-design-skill · 184 tokens