agentleFS
h3y6eh3y6e/agent-skills/.agents/skills/writing-skills/SKILL.md

writing-skills

Skill0 starsChanged 3 months agoMITView on GitHub

Creates and improves Agent Skills for this repository. Use when authoring, editing, validating, or evaluating files under skills/.

154 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, chinese-code-review 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.
  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 6 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • pedronauckSkill

    writing-agents-md

    Write or audit AGENTS.md/CLAUDE.md instructions. Use writing-skills for on-demand skills; excludes human-facing docs and READMEs.

    Also in 3 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 3 projects that use this

  • MorningStar0709Skill

    workflow-runner

    Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.

    Also in 3 projects that use this

  • +1 more from shibit-net

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create skills that make execution reproducible.

    line 11
  2. Distinctive:

    Before writing, define observable process invariants.

    line 15
  3. Distinctive:

    Follow the Agent Skills specification.

    line 17
  4. Very specific:

    Put published skills at skills/<skill-name>/SKILL.md.

    line 21
  5. Very specific:

    Never edit metadata.version manually.

    line 22
  6. Very specific:

    After adding, renaming, or removing a skill, make .tagpr versionFile match every existing skills/*/SKILL.md.

    line 24
  7. Distinctive:

    Before completion, run the validator:

    line 25
  8. Very specific:

    Use a skill for recurring conditional judgment with meaningful failure cost.

    line 33
  9. Very specific:

    Before applying TDD to skill authoring, read .vendor/skills/writing-skills/SKILL.md.

    line 48
  10. Very specific:

    Run the validator, rumdl check <path>, and structure and link review for every skill.

    line 54
  11. Very specific:

    When codifying experience, record the initial failure, final solution, and connecting insight.

    line 60
  12. Distinctive:

    Before completion, confirm evidence for every process invariant and no claim beyond the evidence produced.

    line 62

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

Writing Skills

Create skills that make execution reproducible. Under identical conditions, required research, branches, artifacts, and verification must meet consistent standards.

Contracts

Before writing, define observable process invariants. Classify research as checked, not applicable, or unavailable; evaluate branches; require artifact fields; and stop when work or verification is incomplete. State how far work extends — whether a first working result ends it, or iteration continues.

Follow the Agent Skills specification; the validator enforces its mechanical constraints.

Repository rules:

  • Put published skills at skills/<skill-name>/SKILL.md. Keep the body as short as possible; aim for fewer than 500 words without dropping required instructions or references.
  • Never edit metadata.version manually.
  • A skill with disable-model-invocation: true also needs agents/openai.yaml carrying policy.allow_implicit_invocation: false, so explicit invocation holds outside Claude Code.
  • After adding, renaming, or removing a skill, make .tagpr versionFile match every existing skills/*/SKILL.md.
  • Before completion, run the validator:
.agents/skills/writing-skills/scripts/validate.ts <skill-directory>

Design

Use a skill for recurring conditional judgment with meaningful failure cost. Prefer automation for mechanical checks, project instructions for universal rules, references/ for extensive facts, and notes for temporary information. Extend rather than duplicate a skill.

Treat loading tier and information role independently. Keep required procedures, decisions, and output contracts in SKILL.md; conditional detail in references/; fragile operations in scripts/; and artifact material in assets/. Reference pointers must say when to read and how to apply them. Prefer principles for contextual choices, templates for bounded variation, and exact scripts where variation causes failure. For loading design, read .vendor/skills/writing-great-skills/SKILL.md; for anchor terms and failure modes, read .vendor/skills/writing-great-skills/GLOSSARY.md; and for freedom levels, read .vendor/skills/writing-skills/anthropic-best-practices.md.

Workflow

  1. Record capability, triggers, evaluated near-misses, artifacts, and process invariants. Connect requirements to examples.
  2. Search .vendor/skills/ for skills related to the target capability, domain, and triggers, then read relevant candidates before design. Treat them only as authoring evidence: incorporate applicable guidance so the new skill stands alone, without naming or linking any consulted skill, directory, or path in any resulting file.
  3. Design evaluation first. Discovery cases cover direct triggers, paraphrases, near-misses, competing skills, and multi-skill use. Execution cases make required research, branches, artifacts, and verification scorable.
  4. Write the minimum skill. Format a model-invoked description as "capability. Use when triggers."; an explicitly invoked skill states capability alone. Name triggers as the occasions calling for the skill, not the domains it touches: "adding or changing a migration", not "working with databases". Give important steps input, decisions, evidence, completion criteria, and incomplete transitions as needed.
  5. Distribute information by loading design. Never hide universally required instructions in references.
  6. Pass mechanical validation before evaluation.
  7. Evaluate discovery and execution separately. Measure activation, misses, and false activations; then requirement satisfaction, premature completion, and unnecessary tools. Follow .vendor/skills/writing-skills/testing-skills-with-subagents.md.
  8. Prune statements that do not change the current model's default behavior; those defaults move, so re-check surviving rules on every revision. Keep each rule once per loading tier. Prefer established terms over invented shorthand. State expected behavior positively; reserve prohibitions for dangerous boundaries or observed failures, with an alternative and reason. Over-constraint costs as much as under-constraint: a prohibition aimed at one model's overreach reads to a stronger one as license to stop early.

Before applying TDD to skill authoring, read .vendor/skills/writing-skills/SKILL.md. When iterative comparison is needed, use .vendor/skills/empirical-prompt-tuning/SKILL.md.

Evidence

Choose verification by failure cost, frequency, blast radius, and activation conflicts:

  • Run the validator, rumdl check <path>, and structure and link review for every skill.
  • For behavioral rules or branches, run an applicable baseline plus representative and failure scenarios, then record requirement results.
  • For high-risk, frequent, broad, or activation-conflicting skills, repeat runs or models and compare variance and before/after results.

For scenario evaluation, record model/version, environment/tools, skill commit/hash, and prompts. For repeated evaluation, also record run count and activation, false-activation, and requirement-satisfaction rates.

When codifying experience, record the initial failure, final solution, and connecting insight; then use .vendor/skills/retrospective-codify/SKILL.md to choose between automation, project instructions, extending a skill, creating a skill, or no persistence.

Before completion, confirm evidence for every process invariant and no claim beyond the evidence produced.

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.