From agent-skills
Security and code quality audit. Assesses the codebase, selects relevant skills from the registry, presents a plan for approval, then invokes each skill sequentially.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-skills:audit [scope or focus area][scope or focus area]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Orchestrates a security and code quality audit by selecting and invoking registered skills. Uses plan mode as the orchestration layer: assess the repo, pick applicable skills, present a tailored plan, invoke each skill on approval.
Orchestrates a security and code quality audit by selecting and invoking registered skills. Uses plan mode as the orchestration layer: assess the repo, pick applicable skills, present a tailored plan, invoke each skill on approval.
$ARGUMENTS can be:
dependencies, secrets, sql, auth, api, frontend, infra, allCall the EnterPlanMode tool immediately.
Quickly determine what's in the repo to decide which skills apply:
requirements.txt, pyproject.toml, package.json, go.mod, Cargo.toml, etc. Read entry point imports.Dockerfile, docker-compose.yml, .github/workflows/, Terraform/Bicep/ARM templates, deployment/startup scripts.Based on the assessment, select applicable skills from the registry below. Skip skills that don't apply to this codebase.
If $ARGUMENTS specifies a scope, only select skills within that scope.
Each entry maps an audit area to a skill that can be invoked via the Skill tool. Skills marked [external] are from third-party repos (e.g., trailofbits/skills) and must be installed separately. Skills marked [built-in] ship with this repo or the user's skill library.
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| DEPS-01 | /supply-chain-risk-auditor [external] | Any dependency file exists | Vulnerable, unmaintained, or typosquatted packages. CVE checks, maintainer analysis, download stats. |
| DEPS-02 | /dep-pinning [built-in, planned] | Any dependency file exists | Unpinned versions, missing lockfiles, loose bounds. |
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| SEC-01 | /insecure-defaults [external] | Always | Hardcoded secrets, debug flags, permissive CORS, disabled security middleware, exposed credentials. |
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| CODE-01 | /sharp-edges [external] | Always | Error-prone APIs, dangerous configurations, footgun designs. Covers SQL injection, unsafe deserialization, template injection, file path traversal. |
| CODE-02 | /static-analysis [external] | Always | CodeQL, Semgrep, SARIF-based analysis. Sets up and runs static analysis tooling. |
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| AUTH-01 | /auth-coverage [built-in, planned] | API routes and auth middleware detected | Unprotected endpoints, missing auth middleware, IDOR patterns, role check gaps. |
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| FRONT-01 | /frontend-security [built-in, planned] | Frontend JS/TS exists | XSS vectors (dangerouslySetInnerHTML, innerHTML, v-html), client-side secrets in bundles. |
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| INFRA-01 | /infra-security [built-in, planned] | Dockerfile, CI config, or startup scripts exist | Container security (root user, unpinned base images), CI/CD permissions, startup script safety (CRLF, missing error handling, race conditions). |
| INFRA-02 | /debug-buttercup [external] | Kubernetes deployments detected (k8s manifests, Helm charts, kubectl configs) | Kubernetes deployment diagnostics. Pod health, resource limits, networking, ingress, persistent volumes, RBAC. |
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| CI-01 | /agentic-actions-auditor [external] | .github/workflows/ exist AND workflows use AI agents, LLM calls, or agentic patterns (e.g., auto-merge bots, AI-generated PRs, agent-driven deployments) | Examines GitHub Actions for AI agent vulnerabilities: prompt injection via issue/PR bodies, excessive permissions granted to agent steps, missing human-in-the-loop gates, secret exposure to agent contexts. |
| ID | Skill | Applies when | What it covers |
|---|---|---|---|
| REVIEW-01 | /differential-review [external] | Git history available | Security-focused review of recent code changes with git history analysis. |
During plan construction, check which skills are actually installed. For each registry entry:
[external]: note it as "not installed - skip or install from [repo]" in the plan[built-in, planned]: note it as "not yet built - skip" in the planThis lets the audit run with whatever subset of skills is available. The plan makes gaps visible so the user can decide whether to install missing skills before proceeding.
Write the plan to the plan file:
# Security Audit Plan
## Scope
[Repo name, languages, frameworks, key components identified in assessment]
## Skills to Run
| # | ID | Skill | Target | Status |
|---|---|---|---|---|
| 1 | SEC-01 | `/insecure-defaults` | Full repo | Installed |
| 2 | DEPS-01 | `/supply-chain-risk-auditor` | requirements.txt, package.json | Installed |
| 3 | CODE-01 | `/sharp-edges` | backend/, frontend/ | Installed |
| ... | | | | |
## Skills Skipped
| ID | Skill | Reason |
|---|---|---|
| FRONT-01 | `/frontend-security` | Not yet built |
| AUTH-01 | `/auth-coverage` | Not yet built |
## Execution Order
[Numbered list matching the Skills to Run table]
Call ExitPlanMode to present the plan for user approval. The user can remove skills they don't want, add scope constraints, or request installation of missing skills before approving.
After approval, invoke each selected skill sequentially using the Skill tool:
TodoWrite to track progress through the skill listSkill(skill="supply-chain-risk-auditor")After all skills complete, produce a single consolidated report:
For each skill that produced findings, list them:
/skill-name (ID): [n findings]
| # | Severity | Location | Finding | Recommendation |
|---|---|---|---|---|
| 1 | High | file.py:42 | Description | Fix |
List skills that found no issues (confirms coverage).
List skills that were skipped (not installed or not applicable) so the user knows what wasn't covered.
Prioritized action items. If external skills need installation, list the install commands.
If the project has an artifacts folder, offer to invoke /artifacts problems to record findings in problems.md.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub rexynexus/agent-skills --plugin agent-skills