/maverick:do-cybersecurity-reviewfrom maverick
Audits a codebase for security risks in full-audit or update mode. Full-audit scans everything and writes findings to docs/security-audit.md; update reviews a diff via an independent agent. Covers secrets, dependency vulnerabilities, auth, input validation, transport security, and OWASP risks.
Ships in maverick. 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.
Audit a codebase for security risks. Operates in two modes:
do-init at adoption time and on demand. Produces docs/security-audit.md. Flips cybersecurity_reviewed milestone.do-issue-solo and do-issue-guided dispatch that agent directly as the mandatory pre-PR gate. Does not flip the milestone (it's per-PR work, not a one-time milestone).Refer to mav-bp-application-security for the standards each finding should be measured against. The skill surfaces risks; it does not modify code.
Run this first. If it exits non-zero, halt and report the stderr output to the user verbatim. Do not proceed.
uv run maverick preflight do-cybersecurity-review
The check verifies the project is initialised and uv is on PATH.
If $ARGUMENTS specifies a mode (full-audit or update), use it. If update is selected the caller must also pass a diff (via stdin or a file path); halt and ask for one if missing.
If no mode is specified, default to full-audit.
Identify language, framework, and runtime so subsequent checks know what to look for. Use the same detectors as do-maverick-alignment: package.json, pyproject.toml, Dockerfile, etc.
Generic categories miss the rules that matter most in a given codebase.
Read every project skill under docs/maverick/skills/ whose name or
description concerns security, authorisation, tenancy, privacy,
personal data or compliance (e.g. application-security). Every rule
in them is an audit item: report each as PASS / WARN / FAIL / N/A in
the report's Project checklist section.
Then run the project's invariant checks and record the result:
uv run maverick checks run --base "$(uv run maverick git-workflow story-base)"
A failing check is a FAIL in the category it enforces.
For each category below, search the codebase and assign one of:
Scan tracked files for committed credentials, tokens, private keys, and connection strings. Patterns to check (extend per stack):
AKIA[0-9A-Z]{16} (AWS access key id), aws_secret_access_key\s*=-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----ghp_, gho_, ghs_, github_pat_ (GitHub tokens)xox[baprs]- (Slack tokens), sk- followed by 20+ alphanumerics (OpenAI/Anthropic-style)password\s*=\s*['"][^'"]+['"], api[_-]?key\s*=\s*['"][^'"]+['"]Also check .env* files (any tracked) and history (git log --all --full-history -- .env).
| What | Where to look |
|---|---|
| Lock file present | package-lock.json, pnpm-lock.yaml, yarn.lock, uv.lock, poetry.lock, Cargo.lock, go.sum |
| Vulnerability scanning configured | npm audit in CI, pip-audit, safety, cargo audit, trivy, Dependabot, Renovate |
| Pinned versions | Direct deps pinned to a specific version or range |
| No supply-chain red flags | typosquats, abandoned packages, unfamiliar registries |
open() / fs.readFile)?shell=True with untrusted input, no eval)?* for credentialed endpoints?.dockerignore keeping .env, secrets, and .git out of layers?Create docs/security-audit.md (create docs/ if it doesn't exist). Use this structure:
# Security Audit
**Generated:** <ISO timestamp>
**Stack detected:** <e.g., Node.js + Express, Python + Django>
## Summary
<1-2 sentences. Highest-severity finding. Headline risk.>
| Category | Status |
| --- | --- |
| Secret exposure | PASS / WARN / FAIL / N/A |
| Dependency hygiene | ... |
| Authentication / authorisation | ... |
| Input validation / output encoding | ... |
| Transport, headers, CORS | ... |
| Data at rest | ... |
| Logging, monitoring, rate limiting | ... |
| Container / infrastructure | ... |
## Project checklist
| Rule (source skill) | Status | Evidence |
| --- | --- | --- |
| <rule> (`docs/maverick/skills/<name>`) | PASS / WARN / FAIL / N/A | `path:line` |
<"No project security skill found" if there is none — and recommend
writing one with do-upskill.>
Project checks: <n configured, n failed — list failing commands>.
## Details
### <Category> — <STATUS>
<Evidence: file paths, snippets, dependency names. Be concrete.>
<If WARN/FAIL: a one-paragraph recommendation with a concrete next step.>
<repeat per category>
## Recommendations (prioritised)
1. **<Severity: high/medium/low>** — <action>. <File or area>. <Why it matters>.
2. ...
## Proposed invariant checks
<For each finding that a script could catch every time (a forbidden
call, a missing declaration, a grant that must not exist), propose a
check command and what it asserts. Reviewers miss repeat cases; a check
in `checks.commands` never does.>
Use one-line citations (path/to/file:42) so a human (or a follow-up agent) can jump straight to evidence.
After writing the report, print:
Once the report is written, record that the cybersecurity review has run on this project:
uv run maverick integration set cybersecurity_reviewed true
This commits the milestone into .maverick/config.json so other Maverick skills (and maverick integration get) can see it.
Diff-scoped review used as the mandatory pre-PR security gate. It is performed by agent-security-reviewer, a read-only agent with a fresh context: the review must not run inside the context that wrote the code, or the author is checking their own work.
do-issue-solo and do-issue-guided dispatch
the agent directly. If you were invoked in update mode (for example by
a user typing the command), do the same:
git diff origin/<base>...HEAD > <file>) if the
caller didn't pass one.Mode: diff,
the diff path, the base branch and a one-paragraph spec. Do not
review the diff yourself.MAVERICK_SECURITY_VERDICT
line unchanged.The agent's procedure (project checklist, invariant checks, impact set,
categories) and verdict semantics (PASS / FINDINGS / BLOCKING) are
defined in its own prompt. Update mode never writes to
docs/security-audit.md: its findings are transient and the caller
decides where they go.
do-issue-solo after the user prioritises them.When invoked from do-issue-solo Phase 7 (or any other
caller) in update mode, do-cybersecurity-review is a
subroutine of the calling workflow — not a terminal action.
Returning the structured verdict is a hand-back to the caller's next
numbered step, not a phase-complete signal (#106).
When you return from this skill, do not post a closing summary, do not stop. The calling workflow still owns, in order:
skill-dispatch interval that wrapped this invocation
(uv run maverick report end --auto … --outcome <success|failure|blocked>).
The outcome maps from the verdict: PASS → success,
FINDINGS → success (with the findings folded into the PR body
draft), BLOCKING → blocked.BLOCKING, folding findings
into the PR body draft on FINDINGS, or recording
Security review: no concerns. on PASS.If you find yourself drafting a final summary after returning here,
that is the signal: scroll back to the calling workflow and resume
from the step immediately after the
/do-cybersecurity-review dispatch.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins ship this exact skill · first indexed Nov 14, 2026
41 skills in this plugin
/do-adoptScan a project for missing best-practice areas and implement the top recommendation for each gap (linting, unit testing) — installs tools, writes configs, verifies, and commits. Pass 'recommend' to stop after writing recommendations without implementing (replaces the old do-recommend skill)./do-codeImplement a focused code change. Use this skill as the wrapper for any implementation work so the Maverick workflow report captures what was done and so the agent applies the project's coding standards before editing. Intended to be invoked once per task from inside a do-issue-* or do-epic phase, not standalone./do-docsCreate, restructure, or update technical documentation. Handles greenfield projects, refactoring non-compliant docs, and incremental updates after code changes.Generated from the plugin's indexed repository (thermiteau/maverick) — no native marketplace selected
npx claudepluginhub p/thermiteau-maverickOther plugins' skills for the same job