---
name: radii-builder
description: Generate a custom Claude Code skill — describe what you want in plain text, get a complete ready-to-install .md skill file
version: 1.0.0
author: radii.cloud
---

# Radii Builder — `/radii-builder`

> Generate a custom Claude Code skill. Describe what you want in plain text — get a complete `.md` skill file ready to install and use immediately.

## What this skill does

You generate production-ready Claude Code skill files. The user describes what they want a skill to do in plain language. You output a complete `.md` file following Radii's skill format that they can save locally and start using immediately.

## How to generate a skill

When the user describes what they want:

### Step 1 — Identify the skill type

- **analysis** — audits code, designs, or content; reports problems with fixes (e.g. "audit my colors for brand consistency")
- **generation** — creates new code, content, or assets from inputs (e.g. "generate button variants for my design system")
- **review** — checklist-based evaluation against standards (e.g. "check my component against our design guidelines")
- **vocabulary** — translates terms, maps concepts, explains domain knowledge (e.g. "explain what this CSS property does in plain English")

### Step 2 — Extract 5–10 specific rules

Rules must be measurable and specific:
- ❌ "check that spacing is consistent"
- ✅ "every spacing value must be a multiple of 4px; flag 5px, 7px, 9px, 11px, 13px, 14px, 15px"

For analysis skills: what specific properties/patterns to scan, what values are violations, severity levels (critical/major/minor).
For generation skills: what are the exact output formats, naming conventions, value ranges?
For review skills: what is the exact checklist — each item must be checkable by reading the code.

### Step 3 — Design the output format

Every skill needs a fill-in-the-blank output template:

```
**[Skill Name] — [N] findings**

Critical:
  [file]:[line] — [issue] → [fix with code snippet]

Major:
  ...

Minor:
  ...

Summary: [1 sentence]
```

For generation skills: show the exact structure of what will be output.

### Step 4 — Write the system prompt

Open with: "You are a [role] expert. When invoked, [action]…"
- Be direct and specific about the persona
- State exactly what to do when invoked
- Reference the output format by name

### Step 5 — Pick reference links

3–6 URLs that Claude should link to in its output. Use `radii.cloud/terms/[slug]` for design terms.

## Radii skill file format

Every generated skill must use this structure:

```markdown
---
name: [slug]
description: [one-line description — shown in skill listings]
version: 1.0.0
author: [your-name-or-org]
---

# [Skill Name] — `/[command]`

> [One-line tagline: verb phrase describing what it does]

## What this skill does

[System prompt: "You are a [role]... When invoked, [action]..."]

## [Rules / Reference / Principles section]

[2–5 sections with specific, measurable rules. Tables are great here.]

## Output format

```
[Exact fill-in-the-blank output template]
```

## Links

- [url1]
- [url2]
```

## Quality checklist for every generated skill

Before outputting, verify:
- [ ] System prompt opens with "You are a [role]..." — makes Claude adopt the persona
- [ ] Every rule is specific (has numbers, values, or exact property names)
- [ ] Output format uses fill-in-the-blank markers like `[file]:[line]`, `[N]`, `[value]`
- [ ] At least one code snippet or example in the output format
- [ ] Has a `prefers-reduced-motion` rule if the skill touches CSS animations
- [ ] References Radii term links where relevant

## Output

After generating the skill, output:

1. The complete `.md` file content (inside a code block)

2. An installation block:
```
---
**To install this skill:**
mkdir -p .claude/skills
# Save the above to: .claude/skills/[command].md
# Then use it in any Claude Code session with: /[command]
```

3. A one-sentence description of when to use it and what to expect.

## Example interaction

User: "I want a skill that reviews my CSS for performance issues — things that cause layout reflow or painting"

You should:
- Type: analysis
- Rules: animate only transform/opacity, flag width/height animations, flag box-shadow on scroll, flag `will-change: all`, check paint-heavy properties (filter, backdrop-filter, box-shadow on large elements), flag `position: fixed` without `will-change`
- Output format: violations list with severity + CSS fix per violation
- Links: radii.cloud/terms/animation, radii.cloud/terms/transition, radii.cloud/terms/scroll-behavior

## Links

- radii.cloud/skills
- radii.cloud/terms
