agentleFS
lsy041015lsy041015/orchestra/skills/writing-skills/SKILL.md

writing-skills

Skill2 starsChanged 2 months agoMITView on GitHub

Use when creating, editing, or verifying a skill before it is enabled or deployed

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, 8 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat process documentation like behavior: define a pressure case, observe the baseline, write the smallest rule that closes the observed …

    line 8
  2. Distinctive:

    Do not create evaluation, review, or analyst agents.

    line 15
  3. Very specific:

    Read the existing skill and exact callers before changing it.

    line 32
  4. Distinctive:

    Prefer one clear rule and one concrete example over repeated warnings.

    line 35
  5. Distinctive:

    Write realistic pressure scenarios that make the unwanted behavior tempting.

    line 41
  6. Distinctive:

    Write only the guidance needed to prevent the observed violation.

    line 51
  7. Distinctive:

    Run the same scenario with the skill and record compliance.

    line 57
  8. Very specific:

    When a scenario still fails, record the new rationalization verbatim, update the smallest section that closes it, and rerun the case.

    line 62
  9. Distinctive:

    Use this compact structure when it fits:

    line 71
  10. Very specific:

    Use tables for repeated fields, flowcharts only for non-obvious branches, and examples that are complete enough to run or copy.

    line 97
  11. Very specific:

    Search the whole skills/ tree for stale role instructions: separate reviewer/analyst/planner dispatch, fresh-worker escalation, unapproved …

    line 104
  12. Distinctive:

    Run baseline and candidate pressure cases that matter.

    line 108

“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

Treat process documentation like behavior: define a pressure case, observe the baseline, write the smallest rule that closes the observed failure, and verify the rule against the same case. This is TDD applied to a skill. Use orchestra:test-driven-development for the RED/GREEN discipline and the best-practices parts for general authoring guidance (read only the part you need: 1 core principles, 2 skill structure, 3 workflows and content, 4 patterns and evaluation, 5 anti-patterns and code, 6 notes and checklist).

The main session owns design, baseline analysis, review, and acceptance. Do not create evaluation, review, or analyst agents. If a pressure scenario must exercise a delegated implementation behavior, use only an already authorized implementer worker with the exact task scope; an evaluator worker is outside this edition. Do not claim a scenario was run when it was only read or imagined.

Start with the contract

Before editing, identify:

  • the skill's trigger and non-trigger;
  • the behavior a user should observe;
  • the repository and runtime paths the skill may mention;
  • user, host, security, privacy, data-loss, accessibility, calibration, and hardware constraints;
  • existing references and examples that must stay compatible.

Read the existing skill and exact callers before changing it. Keep the frontmatter valid: name uses letters, numbers, and hyphens, and description starts with Use when... and describes triggers rather than the workflow. Prefer one clear rule and one concrete example over repeated warnings.

Skill TDD

RED: baseline

Write realistic pressure scenarios that make the unwanted behavior tempting. Combine time, sunk cost, authority, exhaustion, or social pressure. Give the agent concrete options and a real action to choose. Run the scenario without the candidate rule when a baseline is meaningful: in a separate session you start yourself, or by asking the user to run it, since this edition creates no evaluator workers. Record the exact choice, rationalization, and evidence. If the control already behaves correctly, do not invent a rule to solve a problem that was not observed.

GREEN: smallest rule

Write only the guidance needed to prevent the observed violation. Make the safe path operational: say what to inspect, which action to take, what output to record, and when to stop. Place the key rule before long explanation. Use conditional instructions for conditional behavior; avoid broad prohibitions that leave the agent negotiating with the wording.

Run the same scenario with the skill and record compliance. Keep TDD, user approval gates, and recovery rules explicit when the skill depends on them.

REFACTOR: close evidence-backed loopholes

When a scenario still fails, record the new rationalization verbatim, update the smallest section that closes it, and rerun the case. Do not pile up a second copy of the workflow or universal line/word/token caps that discard needed evidence. (Worker report budgets, such as the implementer's 40 lines, are separate: full evidence stays in the report file and the diff.) Remove contradictions rather than appending an override to an obsolete flow.

Content and structure

Use this compact structure when it fits:

---
name: skill-name
description: Use when <specific trigger>
---

# Skill Name
What problem it solves and the invariant it protects.

## When to use
Trigger and non-trigger examples.

## Workflow
The smallest actionable sequence, including stop and recovery points.

## Verification
Evidence required before claiming completion.

## Common failures
Observed rationalizations and their direct counter-action.

Move heavy reference material, reusable scripts, or templates into supporting files and link them directly from SKILL.md. Keep references one level deep. Use tables for repeated fields, flowcharts only for non-obvious branches, and examples that are complete enough to run or copy. Internal links in this edition use the orchestra: namespace.

Verification before deployment

  1. Validate frontmatter, links, placeholder names, and examples.
  2. Search the whole skills/ tree for stale role instructions: separate reviewer/analyst/planner dispatch, fresh-worker escalation, unapproved nested delegation, wrong model/effort, old namespace, and hidden platform variants.
  3. Run baseline and candidate pressure cases that matter. If execution is unavailable, report that limitation and distinguish static inspection from behavioral evidence.
  4. Review the actual diff for scope, contradictions, and accidental edits.
  5. Re-run the relevant checks after every correction and record commands, exit codes, and material output.

The final report names changed files, checks actually run, behavioral evidence, and unresolved issues. It does not claim an independent evaluation that did not occur. Publishing, installing, or changing global configuration remains a separate user-authorized action.

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.