agentleFS
dillonschultz93dillonschultz93/quieto-skills/design-token-category-add/SKILL.md

design-token-category-add

Skill1 starsChanged 7 months agoMITView on GitHub

Add a new token category (shadow, border, or animation) to an existing token system. Prompts for category-specific inputs and generates the token files. Use when the user wants to extend their token system beyond color, spacing, and typography.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify a token system exists:

    line 12
  2. Very specific:

    If not found, tell the user to run /design-token-init first.

    line 18
  3. Distinctive:

    Check which categories are already configured:

    line 20
  4. Distinctive:

    If the user specified one, confirm it.

    line 35
  5. Very specific:

    Use --dry-run to preview:

    line 61
  6. Distinctive:

    Check the new token files and updated config:

    line 85
  7. Very specific:

    Run /design-token-audit to verify the new tokens are healthy

    line 94
  8. Very specific:

    Use /design-token-component to wire the new category into component tokens

    line 95
  9. Distinctive:

    Add another category if needed

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design Token Category Add

You are helping the user extend their token system with additional categories.

Prerequisites

Verify a token system exists:

ls quieto.config.json tokens/

If not found, tell the user to run /design-token-init first.

Check which categories are already configured:

cat quieto.config.json | grep -A 5 '"categories"'

The core categories (color, spacing, typography) are always present after init. The addable categories are:

  • shadow — elevation/depth tokens (box-shadow)
  • border — width and radius tokens
  • animation — duration and easing tokens

Workflow

1. Determine which category to add

If the user specified one, confirm it. If not, ask which they'd like. Explain what each provides:

  • Shadow: generates elevation levels (1-6) with configurable color reference, blur/spread profile (soft or hard). Produces box-shadow composite tokens.
  • Border: generates width steps and radius steps with an optional pill (9999px) marker. Produces dimension tokens for border-width and border-radius.
  • Animation: generates duration steps and an easing curve preset (standard, emphasized, or decelerated). Produces duration and cubicBezier tokens.

2. Run the add command

The CLI is interactive for category-specific inputs. Tell the user to run it:

! npx quieto-tokens add <category>

For example:

! npx quieto-tokens add shadow

Or without specifying a category (the CLI will present a menu):

! npx quieto-tokens add

Use --dry-run to preview:

! npx quieto-tokens add shadow --dry-run

3. Category-specific inputs

Shadow will ask for:

  • Number of elevation levels (2-6)
  • Shadow color reference (a DTCG ref like {color.neutral.900})
  • Profile: soft (airy, larger blur) or hard (crisp, tight blur)

Border will ask for:

  • Width steps (pixel values, e.g., 1, 2, 4)
  • Radius steps (pixel values, e.g., 2, 4, 8, 16)
  • Whether to include a pill radius (9999px for fully rounded elements)

Animation will ask for:

  • Duration steps (milliseconds, e.g., 100, 200, 300, 500)
  • Easing preset: standard, emphasized, or decelerated

4. Verify output

Check the new token files and updated config:

ls tokens/primitive/
cat quieto.config.json | grep -A 5 '"categories"'

5. Suggest follow-ups

  • Run /design-token-audit to verify the new tokens are healthy
  • Use /design-token-component to wire the new category into component tokens
  • Add another category if needed

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.