skill-authoring
Skill16 starsChanged 3 months agoMITView on GitHub
Guides authoring and maintaining agent skills in this repository — enforcing Anthropic best practices, bumping versions, regenerating Cursor rules, and keeping the plugin structure consistent. Use when editing SKILL.md files, reference files, or plugin manifests; creating a new plugin; or reviewing a skill for compliance with authoring standards. Do NOT trigger for general coding tasks, security scanning, or platform API queries.
58 other projects use a version of this.
Adopted by
Most recently taken up by
- paulnsorensen/easy-cheesetheir own version, first seen Oct 3, 2026
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- microsoft/GitHub-Copilot-for-Azuretheir own version, first seen Oct 1, 2026
- theopenco/llmgatewaytheir own version, first seen Oct 1, 2026
- fusebase-dev/fusebase-flowtheir own version, first seen Oct 1, 2026
- kynn-dev/agent-skillstheir own version, first seen Sep 30, 2026
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.
OpenAISkillobservability
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
AnthropicSkillincident-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
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 3 projects that use this
jacobraskSkillknowledge-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
UnitOneAISkillthreat-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
ElasticSkillaccessibility
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
Other versions58 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 58
- nyldn/claude-octopus★ 4.2ksame name
- theopenco/llmgateway★ 1.7ksame name
- TencentCloudBase/CloudBase-AI-Toolkit★ 1.1ksame name
- spytensor/openmozi★ 423same name
- grafana/skills★ 276same name
- microsoft/GitHub-Copilot-for-Azure★ 253same name
- DAAF-Contribution-Community/daaf★ 236same name
- scitix/siclaw★ 235same name
- Azure/azure-sdk-tools★ 134same name
- notivn/AIEV★ 126same name
48 more not listed
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.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 52 edited versions we read keep these.
2
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
- Very specific: line 39
Every SKILL.md must open with a YAML frontmatter block:
- Distinctive: line 60
Use the progressive disclosure pattern to stay within this limit:
- Very specific: line 61
Keep decision logic, commands, and critical rules in SKILL.md
- Very specific: line 89
When a reference file needs to point the reader elsewhere, write "See Step X in SKILL.md" rather than linking to another reference file
- Distinctive: line 139
Follow these steps in order.
- Very specific: line 201
After any edit to SKILL.md or references/*.md:
“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.
Files
Skill Authoring Guide
This skill documents the rules for creating and maintaining agent skills in
the stackhawk/agent-skills repository.
Authoring Rules (Quick Reference)
These are the non-negotiable rules. CI validates them on every PR.
| Rule | Requirement |
| SKILL.md length | Body ≤ 500 lines (excluding frontmatter) |
| Frontmatter | name:, version:, description: all required |
| Description | Third person; max 1024 characters |
| Reference files | All linked from SKILL.md; must not link to each other |
| Reference ToC | Required when file > 100 lines |
| Progressive disclosure | Summary + link in SKILL.md; detail in references/ |
SKILL.md Rules
Frontmatter
Every SKILL.md must open with a YAML frontmatter block:
---
name: <skill-name> # matches the plugin directory name and symlink folder name
version: <semver> # kept in sync by bump-version.sh
description: > # third person; max 1024 characters; describes when to trigger
...
---Description writing rules:
- Third person ("Guides authoring...", not "I help you author...")
- Opens with what the skill does (verb phrase)
- Includes "Use when" trigger conditions
- Includes "Do NOT trigger for" exclusions
- Max 1024 characters — CI rejects longer descriptions
Body length
The SKILL.md body (everything after frontmatter) must stay at or under 500 lines. Use the progressive disclosure pattern to stay within this limit:
- Keep decision logic, commands, and critical rules in SKILL.md
- Move deep detail to
references/*.mdfiles and link them from SKILL.md - Link format:
→ [references/filename.md](references/filename.md)
What belongs in SKILL.md
- Trigger/skip conditions (when to run, when to stop)
- Step-by-step orchestration logic the agent follows
- Decision tables and critical rules
- Commands the agent runs directly
- Links to reference files (one line per link)
What belongs in references/
- Full command references with all flags
- Pattern tables too large for SKILL.md
- Deep technical detail referenced only in specific situations
- Content > ~30 lines that supports one topic
Reference File Rules
Linking (critical — enforced by best practices)
- All reference files must be linked from SKILL.md directly
- Reference files must NOT link to other reference files
- One level deep only: SKILL.md → reference files; references do not link to references
- When a reference file needs to point the reader elsewhere, write "See Step X in SKILL.md" rather than linking to another reference file
Table of Contents
Reference files longer than 100 lines must include a ## Contents ToC with anchor links
immediately before the first ## section. Format:
## Contents
- [Section Name](#section-name)
- [Another Section](#another-section)
---
## Section NameShorter files may omit the ToC.
Examples vs. placeholders (avoid literal-match traps)
Agents copy runnable code blocks verbatim far more readily than they adapt them. A concrete app-specific value baked into a command is therefore a trap: the agent runs it literally against a different codebase and silently does the wrong thing (curls a route that doesn't exist, greps a directory that isn't there).
The rule that prevents this:
- Runnable code blocks use
<placeholder>s that fail loudly if pasted as-is. Prefercurl "$HOST<spec-path>"overcurl "$HOST/authors"— a literal paste of the placeholder form breaks visibly, while a literal paste of/authorshits the wrong route silently. Put the concrete value in an adjacent comment as a clearly-labelede.g. - Concrete examples live in prose or comments, marked
e.g.There they aid comprehension without being executable, so literal-matching them is harmless. - Literal values are fine only when they are genuinely universal — e.g. probing the real,
fixed served-spec paths (
/openapi.json,/v3/api-docs) is correct precisely because those are the same across every app of that framework. If a value changes per codebase, it is a placeholder, not a literal. - Command tables (grep/derivation recipes) are illustrative starting points. Say so once
near the table, and point them at the repo's real source root and filenames rather than a
literal
src/oropenapi.yaml.
The test: "if an agent runs this exact text against a completely different repo, does it fail loudly or mislead silently?" Silent-mislead means parameterize it.
Creating a New Plugin
Follow these steps in order. All are required.
1. Create directory structure:
plugins/<name>/
skills/<name>/
SKILL.md
references/ # create if needed
.claude-plugin/
plugin.json
.codex-plugin/
plugin.json2. Write SKILL.md following the rules above. Use current VERSION file for the
version field (cat VERSION).
3. Create manifests — copy an existing plugin's plugin.json as a template:
# .claude-plugin/plugin.json and .codex-plugin/plugin.json
# Set name, version (match VERSION file), description, keywords4. Create symlinks for platform discovery (use relative paths):
cd skills/ && ln -s ../plugins/<name>/skills/<name> <name>
cd .opencode/skills/ && ln -s ../../plugins/<name>/skills/<name> <name>
cd .cursor/skills/ && ln -s ../../plugins/<name>/skills/<name> <name>5. Add Cursor mapping in scripts/generate-cursor-rules.sh MAPPINGS array:
"<name>/skills/<name>/SKILL.md|stackhawk-<name>|<cursor description>|<globs>|<alwaysApply>"6. Add to .version-bump.json — add two entries (one per manifest):
{ "path": "plugins/<name>/.claude-plugin/plugin.json", "field": "version", "type": "json" },
{ "path": "plugins/<name>/.codex-plugin/plugin.json", "field": "version", "type": "json" },
{ "path": "plugins/<name>/skills/<name>/SKILL.md", "field": "version", "type": "yaml-frontmatter" }7. Bump version (new skill = --minor):
bash scripts/bump-version.sh --minor8. Regenerate Cursor rules:
bash scripts/generate-cursor-rules.sh9. Verify idempotency:
bash scripts/generate-cursor-rules.sh && git diff cursor/
# → no diff means rules are in syncUpdating an Existing Skill
After any edit to SKILL.md or references/*.md:
- Verify line count (SKILL.md body ≤ 500 lines):
wc -l plugins/<name>/skills/<name>/SKILL.md - Verify reference linking — no reference file links to another reference file:
grep -rn "\](.*\.md)" plugins/<name>/skills/<name>/references/ # Any hit means a reference file is linking to another file — remove it - Regenerate Cursor rules:
bash scripts/generate-cursor-rules.sh && git diff cursor/ - Bump version — include in the same commit as the content change:
bash scripts/bump-version.sh --patch # for fixes and content updates bash scripts/bump-version.sh --minor # for new capabilities
Version Bump Rules
| Change type | Flag |
| Bug fix, content correction, typo | --patch |
| New skill, new reference file, new capability | --minor |
| Breaking change (removed step, changed trigger conditions) | --major |
VERSION is the single source of truth. bump-version.sh reads .version-bump.json
and updates all manifests and SKILL.md frontmatter atomically. Never edit version numbers
manually in individual files.
CI Validation
generate-and-validate.yml runs on every PR and checks:
- Version consistency across all manifests
- Cursor rules are up to date (no diff after running
generate-cursor-rules.sh) - SKILL.md frontmatter has
name:,version:,description:
The PR will be blocked if any check fails. Fix by running:
bash scripts/bump-version.sh --patch # or --minor/--major
bash scripts/generate-cursor-rules.sh
git add plugins/ cursor/ scripts/ && git commit --amend --no-editDoes 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.

