agentleFS
abhattacherjeeabhattacherjee/claude-code-skills/skill-authoring/SKILL.md

skill-authoring

Skill1 starsChanged 2 months agoMITView on GitHub

Creates and optimizes Claude Code skills following Anthropic's official best practices with emphasis on agent parallelization and script-first determinism. Use when: (1) creating a new skill from scratch, (2) optimizing an existing skill that exceeds 500 lines or has poor discoverability, (3) extracting inline code into scripts/ or reference material into references/, (4) designing orchestrator + sub-agent architectures for complex skills, (5) restructuring a skill directory into SKILL.md + scripts/ + references/ layout, (6) auditing skill cross-references for stale links. Covers: agent-first orchestration, parallel sub-agent design, script-first determinism, frontmatter rules, progressive disclosure, directory layout, description writing, and quality checklist.

  • Commits and pushes

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability, incident-response 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.
  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 7 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 5 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • jacobraskSkill

    knowledge-base

    Manage your personal knowledge base of curated resources, bookmarks, and excerpts. Triggers include "knowledge base", "kb", "add to knowledge", "add tabs to", "what do I have on", "what do we know about", "find resources about". Use with safari-tabs skill for bulk ingestion from Safari windows. Location is ~/knowledge/.

    Also in 3 projects that use this

  • UnitOneAISkill

    threat-modeling

    Runs a structured STRIDE threat model on any system design, API specification, or codebase. Auto-invoked when the user discusses architecture, shares a system diagram or design document, or asks "what could go wrong?" Produces threat actor profiles, component-threat matrix, a threat register with STRIDE classification, data-flow diagram template, trust boundary identification, and prioritized mitigations mapped to MITRE ATT&CK techniques.

    Also in 3 projects that use this

  • ElasticSkill

    accessibility

    Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.

    Also in 5 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 13 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep SKILL.md body under 500 lines.

    line 25
  2. Distinctive:

    Write in third person ("Processes files..." not "I help you..." or "You can...")

    line 52
  3. Very specific:

    Add numbered trigger conditions: Use when: (1) ..., (2) ..., (3) ...

    line 54
  4. Distinctive:

    Default: extract a script: Only skip if the skill is purely decision guidance with no deterministic steps.

    line 97
  5. Very specific:

    Always support --help / -h with usage examples

    line 108
  6. Distinctive:

    Use meaningful exit codes (0 = success, 1 = error, 2 = usage)

    line 110
  7. Very specific:

    Use #!/usr/bin/env bash shebang (portable)

    line 113
  8. Very specific:

    Keep SKILL.md focused on when/why/context, not how (the script handles that)

    line 126
  9. Distinctive:

    Default: decompose into agents: Only skip if the skill is a single-step check or pure decision guidance.

    line 141
  10. Distinctive:

    Only sequence agents when one depends on another's output.

    line 171
  11. Distinctive:

    Don't rely on the agent inferring context from the conversation.

    line 198
  12. Distinctive:

    Agent registration: If the skill uses an orchestrator, include a Sub-Agent Registry table in the orchestrator's agent file listing all …

    line 267
  13. Very specific:

    Every skill with tracking should include scripts/task-manifest.sh — a bash case statement that emits a JSON array of tasks per workflow.

    line 288
  14. Distinctive:

    Decide: create new vs update existing (see decision table below)

    line 312
  15. Distinctive:

    Ask: "Can this task be split into independent subtasks that run in parallel?"

    line 327
  16. Distinctive:

    Ask: "Can the skill's core action be expressed as a deterministic check or procedure?"

    line 338
  17. Distinctive:

    Ask: "Does this skill have 3+ sequential phases or take >2 minutes?"

    line 352
  18. Very specific:

    Run each script with human-readable output (no --json), scan for zero counts, unexpected items, misclassified entries, empty sections

    line 368
  19. Very specific:

    Run with --json — verify field values match human-readable output

    line 370
  20. Distinctive:

    Test with 2-3 varied inputs (different formats, different project areas)

    line 371
  21. Distinctive:

    When a skill exceeds 500 lines, has poor structure, or runs slowly:

    line 459

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

Skill Authoring

Core Principles

  1. Decompose into agents — break complex skills into an orchestrator + specialized sub-agents. Each sub-agent has a single focused responsibility. The orchestrator delegates, coordinates, and reports — it never does the work itself.
  2. Parallelize aggressively — launch independent sub-agents in a SINGLE Task tool message. If 3 catalogs need processing, launch 3 agents simultaneously, not sequentially. Time savings compound: 3 parallel agents = ~1x latency, not 3x.
  3. Script-first for determinism — if the skill's value can be captured in a deterministic script, write the script FIRST, then wrap SKILL.md around it. Scripts are testable, runnable outside Claude, and keep SKILL.md lean. Agents handle judgement; scripts handle procedure.
  4. Concise is key — the context window is a shared resource. Only add what Claude doesn't already know. Challenge each paragraph: "Does this justify its token cost?"
  5. Progressive disclosure — SKILL.md is the overview; reference files load on-demand. Keep SKILL.md body under 500 lines.
  6. Match freedom to fragility — text instructions for flexible tasks, exact scripts for fragile operations, specialized agents for judgement-heavy tasks.
  7. Default assumption — Claude is already very smart. Skip explanations of basic concepts, library purposes, or general programming knowledge.
  8. Track progress for long workflows — skills with 3+ sequential phases must include a task manifest script. Use TaskCreate/TaskUpdate to give real-time progress visibility. Users should never wonder "what phase is it on?" during a 5-minute workflow.

Frontmatter Rules

Supported fields: name, description, metadata, compatibility, license.

---
name: kebab-case-name          # ≤64 chars, lowercase + hyphens only
description: "Third-person description. Use when: (1) ..., (2) ..."  # ≤1024 chars, single-line quoted
metadata:
  version: 1.0.0               # semver: patch=typos, minor=new content, major=breaking
---

Do NOT include: author, date, tags, allowed-tools, category, or top-level version (use metadata.version instead). Use double-quoted single-line strings for description — block scalars (description: |) cause VS Code linter errors.

Description rules:

  • Write in third person ("Processes files..." not "I help you..." or "You can...")
  • Include both what it does AND when to use it
  • Add numbered trigger conditions: Use when: (1) ..., (2) ..., (3) ...
  • Include specific symptoms, error messages, framework names
  • Claude uses this to choose from 100+ skills — be specific enough to win selection

Directory Layout

your-skill/
├── SKILL.md              # Required — decision workflow, when-to-use, key rules
├── scripts/              # Optional — executable automation
│   ├── extract.sh        # Pre-processing: deterministic data extraction
│   └── apply-fixes.sh    # Post-processing: apply agent results
└── references/           # Optional — lookup material loaded on-demand
    ├── field-tables.md   # Tables, matrices, lookup data
    └── examples.md       # Code examples, past case studies

# Agent definitions live alongside other agents (not inside the skill):
.claude/agents/
├── your-orchestrator.md       # Pure orchestrator — delegates everything
├── your-sub-agent-a.md        # Focused specialist (NOT user-invocable)
└── your-sub-agent-b.md        # Focused specialist (NOT user-invocable)

What Goes Where

Content TypeLocationWhy
Decision workflowSKILL.mdAlways loaded — guides what to do
Trigger conditionsSKILL.mdMust be visible for skill activation
Quick-reference commandsSKILL.mdFrequently needed during use
Agent orchestration patternSKILL.mdDefines how agents coordinate
Agent definitions.claude/agents/Reusable across skills, standard location
Lookup tables, field refsreferences/Consulted occasionally, not always
Code examples, case studiesreferences/Large blocks that dilute SKILL.md
Executable proceduresscripts/Predictable, testable, reusable

Reference Rules

  • One level deep from SKILL.md — no references linking to other references
  • Descriptive filenames — api-field-reference.md not ref1.md
  • Files > 100 lines should have a table of contents at the top

Script Extraction

Default: extract a script. Only skip if the skill is purely decision guidance with no deterministic steps.

Extract into scripts/ when ANY apply:

  • The skill checks, validates, or detects something (staleness, sync, coverage)
  • The code handles error conditions (missing deps, wrong directory, invalid args)
  • The same code block appears in multiple skills
  • The script composes with other scripts or CI/hooks
  • Users may run it standalone outside the skill context

Script requirements:

  • Always support --help / -h with usage examples
  • Validate inputs before operating (check files exist, directories writable)
  • Use meaningful exit codes (0 = success, 1 = error, 2 = usage)
  • Include a --fix mode where applicable (detect + auto-remediate)
  • Make executable: chmod +x scripts/*.sh
  • Use #!/usr/bin/env bash shebang (portable)
  • Choose set flags by script purpose (see Pitfall below)

Pitfall: set -e interacts badly with bash arithmetic and pipes. Common triggers: (1) find | sort | head -N — head closes the pipe causing SIGPIPE (exit 141) with pipefail, (2) grep -c returns exit 1 when count is 0, (3) echo "$var" | while read in subshells, (4) ((var++)) when var=0 — ((0)) evaluates to false, causing set -e to terminate the script. Fix: use VAR=$((VAR + 1)) instead of ((VAR++)). Use set -euo pipefail for validation scripts; use set -eu (without pipefail) for context-gathering scripts.

After writing the script, slim SKILL.md:

  • Replace procedural prose with a Quick Check section pointing to the script
  • Keep SKILL.md focused on when/why/context, not how (the script handles that)
  • Move lookup tables (field mappings, inventories) into the script or references/

Reference from SKILL.md:

## Quick Check
```bash
./scripts/validate.sh /tmp/data.json           # Report only
./scripts/validate.sh /tmp/data.json --fix     # Auto-remediate
./scripts/validate.sh --help                   # Usage
```

Agent & Orchestration Design

Default: decompose into agents. Only skip if the skill is a single-step check or pure decision guidance. Every skill with 2+ independent subtasks should use parallel agents.

When to Use Agents

SignalAgent ApproachTeams?
Task has 2+ independent subtasksParallel sub-agents for eachNo
Task requires web search, content reading, or AI judgementDedicated agent per domainNo
Task processes N items of the same typeFan-out: one agent per item (or per batch)No
Task has sequential phases with parallel work withinOrchestrator coordinates phase gatesMaybe
Task is a single deterministic checkNo agent — use a script insteadNo
Multi-phase workflow with inter-agent feedbackNamed teammates via TeamCreateYes

Orchestrator Pattern

The pure orchestrator pattern is the gold standard for complex skills:

Orchestrator (coordinates, decides, reports)
├── Sub-agent A (focused task 1) ─── launched in parallel ──┐
├── Sub-agent B (focused task 2) ─── launched in parallel ──┤ SINGLE message
├── Sub-agent C (focused task 3) ─── launched in parallel ──┘
└── Script (deterministic pre/post-processing)

Orchestrator rules:

  • Pure delegation — the orchestrator NEVER does the work itself. It launches agents, collects results, makes phase-gate decisions, and generates the final report.
  • Parallel by default — launch all independent agents in a SINGLE Task tool message. Only sequence agents when one depends on another's output.
  • Progress reporting — output status updates between tool calls so the user is never left wondering what's happening.

MCP Tool Constraint (CRITICAL for skills using MCP servers)

Agent Teams teammates and sub-agents CANNOT call MCP tools. MCP server connections and tool permissions are session-scoped — they don't propagate to tmux panes or child agent sessions. When a teammate calls an MCP tool, it shows "Permission request sent to team leader" and deadlocks — the lead has no mechanism to approve.

"Lead Reads, Agents Analyze" pattern:

  1. The orchestrator/lead reads ALL MCP content in Phase 1 (it has the permissions)
  2. File contents are passed as TEXT in agent prompts — agents analyze text, not MCP resources
  3. Agents must NOT call any mcp__* or ReadMcpResourceTool tools

This applies to ALL MCP servers (Figma, Sentry, Railway, etc.) and both Agent Teams teammates and non-team sub-agents (Agent tool calls). Always design skills that use MCP data with this constraint in mind.

Sub-Agent Design

Each sub-agent should be maximally specialized:

  • Single responsibility — one agent per focused task (e.g., "validate curated catalog URLs" not "validate all URLs across all catalogs")
  • Self-contained prompt — include all context the agent needs in its Task prompt. Don't rely on the agent inferring context from the conversation.
  • Structured output — define the exact JSON/report format the agent should return. The orchestrator parses this to make decisions.
  • Appropriate model — use haiku for fast/simple tasks (data extraction, formatting), sonnet for moderate judgement (code review, validation), opus only when deep reasoning is essential.

Parallelization Patterns

Fan-out by item — one agent per catalog, per PR, per test folder:

# 3 catalogs → 3 parallel agents (SINGLE message)
Task(agent=general-purpose, prompt="Validate curated catalog URLs...")
Task(agent=general-purpose, prompt="Validate google-places catalog URLs...")
Task(agent=general-purpose, prompt="Validate experiences catalog URLs...")

Fan-out by concern — one agent per review dimension:

# 3 review concerns → 3 parallel agents (SINGLE message)
Task(agent=code-reviewer, prompt="Review for bugs/correctness...")
Task(agent=code-reviewer, prompt="Review for simplicity/DRY...")
Task(agent=code-reviewer, prompt="Review for project conventions...")

Phased parallelism — sequential phases, parallel within each:

Phase 1: Script extracts data (deterministic)
Phase 2: 3 parallel agents process data (judgement)
Phase 3: Script applies fixes (deterministic)
Phase 4: 1 agent validates results (judgement)

Agent + Script Composition

The most powerful pattern combines both:

  • Scripts handle deterministic pre-processing (extraction, transformation, validation)
  • Agents handle judgement-heavy work (content verification, research, code review)
  • Scripts handle deterministic post-processing (applying fixes, generating reports)

Example flow: extract-urls.sh → 3 parallel verification agents → apply-fixes.sh

Agent Teams Orchestration

See references/agent-teams.md: teams vs sub-agents, the team pattern, conditional team usage, and the teams variant of the complex template.

Defining Agent Files

For skills that spawn agents, create .claude/agents/<agent-name>.md:

---
name: agent-name
description: "Single-purpose description. NOT user-invocable — spawned by <orchestrator>."
model: sonnet  # or haiku for simple tasks
---

You are a **<Role Name>**. Your mission is to <focused task>.

## Input (provided by orchestrator)
[What the orchestrator passes in the Task prompt]

## Output Format
[Exact JSON/report structure to return]

## Workflow
[Step-by-step procedure]

Agent registration: If the skill uses an orchestrator, include a Sub-Agent Registry table in the orchestrator's agent file listing all sub-agents, their concurrency model (parallel/sequential), purpose, and model tier.

Progress Tracking for Long-Running Workflows

Skills with 3+ sequential phases or workflows lasting >2 minutes should include a task manifest — a script that defines the exact TaskCreate checklist for each workflow the skill supports.

When to Add Task Tracking

SignalRequired?
3+ sequential phasesYes — users need visibility
Multiple workflows/subcommandsYes — each workflow gets its own manifest
Single-phase scriptNo — overkill
Pure decision guidance (no execution)No — nothing to track

Task Manifest Script Pattern

Every skill with tracking should include scripts/task-manifest.sh — a bash case statement that emits a JSON array of tasks per workflow. Each task has subject, activeForm, and description fields matching TaskCreate parameters.

See references/task-tracking-pattern.md for the full script template with examples.

Key rules:

  • Each workflow is a case branch emitting a JSON array
  • --list returns machine-readable workflow names; --help shows usage
  • SKILL.md includes a "Progress Tracking (MANDATORY)" section with the task table
  • Mark tasks in_progress before starting, completed after, deleted on abort

Generating a Task Manifest for a New Skill

~/.claude/skills/skill-authoring/scripts/generate-task-manifest.sh \
  --skill-dir /path/to/my-skill \
  --workflows "full-audit:5,quick-check:2"

Creating a New Skill — Workflow

  1. Check existing skills — search project + user-level directories
  2. Decide: create new vs update existing (see decision table below)
  3. Evaluate decomposition — can this be split into parallel agents? (see below)
  4. Evaluate script-first — can deterministic parts be captured in scripts? (see below)
  5. Evaluate progress tracking — does the skill have 3+ phases? (see below)
  6. Write agents (if applicable) — orchestrator + sub-agent definitions
  7. Write scripts (if applicable) — with --help, error handling, exit codes
  8. Write task manifest (if applicable) — scripts/task-manifest.sh for each workflow
  9. Write SKILL.md — frontmatter + body; reference agents, scripts, and task manifest
  10. Extract references/ — if lookup material exceeds ~30 lines
  11. Validate — run the quality checklist
  12. Dry-run test — run scripts against real project data (see below)
  13. Version — start at 1.0.0

Decomposition Evaluation (Step 3)

Ask: "Can this task be split into independent subtasks that run in parallel?"

AnswerApproachExample
Yes — N independent itemsFan-out: one agent per item, orchestrator collectscatalog-url-validator: 3 parallel agents, one per catalog
Yes — N independent concernsFan-out by concern: one agent per dimensionpr-review-toolkit: parallel reviewers for code, tests, errors, types
Partially — phases with parallel stepsPhased: script → parallel agents → scriptcatalog-maintainer: backup → fetch → enrich → validate → embed
No — single sequential taskNo orchestrator needed; single agent or scriptcatalog-embedding-sync: one script checks all

Script-First Evaluation (Step 4)

Ask: "Can the skill's core action be expressed as a deterministic check or procedure?"

AnswerApproachExample
Yes — fully deterministicWrite script first, SKILL.md is thin wrappercatalog-embedding-sync: script checks timestamps + counts
Mostly — with some judgementScript handles the deterministic parts, agents handle judgementcatalog-url-validator: script extracts URLs, agents verify content
No — primarily decision guidanceProse-first SKILL.md, no script neededcatalog-field-lifecycle: decision tree for field preservation

Why script-first wins: A 140-line script replaces ~60 lines of prose in SKILL.md while being testable, runnable standalone, and composable with CI/hooks. The SKILL.md drops from "explain everything" to "explain when/why + point to script".

Progress Tracking Evaluation (Step 5)

Ask: "Does this skill have 3+ sequential phases or take >2 minutes?"

AnswerApproachExample
Yes — 3+ phasesAdd scripts/task-manifest.sh with one entry per phasereview-dependabot-prs: 8 tasks across triage→apply→test→deploy
Yes — multiple workflowsAdd one case branch per workflowtriage-issues (github-board plugin): full-audit (5 tasks) + quick-check (2 tasks)
No — 1-2 fast phasesSkip task manifest — no tracking neededcatalog-embedding-sync: single script, <30 seconds

Dry-Run Testing (Step 12)

Every skill with scripts MUST be dry-run tested against real project data before release. Scripts that look correct often fail due to: regex format mismatches, grep pipe chains where head causes SIGPIPE, find including coverage/build artifacts, and classification heuristics that misfire on edge cases.

Procedure:

  1. Run each script with human-readable output (no --json), scan for zero counts, unexpected items, misclassified entries, empty sections
  2. Run with --json — verify field values match human-readable output
  3. Test with 2-3 varied inputs (different formats, different project areas)
  4. Fix and re-test — bugs cluster (one broken heuristic often means others are too)

Common catches: grep -rlq ... | head -1 always exits 0 on empty -q output; find without -not -path "*/coverage/*" includes test artifacts; regex assumes one heading format but project uses another (e.g., ### Sub-Task vs ### AC1:).

Create vs Update Decision

FoundAction
Nothing relatedCreate new
Same trigger + same fixUpdate existing (minor version bump)
Same trigger, different root causeCreate new, add See Also links both ways
Same domain, different triggerUpdate existing with new variant subsection
Stale or wrongDeprecate in Notes, create replacement

Skill Template

See references/skill-templates.md for the simple (script-only) and complex (orchestrator + parallel agents + scripts + task tracking) templates.

Quality Checklist

Decomposition & agents:

  • Decomposition evaluated: can this be split into parallel sub-agents?
  • If yes: orchestrator defined as pure delegator (never does the work itself)
  • Independent agents launched in SINGLE Task tool message (not sequentially)
  • Each sub-agent has single focused responsibility
  • Sub-agents use appropriate model tier (haiku/sonnet/opus)
  • Agent definitions include structured output format

Scripts & determinism:

  • Script-first evaluated: can deterministic parts be captured in scripts?
  • If yes: script written first, SKILL.md references it (not duplicates it)
  • Scripts have --help and --fix/--dry-run support and are executable
  • Scripts dry-run tested against real project data (2-3 varied inputs)

Progress tracking:

  • Progress tracking evaluated: does the skill have 3+ sequential phases?
  • If yes: scripts/task-manifest.sh created with one case per workflow
  • Each workflow defines tasks with subject, activeForm, description
  • SKILL.md includes "Progress Tracking (MANDATORY)" section with task table
  • Task update rules documented (in_progress → completed, abort → deleted)

Teams (optional):

  • Team mode evaluated: does this skill have multi-phase feedback loops?
  • If yes: team pattern documented alongside sub-agent pattern
  • Conditional check for CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS documented
  • TeamDelete cleanup documented in workflow

Structure & content:

  • SKILL.md body ≤ 500 lines
  • Description ≤ 1024 chars, third person, with trigger conditions, double-quoted single-line
  • Frontmatter has only name, description, metadata
  • References are one level deep from SKILL.md
  • All cross-reference links resolve to existing files

Anti-Patterns

  • Sequential when parallel is possible — if agents don't depend on each other's output, launch them in a SINGLE message. Sequential = N x latency for no reason.
  • Monolithic agent — one agent doing 5 things. Split into 5 focused agents.
  • Orchestrator doing work — the orchestrator should delegate, not fetch/validate/enrich.
  • Missing structured output — agents returning prose instead of parseable JSON/reports forces the orchestrator to guess at results.
  • Verbose explanations — Claude knows what PDFs are. Skip the intro paragraph.
  • Too many options — provide a default with escape hatch, not 5 alternatives.
  • Deeply nested references — SKILL.md → ref.md → detail.md causes partial reads.
  • Time-sensitive info — "After August 2025, use X" becomes stale. Use "Current method" / "Legacy" sections.
  • Inconsistent terminology — pick one term ("endpoint" not alternating "URL/route/path").
  • Non-standard frontmatter — author, date, tags waste tokens and aren't used.
  • Incomplete CLI templates in agents — when agents create GitHub artifacts (gh issue create, gh pr create), include ALL metadata flags (--label, --assignee, --milestone) explicitly in the template. Agents improvise missing fields with plausible-but-wrong values (e.g., dependencies label instead of project's dependabot label). Include a selection guide for dynamic fields like priority labels.
  • Silent long-running workflows — skills with 3+ phases that don't use TaskCreate leave users staring at a spinner for minutes with no visibility. Always include a task manifest and update tasks between phases. If a sub-agent takes >30 seconds, the user should see which task is in_progress.
  • Untested scripts shipped as "done" — scripts that pass code review but fail on real data. Always dry-run against the current project with varied inputs before declaring complete. Bugs cluster: if one heuristic is wrong, test the others too.
  • Using teams for one-shot parallel work — teams add overhead (shared task list, message routing). For independent fan-out tasks, sub-agents are faster and cheaper.

Optimizing Existing Skills

When a skill exceeds 500 lines, has poor structure, or runs slowly:

  1. Audit for parallelization — identify independent subtasks that could be agents
  2. Decompose monolithic agents — split "does everything" agents into focused specialists
  3. Extract scripts/ — move deterministic procedures out of agent prompts
  4. Extract references/ — move lookup tables and code examples
  5. Replace inline content with links: See **[references/your-file.md](references/your-file.md)** for the full lookup table.
  6. Validate cross-references — grep for references/ and scripts/ links, verify all exist
  7. Fix stale cross-references — search for skill names that no longer exist
  8. Bump version — minor for content reorganization, major for agent architecture changes

See Also

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.