agentleFS
DeadlymindDeadlymind/nanolama/skills/skill-authoring/SKILL.md

skill-authoring

Skill1 starsChanged 5 months agoMITView on GitHub

Authors or fixes a skill in the nanolama library — the SKILL.md frontmatter contract (directory equals name, [a-z0-9-], no reserved words), a third-person description carrying "Use when" and a "Not for" boundary with no colon-space, the five required body sections, one inline example, and backticked See-also names from the roster. Use when creating a new skill, copying template/, editing an existing SKILL.md, wiring scripts/catalog.yaml, or fixing a validate_skills.py failure. Not for authoring the domain content of a specific skill (that lives in the skill itself) or reviewing a code diff (see code-review).

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use knowledge-base, agent-memory and 4 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.
  • jacobraskSkill

    knowledge-base

    Manage your personal knowledge base of curated resources, bookmarks, and excerpts. Triggers include "knowledge base", "kb", "add to knowledge", "add tabs to", "what do I have on", "what do we know about", "find resources about". Use with safari-tabs skill for bulk ingestion from Safari windows. Location is ~/knowledge/.

    Also in 3 projects that use this

  • DatabricksSkill

    agent-memory

    Add memory capabilities to your agent. Use when: (1) User asks about 'memory', 'state', 'remember', 'conversation history', (2) Want to persist conversations or user preferences, (3) Adding checkpointing or long-term storage.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 7 projects that use this

  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 3 projects that use this

  • MicrosoftSkill

    error-handling

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。

    Also in 3 projects that use this

  • BlockSkill

    debugging

    Debugging guidelines and best practices

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 1

    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. Very specific:

    Add an entry under skills: in scripts/catalog.yaml (name, category, blurb).

    line 51
  2. Very specific:

    Run python scripts/validate_skills.py — fix every reported problem.

    line 52
  3. Very specific:

    Run python scripts/generate_readme.py to re-render the README table from the catalog.

    line 53
  4. Distinctive:

    Every skill dir needs a matching catalog entry and vice versa — the validator checks 1:1 sync, so a new folder without a catalog line fails.

    line 66
  5. Very specific:

    Don't add extra frontmatter fields.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 52 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

Skill authoring (the nanolama SKILL.md contract)

When to use

Adding a new skill to this library, or fixing one that fails python scripts/validate_skills.py. The validator is the source of truth — every rule below is enforced, so a green run is the definition of done here.

Pattern

A skill teaches ONE reusable pattern that is true for ANY project on the house stack, plus an "adapt to your repo" note — never one codebase's specifics. It is a SKILL.md with exactly two frontmatter fields (name, description), the five house sections, and cross-refs that resolve to real skills. The catalog must stay in 1:1 sync with skills/.

The frontmatter contract

  • name — MUST equal the directory name; only [a-z0-9-]; <=64 chars; MUST NOT contain the reserved words claude or anthropic.
  • description — third person; MUST contain the literal phrase Use when; <=1024 chars; NO angle brackets. CRITICAL — no colon-followed-by-space ": " anywhere (YAML misparses it); use an em dash — or a period. Also avoid you can/you should/I will (the validator flags first/second person). Front-load what-it-does + stack keywords + verbatim trigger phrases; end with a Not for ... clause handing adjacent scope to a named sibling (disambiguate shared keywords — ViewSet vs consumer vs task).
# skills/<name>/SKILL.md — copy this shape, then rewrite every value.
---
name: my-skill                 # == directory name, [a-z0-9-], no claude/anthropic
description: Does X on Django/DRF — front-loaded keywords. Use when a user
  says "trigger phrase" or edits foo.py. Not for bar (see sibling-skill).
---                            # note: no ": " colon-space, third person, <=1024 chars

The body contract

These five headings MUST appear verbatim (extra middle sections like ## Steps / idioms or ## Variants are welcome): ## When to use, ## Pattern, ## Adapt to your repo, ## Gotchas, and the See-also section. Include ONE tight, correct, COMMENTED example inline (< ~40 lines, real APIs for the stack versions, never a full app). Keep the whole file scannable and under ~180 lines. In the See-also section, list siblings as backticked names — every backticked token there must resolve to a real skill in the roster, or validation fails.

Workflow

  1. cp -r template/ skills/<name>/ and rename the folder to <name>.
  2. Rewrite skills/<name>/SKILL.md: frontmatter, the five sections, one example.
  3. Add an entry under skills: in scripts/catalog.yaml (name, category, blurb).
  4. Run python scripts/validate_skills.py — fix every reported problem.
  5. Run python scripts/generate_readme.py to re-render the README table from the catalog.

Adapt to your repo

This meta-skill targets THIS repo's real tooling (template/, scripts/catalog.yaml, scripts/validate_skills.py, scripts/generate_readme.py). A fork that renames those paths or changes REQUIRED_SECTIONS/ALLOWED_FIELDS in the validator must update this skill to match — the validator, not this prose, is authoritative.

Gotchas

  • A colon-space ": " in the description is the most common failure — YAML reads it as a key/value split. Use — or a period instead.
  • name must equal the directory name exactly; a mismatch (or a stray claude/anthropic substring) fails validation.
  • Every skill dir needs a matching catalog entry and vice versa — the validator checks 1:1 sync, so a new folder without a catalog line fails.
  • Don't add extra frontmatter fields; only name and description belong on a nanolama skill (the validator allows a few more but the house style is exactly two).
  • Prove the file before claiming done — run the validator and paste its output (see verify).

See also

  • verify
  • code-review

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.