stackhawk-hawkscan-openapi-specs Cursor ruleA
stackhawk-hawkscan-openapi-specs 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-hawkscan-openapi-specs.mdc@git:20260715.d1c4528Pins git:20260715.d1c4528 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-hawkscan-openapi-specs.mdc- Versions recorded
- 4
- Latest version
- git:20260715.d1c4528, committed Jul 15, 2026
- First version recorded
- Jul 13, 2026
- Size
- 11,674 bytes
- Repository stars
- 16
- License
- MIT
HawkScan OpenAPI spec accuracy reference: framework-generic procedure for getting an accurate OpenAPI spec into openApiConf for a REST surface — prefer a spec the running app serves, suggest the code/build change that makes the framework generate one, verify it resolves against the app (base/context path), and derive one by hand only as a last resort. Use whenever wiring or fixing openApiConf, or when a scan's spec paths return 404s.
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
# OpenAPI Spec Accuracy Reference A REST scan is only as good as the spec behind it. An **accurate** spec is one whose operations match the app's real routes *and* resolve against the scanned host — same base path, same context path. An inaccurate spec is worse than no spec: HawkScan faithfully requests every path it declares, so wrong paths become a wall of 404s that bury real coverage and generate recurring false-positive noise on every rescan. This reference is framework-generic. Use it whenever a REST surface needs a spec wired into `openApiConf` — discovery (SKILL.md Step 1a / `scan-planning.md`) points here, and the quality gate points here when it reports a `spec-not-wired` or coverage gap. ## Contents - [The one rule: an unverified spec is a hypothesis](#the-one-rule-an-unverified-spec-is-a-hypothesis) - [Get an accurate spec (preference order)](#get-an-accurate-spec-preference-order) - [Framework spec-generation matrix](#framework-spec-generation-matrix) - [Suggesting the code/build change](#suggesting-the-codebuild-change) - [Base path and context path](#base-path-and-context-path) - [Mandatory: verify the spec resolves](#mandatory-verify-the-spec-resolves) …
Read the whole file at its exact version.
How to install
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-openapi-specs.mdc@sha256:eab3b870ff392f95The line at the top of this page pins the label git:20260715.d1c4528, 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_ta7fd66hf2hcdorv)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jul 13, 2026 and Jul 15, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260715.d1c4528 latest | 2026-07-15 | d1c4528 | 11,674 B | A | view · diff |
| git:20260713.9b9f56d | 2026-07-13 | 9b9f56d | 11,648 B | A | view · diff |
| git:20260713.c3a9f67 | 2026-07-13 | c3a9f67 | 10,142 B | A | view · diff |
| git:20260713.f5afd26 | 2026-07-13 | f5afd26 | 11,327 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (11674 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_ta7fd66hf2hcdorv GET https://markdownregistry.com/api/v1/resolve?ref=stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-hawkscan-openapi-specs.mdc GET https://markdownregistry.com/api/v1/blob/eab3b870ff392f954575d63d2a8bb0d9ee299fe67b839a601d42828d28ea2a87
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.