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

writing-skills

Skill4 starsChanged 2 months agoMITView on GitHub

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

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions 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.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • 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 22 projects that use this

  • aaddrickSkill

    writing-agents

    Use when creating new agents, editing existing agents, or defining specialized subagent roles for the Task tool

    Also in 3 projects that use this

  • AWSSkill

    condition-based-waiting

    Replace arbitrary sleeps in tests with polling for the ACTUAL condition — a waitFor(() => predicate, description, timeoutMs) helper that polls every 10 ms, calls the getter inside the loop (no stale cache), and throws a clear error on timeout. Use when a test uses setTimeout / sleep / time.sleep, is flaky (passes on fast machines, fails under load or in CI), times out when run in parallel, or waits for an async operation, event, state, count, or file to appear. Do NOT use when the test genuinely exercises timing behavior (debounce / throttle) — then wait for the triggering condition FIRST and comment WHY the timed wait is justified. Trigger on "flaky test", "race condition in tests", "why does this pass locally and fail in CI", or any `await new Promise(r => setTimeout(r, N))` in a test.

    Also in 3 projects that use this

  • MicrosoftSkill

    using-skills

    Describes how to use abilities. Read before any conversation.

    Also in 4 projects that use this

  • +3 more from Leodorareluctant259

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 181 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 181 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.