Skip to content
anyai.fyi

optimize

Skill from stackhawk/agent-skills

Agents & Workflows No risky patterns found curated apisecuritywrite

Install

npx skills add stackhawk/agent-skills --skill optimize

Runs the open skills CLI and installs the skill for your agent (Claude Code, Codex, Cursor …). Alternatively copy the skill folder into .claude/skills/ or upload it in Claude.ai under Settings → Skills.

As a Claude Code plugin

/plugin marketplace add anthropics/claude-plugins-official /plugin install stackhawk-optimize@stackhawk

This skill is part of the plugin “stackhawk-optimize”. In Claude Code the plugin installs it together with the plugin’s other skills, commands and hooks.

What does the optimize skill do?

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 the scan policy + tech flags (Setup mode), and re-runnable anytime via /optimize; the metrics Refine mode is surfaced when a scan is slow. Do NOT use for: a normal security scan or fixing vulnerabilities (use the hawkscan skill); querying existing findings or posture (use the api skill); or editing stackhawk.yml without optimizing/scanning. Requires an onboarded StackHawk app + env and a `hawk` build whose `hawk op` has the `policy` write commands.

Description from the SKILL.md in the source repository.

Questions about optimize

What does the optimize skill do?

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 the scan policy + tech flags (Setup mode), and re-runnable anytime via /optimize; the metrics Refine mode is surfaced when a scan is slow. Do NOT use for: a normal security scan or fixing vulnerabilities (use the hawkscan skill); querying existing findings or posture (use the api skill); or editing stackhawk.yml without optimizing/scanning. Requires an onboarded StackHawk app + env and a `hawk` build whose `hawk op` has the `policy` write commands.

How do I install optimize?

In a terminal: npx skills add stackhawk/agent-skills --skill optimize. The skills CLI asks which agents to install it for. In Claude.ai you can upload the skill folder as a ZIP under Settings → Skills.

Which agents can use optimize?

Skills use the open SKILL.md format, which Claude Code, Claude.ai, the Claude API, OpenAI Codex, Cursor, Gemini CLI and other agents support.

Is optimize safe to use?

Our automatic check found no risky patterns (piped shell scripts, hidden characters, secret access, prompt overrides). It is not a full audit – read the SKILL.md and any scripts before installing.

More skills from stackhawk/agent-skills

skill-authoring
stackhawk/agent-skills

Guides authoring and maintaining agent skills in this repository — enforcing Anthropic best practices, release-version rules, regenerating Cursor rules, and keeping the plugin structure consistent.

Agents & Workflows curated
No risky patterns found
api
stackhawk/agent-skills

Use this skill when a user or agent needs to query the StackHawk platform for security reporting, findings analysis, or app management.

Development curated
No risky patterns found
hawkscan-ci
stackhawk/agent-skills

Use when the user wants to WIRE HawkScan into a CI/CD pipeline config file — triggers on "set up hawkscan in CI", "add stackhawk to my pipeline", "scan in CI", "configure github …

DevOps & Cloud curated
No risky patterns found
hawkscan
stackhawk/agent-skills

Runs the HawkScan DAST security loop — configure, scan, fix all reported vulnerabilities (not just your changes), rescan to verify.

Development curated
Worth a look
stackhawk-data-seed
stackhawk/agent-skills

Set up checked-in seed data so authenticated HawkScan can reach non-trivial paths. Drives the `hawk perch seed` preflight, designs the minimum seed manifest from the repo digest, then validates and finalizes it …

Data & Databases curated
Worth a look
stackhawk-api
stackhawk/agent-skills

Use this skill when a user or agent needs to query the StackHawk platform for security reporting, findings analysis, or app management.

Development curated
No risky patterns found
stackhawk-optimize
stackhawk/agent-skills

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 …

Agents & Workflows curated
No risky patterns found

Related skills in Agents & Workflows