agentleFS
Guz007Guz007/claude-code-os-plugin/skills/skill-authoring/SKILL.md

skill-authoring

Skill0 starsChanged 4 months agoMITView on GitHub

Package a repeatable workflow into a reusable Claude Code skill, end to end, including a mandatory smoke test. Use when the user wants to create a new skill, convert a repeated prompt into a slash command, or asks how to structure SKILL.md.

92 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cloud-api-recipe-authoring, codebuddy-ide-mcp-upgrade 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.
  • TencentCloudBaseSkill

    cloud-api-recipe-authoring

    Author or revise a cloud-api-operations recipe (config/source/skills/cloud-api-operations/references/recipes/). Encodes why the long tail of control-plane capabilities is deliberately NOT wrapped as MCP/CLI tools, the API-first admission test for whether a capability deserves a recipe, the negative and positive lists, the fixed recipe structure, the writing rules distilled from writing-for-agents, the user-facing copy red lines, and the product regeneration/verification pipeline. Also routes contributors (and their agents) to the contribution flow and the pre-PR self-test protocol in references/contributing.md. Use when adding a recipe, judging whether a scenario belongs in the recipe set, updating the recipes index, re-checking existing recipes against the admission test, or onboarding someone who wants to submit one.

    Also in 3 projects that use this

  • TencentCloudBaseSkill

    codebuddy-ide-mcp-upgrade

    升级 CodeBuddy IDE(genie 扩展)内置的 CloudBase MCP,以及 MCP 发版时同步 IDE 侧白名单。当用户提到「更新 IDE 里的 MCP」「内置 MCP 版本太老」「IDE 集成的 CloudBase 功能不足」「改工具白名单 toolWhiteList」「把新 bundle 打进 CodeBuddy」「白名单漂移」「MCP 发版要同步什么」时使用。覆盖:解包定位内置 bundle 与内嵌配置、重新构建 mcp bundle、生成新的工具白名单与系统提示词、安全注入 IDE 并备份、用 MCP 协议验证工具清单、人工端到端验收、一键回滚。

    Also in 3 projects that use this

  • DIL8654Skill

    api-contract-review

    Review ASP.NET Core Web API contracts for HTTP semantics, versioning, backward compatibility, and response consistency. Use when the user asks to review an API, check endpoints, validate REST behavior, or before releasing contract changes.

    Also in 5 projects that use this

  • zaxbysauceSkill

    pr-review-fix

    Codex adapter for addressing pull request review feedback in opencode-swarm. Use when the user asks to fix PR review comments, requested changes, reviewer findings, CI-review notes, or a pasted review summary with low false-positive tolerance.

    Also in 3 projects that use this

  • codecharmhqSkill

    logging-standards

    Use when adding logging to applications, when logs are inconsistent or unhelpful, or when setting up logging infrastructure

    Also in 3 projects that use this

  • albertdobmeyerSkill

    git-workflows

    Advanced git operations beyond add/commit/push. Use when rebasing, bisecting bugs, using worktrees for parallel development, recovering with reflog, managing subtrees/submodules, resolving merge conflicts, cherry-picking across branches, or working with monorepos.

    Also in 3 projects that use this

  • +6 more from TencentCloudBase

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 83 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the answer is "just ask," stop.

    line 20
  2. Distinctive:

    Step 3 — Fill in the steps: Ask the user: "Walk me through this workflow as if you were doing it manually.

    line 63
  3. Distinctive:

    Step 4 — Define output: Ask: "What should the user see at the end?

    line 65
  4. Distinctive:

    Step 5 — Identify failure modes: Ask: "What are 2–3 ways this typically fails when you do it manually?" Capture each with its recovery …

    line 67
  5. Distinctive:

    Step 7 — Run the smoke test: If it fails, return to Step 3 and refine before claiming completion.

    line 83
  6. Very specific:

    If the smoke test failed, report SKILL DRAFT with the failing step and reason instead.

    line 96

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

Converts a one-off "ask the agent to do X" pattern into a stable interface callable by name. The bar: a working skill directory, a passing smoke test, and an index entry. No half-built skills, no "left as an exercise."

First — Should This Be a Skill?

Build a skillJust ask
You'll repeat this workflow 5+ timesOne-off
The workflow has 3+ ordered stepsSingle-step
Parameters vary per callNo parameters
Other people should invoke itSolo use only
Structured output mattersConversational output is fine

If the answer is "just ask," stop. Premature skill-creation adds maintenance burden without payoff.

Layout

skills/<skill-name>/
  SKILL.md         # frontmatter (name, description) + the workflow body
  examples/        # optional invocation examples
  validation.md    # what "worked" means, and how to test it

The description field is what the model matches against to decide whether to load the skill. Write it as trigger conditions, not a summary — "Use when the user asks to X, Y, or Z" beats "A skill for doing X."

Walkthrough

Step 1 — Collect inputs. Skill name (kebab-case), one-line description, parameters (name + type + required?), and the trigger condition.

Step 2 — Stub SKILL.md.

---
name: <name>
description: <what it does + when to use it>
---

# <name>

<One paragraph: what this does, when it applies.>

## Inputs
<each parameter with an example>

## Steps
1. <first step>
2. <second step>

## Output
<exact format the user receives>

## Failure Modes
<known failures and recovery>

Step 3 — Fill in the steps. Ask the user: "Walk me through this workflow as if you were doing it manually. List the actual commands or actions, in order." Capture verbatim. Do not paraphrase — exact commands matter.

Step 4 — Define output. Ask: "What should the user see at the end? Paste an ideal output, or describe the format."

Step 5 — Identify failure modes. Ask: "What are 2–3 ways this typically fails when you do it manually?" Capture each with its recovery action.

Step 6 — Write validation.md.

# Validation for <name>

## Smoke test
Invoke: /<name> <minimal example args>
Expected: <one-line success description>

## Edge case 1
Invoke: /<name> <edge case args>
Expected: <handled gracefully, or a specific error>

Step 7 — Run the smoke test. If it fails, return to Step 3 and refine before claiming completion. This step is not optional.

Step 8 — Index it. Append to the skill index: - [<name>](<name>/SKILL.md) — <one-line description>

Step 9 — Confirm.

SKILL CREATED: <name>
LOCATION: skills/<name>/
SMOKE TEST: PASSED
INVOKE WITH: /<name> <args>

If the smoke test failed, report SKILL DRAFT with the failing step and reason instead. Never report a skill as created on an unrun or failing test.

Common Patterns

PatternExample
Repeatable terminal workflow/git-cleanup, /release-checklist
File-template generator/new-mcp-server, /scaffold-route
Audit / report/security-review, /dependency-freshness
Multi-step orchestration/ingest-repo
Personal idiom/eod-summary, /standup-notes

Anti-Patterns

PatternWhy it fails
Building on the first run of a workflowYou don't know its shape yet. Build at iteration 5+.
Parameters that just pass through to a commandTeach the command instead; the skill adds nothing.
SKILL.md over 200 linesProbably two or three skills.
Skipping validation.mdThe skill rots silently; no one notices until they need it.
Indexing without a descriptionFuture-you searches by description, not name.

Known Gaps

  1. No version migration path — renaming a parameter has no canonical update story; users copy-paste-edit.
  2. No cross-skill composition — a skill cannot cleanly invoke another; the workaround is embedding the body.
  3. Discovery at scale — past ~30 skills, a flat index is hard to scan. Group categorically.

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.