skill-authoring-guide
Skill6 starsChanged 4 months agoApache-2.0View on GitHub
Create or refactor high-quality skills with lean frontmatter, progressive disclosure, and optional bundled helpers. Use when authoring reusable agent workflows.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- zhengyanxiong/skillstheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- zhengyanxiong/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository116 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/graphify/references/CLAUDE.mdCLAUDE.md
- agent-config-security-auditSkill
- agent-harness-designSkill
- agent-readable-docsSkill
- agent-runtime-patternsSkill
- agent-session-forensicsSkill
- ai-regression-testingSkill
- ai-slop-cleanerSkill
- api-doc-reviewSkill
- architecture-decision-recordsSkill
- architecture-simplificationSkill
- ask-claudeSkill
- ask-codexSkill
- ask-geminiSkill
- autonomous-delivery-pipelineSkill
- baseline-comparison-reviewSkill
- bigquery-cost-auditSkill
- brainstormingSkill
- browser-automation-safetySkill
- bug-huntSkill
- build-fix-minimal-diffSkill
- canonical-advisor-routingSkill
- change-impact-checkSkill
- changelog-generatorSkill
- ci-failure-readoutSkill
- codebase-migration-batchesSkill
- context-compressionSkill
- context-docsSkill
- context-minimizationSkill
- context-retrieval-loopSkill
- data-qualitySkill
- dataset-split-reviewSkill
- dbt-incremental-strategy-auditSkill
- dbt-preflightSkill
- dbt-strategySkill
- dead-code-removalSkill
- defuddleSkill
- dependency-cleanupSkill
- deploy-pipeline-runbookSkill
- dispatching-parallel-agentsSkill
- doc-consistency-checkSkill
- environment-doctorSkill
- experiment-tracking-reviewSkill
- failure-triageSkill
- filesystem-mcp-guardrailsSkill
- finishing-a-development-branchSkill
- flaky-test-investigationSkill
- gh-address-commentsSkill
- github-ci-failure-triageSkill
- graphifySkill
- handoff-disciplineSkill
- hard-won-skill-extractorSkill
- hook-safety-reviewSkill
- incident-readoutSkill
- incremental-migrationSkill
- json-canvasSkill
- local-rag-mcpSkill
- log-driven-diagnosisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when creating or improving a reusable skill.
- Distinctive: line 46
When should it trigger? (Be concrete — "when the user mentions X" or "when you're about to do Y".)
- Distinctive: line 55
Use Markdown headings for top-level structure.
- Very specific: line 58
If SKILL.md exceeds 150 lines, split off the excess into a reference file.
- Distinctive: line 66
Check that every file path mentioned in the skill actually exists.
- Very specific: line 67
Remove any references/ links that point to non-existent files.
- Distinctive: line 68
Verify the skill can be read in under 2 minutes.
- Distinctive: line 69
Test the trigger: does the description reliably route to this skill for the intended use case?
- Distinctive: line 86
Use them as optional helpers if they fit your workflow.
- Very specific: line 98
Use hard-won-skill-extractor when the challenge is turning a hard-earned session into a reusable skill candidate.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill Authoring Guide
Use this skill when creating or improving a reusable skill.
What Good Skills Do
- Trigger reliably from
nameanddescription— the description must be specific enough to avoid false triggers. - Stay short in
SKILL.mdand move bulk detail intoreferences/orscripts/. - Teach a workflow or decision pattern, not just dump background information.
- Include scripts or references only when they eliminate repeated work or prevent ambiguity.
Frontmatter Template
---
name: kebab-case-matching-directory-name
description: Use when [trigger condition]. Does [what it does]. [Optional: NOT for X.]
---Body Format
Default to a pure Markdown body after the YAML frontmatter. Use headings such as ## Purpose, ## When to Use, ## Workflow, and ## Verification. Do not use XML-like tags such as <Purpose>, <Workflow>, or <Use_When> as normal top-level sections. XML-like tags are acceptable only when they strictly delimit nested examples, quoted input, external documents, or machine-readable prompt payloads.
Good description (specific, trigger-clear):
Use when designing or reviewing filesystem MCP access, path boundaries, allowed roots, and method allowlists.Weak description (too broad, won't trigger reliably):
Helps with MCP things and file access.Workflow
1. Define the job
- What specific problem does this skill solve?
- When should it trigger? (Be concrete — "when the user mentions X" or "when you're about to do Y".)
- What should it explicitly NOT handle? State the boundary.
2. Write strong frontmatter
namemust match the directory name exactly.descriptionmust say what the skill does AND when to use it in one sentence.
3. Keep the body lean
SKILL.mdshould be readable in one focused pass — target 50–120 lines.- Use Markdown headings for top-level structure.
- Move bulky reference material into
references/. - Move deterministic scripts (validators, init scripts) into
scripts/. - If
SKILL.mdexceeds 150 lines, split off the excess into a reference file.
4. Design progressive disclosure
SKILL.md: core workflow, when to use, safety constraints.references/: detailed patterns, full checklists, long examples.scripts/: automation helpers.
5. Validate before publishing
- Check that every file path mentioned in the skill actually exists.
- Remove any
references/links that point to non-existent files. - Verify the skill can be read in under 2 minutes.
- Test the trigger: does the description reliably route to this skill for the intended use case?
Skill Length Guide
| Section | Target |
| Frontmatter description | 1 sentence, 15–30 words |
SKILL.md body | 50–120 lines |
| Individual workflow steps | 1–3 lines each |
| References total | as needed, not in SKILL.md |
Bundled Helpers
scripts/init_skill.py— scaffold a new skill directoryscripts/package_skill.py— package for distributionscripts/quick_validate.py— check frontmatter and dead references
Use them as optional helpers if they fit your workflow.
Verification
- The name field matches the skill directory name exactly
- The description states the trigger condition and what the skill does in one sentence
- The body reads in one focused pass — within the length guide, with bulk detail moved to references
- Every file path mentioned in the skill exists; dead reference links were removed
- The trigger was tested: the description reliably routes the intended use case to this skill
Related Skill
Use hard-won-skill-extractor when the challenge is turning a hard-earned session into a reusable skill candidate.
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
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.

