agentleFS
niksavisniksavis/basicly/.claude/skills/catalog-authoring/SKILL.md

catalog-authoring

Skill0 starsChanged 57 days agoMITView on GitHub

Authors catalog sources (skills, fragments, styles) in YAML and projects them. Use when adding a new skill or fragment to the catalog.

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 7 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write catalog sources in YAML and project them to the files that coding agents load.

    line 9
  2. Distinctive:

    Apply the deletion test to each bullet: If its removal causes no mistake, leave it out.

    line 15
  3. Distinctive:

    Keep a fragment short. Point to a command, and do not restate a rule that a gate enforces.

    line 27
  4. Very specific:

    Run basicly catalog new skill <slug>.

    line 31
  5. Very specific:

    Write the description. It is the discovery trigger, so say when to use the skill.

    line 33
  6. Very specific:

    Write the instructions body as a | literal block of markdown, indented two spaces.

    line 34
  7. Very specific:

    Run basicly skills-build, then basicly skills-check.

    line 35
  8. Very specific:

    Run basicly catalog new fragment <id> --category <category>.

    line 39
  9. Very specific:

    Run basicly build, then basicly check.

    line 42
  10. Very specific:

    Write .basicly/core/output-styles/<slug>/style.yaml with name, description, body and keep_coding_instructions.

    line 46
  11. Very specific:

    Run basicly styles-build, then basicly styles-check, as the projection-styles gate does.

    line 47
  12. Very specific:

    Keep keep_coding_instructions: true, unless you intend to drop the built-in engineering instructions of the host.

    line 49
  13. Very specific:

    Start each source with the schema header and schema_version.

    line 53
  14. Distinctive:

    Write concrete, verifiable instructions: "use 2-space indentation", not "format code properly".

    line 69
  15. Distinctive:

    Put each runnable command in a code fence.

    line 70
  16. Very specific:

    Use at most one IMPORTANT marker per projection.

    line 73
  17. Distinctive:

    When a change alters what an agent is told:

    line 87
  18. Distinctive:

    Read it back where the agent reads it: the advertised skill list, the always-on file as loaded, the rule as injected.

    line 89

≈ “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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

Catalog Authoring

Write catalog sources in YAML and project them to the files that coding agents load.

Rules

  • Never name a source for discovery. Agents load SKILL.md, AGENTS.md, CLAUDE.md, *.instructions.md, *.mdc and GEMINI.md by file name, so a source is skill.yaml, <id>.fragment.yaml or style.yaml. basicly catalog lint refuses a .md source.
  • Verify where the agent reads the guidance, not the file you edited. A host can substitute or fall back, so the projection is not what the agent gets.
  • Apply the deletion test to each bullet. If its removal causes no mistake, leave it out.
  • Tag a source with technologies only when it is useless outside that technology. An untagged source ships everywhere.
  • Keep local sources out of .basicly/core/ in a consumer repository. basicly install overwrites .basicly/core/. Put a fragment in .basicly-local/fragments/.

Where guidance lives

TypeLoadedProjected toBuild, then check
FragmentAlways, merged into CLAUDE.md, AGENTS.md and copilot-instructions.md, or into per-path rule files when scopedthe instruction filesbasicly build, basicly check
SkillOn demand, when its description matches the taskSKILL.md at each skill rootbasicly skills-build, basicly skills-check
Output styleAlways. It replaces the default answer format of Claude Code.claude/output-styles/<slug>.mdbasicly styles-build, basicly styles-check

Keep a fragment short. Point to a command, and do not restate a rule that a gate enforces.

Author a skill

  1. Run basicly catalog new skill <slug>. It writes .basicly/core/skills/<slug>/skill.yaml.
  2. Set name equal to the slug.
  3. Write the description. It is the discovery trigger, so say when to use the skill.
  4. Write the instructions body as a | literal block of markdown, indented two spaces.
  5. Run basicly skills-build, then basicly skills-check. With no arguments they cover every default root, as the projection-skills gate does.

Author a fragment

  1. Run basicly catalog new fragment <id> --category <category>. It writes .basicly/core/fragments/<category>/<id>.fragment.yaml. In a consumer repository, move the file under .basicly-local/fragments/.
  2. Set id, description, category, applies_to (for example [all]) and the body block.
  3. Optional fields: priority, tags, status, title, scope.paths for a path-scoped rule, and the overlay fields replaces and override.
  4. Run basicly build, then basicly check.

Author an output style

  1. Write .basicly/core/output-styles/<slug>/style.yaml with name, description, body and keep_coding_instructions. The directory name is the slug.
  2. Run basicly styles-build, then basicly styles-check, as the projection-styles gate does.

Keep keep_coding_instructions: true, unless you intend to drop the built-in engineering instructions of the host. They include how to verify work.

YAML shape

Start each source with the schema header and schema_version. Write the prose body as a literal block, so the markdown stays unchanged:

# yaml-language-server: $schema=../../schemas/skill.schema.json
schema_version: 1
name: my-skill
description: What it does and when to use it.
instructions: |
  # My Skill
  ...

technologies: [python] limits a skill, fragment, agent or hook to one technology. The values come from a controlled vocabulary, and basicly catalog lint refuses any other value. A consumer selects with basicly install --technologies ....

Phrase a guidance body

  • Write concrete, verifiable instructions: "use 2-space indentation", not "format code properly".
  • Put each runnable command in a code fence. An agent runs a fenced command as written and improvises on a command in prose.
  • Give the alternative with each prohibition. A bare "never X" leaves the agent stuck.
  • Give a one-clause reason, so the rule applies beyond its literal case.
  • Use at most one IMPORTANT marker per projection. More markers make each one invisible. basicly catalog lint counts them per composed projection and per skill, and refuses the second one by name. A marker in a code span or a fence does not count.

Check

basicly catalog lint
basicly catalog dump
  • catalog lint validates every source against its schema. It refuses a .md source and a YAML file without the .yaml extension. It runs on commit and in CI.
  • catalog dump prints what the sources compose to: each planned output, each selected item with the core or .basicly-local file it came from, and each overlay override beside the core source it shadows. A wrong projection is a selection question, and build prints only the files it wrote.

Verify where the agent reads it

When a change alters what an agent is told:

  • Read it back where the agent reads it: the advertised skill list, the always-on file as loaded, the rule as injected.
  • Measure a size or cost claim again on the delivered text before you write the figure into a document. A figure measured on the source is a guess about the host.
  • A user-invoked skill projects no description. Claude Code then fills the listing from the first line of the body.

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.