agentleFS
oleg494oleg494/coding-kit/.agents/skills/skill-authoring/SKILL.md

skill-authoring

Skill3 starsChanged 11 days agoMITView on GitHub

Use when creating or editing a skill, or turning a session, procedure or URL into a reusable one ("learn", "/learn", "turn this session into a skill", "make a skill from this workflow", "сделай скилл из этой процедуры", "навык из"): name and description rules, folder layout, script bundling, promotion and retirement evidence. Not for saving conclusions in memory (dev-wiki) or for ordinary code changes.

89 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

  • 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

  • rogue-dev-studioSkill

    frontend-engineering

    Expert frontend application engineering: accessible UI structure, state and data-fetching discipline, form/validation UX, responsive layouts, performance budgets, and integration with API contracts. Use when building or refining SPA/web screens, design-system consumption, client-side routing, or fixing UI reliability (loading, empty, and error states).

    Also in 3 projects that use this

  • +6 more from TencentCloudBase

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 1

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

    Run the tools, don't argue from impressions.

    line 80
  2. Distinctive:

    Keep the evidence and limitations attached to the decision.

    line 108

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

Authoring skills

1. Frontmatter

FieldRule
nameRequired. 1–64 chars, a-z0-9 and hyphens, no leading/trailing or doubled hyphen, must equal the folder name
descriptionRequired. 1–1024 chars. Triggers + boundary, keyword-rich, no workflow summary: Use when [triggers]. Not for [neighbor] (use [other-skill]).
metadataOptional str → str map; kit convention version as a plain string, unbumped on a text edit
license, compatibilityOptional; compatibility 1–500 chars, only for real environment requirements

The description is the only text a future session sees before deciding: triggers (the words users type, in their language, including "сделай скилл" and symptoms) plus one clause naming the neighbor it is confused with. A trigger miss is fixed with the phrasing the user used.

2. Layout and scripts

SKILL.md required; scripts/ helpers; references/ detail behind a "read when" pointer; evals/evals.json expected; assets/ optional. References one level deep — chained ones force multi-hop loads.

A bundled script prefers an existing tool (npx, uvx, pipx, bunx), documents dependencies in SKILL.md or compatibility, and is agent-safe: no interactive prompts and arguments only, since an agent waits on a TTY forever; --help and errors saying what to do next; stdout result, stderr diagnostics, exit code carrying success; idempotent with --dry-run for destructive steps; output bounded to 10–30K characters, where agents truncate. Run it via --help, not its source.

3. Body: size and tone

  • Small. Each loaded procedure costs context and work; assess that cost against the outcome it protects. Stay well under 500 lines; past ~350, move detail into references/<topic>.md.
  • Each rule lives once: restating OPS or a neighbor skill dilutes what is unique here. "Use X when Y, because Z" beats "critical, you must"; MUST/NEVER is for safety, authority and fabrication lines.
  • Keep decision-relevant examples: retain a table when it prevents a named failure, not merely because it increases compliance. Tables and prose carry the same burden of demonstrating value in their intended scope.
  • Write what the agent doesn't know: gotchas, exact commands, fields, thresholds. Positive recipes beat prohibitions for output shape.

4. Merge before you add

Overlapping triggers split routing and weaken both: extend the owner with a headed section, bulk to its references/. Merging X into Y folds X's body and its evals/evals.json cases in with their should_trigger semantics, adds a near-miss negative owned by a neighbor, then deletes X. A new skill needs a distinct job: another artifact, workflow moment or trigger phrase.

5. Turning a session into a skill

Raw material: this chat, or a named directory, procedure or URL — not a conclusion to remember (dev-wiki).

  1. Isolate the repeatable procedure: what a fresh session would rediscover, in order, with the why behind non-obvious decisions.
  2. Trigger test before writing; no plausible trigger, stop. Cases in skills/<name>/evals/evals.json: {"skill_name": "<name>", "evals": [...]} of id, prompt, should_trigger — one natural request true, one neighbor's near miss false.
  3. Draft the body by §3.
  4. Location: portable → kit skills/<slug>/ under the English, file-size and review checks; machine-specific → the harness's own user skills dir, which does not travel. Publishing it is an OPS §1 action.
  5. Ship it as a candidate until §6's evidence exists.

6. Promotion and retirement evidence

Run the tools, don't argue from impressions; without --executor they only validate inputs (dry run).

  • python eval/trigger_eval.py --queries auto --only <slug> — trigger and false rate; auto reads the skill's evals/evals.json, else eval/trigger_queries.json; --executor "docker:<image> <argv>"/--model run it live.
  • python eval/runner.py --scenario <name> --repeat <n> — behavior on the originating scenario; eval/scenarios; --executor/--judge grade it, --release-grade when it counts.
  • python eval/ablate.py --executor "docker:<image> <argv>" — pass-rate change per skill removed, on its scenarios.
  • python scripts/tools/usage_audit.py --retirement-report — no observed read requests in the window (default 14 days), proposal only.

Addition and continued default use of an optional procedure need a named user outcome or failure it protects, plus evidence proportionate to its cost and risk. Routing checks show whether it is selected, not whether it helps. Use an originating case, a nearby negative and a held-out case to assess outcome, side effects and additional work; do not promote on compliance or trigger rate alone.

Apply the same standard to removal or narrowing: it need not make the model smarter. A reversible trial can be justified by observed cost and weak benefit evidence, with checks for the specific regressions at risk. Lack of a detected benefit is uncertainty, not proof of uselessness; retain unique useful knowledge on demand where appropriate. Read counts alone justify neither keeping nor retiring a skill.

Authority, stopping, honesty and protections for irreversible or high-impact actions are not optional workflow overhead. Do not remove them by this cost rule. Keep the evidence and limitations attached to the decision; no requirement for another global benchmark, gate or fixed report format.

Gotchas

  • Over-generalizing: encode the procedure that exists, not the class it resembles.
  • Russian only in trigger words inside the description; bodies stay English.
  • Scripts live in scripts/, never inline in the body; a skill that was wrong once is fixed like code — edit it, re-run the case that caught it.

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.