agentleFS
ccgargantuaccgargantua/gars-claude-skills/skills/skill-creation/SKILL.md

skill-creation

Skill1 starsChanged 59 days agoMITView on GitHub

Create a Claude Code skill (SKILL.md) to the current house standard. Use when asked to create a skill, write a skill, generate a SKILL.md, make a slash command, or turn repeated instructions or a CLAUDE.md section into a skill.

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 8

    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:

    Never state a command, flag, path, or API behavior that was not verified in the authoring conversation.

    line 11
  2. Distinctive:

    Keep a line only if removing it would cause mistakes.

    line 14
  3. Distinctive:

    If you were instructed to make a skill based off of a Claude chat or Claude Code session, do not include case-specific details from that …

    line 15
  4. Distinctive:

    When creating a skill, employ the below rules to preserve tokens and context space.

    line 17
  5. Distinctive:

    Write for the smallest model that will run it (Haiku): short imperative lines, one rule per line, most binding rules first.

    line 50
  6. Distinctive:

    Add a "# Gotchas" section when the domain has known traps.

    line 54
  7. Distinctive:

    Ask the user, in one round: purpose, the phrases they will use to trigger it, every consequential action it may take, and any facts you …

    line 60
  8. Distinctive:

    Verify every command, flag, and fact stated in the skill in this conversation, or leave it as an explicit question to the user.

    line 62

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

This file is the standard for every skill in this collection. skill-refactoring audits against it.

Rules

  1. Never state a command, flag, path, or API behavior that was not verified in the authoring conversation. Unverified facts become questions to the user.
  2. Gate every consequential action in frontmatter wherever a field can enforce it. See "Frontmatter".
  3. Confirm with the user which degrees of freedom the skill keeps before drafting it.
  4. Keep a line only if removing it would cause mistakes.
  5. If you were instructed to make a skill based off of a Claude chat or Claude Code session, do not include case-specific details from that session in the skill itself unless explicitly instructed otherwise (i.e., a local skill created specifically for a project).

When creating a skill, employ the below rules to preserve tokens and context space.

  1. Never assume anything and to turn every assumption into a question.
  2. Know when a task is complete. Don't extend scrutiny to infinity in an perfectionist loop
  3. LLM tokens and the user's time are precious resources, and the responses should be as dense as possible without sacrificing any technical details. Every extra character, word, and sentence is a waste.

Structure

skill-name/
  SKILL.md        (under 150 lines preferred, 500 hard max)
  references/     (optional detail, loaded on demand)
  scripts/        (optional, executed via ${CLAUDE_SKILL_DIR}, never loaded as context)

Frontmatter

The description is the only text Claude sees when deciding whether to load the skill. Key use case first, then "Use when" with the literal phrases users type. Combined description plus when_to_use limit: 1,536 characters. If a sibling skill overlaps, state what this one is NOT for.

Gate side effects with frontmatter, not prose, wherever a field can enforce the constraint:

Skill can triggerSet
deploy, send, commit, delete, publishdisable-model-invocation: true
work needing only specific toolsallowed-tools
background knowledge, never a commanduser-invocable: false
work relevant only to certain filespaths (globs)
long noisy work that pollutes contextcontext: fork

List every consequential action the new skill can take, propose gates, and confirm with the user which freedoms the skill keeps. A constraint no field can express (e.g. "confirm the target before a destructive subcommand") stays in the body as a domain rule.

Body

  1. Write for the smallest model that will run it (Haiku): short imperative lines, one rule per line, most binding rules first. No meta-instructions like "re-check everything above"; small models spend those tokens without gaining accuracy.
  2. State what to do, not how or why. If a reason is essential, one clause: "Use X because Y."
  3. Include only non-obvious content: domain gotchas, house conventions, exact commands. Never restate default Claude behavior or the principles.
  4. Domain-specific constraints go under a "# Rules" heading near the top, worded for the domain.
  5. Add a "# Gotchas" section when the domain has known traps. It is the highest-value content in a skill.
  6. Move bulky material (API tables, long references) to references/ and link it from the body.
  7. End with a "# Example" section: one realistic user message and the response produced by applying the skill. Concrete examples are what small models imitate best.

Authoring process

  1. Ask the user, in one round: purpose, the phrases they will use to trigger it, every consequential action it may take, and any facts you cannot verify yourself.
  2. Draft frontmatter and body per the rules above.
  3. Verify every command, flag, and fact stated in the skill in this conversation, or leave it as an explicit question to the user.
  4. Final check: description contains the user's trigger phrases; no em-dashes or emojis; within line budget; side effects gated in frontmatter; Rules and Example sections present.
  5. Show the draft to the user for review, then have them test in a fresh session: run 2 or 3 target prompts with the skill and without it, and compare. Authoring-session context masks gaps a clean session exposes.

Example

User: "Make me a skill for writing SQL migrations at work."

Skill applied, one round of questions before drafting:

"Three things before I write it:

  1. Trigger phrases: do you say 'migration', 'schema change', or something else? The description needs your exact words.
  2. Consequential actions: should the skill ever run migrations, or only write the files? If it can run them, I'll set disable-model-invocation: true so it only fires when you invoke it.
  3. Facts I can't verify: your migration file naming convention and which database engine."

After answers: draft the skill with a Rules section for the naming convention, a Gotchas section for engine-specific traps the user confirms, an Example, and the agreed frontmatter gates. Then: "Test it in a fresh session with 2 or 3 real migration requests, with and without the skill, and tell me where it misfires."

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.