agentleFS
pietroacerbispietroacerbis/how-to-build-a-skill/skills/create-skill/SKILL.md

create-skill

Skill3 starsChanged 16 days agoMITView on GitHub

Create a Claude skill. Use it for every request to make, build, write or turn something into a skill or a SKILL.md, even when the user has not run the process yet: stop 0 checks that first. It collects what the manual runs taught, interviews you on what is missing, keeps company knowledge out of the skill, and writes the folder on the How to build a skill format with its memory, its first eval cases and a format check. Not for: reviewing an existing skill (use review-skill), editing one line of a skill.

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

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

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 4

    Distinctive

    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:

    Read the material of the manual runs: this chat, a pasted transcript, or the user's notes.

    line 36
  2. Distinctive:

    Ask what the material leaves open, one question at a time, with AskUserQuestion and a recommended answer first.

    line 47
  3. Very specific:

    Write the folder to .claude/skills/{name}/, or to the folder the user named.

    line 58
  4. Very specific:

    Frontmatter: every field, status: draft.

    line 60
  5. Very specific:

    Scripts: every step where the same input always gives the same output (dates, paths, counts, sums, format checks) is a script in scripts/, …

    line 63
  6. Distinctive:

    Delete the template folders the skill does not use.

    line 66
  7. Very specific:

    Knowledge stays out: no fact written to knowledge/ appears in any file of the skill.

    line 67
  8. Distinctive:

    STOP record: no manual run behind the process, or no material to read.

    line 81

“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-skill

A skill is written from runs that already happened. This skill collects what those runs taught, asks only what they leave open, and writes the folder from the template of this plugin.

How it works

Stop 0, memory and the gate

Read memory.md.

Then the gate: has the user run this process with Claude, by hand, at least twice? Ask when the request does not say.

Stop 1, the material

Read the material of the manual runs: this chat, a pasted transcript, or the user's notes. None at hand: ask for it. Extract four lists:

From the runsBecomes
the steps that worked, in orderthe stops
every correction the user madelines in memory.md, and a step when it came back
what went in and what came outinputs, outcome and the output template in schemas/
the facts the user had to give Claudeknowledge, stop 3

Stop 2, the interview

Ask what the material leaves open, one question at a time, with AskUserQuestion and a recommended answer first. The questions and their defaults are in schemas/interview.md. Skip every question the material or the request already answers.

Stop 3, method and knowledge

For every line of the future skill, ask: would it change if the company changed?

  • Yes: it is knowledge. Write it to knowledge/{topic}.md at the project root, one file per topic, and have the stop that needs it open that file.
  • No: it is method, and it stays in the skill.

Stop 4, write the folder

Write the folder to .claude/skills/{name}/, or to the folder the user named. Installed as a plugin, start from a copy of ${CLAUDE_PLUGIN_ROOT}/template/my-skill/; without it, write the same tree from this list. Every item is required unless it says otherwise:

  • Frontmatter: every field, status: draft.
  • Stops numbered from 0, stop 0 reading memory.md, one action each, a STOP for a missing required input.
  • Variants: one file per situation in variants/ when the interview found two or more. Otherwise delete the folder.
  • Scripts: every step where the same input always gives the same output (dates, paths, counts, sums, format checks) is a script in scripts/, with a check before delivery.
  • memory.md: the corrections from the manual runs, one dated line each.
  • evals/: two or three cases from the manual runs, in the layout claude plugin eval reads: one folder per case, evals/01-{slug}/prompt.md with the task as a user would type it and its input pasted in, and evals/01-{slug}/graders/ with a file_exists or regex grader on the output and an llm grader on the mistake the runs corrected.
  • Delete the template folders the skill does not use.
  • Knowledge stays out: no fact written to knowledge/ appears in any file of the skill. The stop names the knowledge file, never its content.

Stop 5, check

Run review-skill on the new folder with the full profile, and fix every format FAIL it reports. Hand over only when it passes. review-skill not installed: check by hand that SKILL.md, memory.md and evals/ with two cases or more exist, and tell the user to run review-skill before the first real use.

Stop 6, hand over

In chat: the folder tree, the knowledge files written, the WARN lines left, and the next step: run it on a real input, then add eval cases until there are ten.

Output

  • .claude/skills/{name}/, or the folder the user named, on the template of this plugin, status: draft.
  • knowledge/{topic}.md for each body of company facts the runs used.
  • STOP record: no manual run behind the process, or no material to read. Nothing is written, the reason goes to the user in one line and to memory.md.

References

  • What earlier runs taught, read at stop 0: memory.md
  • The interview, its questions and defaults: schemas/interview.md
  • The template copied at stop 4, every folder of the format: ${CLAUDE_PLUGIN_ROOT}/template/my-skill/
  • The check at stop 5: the review-skill skill of this plugin

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.