optimize SKILL.md skillA

optimize from stackhawk/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add stackhawk/agent-skills/optimize@v2.7.0

Pins v2.7.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
stackhawk/agent-skills
Path
plugins/optimize/skills/optimize/SKILL.md
Versions recorded
8
Latest version
v2.7.0, committed Oct 9, 2026
First version recorded
Jul 20, 2026
Size
7,667 bytes
Repository stars
16
License
MIT

Analyze a codebase and produce an optimal HawkScan setup — tech flags, scan-policy plugin selection, and stackhawk.yml corrections — then apply it as a non-destructive trial, run ONE trial scan, and promote or discard. Use when the user asks to "optimize my scan", "tune HawkScan", "make my scan faster", "reduce false positives", "pick the right plugins/policy for my app", or invokes /optimize. Also invoked automatically by the hawkscan skill on every fresh stackhawk.yml (Phase 0c) to set up…

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

# Optimize Skill

Turn a codebase into an optimal HawkScan configuration. The skill detects the real tech
stack and app shape, expresses that as a **trial scan policy** (tech flags + plugins) plus
local `stackhawk.yml` corrections, runs one trial scan so the user sees real results, and
then promotes the setup or discards it with no residue.

## Why a trial policy (not editing the app)

Org scan policies are stored as hosted assets and downloaded by the scanner at scan time
when `app.scanPolicy.name` is set (see `references/trial-lifecycle.md`). Creating a trial
policy and referencing it in `stackhawk.yml` therefore leaves the application's own policy,
plugins, and tech flags **untouched** until the user promotes. This is the core safety
property.

## Preflight (run before anything else)

```bash
# Identify the driving skill for CLI usage telemetry (read by hawk/hawkop).
export _STACKHAWK_SKILL=optimize
```

1. **CLI versions / auth** — reuse the hawkscan skill's preflight (`hawk version`,
   `hawk config --help`, `hawk op` auth). Additionally confirm the policy write commands
   exist: `hawk op policy create --help` must succeed. If it errors with "unrecognized
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add stackhawk/agent-skills/optimize@sha256:7aa292ceb4260e78

The line at the top of this page pins the label v2.7.0, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_zohpj5b3a4g6ltnw.svg)](https://markdownregistry.com/a/art_zohpj5b3a4g6ltnw)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 8 versions of this file, between Jul 20, 2026 and Oct 9, 2026, about one every 12 days.

versioncommittedcommitsizeaudit
v2.7.0 latest2026-10-09 d0eea86 7,667 BA view · diff
v2.6.32026-10-02 ce9cc4e 7,667 BA view · diff
v2.6.22026-09-26 400c868 7,667 BA view · diff
v2.6.12026-09-18 fb76da6 7,667 BA view · diff
v2.6.02026-09-14 5fe0d68 7,667 BA view · diff
v2.5.12026-09-09 4089d13 7,617 BA view · diff
v2.5.02026-08-13 19c1457 7,617 BA view · diff
v2.4.02026-07-20 b0f5201 7,617 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7667 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

GitHub

stackhawk/agent-skills · 16 stars · license MIT · pushed 2026-10-09 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_zohpj5b3a4g6ltnw
GET https://markdownregistry.com/api/v1/resolve?ref=stackhawk/agent-skills/optimize
GET https://markdownregistry.com/api/v1/blob/7aa292ceb4260e78b2cd8bb9a433b5196c3989663acd4866f7649b568a4a7765

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: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from stackhawk/agent-skills

skill-authoring SKILL.md skill
stackhawk/agent-skills · .claude/skills/skill-authoring/SKILL.md · Guides authoring and maintaining agent skills in this repository — enforcing Anthropic best practices, bumping…
v1.0.0 · audit A · 16 stars
AGENTS.md AGENTS.md file
stackhawk/agent-skills · AGENTS.md
git:20261002.7db9dde · audit A · 16 stars
CLAUDE.md CLAUDE.md file
stackhawk/agent-skills · CLAUDE.md
git:20260926.400c868 · audit B · 16 stars
stackhawk-api-hawk-op Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-api-hawk-op.mdc · hawk op shortcuts for the StackHawk API: user intent → single hawk op command mapping for scan drill-down…
git:20260914.5fe0d68 · audit A · 16 stars
stackhawk-api-recipes Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-api-recipes.mdc · StackHawk API reporting recipes: org security posture summary, app deep dive (scan -> alerts -> findings), stale apps…
git:20260914.dee6251 · audit A · 16 stars
stackhawk-api Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-api.mdc · Use when querying the StackHawk platform for security reporting, findings analysis, or app management. Triggers include…
git:20260914.7edcfdc · audit A · 16 stars
stackhawk-data-seed Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-data-seed.mdc · Use when the user says "set up data for HawkScan", "my scan has no data to hit", "seed this repo for scanning", or as a…
git:20260708.5dcc3eb · audit A · 16 stars
stackhawk-hawkscan-ci-app-startup Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-hawkscan-ci-app-startup.mdc · HawkScan CI app-startup patterns reference: Docker Compose + wait-for-it, GitLab services keyword, GitHub Actions…
git:20260610.e0f728f · audit A · 16 stars
stackhawk-hawkscan-ci-execution-shapes Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-hawkscan-ci-execution-shapes.mdc · HawkScan CI execution shapes reference: native action (stackhawk/hawkscan-action) vs Docker image (stackhawk/hawkscan)…
git:20260630.b97573a · audit A · 16 stars
stackhawk-hawkscan-ci-failure Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-hawkscan-ci-failure.mdc · HawkScan CI failure semantics reference: exit codes 0/1/42, failureThreshold tuning, block-on-42 vs warn-only vs…
git:20260630.b97573a · audit A · 16 stars
stackhawk-hawkscan-ci Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-hawkscan-ci.mdc · Use when the user wants to WIRE HawkScan into a CI/CD pipeline config file — triggers on "set up hawkscan in CI", "add…
git:20260918.09d070f · audit A · 16 stars
stackhawk-hawkscan-cli Cursor rule
stackhawk/agent-skills · cursor/.cursor/rules/stackhawk-hawkscan-cli.mdc · hawk CLI reference: scan commands and flags (--json-output, --verbose, --debug, --trace), validate commands (config…
git:20260914.7edcfdc · audit A · 16 stars

Every file in stackhawk/agent-skills

Other files named optimize

optimize SKILL.md skill
rustyrazorblade/skills · plugins/cassandra-expert/skills/optimize/SKILL.md · Performance optimization for Apache Cassandra clusters. Use when tuning configuration, improving throughput, reducing…
git:20260324.70fc6f2 · audit A · 44 stars
optimize SKILL.md skill
quriosity-agent/qcut · qcut/.agents/skills/optimize/SKILL.md · Improve interface performance across loading speed, rendering, animations, images, and bundle size. Makes experiences…
git:20260308.8b86d2e · audit A · 42 stars
optimize SKILL.md skill
outlinedriven/odin-claude-plugin · plugins/odin-code/skills/optimize/SKILL.md · Use when asked to optimize code, make a path faster, make this as fast as possible, reduce allocations, repair a…
git:20260912.3bb16e0 · audit A · 38 stars
optimize SKILL.md skill
borda/ai-rig · plugins/codex-rig/skills/optimize/SKILL.md · Optimize a measurable metric with bounded iterations, guardrails, and regression gates.
git:20261009.e7932ee · audit A · 28 stars
optimize SKILL.md skill
marcel-bich/marcel-bich-claude-marketplace · plugins/credo/skills/optimize/SKILL.md · The credo optimisation audit - an opt-in, read-only scan of a repo for things that slow parallel and long-term work…
git:20261002.fd2015d · audit B · 12 stars
optimize SKILL.md skill
illyism/dev-skills · code/optimize/SKILL.md · Optimizes code, queries, and features based on actual usage by removing unused fields, aggregations, JOINs, and unused…
v1.0.0 · audit A · 6 stars
optimize SKILL.md skill
ictechgy/context-guard · plugins/context-guard/skills/optimize/SKILL.md · Diagnose and reduce Claude Code token usage for a project or session using context hygiene, model and effort routing…
git:20260905.919b87d · audit B · 3 stars

Browse by kind, by grade A, or by owner.