stackhawk-optimize-cli Cursor ruleA
stackhawk-optimize-cli 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-optimize-cli.mdc@git:20260713.1c3038dPins git:20260713.1c3038d 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-optimize-cli.mdc- Versions recorded
- 2
- Latest version
- git:20260713.1c3038d, committed Jul 13, 2026
- First version recorded
- Jun 30, 2026
- Size
- 1,688 bytes
- Repository stars
- 16
- License
- MIT
Optimize hawk op CLI contract: policy list/get/create/delete/assign and scan metrics commands the skill orchestrates, with flags and JSON output notes. The skill consumes these; it does not recompute metrics.
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
# hawk op CLI Contract (commands this skill calls) | Purpose | Command | |---------|---------| | List policies (find base preset names) | `hawk op policy list --format json` | | Fetch a base policy as JSON | `hawk op policy get --name <PRESET>` | | Create/upsert a trial or permanent policy | `hawk op policy create --file <json> --name <NAME> [--display-name <DN>] [--dry-run]` | | Delete a policy | `hawk op policy delete --name <NAME> --yes [--dry-run]` | | (Optional) set app default | `hawk op policy assign --app <NAME\|UUID> --name <NAME> [--dry-run]` | | Read canonical tech flags | `hawk op app tech-flags get --app <APP> --format json` | | Get per-path scan metrics + signal flags | `hawk op scan metrics <SCAN_ID\|latest> [--sort heaviest\|slowest\|erroring\|most-requested] [--top N] [--method <VERB>] [--operations] --format json` | Notes: - `policy get` prints a full `ScanPolicy` JSON (tech flags + plugins) suitable for editing and re-submitting via `policy create --file`. - Policy names must match `^[A-Z0-9_]+$`, ≤256 chars. - All write commands support `--dry-run`; use it in preflight to detect missing permissions/feature flags without making changes. …
Read the whole file at its exact version.
How to install
mdr add stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-optimize-cli.mdc@sha256:7c5e06543b30ae50The line at the top of this page pins the label git:20260713.1c3038d, 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_md5nwxndbviwz6yd)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Jun 30, 2026 and Jul 13, 2026, about one every 13 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260713.1c3038d latest | 2026-07-13 | 1c3038d | 1,688 B | A | view · diff |
| git:20260630.b97573a | 2026-06-30 | b97573a | 1,695 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1688 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_md5nwxndbviwz6yd GET https://markdownregistry.com/api/v1/resolve?ref=stackhawk/agent-skills/cursor/.cursor/rules/stackhawk-optimize-cli.mdc GET https://markdownregistry.com/api/v1/blob/7c5e06543b30ae5043d1e833e34bd6c17a9bbc054815b330f7ffa53d906d06de
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.