agent-skills
AGENTS.md16 starsChanged 3 months agoMITView on GitHub
Multi-platform agent skills repo serving Claude, Codex, Gemini, Copilot, Cursor, and OpenCode from one canonical source. Skills teach AI agents to run HawkScan DAST security scanning and query the StackHawk platform API. Before creating every PR, bump the patch version and include it in the commit: Use --minor for new skills or significant capability additions, --major for breaking changes. See RELEASING.md for the full release process including how to update the marketplace catalog. VERSION is the single source of truth.…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skill-authoringSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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
- Distinctive: line 68
Before creating every PR, bump the patch version and include it in the commit:
- Very specific: line 74
Use --minor for new skills or significant capability additions, --major for breaking changes.
- Very specific: line 99
Create plugins/<name>/skills/<name>/SKILL.md with name:, version:, description: frontmatter
- Very specific: line 100
Create plugins/<name>/.claude-plugin/plugin.json (with icon.svg) and .codex-plugin/plugin.json, plus plugins/<name>/README.md.
- Very specific: line 101
Add symlinks in skills/, .opencode/skills/, and .cursor/skills/ (pointing into the new plugin)
- Very specific: line 102
Add entries to scripts/generate-cursor-rules.sh MAPPINGS array (controls Cursor .mdc generation)
- Very specific: line 103
Add all new manifests and SKILL.md to .version-bump.json
- Very specific: line 104
Run bash scripts/bump-version.sh --minor so version propagates
- Very specific: line 137
Run bump-version.sh BEFORE the generators: generated copies carry version frontmatter copied from source
- Distinctive: line 142
Keep this file for knowledge useful to almost every future agent session in this project.
- Distinctive: line 143
Do not repeat what the codebase already shows.
- Distinctive: line 144
Prefer rewriting or pruning existing entries over appending new ones.
- Distinctive: line 145
When updating this file, preserve this bar for all agents and keep entries concise.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
StackHawk Agent Skills
Multi-platform agent skills repo serving Claude, Codex, Gemini, Copilot, Cursor, and OpenCode from one canonical source. Skills teach AI agents to run HawkScan DAST security scanning and query the StackHawk platform API.
Structure
plugins/hawkscan/— HawkScan DAST scanning skill (SKILL.md + references + hooks)plugins/api/— StackHawk API reporting skill (SKILL.md + references)plugins/wingman/— Umbrella plugin;/plugin install wingman@stackhawkinstalls hawkscan + api + data-seed + optimizeplugins/wingman/copilot-skills/— Generated copies of wingman's four skills for GitHub Copilot and Codex, which ignoredependencies(do NOT edit).claude/skills/skill-authoring/— Maintainer skill: authoring rules and best practices for contributors to this repo (NOT distributed via marketplace; tracked in git via.gitignorenegation; NOT in.version-bump.json— it carries its own version, independent of the release version)skills/— Symlinks for Gemini/Copilot discovery (points into plugins/).opencode/skills/— Symlinks for OpenCode discovery (points into plugins/).cursor/skills/— Symlinks for Cursor native skills discovery (points into plugins/)plugins/hawkscan/hooks/cursor/— Cursor hook scripts and hooks.jsoncursor/— Generated Cursor .mdc rules (do NOT edit manually)scripts/generate-cursor-rules.sh— Transforms SKILL.md → Cursor .mdc formatscripts/bump-version.sh— Updates all version-bearing files atomically (reads.version-bump.json)scripts/release.sh— Pre-release checks, creates tag, creates GH Releasescripts/generate-marketplace-catalogs.pyandscripts/generate-marketplace-skills.py: Local install verification helpers; release publishing uses the marketplace repo'sscripts/sync-agent-skills.py
Commands
# Regenerate Cursor rules after editing any SKILL.md or references/*.md
bash scripts/generate-cursor-rules.sh
# Verify generation is idempotent (no diff = correct)
bash scripts/generate-cursor-rules.sh && git diff cursor/
# Bump version (updates VERSION + all manifests + SKILL.md frontmatter in one pass)
bash scripts/bump-version.sh --patch # bug fixes
bash scripts/bump-version.sh --minor # new skill or significant capability
bash scripts/bump-version.sh --major # breaking changes
# Release (validates manifests, Cursor rules, and the wingman Copilot bundle;
# creates annotated tag, creates GH Release)
bash scripts/release.sh --dry-run # validate without creating anything
bash scripts/release.sh # create tag + GH Release (must be on main, clean tree)
gh workflow run release.yml --ref "v$(cat VERSION)" # run release checks and sync marketplace main
# macOS/Linux install
bash scripts/install.sh --platform cursor --target ~
bash scripts/install.sh --platform copilot --target ~
# Regenerate the wingman Copilot bundle after editing any bundled SKILL.md
bash scripts/generate-wingman-skills.sh
# Validate the bundle
bash scripts/test-wingman-skills.sh
# Preview the released marketplace layout in a disposable marketplace checkout:
# see the "Updating the pinned version" section of agent-skills-marketplace/README.md.# Windows install
.\scripts\install.ps1 -Platform cursor
.\scripts\install.ps1 -Platform copilotPR Workflow
Before creating every PR, bump the patch version and include it in the commit:
bash scripts/bump-version.sh --patchUse --minor for new skills or significant capability additions, --major for breaking changes.
See RELEASING.md for the full release process including how to update the marketplace catalog.
Manifests and Versioning
VERSION is the single source of truth. All platform manifests must match it.
Skills assume the combined hawk binary (hawk op …) is installed — no raw-REST fallback.
| Platform | Manifest |
| Claude | .claude-plugin/marketplace.json + plugins/*/.claude-plugin/plugin.json |
| Codex | .codex-plugin/marketplace.json + plugins/*/.codex-plugin/plugin.json |
| Gemini | gemini-extension.json |
| Copilot | plugins/wingman/.github/plugin/plugin.json (umbrella only). A per-plugin Copilot install fetches e.g. plugins/hawkscan, reads that plugin's own plugins/hawkscan/.claude-plugin/plugin.json, and defaults to that plugin's own plugins/hawkscan/skills/ directory — the repo-root skills/ symlinks are NOT involved in marketplace per-plugin installs; they serve Gemini and the whole-repo plugin.json install only |
| Cursor | Rules: generated into cursor/.cursor/rules/; Skills: symlinks in .cursor/skills/; Hooks: plugins/hawkscan/hooks/cursor/ |
| Claude (umbrella) | plugins/wingman/.claude-plugin/plugin.json — /plugin install wingman@stackhawk installs hawkscan + api + data-seed + optimize |
.version-bump.json lists every version-bearing file. bump-version.sh reads it to update all files atomically. When adding a new plugin, add its manifests and SKILL.md to .version-bump.json.
CI (generate-and-validate.yml) validates version consistency on every PR. Manually dispatch release.yml from the release tag after running scripts/release.sh; it re-validates the tag and pushes the marketplace sync to main.
Adding a New Plugin
- Create
plugins/<name>/skills/<name>/SKILL.mdwithname:,version:,description:frontmatter - Create
plugins/<name>/.claude-plugin/plugin.json(withicon.svg) and.codex-plugin/plugin.json, plusplugins/<name>/README.md; see README "Claude directory validation" - Add symlinks in
skills/,.opencode/skills/, and.cursor/skills/(pointing into the new plugin) - Add entries to
scripts/generate-cursor-rules.shMAPPINGSarray (controls Cursor .mdc generation) - Add all new manifests and SKILL.md to
.version-bump.json - Run
bash scripts/bump-version.sh --minorso version propagates
Cursor Rule Generation
scripts/generate-cursor-rules.sh contains a MAPPINGS array. Each entry maps a source file to a Cursor .mdc rule:
source_path|output_name|description|globs (comma-separated or empty)|alwaysApplycursor/ is generated output — never edit .mdc files directly. Edit the source SKILL.md or references, then regenerate. CI blocks PRs where cursor rules are out of sync.
Cursor Hooks
Cursor hooks live in plugins/hawkscan/hooks/cursor/ and are copied to users' projects by install.sh. They are NOT generated — edit them directly.
hooks.json— Cursor hooks config (version 1,stophook only)stop.sh— Fires when the agent loop ends; outputsfollowup_messageto auto-trigger a scan if code was modified without scanning
The stop hook's followup_message causes Cursor to automatically continue with that message, prompting the agent to run the hawkscan skill. This is more powerful than the Claude Code equivalent (stopReason is display-only).
Gotchas
cursor/is generated output — edit the source SKILL.md, then regenerateskills/,.opencode/skills/, and.cursor/skills/entries are symlinks, not copies — don't break the relative paths- Cursor skills
name:field matches the symlink folder name forhawkscan,hawkscan-ci, andstackhawk-data-seed. It does NOT for the other two: symlinksstackhawk-apiandstackhawk-optimizepoint at skills namedapiandoptimize. Those skills are what users see in skill lists. Renaming them is a breaking change tracked as a separate major release. - Cursor hook
commandpath (.cursor/hooks/stop.sh) is relative to the project root — correct for both user-level (~) and project-level installs docs/superpowers/is gitignored (design specs/plans kept locally).claude/dir is gitignored (local settings only)- SKILL.md frontmatter requires
name:,version:, anddescription:— CI validates all three scripts/release.shmust be run frommainwith a clean working treeplugins/wingman/copilot-skills/is generated output — edit the source skills and runbash scripts/generate-wingman-skills.shplugins/wingman/must NEVER contain askills/directory. Claude Code always scansskills/, so one would load every skill twice (wingman:hawkscanandhawkscan:hawkscan). The Copilot bundle is deliberately namedcopilot-skills/.- Run
bump-version.shBEFORE the generators: generated copies carry version frontmatter copied from source - The separate
agent-skills-marketplacerepo owns its generated catalogs, plugin snapshots, andskills/copies.release.ymlruns that repo's sync script on a new tag and pushes validated outputs to marketplacemain; never hand-edit its generated outputs. The standaloneskills/copies serve theskillsCLI, which ignores marketplace catalogs.
Maintaining this file
Keep this file for knowledge useful to almost every future agent session in this project. Do not repeat what the codebase already shows; point to the authoritative file or command instead. Prefer rewriting or pruning existing entries over appending new ones. When updating this file, preserve this bar for all agents and keep entries concise.
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.

