stackhawk-api Cursor ruleA
stackhawk-api from stackhawk/agent-skills is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-api.mdc@git:20260914.7edcfdcPins git:20260914.7edcfdc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- stackhawk/agent-skills
- Path
cursor/.cursor/rules/stackhawk-api.mdc- Versions recorded
- 5
- Latest version
- git:20260914.7edcfdc, committed Sep 14, 2026
- First version recorded
- Jul 8, 2026
- Size
- 9,916 bytes
- Repository stars
- 16
- License
- MIT
Use when querying the StackHawk platform for security reporting, findings analysis, or app management. Triggers include "stackhawk api", "security posture", "findings report", "show me findings", "untriaged findings", "which apps", "scan history", "security dashboard", "triage", "what needs attention". Uses the combined hawk CLI (hawk op …) for all platform queries. Do NOT use for running scans (use the stackhawk-hawkscan rule for "scan my app", "hawkscan", "stackhawk.yml", "DAST") or for…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# StackHawk API Skill
This skill enables Claude to act as a security reporting agent against the StackHawk
platform. The core workflow is:
**Question → Authenticate → Query API via `hawk op` → Present Results → Suggest Next Actions**
All platform queries run through the `hawk` binary's `op` subtree
(`hawk op …`). It authenticates, refreshes tokens, follows pagination, and
emits stable JSON. There is no raw-REST fallback — if `hawk` is unavailable,
install it and run `hawk init --browser` rather than hand-rolling curl.
See [`references/hawk-op-shortcuts.md`](references/hawk-op-shortcuts.md).
---
## Step 1: Assess Context
Before making any calls, check what's available:
1. **Is `hawk` installed and configured?** (`hawk version` reports v6.0.0 or greater)
```bash
# Identify the driving skill for CLI usage telemetry (read by hawk/hawkop).
export _STACKHAWK_SKILL=api
command -v hawk >/dev/null && hawk op status
```
- valid org + JWT → proceed.
- installed but unconfigured → `hawk init --browser` (interactive; the combined binary
has no `hawk op init` — `hawk init` writes `~/.hawk/hawk.properties`, which
…Read the whole file at its exact version.
How to install
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-api.mdc@sha256:85c0bada37faa721The line at the top of this page pins the label git:20260914.7edcfdc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_4lz7pgb7mrkw247j)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jul 8, 2026 and Sep 14, 2026, about one every 17 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260914.7edcfdc latest | 2026-09-14 | 7edcfdc | 9,916 B | A | view · diff |
| git:20260914.4c0ae54 | 2026-09-14 | 4c0ae54 | 9,925 B | A | view · diff |
| git:20260914.5fe0d68 | 2026-09-14 | 5fe0d68 | 9,921 B | A | view · diff |
| git:20260713.cc4759f | 2026-07-13 | cc4759f | 9,562 B | A | view · diff |
| git:20260708.5dcc3eb | 2026-07-08 | 5dcc3eb | 9,627 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (9916 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
stackhawk/agent-skills · 16 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_4lz7pgb7mrkw247j GET https://markdownregistry.com/api/v1/resolve?ref=stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-api.mdc GET https://markdownregistry.com/api/v1/blob/85c0bada37faa721b0dd4a630fd1d1a53ff6af9c59ceeddf1c567f1cc7fbfec1
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.
More from stackhawk/agent-skills
Every file in stackhawk/agent-skills