agentleFS
EMBERFIELDSEMBERFIELDS/claude-code-orchestration/.claude/skills/skill-authoring/SKILL.md

skill-authoring

Skill2 starsChanged 6 days agoMITView on GitHub

Procedure for drafting a new or updated Agent Skill in a skills repository, from intent to a sealed, committed draft branch. Use when your brief is a skill slice (it carries KIND: skill and SKILL: <name>).

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

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

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the target repository's AGENTS.md and README.md in the draft worktree (or the repository, before the worktree exists).

    line 24
  2. Distinctive:

    Create the draft worktree with the command in the facts block, or work in it when the block says it exists already.

    line 37
  3. Distinctive:

    When a skill for writing agent documents is installed (one whose description covers writing or editing skills), load it with the Skill tool …

    line 38
  4. Very specific:

    Write skills/<name>/SKILL.md and its files.

    line 39
  5. Distinctive:

    Add the catalog row to the catalog file under the fitting category, copying the row format of that table.

    line 40
  6. Distinctive:

    Follow references/evaluation.md: write down queries that should and should not trigger the skill, check the description against them and …

    line 46
  7. Distinctive:

    Run the validator command from the facts block until it passes.

    line 51
  8. Distinctive:

    Check every file of the skill and your catalog row against references/compliance.md: no secrets, no personal details, no e-mail addresses, …

    line 52
  9. Very specific:

    Run the seal command from the facts block.

    line 53
  10. Very specific:

    Commit on the draft branch: git -C <draft worktree> add -A, then git -C <draft worktree> commit -m "Add skill <name>" (or "Update skill …

    line 59
  11. Distinctive:

    If you are resumed with reviewer gaps or a gate message, work in the same draft worktree: fix, run the validator, seal again, commit again, …

    line 79

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

Drafting a skill

Your brief is a skill slice. Two sources rule it, and you follow them over anything below:

  • The facts block the plan check appended to your brief: repository, draft worktree, branch, base, worktree command, validator, catalog file, seal command. Use each value exactly as given; never work out a path or command of your own.
  • The target repository's AGENTS.md: the skills library's own rules. Read it in step 2 and keep to it; this skill does not restate it.

The paths on your FILES line are relative to the draft worktree. Every file you write is under it. Run git as git -C <draft worktree> ....

Work through the eight steps in order. Each ends on its completion criterion; the step is done only when that holds.

1. Intent and requirements

Restate from the brief, in your own words: what the skill is for, when it should trigger, when it should not (and which sibling skill covers that case), the target (private unless the brief says public) and the README category it belongs to. Done when each of those five has one sentence you can point to in the brief.

2. Research and discovery

  • Read the target repository's AGENTS.md and README.md in the draft worktree (or the repository, before the worktree exists).
  • Look for an overlapping skill: list skills/, and read the descriptions of the skills in the category you chose and of any skill whose name shares a word with yours. When one already covers this intent, stop: report STATUS: fail with the overlapping skill's name under OPEN, and create nothing.
  • Gather the sources the brief names. Keep a note of where each fact came from (path:line or URL); the reviewer checks claims against them.

Done when you have read both files, named the closest existing skill and why it does not cover the intent, and every fact you will write has its source.

3. Design and architecture

Plan the folder before writing it, following references/skill-shape.md: SKILL.md as a short router plus the workflow, long material in references/, scripts/ only for a step a script does more reliably than prose, and the sibling skill to use instead, with when. Done when you can list every file of the skill with one line on what it holds.

4. Draft

  • Create the draft worktree with the command in the facts block, or work in it when the block says it exists already.
  • When a skill for writing agent documents is installed (one whose description covers writing or editing skills), load it with the Skill tool now and apply it to everything you write.
  • Write skills/<name>/SKILL.md and its files.
  • Add the catalog row to the catalog file under the fitting category, copying the row format of that table; when no category fits, add one in the same style. One row, no more.

Done when every file from step 3 exists and the catalog row is in place.

5. Evaluate and iterate

Follow references/evaluation.md: write down queries that should and should not trigger the skill, check the description against them and against the sibling descriptions, then walk two realistic tasks through the draft. Fix what does not hold and evaluate again. Done when every should-trigger query matches, every should-not query points to a sibling or to no skill, and both walk-throughs reach a correct result using only the draft and its cited sources.

6. Package and compliance

  • Run the validator command from the facts block until it passes. It is a script of the repository: fix the skill, never the script.
  • Check every file of the skill and your catalog row against references/compliance.md: no secrets, no personal details, no e-mail addresses, no home-directory paths, host-neutral wording, upstream records untouched.
  • Run the seal command from the facts block. It writes provenance.json beside SKILL.md. Any later change to the skill's files breaks the seal: run the seal command again after it.

Done when the validator exits 0 and the seal is the last thing that wrote to the skill folder.

7. Deploy and verify

  • Commit on the draft branch: git -C <draft worktree> add -A, then git -C <draft worktree> commit -m "Add skill <name>" (or "Update skill <name>"). The message carries no co-author or generated-by line.
  • Confirm git -C <draft worktree> status --porcelain prints nothing and git -C <draft worktree> log --oneline <base>..<branch> shows your commit.
  • The draft stays on its branch in the draft worktree. Publishing it is a separate step a person runs, so never push, open a pull request, or install or link the skill into any skills folder. Leave everything under scripts/ as it is.

Done when the worktree is clean and the branch is ahead of its base.

8. Monitor and evolve

Decide what a later run should watch: what you left out on purpose, which facts may go stale (versions, URLs, tool behaviour) and the source to re-check for each. Done when that fits on one Watch: line of your report.

Report

Reply in the worker format, with these differences:

  • CHANGED: the files, relative to the draft worktree.
  • DRAFT: <name> <branch> in place of a BRANCH line; write no BRANCH line.
  • EVIDENCE: the validator command and its result, the seal command, and the clean git status.
  • Watch: the line from step 8.

If you are resumed with reviewer gaps or a gate message, work in the same draft worktree: fix, run the validator, seal again, commit again, and report as above.

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.