agentleFS
bydioramabydiorama/ui/.claude/skills/create-skill/SKILL.md

create-skill

Skill11 starsChanged 6 days agoMITView on GitHub

How to author, place, validate and ship an agent skill in bydiorama/ui. Use when creating a new skill, editing an existing one, deciding whether a skill should ship in the `ui` plugin or stay internal, or when `pnpm check:skills` fails. Covers the two-tier model, the front-matter contract, and why .claude/skills and plugins/ui are generated rather than edited.

154 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cost-reducer, migrate-to-skills and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • huyvpSkill

    cost-reducer

    Reduce cloud, infrastructure, and operational costs while maintaining performance. Use when writing database queries, configuring cloud resources, optimizing bundles, setting up caching, choosing between services, sizing instances, configuring CDN, managing storage, or reviewing code for cost inefficiencies. Covers AWS/GCP/Vercel pricing, database optimization, serverless tuning, image pipelines, observability costs, and FinOps practices.

    Also in 11 projects that use this

  • 32103210Skill

    migrate-to-skills

    Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.

    Also in 7 projects that use this

  • 32103210Skill

    update-cursor-settings

    Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

    Also in 7 projects that use this

  • PandelisZSkill

    update-cli-config

    View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

    Also in 6 projects that use this

  • yawningwhaleAISkill

    build-premium-website

    Build a premium, animated marketing website (React + Vite + Tailwind + GSAP) for any industry. Use when the user asks to "build a website", "make a landing page for [business]", "build a marketing site", or wants a high-end animated company website. Adapts color, copy, services, and signature animation to the industry.

    Also in 8 projects that use this

  • yawningwhaleAISkill

    instantly-campaign

    Create a new Instantly cold-email campaign in the proven 5-email structure of the user's top-performing campaign (~16% reply rate). Use when the user wants to launch a new outbound campaign, write a cold email sequence, create an Instantly campaign, draft outreach for a new service or niche, or set up a sales sequence.

    Also in 7 projects that use this

  • +3 more from yawningwhaleAI

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask one question: does this skill teach an agent to build *this library*, or to use it in *their app*?

    line 34
  2. Distinctive:

    Write the trigger from the *user's* words, not the skill's internals: the phrasings someone would actually type when they need it.

    line 75
  3. Distinctive:

    Prefer a table of traps with the rule beside each one.

    line 83
  4. Distinctive:

    Before writing a rule here, ask whether it could be a type, a CI gate or a lint rule instead.

    line 85
  5. Distinctive:

    Keep it under ~200 lines. A skill that needs more is two skills, or is documentation wearing a skill's front matter.

    line 90

“Common” is measured: kept by at least 6 in 10 of the 144 edited versions of this file we could read. “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

Create a skill

Skills in this repo have one source of truth and two audiences. Getting the audience right is the only decision that matters; everything else is a contract a gate already enforces.

Where skills live

registry/skills/<dir>/SKILL.md   ← THE SOURCE. Every skill, both tiers.
.claude/skills/                  ← GENERATED. Every skill. Never edit.
plugins/ui/skills/               ← GENERATED. The shipped skills. Never edit.
plugins/ui/.claude-plugin/       ← the plugin manifest, hand-written
.claude-plugin/marketplace.json  ← the marketplace (`diorama-ui`), hand-written

registry/skills/ is the source tree for all skills. The manifest, not the folder, decides which ones ship — the same rule that lets stories and tests live beside components without ever reaching a consumer.

Both generated trees come from pnpm skills:build and are committed, exactly like registry.json. Editing a file in either is silently discarded on the next build, so pnpm check:skills fails on any drift. Shipped skills reach people through the ui agent plugin (ADR 0027), never through the registry or the CLI.

The two tiers

Ask one question: does this skill teach an agent to build this library, or to use it in their app?

Authoring tierProduct tier
Teachesbuilding bydiorama/ui itselfusing the system anywhere else: in an app, in Paper, in demo media
In the manifestnoyes, type: "skill"
Shipsno — loads only in this repoin the ui plugin, as ui:<directory>
Front-matter namethe directory namethe directory name
Examplesadd-component, review-ui, this onecraft, design-component, video-render

The test for the product tier is "does it work outside this repo?" A skill whose steps run pnpm check:* or edit registry/ is authoring, however useful it sounds; in an app it would send an agent to scripts that do not exist.

Names carry no prefix: the plugin shows a shipped skill as ui:craft, so ui-craft would read as ui:ui-craft. check:skills refuses a shipped directory that starts with ui-, diorama- or bydiorama-.

Both tiers are loaded locally from .claude/skills/, so this repo dogfoods the text it ships. Do not also install the ui plugin here: the same skills would load twice, once as craft and once as ui:craft.

The front-matter contract

---
name: <kebab-case, matches the rule above>
description: <what it does AND when to use it — 150-500 chars>
---

The description is the only thing an agent reads when deciding whether to load the skill. The body is read after that decision, never before. A description that only says what the skill is will not fire when it is needed, and the failure mode is silence — nothing errors, the skill simply never loads. That is why the checker demands a trigger clause ("Use when …") and a floor of 80 characters, and why the ceiling is 900: past that it has stopped being a trigger and become the skill.

Write the trigger from the user's words, not the skill's internals: the phrasings someone would actually type when they need it.

Writing the body

  • Lead with the decision, not the background. An agent reads to act.
  • Every rule earns its place by having cost something. These skills exist to keep a defect from recurring; a rule nobody has ever broken is noise. Prefer a table of traps with the rule beside each one.
  • Prose is the floor, not the goal (the ratchet rule in add-component). Before writing a rule here, ask whether it could be a type, a CI gate or a lint rule instead. If it could, do that and write one line here pointing at it.
  • Do not restate CONVENTIONS.md. It is the binding rulebook; a skill that copies it will drift from it. Reference the rule and name the token.
  • Keep it under ~200 lines. A skill that needs more is two skills, or is documentation wearing a skill's front matter.

Steps

  1. Decide the tier (the table above).
  2. registry/skills/<dir>/SKILL.md with the front matter.
  3. Product tier only: add a manifest item —
    {
      "name": "<dir>",
      "type": "skill",
      "description": "Agent skill (the `ui` plugin): ...",
      "files": [{ "path": "registry/skills/<dir>/SKILL.md",
                  "target": "plugins/ui/skills/<dir>/SKILL.md" }],
      "status": "stable"
    }
    List only the SKILL.md; scripts and reference pages beside it travel with it. pnpm registry:build leaves skills out of the registry on purpose.
  4. pnpm skills:build — regenerates .claude/skills/, plugins/ui/skills/ and the plugin's README (its skill table comes from the front matter).
  5. pnpm check:skills and pnpm verify.
  6. A ledger entry, like any other change to what ships.

Traps

TrapRule
Editing .claude/skills/<name>/SKILL.mdGenerated. Edit registry/skills/<dir>/SKILL.md and rebuild
Renaming a skill directoryRebuild — the old generated copy is removed only by skills:build, and would otherwise keep loading into every agent. Update every reference to it across registry/skills/ in the same change, and add the old manifest name to renamed so its ledger history stays valid
type: "file" for a skillUse type: "skill"; it still emits registry:file for CLI compatibility, but the manifest is where meaning lives
A description that describesIt must trigger. "Use when …" is the load-bearing half
Copying a rule out of CONVENTIONS.mdTwo copies drift; the skill loses and the reader believes it
Pointing a skill at files elsewhere in the repoFolders get moved or ignored (design/ left the repo and took the references with it). Keep reference scripts and pages BESIDE the SKILL.md (scripts/, reference/); skills:build copies them byte for byte, into the plugin too
A path that only works in this repoA shipped skill runs from the plugin's cache. Write paths relative to the skill's own folder (scripts/render.mjs, ../demo-page/reference/…), not .claude/skills/… or registry/…
A bin/ folder or a version in the pluginbin/ makes claude.ai and Cowork refuse the plugin; a version stops installs following main. check:skills fails on both

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.