Security scan on deploy

From Clear-Capabilities/agentic-security · View interactive version

Security scan on deploy is an AI agent skill from the GitHub repository Clear-Capabilities/agentic-security. Run the security scanner. Activate on ship / deploy / launch / "is this safe?" — before the deploy happens.

How to use this skill

Skill file

Skill — scan before deploy

Activates when the user is about to push code to production, asks if their

project is safe to ship, or mentions any of the destructive-prone deploy

commands (vercel --prod, fly deploy, wrangler publish, npm publish,

gh pr merge --auto).

When to fire

What to do

  1. Check for fresh scan state. Read

.agentic-security/last-scan.json mtime. If it's older than

24 hours OR doesn't exist, run a fresh scan first:

/scan --all for the full surface, or /scan --uncommitted if

the user only edited a few files.

  1. Render the verdict, not the wall of findings. The user is

making a deploy decision, not auditing. Lead with:

line, mention the streak, offer /compliance --attestation to

generate the badge.

Show the top 3 by exploitability, route to `/fix --all

--critical` for batch remediation, or recommend wiring the

CI bench gate so blocking is automatic next time.

/triage --show --all before deploy, mention the deploy is

still possible but flag the risk.

  1. Surface the production-aware filters. If /scan --exposed-only

has been configured (WAF / auth-middleware / network-policy

ingest), use it. A finding the WAF already blocks shouldn't

block the deploy.

  1. Offer one-finding triage flow. If there's one blocker,

suggest:

/triage --explain <id> → /fix --one <id> → re-scan → ship.

Don't just list the finding and walk away.

Don't

asked "safe to ship?". They want the verdict.

.agentic-security/last-scan.json mtime first; reuse if fresh.

Canonical commands

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.