agentleFS
niksavisniksavis/basicly/.agents/skills/skill-creator/SKILL.md

skill-creator

Skill0 starsChanged 57 days agoMITView on GitHub

Writes a new skill or improves one with evals, a benchmark, graded versions and trigger tuning. Use when turning a workflow into a skill.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context7-efficient, skill-share 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.
  • hfzarslanSkill

    context7-efficient

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

    Also in 5 projects that use this

  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 20 projects that use this

  • bkootazSkill

    artifacts-builder

    Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

    Also in 39 projects that use this

  • seedprodSkill

    goplaces

    Query Google Places API (New) via the goplaces CLI for text search, place details, resolve, and reviews. Use for human-friendly place lookup or JSON output for scripts.

    Also in 5 projects that use this

  • seedprodSkill

    things-mac

    Manage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database). Use when a user asks OpenClaw to add a task to Things, list inbox/today/upcoming, search tasks, or inspect projects/areas/tags.

    Also in 5 projects that use this

  • JetBrainsSkill

    slack-gif-creator

    Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.

    Also in 93 projects that use this

  • +1 more from seedprod

The file

Show its rules and text

We split this skill into the rules it gives an agent

36 rules. 0 are common, 20 are distinctive, and 16 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 20

    Distinctive

    This author's own choices. Worth a look.

  • 16

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create a skill, test it on real prompts, measure it, and improve it until the user is satisfied.

    line 16
  2. Very specific:

    Write a draft as a skill.yaml source.

    line 23
  3. Distinctive:

    Write routing evals, then run a few test prompts with and without the skill.

    line 24
  4. Distinctive:

    When does it trigger: which phrases and situations?

    line 43
  5. Very specific:

    Ask about edge cases, formats, example files, success criteria and dependencies before you write test prompts.

    line 50
  6. Very specific:

    Every file beside skill.yaml, except evals.yaml, is copied into each projection.

    line 94
  7. Distinctive:

    Keep references one level deep: a reference file does not point to a further one.

    line 104
  8. Very specific:

    Start a reference file over 100 lines with a ## Contents list.

    line 105
  9. Distinctive:

    When a skill covers several frameworks, put one reference file per framework and let the body say which to read.

    line 106
  10. Distinctive:

    Put each runnable command in a code fence.

    line 115
  11. Distinctive:

    Write a general skill, not one that only fits the test prompts.

    line 116
  12. Distinctive:

    Write a draft, then read it again with fresh eyes and improve it.

    line 117
  13. Very specific:

    Write evals.yaml beside skill.yaml before any live run.

    line 123
  14. Distinctive:

    Write three or more positive prompts and two or more negative ones.

    line 137
  15. Distinctive:

    When a prompt fails, fix the description, not the prompt.

    line 140
  16. Very specific:

    Read every warning that catalog lint prints: the rank-1 rate of the whole catalog has a floor, and two descriptions above the similarity …

    line 141
  17. Distinctive:

    Write two or three realistic test prompts, the kind a user would actually type.

    line 146
  18. Very specific:

    Put the workspace outside the catalog and outside every projected skill root, for example in the session scratch directory: <workspace>/ …

    line 150
  19. Distinctive:

    Do this section as one sequence.

    line 171
  20. Very specific:

    A new skill: no skill at all. Same prompt, saved to without_skill/run-1/outputs/.

    line 198
  21. Very specific:

    Write an eval_metadata.json for each test case, with empty assertions for now.

    line 203
  22. Very specific:

    Grade each run: Start a grader subagent, or grade inline, with references/grader.md.

    line 238
  23. Very specific:

    Do an analyst pass: Read the benchmark for patterns that the averages hide: an assertion that passes with and without the skill, a …

    line 250
  24. Distinctive:

    Keep the body lean: Read the transcripts, not only the outputs.

    line 295
  25. Very specific:

    Bundle repeated work: When every test run wrote a similar helper script, put one script in scripts/ and tell the skill to use it.

    line 301
  26. Distinctive:

    Write a revision, read it again, and improve it before you run it.

    line 304
  27. Very specific:

    Run all test cases again into iteration-<N+1>/, with the baselines.

    line 309
  28. Distinctive:

    Wait for the user to finish the review.

    line 313
  29. Distinctive:

    Read the feedback, improve, and repeat.

    line 314
  30. Distinctive:

    Stop when the user is satisfied, when all feedback is empty, or when the changes stop helping.

    line 316
  31. Distinctive:

    Write about 20 queries, half that should trigger and half that should not:

    line 334
  32. Distinctive:

    Use queries that are substantive enough to need the skill.

    line 351
  33. Distinctive:

    Run the loop from the repository root, in the background, on the projected skill directory.

    line 361
  34. Distinctive:

    Read the progress from the output and tell the user which iteration is running and its score.

    line 384
  35. Very specific:

    Put best_description from the JSON output into skill.yaml, then run basicly skills-build and basicly catalog lint.

    line 389
  36. Very specific:

    Use python where python3 is not the command name, for example on Windows.

    line 403

“Common” is measured: kept by at least 6 in 10 of the 179 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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

Skill Creator

Modified by basicly on 2026-10-02 from anthropics/skills skill-creator at 8a1541c4 (Apache-2.0, see LICENSE.txt).

Create a skill, test it on real prompts, measure it, and improve it until the user is satisfied. This skill owns the eval loop. The catalog-authoring skill owns the source format: the fields of skill.yaml, where a source lives and how it projects.

The loop:

  1. Decide what the skill does and roughly how.
  2. Write a draft as a skill.yaml source.
  3. Write routing evals, then run a few test prompts with and without the skill.
  4. Evaluate the results with the user, both by reading them and by the numbers.
  5. Rewrite the skill from the feedback and from flaws that the benchmark shows.
  6. Repeat. Then grow the test set and try again at a larger scale.

Find out where the user is in this loop and continue from there. A user with a draft goes straight to the eval step. A user who wants no formal evals gets a quick draft and a conversation. Description tuning comes last.

Match the words to the user. "Evaluation" and "benchmark" are usually fine. Explain "JSON" and "assertion" in one short clause unless the user clearly knows them.

Capture the intent

The conversation may already hold the workflow, for example "turn this into a skill". Then take the answers from it first: the tools used, the order of steps, the corrections the user made, the input and output formats. Ask the user to fill the gaps and to confirm.

  1. What does the skill let the agent do?
  2. When does it trigger: which phrases and situations?
  3. What is the expected output?
  4. Does it need test cases? A skill with a verifiable output (a file transform, data extraction, generated code, fixed workflow steps) benefits from them. A skill with a subjective output (writing style, design) often does not. Suggest a default and let the user decide.

Ask about edge cases, formats, example files, success criteria and dependencies before you write test prompts. Before you build, check that no installed or published skill already does the job: the find-skills skill does that search.

Write the source

A catalog source is skill.yaml, never a hand-written SKILL.md. Scaffold it:

basicly catalog new skill <slug>

Fill these fields; the catalog-authoring skill gives the full format:

  • name: the slug, equal to the directory name.
  • description: what the skill does and when to use it, in the third person: "... Use when a task ...". It is the only text the agent sees when it chooses a skill, so all "when to use" information goes here, not in the body. Give it the words that only this skill should answer to. basicly catalog lint refuses the words you, your, I, we and our, an angle-bracket tag, and a description too similar to another skill.
  • instructions: the body, as a | literal block of markdown.
  • compatibility: required tools or network access, only when needed.

Then project and check it:

basicly skills-build
basicly skills-check
basicly catalog lint

catalog lint prints the measured listing cost. Put that figure in token_cost.listing.

Anatomy of a skill

<slug>/
├── skill.yaml       the source: name, description, instructions
├── evals.yaml       routing evals, read by catalog lint and never projected
├── references/      documents the agent loads when the body points to them
├── scripts/         code for deterministic or repeated steps
└── assets/          templates and files used in output

Every file beside skill.yaml, except evals.yaml, is copied into each projection. Keep test workspaces and eval sets out of this directory.

Progressive disclosure

  1. Name and description: in context on every turn.
  2. Body: in context when the skill triggers. Keep it under 500 lines.
  3. Bundled files: loaded or run when needed. A script can run without being read.
  • Point to each reference file from the body and say when to read it.
  • Keep references one level deep: a reference file does not point to a further one.
  • Start a reference file over 100 lines with a ## Contents list.
  • When a skill covers several frameworks, put one reference file per framework and let the body say which to read.

Writing the body

  • Use the imperative.
  • Explain why a step matters, in one clause, instead of a rule in capitals. A model that knows the reason applies the rule to cases the text does not name.
  • Give the alternative with each prohibition.
  • Put each runnable command in a code fence.
  • Write a general skill, not one that only fits the test prompts.
  • Write a draft, then read it again with fresh eyes and improve it.
  • A skill contains no malware, no exploit code and nothing that would surprise the user if its purpose were described. Refuse a request for a misleading skill.

Routing evals first

Write evals.yaml beside skill.yaml before any live run. basicly catalog lint runs it on every commit: it ranks every description against each prompt, deterministically and at no cost.

schema_version: 1
trigger:
  positive:
    - prompt: "a request in the words a user would type"
  negative:
    - prompt: "a near miss that another skill answers"
      owner: other-skill-slug
  • Write three or more positive prompts and two or more negative ones.
  • Paraphrase how a user asks. A prompt copied from the description proves nothing.
  • Make each negative a near miss and name the skill that owns it.
  • When a prompt fails, fix the description, not the prompt.
  • Read every warning that catalog lint prints: the rank-1 rate of the whole catalog has a floor, and two descriptions above the similarity ceiling are refused.

Test cases

Write two or three realistic test prompts, the kind a user would actually type. Show them to the user: "Here are a few test cases I'd like to try. Do these look right, or do you want to add more?" Then run them.

Put the workspace outside the catalog and outside every projected skill root, for example in the session scratch directory: <workspace>/ with iteration-1/, iteration-2/ and so on. Save the test cases to <workspace>/evals.json. Write the prompts now and the assertions later. references/schemas.md gives the full schema.

{
  "skill_name": "example-skill",
  "evals": [
    {
      "id": 1,
      "prompt": "The task prompt of the user",
      "expected_output": "Description of the expected result",
      "files": []
    }
  ]
}

Run and evaluate the test cases

Do this section as one sequence. Each test case gets a directory in the iteration, and each configuration gets a run directory:

<workspace>/iteration-N/
└── eval-<name>/
    ├── eval_metadata.json
    ├── with_skill/run-1/       outputs/, grading.json, timing.json
    └── without_skill/run-1/    outputs/, grading.json, timing.json

Step 1: Start every run in the same turn

For each test case, start two subagents in the same turn: one with the skill and one without. Start them together so that they finish at about the same time.

Execute this task:
- Skill path: <path-to-skill>
- Task: <eval prompt>
- Input files: <eval files if any, or "none">
- Save outputs to: <workspace>/iteration-<N>/eval-<name>/with_skill/run-1/outputs/
- Outputs to save: <what the user cares about, for example "the final CSV">

The baseline depends on the case:

  • A new skill: no skill at all. Same prompt, saved to without_skill/run-1/outputs/.
  • An improved skill: the old version. Before you edit, copy the projected skill directory to <workspace>/skill-snapshot/ and point the baseline at the copy. Save to old_skill/run-1/outputs/.

Write an eval_metadata.json for each test case, with empty assertions for now. Give each eval a name that says what it tests, and use that name for its directory. Write the file again for each new or changed eval in a later iteration.

{
  "eval_id": 0,
  "eval_name": "descriptive-name-here",
  "prompt": "The task prompt of the user",
  "assertions": []
}

Step 2: Draft assertions while the runs work

Draft quantitative assertions for each test case and explain them to the user. A good assertion is objectively verifiable and has a name that says what it checks, so that it reads clearly in the viewer. Judge a subjective skill by reading its output, not by forced assertions. Update eval_metadata.json and evals.json with the assertions.

Step 3: Record the timing as each run completes

The completion notice of each subagent holds total_tokens and duration_ms. It is the only place that holds them, so save them at once to timing.json in the run directory:

{
  "total_tokens": 84852,
  "duration_ms": 23332,
  "total_duration_seconds": 23.3
}

Step 4: Grade, aggregate and open the viewer

  1. Grade each run. Start a grader subagent, or grade inline, with references/grader.md. Save the result to grading.json in the run directory. Its expectations array uses the fields text, passed and evidence, because the viewer reads those names. Check an assertion with a script when a script can check it.
  2. Aggregate into a benchmark. This writes benchmark.json and benchmark.md with the pass rate, time and tokens of each configuration, the mean, the standard deviation and the delta. List each with_skill configuration before its baseline.

    python3 -B <skill-dir>/scripts/aggregate_benchmark.py <workspace>/iteration-N --skill-name <name>
  3. Do an analyst pass. Read the benchmark for patterns that the averages hide: an assertion that passes with and without the skill, a high-variance eval, a time or token cost. The "Analyzing Benchmark Results" section of references/analyzer.md lists them.
  4. Open the viewer with the outputs and the numbers. Use this script; do not write custom HTML.

    python3 -B <skill-dir>/scripts/generate_review.py <workspace>/iteration-N \
      --skill-name <name> --benchmark <workspace>/iteration-N/benchmark.json

    It serves the page on 127.0.0.1 and opens the browser; run it in the background and stop it when the review is done. For iteration 2 and later, add --previous-workspace <workspace>/iteration-<N-1>. Without a display, add --static <workspace>/review.html to write one self-contained file instead. The page loads nothing from the network.

  5. Tell the user that the results are open: the "Outputs" tab shows each test case with a feedback box, and the "Benchmark" tab shows the numbers.

Open the viewer before you judge the outputs yourself, so that the user sees them early.

Step 5: Read the feedback

"Submit All Reviews" saves feedback.json in the workspace. With --static, the browser downloads the file; ask the user where it is saved.

{
  "reviews": [
    {"run_id": "eval-0-with_skill-run-1", "feedback": "the chart has no axis labels", "timestamp": "..."},
    {"run_id": "eval-1-with_skill-run-1", "feedback": "", "timestamp": "..."}
  ],
  "status": "complete"
}

An empty feedback means the user found the output fine. Improve the cases that have a complaint.

Improve the skill

  1. Generalize from the feedback. The skill will run on many prompts that are not in the test set. Do not add narrow fixes that fit only these examples, and do not add rigid rules. For a stubborn problem, try a different explanation or a different pattern of work.
  2. Keep the body lean. Read the transcripts, not only the outputs. When the skill makes the model spend time on steps that do not help, remove the text that causes it and run again.
  3. Explain the why. Understand what the user wants and why, and put that understanding into the instructions. A rule in capitals is a sign that a reason is missing.
  4. Bundle repeated work. When every test run wrote a similar helper script, put one script in scripts/ and tell the skill to use it.

Write a revision, read it again, and improve it before you run it.

The iteration loop

  1. Apply the improvements to skill.yaml, then run basicly skills-build.
  2. Run all test cases again into iteration-<N+1>/, with the baselines. For a new skill the baseline stays without_skill. For an improved skill, choose between the original version and the previous iteration.
  3. Open the viewer with --previous-workspace on the previous iteration.
  4. Wait for the user to finish the review.
  5. Read the feedback, improve, and repeat.

Stop when the user is satisfied, when all feedback is empty, or when the changes stop helping.

Blind comparison

To answer "is the new version actually better?", give two outputs to an independent subagent without saying which version made each, and let it judge. Then analyze why the winner won. references/comparator.md and references/analyzer.md give the steps. This needs subagents, and the human review usually suffices.

Tune the description

The routing evals in evals.yaml test the description against the catalog for free. For a stronger check, the scripts below run the real host: they call claude -p once per query and run, which costs tokens and time. Ask the user before you start them.

Write the trigger eval set

Write about 20 queries, half that should trigger and half that should not:

[
  {"query": "the user prompt", "should_trigger": true},
  {"query": "another prompt", "should_trigger": false}
]
  • Make each query concrete and detailed, as a user types it: a file path, a column name, some background, casual wording, an abbreviation or a typo. "Format this data" is too abstract to test anything.
  • Cover several phrasings of each intent for the queries that should trigger, including one that never names the skill and one where another skill competes but should lose.
  • Make the queries that should not trigger near misses: they share words with the skill but need something else. An unrelated query tests nothing.
  • A simple one-step query may not trigger any skill, because the agent can do it alone. Use queries that are substantive enough to need the skill.

Show the set to the user before the run. assets/eval_review.html is a page for that review: replace __EVAL_DATA_PLACEHOLDER__ with the JSON array, and __SKILL_NAME_PLACEHOLDER__ and __SKILL_DESCRIPTION_PLACEHOLDER__ with the name and the description, write it to the workspace and ask the user to open it. "Export Eval Set" downloads eval_set.json; ask the user where the browser saved it.

Run the optimization loop

Run the loop from the repository root, in the background, on the projected skill directory. Use the model id that powers this session, so that the test matches what the user gets.

python3 -B <skill-dir>/scripts/run_loop.py \
  --eval-set <workspace>/trigger-eval.json \
  --skill-path .claude/skills/<slug> \
  --model <model-id> --max-iterations 5 --verbose
  • The loop holds out 40% of the queries as a test set, runs each query 3 times, and asks claude -p for a better description from the failures on the training set. It picks the best description by its score on the held-out set, to avoid overfitting.
  • Each run installs a temporary skill named <slug>-eval-<id> under .claude/skills/ and removes it when the run ends, also when it fails. A skill already installed with the same description competes with the temporary one, so tune a copy, not a skill that is live under the same description.
  • --report none turns off the HTML report; --results-dir <workspace> keeps the results and the logs.
  • scripts/run_eval.py runs one evaluation without the improvement step, and scripts/improve_description.py runs one improvement.

Read the progress from the output and tell the user which iteration is running and its score.

Apply the result

Put best_description from the JSON output into skill.yaml, then run basicly skills-build and basicly catalog lint. Show the user the description before and after, with the scores.

Run the scripts

<skill-dir> is the projected directory of this skill, for example .claude/skills/skill-creator. Every script needs only the Python standard library, so no basicly engine and no package install is needed. They run on Python 3.12 and 3.14.

python3 -B .claude/skills/skill-creator/scripts/aggregate_benchmark.py --help
  • Use python where python3 is not the command name, for example on Windows.
  • -B writes no __pycache__ next to the scripts.
  • run_eval.py, run_loop.py and improve_description.py need the claude command on PATH and network access, and they spend tokens. The other scripts run offline.

Reference files

  • references/grader.md: how to grade assertions against outputs.
  • references/comparator.md: how to compare two outputs blind.
  • references/analyzer.md: why one version beat another, and how to read a benchmark.
  • references/schemas.md: the JSON files of a workspace.

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.