Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/stackhawk/agent-skills/stackhawk-hawkscan-ci-failuregit clone --depth 1 https://github.com/stackhawk/agent-skillsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00061 | $0.02309 |
| Opus 5 | $0.00030 | $0.01154 |
| Sonnet 5 | $0.00012 | $0.00462 |
| Haiku 4.5 | $0.00006 | $0.00231 |
Grade A, and why
stackhawk-hawkscan-ci-failure scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
read -r version url < <(curl -fsSL https://download.stackhawk.com/hawkdocs/hawk.manifest.json \ How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Failure Semantics Reference
How HawkScan signals scan outcomes in CI, when to block vs warn, and how to think about retries and caching.
Exit Codes
| Exit code | Meaning | Pipeline action |
|---|---|---|
0 |
Scan ran; no findings at or above failureThreshold. |
Pass. |
1 |
Scan failed before producing results (config error, app unreachable, auth failure, invalid applicationId, internal scanner error). |
Fail. Do not retry — this is almost always a config issue that needs human attention. |
42 |
Scan ran; findings met or exceeded failureThreshold. |
Real finding. Either fail (block mode) or warn (warn-only mode), per the integration choice. |
Exit code 42 is the intended success path of failure — the scan worked, and it found something worth blocking on. Treating it like a flake (retrying, swallowing) defeats the purpose of running the scan.
failureThreshold — Tuning the Block Line
failureThreshold in stackhawk.yml decides which severity levels trip exit code 42:
app:
applicationId: ${APP_ID}
failureThreshold: High # one of: High, Medium, Low, All
| Value | Exit 42 when... |
|---|---|
High |
Any High finding is present (default; recommended for new pipelines) |
Medium |
Any Medium or High finding is present |
Low |
Any Low, Medium, or High finding is present |
All |
Any finding at all is present (often noisy) |
Tuning guidance:
- Start at
Highfor a new pipeline. You want the first month to be calibration — find out which severity levels your app actually produces, work through them, then ratchet down. - Drop to
Mediumonce the High-severity backlog is empty AND the team is committed to triaging Mediums within a sprint cadence. LowandAllare appropriate only for high-maturity teams with active triage processes; otherwise the noise drowns out real signal.
The hawkscan skill owns failureThreshold writes — this skill does not change it. If the user asks to "make CI less noisy," route them to the hawkscan skill for the config edit (which also handles excludePaths and excludePlugins).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 197 lines · 61 tokens per session scan A 62a3f150a675
stackhawk-hawkscan-ci-failure is a cursor rule published in the GitHub repository stackhawk/agent-skills (16 stars, last pushed 12d ago), licensed MIT. It adds 61 tokens to every session and 2,309 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.
specs
This directory contains product and tech specs for Streamlit features.