agentleFS
justincordovajustincordova/agents/skills/writing-skills/SKILL.md

writing-skills

Skill1 starsChanged 4 months agoMITView on GitHub

Use when creating new skills, editing existing skills, or improving skill quality

154 other projects use a version of this, 5 of them edited.

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

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep supporting files only for heavy reference (100+ lines) or reusable tools/scripts.

    line 37
  2. Distinctive:

    Start with "Use when..."

    line 75
  3. Distinctive:

    Write in third person

    line 77
  4. Distinctive:

    NEVER summarize the skill's workflow or process

    line 79
  5. Distinctive:

    No parentheses or special characters

    line 102
  6. Distinctive:

    Use cross-references instead of repeating content

    line 112
  7. Very specific:

    Keep SKILL.md under 500 lines.

    line 125
  8. Very specific:

    All reference files should link directly from SKILL.md.

    line 135
  9. Distinctive:

    Before deploying a skill, verify it works:

    line 143
  10. Distinctive:

    Start a fresh session with the skill loaded

    line 146
  11. Distinctive:

    Create a scenario where following the skill is costly (time, effort, rework)

    line 151
  12. Distinctive:

    Add realistic pressures: deadlines, sunk cost, authority figures

    line 152
  13. Distinctive:

    If the session fails, the skill needs stronger language, explicit counters for the rationalizations you observed, or clearer structure.

    line 156

“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

Overview

Skills are reference guides for proven techniques and patterns. They help future sessions find and apply effective approaches. Write them to be discovered, not just read.

Core principle: A skill is only useful if a future session can find it and follow it. Optimize for discovery first.

When to Create a Skill

Create when:

  • Technique wasn't intuitively obvious
  • You'd reference this across projects
  • Pattern applies broadly
  • Others would benefit

Don't create for:

  • One-off solutions
  • Standard practices well-documented elsewhere
  • Project-specific conventions (put in AGENTS.md)
  • Things enforceable by tooling (linters, compilers)

Directory Structure

skills/
  skill-name/
    SKILL.md              # Main reference (required)
    supporting-file.*     # Only if needed

Keep supporting files only for heavy reference (100+ lines) or reusable tools/scripts. Everything else stays inline.

SKILL.md Structure

---
name: skill-name-with-hyphens
description: Use when [specific triggering conditions and symptoms]
---

# Skill Name

## Overview
What is this? Core principle in 1-2 sentences.

## When to Use
Bullet list with symptoms and use cases.
When NOT to use.

## Core Pattern
Before/after comparison or key pattern.

## Quick Reference
Table or bullets for scanning common operations.

## Implementation
Inline code for simple patterns.
Link to file for heavy reference.

## Common Mistakes
What goes wrong + fixes.

Writing Good Descriptions

The description field is the most important part of your skill. It's what sessions use to decide whether to load your skill.

Rules:

  • Start with "Use when..."
  • Include specific triggers, symptoms, situations
  • Write in third person
  • Keep under 500 characters
  • NEVER summarize the skill's workflow or process

Why no workflow in description: Testing showed that when descriptions summarize the workflow, sessions follow the description instead of reading the full skill. The description becomes a shortcut that skips the actual instructions.

# BAD: Summarizes workflow
description: Use when executing plans - dispatches subagent per task with code review

# GOOD: Just triggering conditions
description: Use when executing implementation plans with independent tasks

# BAD: Too vague
description: Helps with async testing

# GOOD: Specific triggers
description: Use when tests have race conditions, timing dependencies, or pass/fail inconsistently

Naming Conventions

  • Gerund form preferred: writing-skills, executing-plans
  • Describe what you DO: condition-based-waiting not async-helpers
  • Letters, numbers, hyphens only
  • No parentheses or special characters

Content Guidelines

Be Concise

The context window is shared. Every token competes with conversation history.

  • Assume the model is smart — don't explain basics
  • One excellent example beats many mediocre ones
  • Use cross-references instead of repeating content
  • Challenge each paragraph: "Does this justify its token cost?"

Set Appropriate Freedom

Match specificity to the task's fragility:

  • High freedom (general direction): Multiple valid approaches, context-dependent decisions
  • Medium freedom (patterns with parameters): Preferred pattern exists, some variation OK
  • Low freedom (exact scripts): Fragile operations, consistency critical, specific sequence required

Progressive Disclosure

Keep SKILL.md under 500 lines. Split into separate files when approaching that limit.

skill-name/
  SKILL.md          # Overview + patterns (loaded when triggered)
  reference.md      # API docs (loaded as needed)
  examples.md       # Usage examples (loaded as needed)
  scripts/          # Executable tools (executed, not loaded)

All reference files should link directly from SKILL.md. Keep references one level deep — no chains of files referencing files.

For Longer Reference Files

Include a table of contents at the top so partial reads still reveal the full scope.

Testing Skills

Before deploying a skill, verify it works:

Quick Test

  1. Start a fresh session with the skill loaded
  2. Give it a realistic task that should trigger the skill
  3. Observe: Did it find the skill? Did it follow it correctly?

Pressure Test (for discipline-enforcing skills)

  1. Create a scenario where following the skill is costly (time, effort, rework)
  2. Add realistic pressures: deadlines, sunk cost, authority figures
  3. Force an explicit A/B/C choice
  4. Observe: Does the session follow the rule under pressure?

If the session fails, the skill needs stronger language, explicit counters for the rationalizations you observed, or clearer structure.

Iteration

  1. Observe real usage with the skill
  2. Note where sessions struggle or ignore instructions
  3. Refine based on observed behavior, not assumptions

Common Patterns

Workflow Pattern

Break complex operations into sequential steps. Use checklists that sessions can track.

## Workflow

Progress:
- [ ] Step 1: Analyze inputs
- [ ] Step 2: Create plan
- [ ] Step 3: Validate
- [ ] Step 4: Execute
- [ ] Step 5: Verify

Feedback Loop Pattern

For quality-critical tasks, run validator -> fix errors -> repeat.

## Process

1. Make changes
2. Validate: `python validate.py`
3. If errors: fix and go to step 2
4. Only proceed when validation passes

Template Pattern

Provide output templates. Match strictness to need — exact format for APIs, flexible guidance for analysis.

Anti-Patterns

Don'tWhy
Narrative storytellingNot reusable
Multi-language examplesMediocre quality, maintenance burden
Code in flowchartsCan't copy-paste, hard to read
Generic labels (step1, helper2)Labels should have meaning
Time-sensitive infoWill become outdated
Inconsistent terminologyConfusing
Deep reference chainsPartial reads miss information

Checklist

Before deploying:

  • Description starts with "Use when..." with specific triggers
  • Description in third person, no workflow summary
  • Name uses gerund form, hyphens only
  • Overview is 1-2 sentences with core principle
  • One excellent example (not multi-language)
  • Common mistakes section
  • SKILL.md under 500 lines
  • Supporting files only for tools or heavy reference
  • References one level deep from SKILL.md
  • Tested with a realistic task

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.