/42crunch-api-security-testing:42crunch-auditfrom 42crunch-api-security-testing
Run a 42Crunch API Security Audit and fix SQG-blocking issues in an OpenAPI Specification file or GraphQL schema. Use this skill whenever the user wants to audit an OAS file or GraphQL schema for security issues, fix SQG-blocking issues, score an API, or remediate audit findings. Triggers on phrases like "run audit", "audit only", "fix audit issues", "SQG audit", "42crunch audit", "audit score", "audit my graphql schema", "graphql audit", or any request focused on static API-definition analysis and remediation without running a live scan.
Ships in 42crunch-api-security-testing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runs a single phase: Audit (static analysis of an OpenAPI definition or
GraphQL schema, SQG reporting, and SQG-blocking fix loop). Requires explicit
user permission before execution. Does not run a live scan — use the
42crunch-scan skill for that.
Pre-flight checks. Read ../../references/pre-flight.md and complete
all steps (setup, API definition resolution, tag detection). When prompting
for file selection, use the context "audit" (e.g. "Which one should I
audit?"). Pre-flight sets API_TYPE (oas or graphql) — carry it
forward. Do not proceed if any step fails or the user cancels.
Ask for permission. Call AskUserQuestion:
"Ready to run a 42Crunch Audit on <filename>. This will analyse your <OAS file / GraphQL schema> and produce a scored report. Shall I proceed?"["Yes, proceed", "No, cancel"]Execute the Audit. Mode is already resolved from pre-flight — do not
re-derive it. Read the workflow file for the resolved API_TYPE — and
only that file:
API_TYPE=oas → ../../references/audit-workflow.mdAPI_TYPE=graphql → ../../references/graphql-audit-workflow.mdApply only the commands for the identified mode throughout. The workflow runs the audit, then presents a developer-readable, risk-classified report (OAS: SQG-Blocking / Security / Data Validation / Spec Conformance tiers; GraphQL: Resource Limiting / Data Validation tiers) with plain-English titles and risk descriptions — no raw rule IDs. It then pauses and asks the user to consent before applying any fixes. Fixes are only applied after explicit confirmation.
Present the final audit summary (see Output Format below).
Recommend next steps based on the outcome:
If SQG PASSED (API_TYPE=oas):
"Your audit is complete and the SQG is passing. The natural next step is to run a live scan to test conformance and authorization against a running instance of your API. Just say
run scanwhen your API server is available."
If SQG FAILED (user declined to fix):
"Your audit findings are saved above. When you're ready to address the SQG-blocking issues, run
42crunch-auditagain on this file and I'll apply the fixes. Once the audit passes, run42crunch-scanto test the live API."
If no issues found (API_TYPE=oas):
"No issues found — your API has a clean audit result. Run
42crunch-scanto verify the live API matches its contract."
API_TYPE=graphql (passed or clean): replace the scan suggestion with:
"The natural next step is a live conformance scan against your running GraphQL endpoint — say
run scanwhen the server is available. If your server's GraphQL engine doesn't yet enforce the constraint and cost directives added here, wiring that up is worth scheduling too."
Only continue after explicit user confirmation at each permission prompt.
After the audit completes, produce a summary in this shape.
API_TYPE=graphql — GraphQL reports carry a single score: drop the
(Security: … · Data Validation: …) suffix from the Score: row and the
Data: segment from the Score change: row; label the file row
Schema updated: instead of OAS updated:. Everything else is identical.
Audit Complete
Score: <score> / 100 (Security: <sec-score> · Data Validation: <data-score>)
Score change: <initial-score> → <score> (<delta>) | Data: <initial-data> → <data-score> (<data-delta>) ← omit if no fixes applied
SQG: PASSED (<sqg-name> — your org's security quality gate is met) ← platform mode, passed
SQG: FAILED (<sqg-name> — the quality gate is not met; fixes above are required) ← platform mode, failed
SQG: N/A (Token mode — no automated gate; user-defined thresholds applied this session) ← token mode
Mode: Platform / Token
Tag: <category>:<tagname> ← platform mode only, when a tag is assigned; omit this row if no tag
Issues fixed: 2 SQG-blocking (0 security · 2 data validation)
OAS updated: <path/to/openapi.json>
Show only the one SQG line that matches the current mode and result.
The Score change: row is produced from the delta values computed in Step 4 of
../../references/audit-workflow.md. Omit it when no fixes were applied (user
declined at the consent gate, or there were no SQG-blocking issues).
If the user declined to apply fixes, note that instead.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/42crunch-api-security-testingRun both a 42Crunch Audit and a live Scan together in a single pipeline. Use this skill when the user wants to run audit and scan together, complete the full security pipeline, or when the request is ambiguous about which phase to run. Triggers on phrases like "run audit and scan", "full 42crunch pipeline", "full security check", "audit then scan", "42crunch", or "SQG". Do NOT use this skill if the user explicitly requests only an audit (use 42crunch-audit) or only a scan (use 42crunch-scan).
/42crunch-scanRun a 42Crunch live conformance and authorization scan against a REST or GraphQL API and fix SQG-blocking scan findings. Use this skill whenever the user wants to run a conformance test, authorization scan, BOLA test, BFLA test, scan a GraphQL API, generate or configure a scan config, or fix scan-reported issues. Triggers on phrases like "run scan", "scan only", "conformance test", "BOLA test", "BFLA test", "42crunch scan", "scan config", "scan my graphql api", or any request focused on live API testing without running a static audit. Use 42crunch-api-security-testing when the user wants both audit and scan together.
/42crunch-setupSet up the 42Crunch environment so that audit and scan skills can run without friction. Use this skill whenever the user wants to configure 42Crunch for the first time, install or update the 42c-ast binary, configure an API key, or troubleshoot missing credentials or binary errors. Triggers on phrases like "setup 42crunch", "configure 42crunch", "install 42c-ast", "update 42c-ast", "set api key", "42crunch not working", "binary not found", or any request to prepare the environment before running an audit or scan.
/generate-oasGenerate a complete OpenAPI 3.0 (OAS) specification from an API codebase, a Postman or Insomnia collection, or both together. Use this skill whenever the user wants to generate, create, or derive an OpenAPI spec, reverse-engineer an API definition, document an existing API, or convert a Postman/Insomnia collection to OpenAPI — when there is no existing OAS file yet. Triggers on phrases like "generate OAS", "create an OpenAPI spec", "generate openapi.json", "document my API", "reverse-engineer spec", "convert postman to openapi", "convert insomnia to openapi", "postman collection to OAS", "insomnia collection to OAS", or any request to produce an OAS file from source material rather than from an existing spec.
npx claudepluginhub 42crunch-ai/claude-plugins --plugin 42crunch-api-security-testing