Agent skill UI design
Rad Spacing
Use Figma spacing variables to make nesting and visual grouping easier to read.
Install the skill
Use the publisher’s rad-spacing.md file for project-scoped setup. Connect Figma MCP with access to the target design. Applying layout changes requires access to use_figma and edit permission.
Open the publisher’s downloadView operation manualWhat this skill helps with
- Use Figma spacing variables to make nesting and visual grouping easier to read.
Good for
- Composition and spacing
- Publisher format
- One Markdown instruction file, placed as SKILL.md in the chosen assistant’s project skills folder.
- Inputs
- One Figma frame or component, its auto-layout hierarchy, and existing spacing number variables.
- Spacing approach
- Make inner elements feel related and outer groups feel distinct. Choose approved values near the skill’s roughly 1.4× outward progression.
- Deliverable
- A planned hierarchy or applied padding and sibling gaps, with variable bindings and exceptions.
- Skill name
rad-spacing- Repository
nolanperk/rad-spacing
Map related elements before changing spacing
A uniform gap everywhere
Make every Figma gap and padding value 16 pixels.
Equal spacing can hide where a form field ends and a new section begins. It can also remove useful library bindings.
Spacing tied to the visual grouping
- Identify field, section, content, and page levels.
- Choose available library variables for padding and gaps.
- Compare the target frame at both sizes and record any existing exceptions.
Rad Spacing operation manual
Use the publisher’s file to load Rad Spacing, then check a settings frame or refine spacing between repeated components. Replace bracketed details with your own Figma node and expected scope.
Work from labels and inputs outward to sections and page padding. Start with the verified manual installation if the skill is missing.
Install the publisher file in the project
The upstream repository publishes rad-spacing.md. Copy that exact file into your assistant’s project skill directory as SKILL.md.
- Only the chosen assistant’s project directory is used.
- The existing file is preserved if present.
Prompt · Step 1Set up Rad Spacing for my current project and [Codex or Claude Code]. Find the project root and inspect the target path first. Use .agents/skills/rad-spacing/SKILL.md for Codex or .claude/skills/rad-spacing/SKILL.md for Claude Code. If the file is already present, keep it and report what you found. If it is missing, download the exact publisher file from https://raw.githubusercontent.com/nolanperk/rad-spacing/15e911236edca0d6c30d29a24581112ae7635a08/rad-spacing.md and save it unchanged as SKILL.md at the chosen project path. Verify the file is readable and its frontmatter has the name rad-spacing and a description. Report the real path and suggest reloading the assistant or opening a new session in the same project if the skill is not yet discovered..agents/skills/rad-spacing/SKILL.md .claude/skills/rad-spacing/SKILL.mdMap field, section, and page spacing
Read visual groupings and current variable bindings before proposing values.
Prompt · Step 2Use the installed rad-spacing Skill to investigate [settings frame link]. Read [target frame and existing spacing library] with Figma MCP. Record the hierarchy from field label and input to field group, section, and page. For every level identify whether the number controls sibling gap or outer padding. Inspect the actual available spacing variables and bindings. Starting at the innermost approved value, propose slightly larger values outward using the library’s nearest usable steps and the skill’s approximate 1.4× heuristic. Point out any narrow-screen cap or exception. Give me the proposed level, current value, suggested binding, and reason before editing.Bind approved spacing to the frames
Apply the agreed sibling gaps and container padding using the existing collection when possible.
Prompt · Step 3Use rad-spacing to apply [approved spacing map] in [Figma settings frame link]. If the target node or map is missing, recover it or ask before editing. Use the Figma use_figma tool for the approved changes. Bind existing number variables to relevant auto-layout itemSpacing and padding properties. Retain the file’s naming convention. If no appropriate number variables exist, show the proposed local variable names and values before creating them. Limit edits to the approved frames. Read back each changed gap, padding, and binding, and point out any existing binding or layout behavior that affected the result.Check whether the groups read clearly
Verify the actual render and bindings in comparable desktop and narrow frames.
- Gap and padding serve their appropriate grouping levels.
- Narrow frames keep important fields readable and reachable.
- The handoff lists the actual variable bindings.
Prompt · Step 4Use rad-spacing to verify [updated settings frame and narrow counterpart] against [approved spacing map]. Open the frames or capture their rendered previews. Check that labels stay close to their inputs, sections look clearly separate, long labels can wrap, and outer padding fits the narrower frame. Compare bound variables and actual values at each level. Summarize node, property, variable, resolved value, and any deliberate exception. If you could not examine a frame or library, report the exact unverified item.
Find the right spacing decision
Point to the exact frame and identify whether the spacing sits inside a container or between siblings.
Labels look unrelated to their inputsHierarchy
- Command or reference
rad-spacing.md · Instructions- Examples
- Compare each label-to-input gap with the gap between complete fields.
The project already has a spacing scaleVariables
- Command or reference
rad-spacing.md · Instructions- Examples
- Open the number variables and use the local naming and steps for each grouping level.
The outermost space grows too largeNested layouts
- Command or reference
rad-spacing.md · Common edge cases- Examples
- Agree on a reasonable cap and compress the inner levels while keeping meaningful separation.
Only one instance feels too tightReuse
- Command or reference
rad-spacing.md · Common edge cases- Examples
- Check the parent’s sibling gap and existing instance properties before editing a shared component.
Rad Spacing troubleshooting
Why does Skills CLI say it found no valid skill?
The publisher supplies rad-spacing.md at the root. Use the manual project placement in the first step and verify the copy is named SKILL.md.
Is the 1.4× spacing ratio mandatory?
Treat it as a starting point for visible grouping. Snap to useful values from your library. For example, the publisher shows 8, 12, 16, 24, and 32 pixels from the inner gap to the outer padding.
Can I use the skill without editing access?
With readable design context you can propose a hierarchy, variables, and a spacing specification. Applying changes through use_figma requires appropriate file access.