agentleFS
stackhawkstackhawk/agent-skills/AGENTS.md

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.

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
  1. Distinctive:

    Before creating every PR, bump the patch version and include it in the commit:

    line 68
  2. Very specific:

    Use --minor for new skills or significant capability additions, --major for breaking changes.

    line 74
  3. Very specific:

    Create plugins/<name>/skills/<name>/SKILL.md with name:, version:, description: frontmatter

    line 99
  4. Very specific:

    Create plugins/<name>/.claude-plugin/plugin.json (with icon.svg) and .codex-plugin/plugin.json, plus plugins/<name>/README.md.

    line 100
  5. Very specific:

    Add symlinks in skills/, .opencode/skills/, and .cursor/skills/ (pointing into the new plugin)

    line 101
  6. Very specific:

    Add entries to scripts/generate-cursor-rules.sh MAPPINGS array (controls Cursor .mdc generation)

    line 102
  7. Very specific:

    Add all new manifests and SKILL.md to .version-bump.json

    line 103
  8. Very specific:

    Run bash scripts/bump-version.sh --minor so version propagates

    line 104
  9. Very specific:

    Run bump-version.sh BEFORE the generators: generated copies carry version frontmatter copied from source

    line 137
  10. Distinctive:

    Keep this file for knowledge useful to almost every future agent session in this project.

    line 142
  11. Distinctive:

    Do not repeat what the codebase already shows.

    line 143
  12. Distinctive:

    Prefer rewriting or pruning existing entries over appending new ones.

    line 144
  13. Distinctive:

    When updating this file, preserve this bar for all agents and keep entries concise.

    line 145

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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@stackhawk installs hawkscan + api + data-seed + optimize
  • plugins/wingman/copilot-skills/ — Generated copies of wingman's four skills for GitHub Copilot and Codex, which ignore dependencies (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 .gitignore negation; 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.json
  • cursor/ — Generated Cursor .mdc rules (do NOT edit manually)
  • scripts/generate-cursor-rules.sh — Transforms SKILL.md → Cursor .mdc format
  • scripts/bump-version.sh — Updates all version-bearing files atomically (reads .version-bump.json)
  • scripts/release.sh — Pre-release checks, creates tag, creates GH Release
  • scripts/generate-marketplace-catalogs.py and scripts/generate-marketplace-skills.py: Local install verification helpers; release publishing uses the marketplace repo's scripts/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 copilot

PR Workflow

Before creating every PR, bump the patch version and include it in the commit:

bash scripts/bump-version.sh --patch

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.

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.

PlatformManifest
Claude.claude-plugin/marketplace.json + plugins/*/.claude-plugin/plugin.json
Codex.codex-plugin/marketplace.json + plugins/*/.codex-plugin/plugin.json
Geminigemini-extension.json
Copilotplugins/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
CursorRules: 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

  1. Create plugins/<name>/skills/<name>/SKILL.md with name:, version:, description: frontmatter
  2. Create plugins/<name>/.claude-plugin/plugin.json (with icon.svg) and .codex-plugin/plugin.json, plus plugins/<name>/README.md; see README "Claude directory validation"
  3. Add symlinks in skills/, .opencode/skills/, and .cursor/skills/ (pointing into the new plugin)
  4. Add entries to scripts/generate-cursor-rules.sh MAPPINGS array (controls Cursor .mdc generation)
  5. Add all new manifests and SKILL.md to .version-bump.json
  6. Run bash scripts/bump-version.sh --minor so 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)|alwaysApply

cursor/ 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, stop hook only)
  • stop.sh — Fires when the agent loop ends; outputs followup_message to 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 regenerate
  • skills/, .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 for hawkscan, hawkscan-ci, and stackhawk-data-seed. It does NOT for the other two: symlinks stackhawk-api and stackhawk-optimize point at skills named api and optimize. Those skills are what users see in skill lists. Renaming them is a breaking change tracked as a separate major release.
  • Cursor hook command path (.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:, and description: — CI validates all three
  • scripts/release.sh must be run from main with a clean working tree
  • plugins/wingman/copilot-skills/ is generated output — edit the source skills and run bash scripts/generate-wingman-skills.sh
  • plugins/wingman/ must NEVER contain a skills/ directory. Claude Code always scans skills/, so one would load every skill twice (wingman:hawkscan and hawkscan:hawkscan). The Copilot bundle is deliberately named copilot-skills/.
  • Run bump-version.sh BEFORE the generators: generated copies carry version frontmatter copied from source
  • The separate agent-skills-marketplace repo owns its generated catalogs, plugin snapshots, and skills/ copies. release.yml runs that repo's sync script on a new tag and pushes validated outputs to marketplace main; never hand-edit its generated outputs. The standalone skills/ copies serve the skills CLI, 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.

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.