/software-engineering:audit-codebase [optional: focus area e.g., 'security', 'performance', 'best-practices']from software-engineering
Runs parallel Sonnet agents to audit codebase for security vulnerabilities, performance issues, and best practices adherence. Produces a prioritized report with severity-ranked findings.
Ships in software-engineering. 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 the code for potential security vulnerabilities, performance issues, and adherence to best practices. Provide a detailed report with recommendations for improvements.
Discover Codebase Structure: Use Glob and Bash to identify key directories and file types to audit.
Launch 3 parallel Sonnet agents to independently audit different aspects of the codebase:
Agent #1: Security Auditor
{severity: "CRITICAL"|"HIGH"|"MEDIUM"|"LOW", file: "path/to/file.ext", line: N, finding: "...", recommendation: "..."}Agent #2: Performance Analyzer
{severity: "CRITICAL"|"HIGH"|"MEDIUM"|"LOW", file: "path/to/file.ext", line: N, finding: "...", recommendation: "..."}Agent #3: Best Practices Reviewer
{severity: "CRITICAL"|"HIGH"|"MEDIUM"|"LOW", file: "path/to/file.ext", line: N, finding: "...", recommendation: "..."}Aggregate Results: Collect findings from all 3 agents and merge into unified report.
Prioritize Findings: Sort by severity (Critical → High → Medium → Low) within each category.
Use the Task tool to launch agents in parallel:
Task(subagent_type: "security-auditor", model: "sonnet", prompt: "Audit codebase for security vulnerabilities. Focus on: exposed secrets, injection attacks, auth mechanisms, error handling, dependency security. Return findings with severity levels.")
Task(subagent_type: "general-purpose", model: "sonnet", prompt: "Analyze codebase for performance issues. Focus on: inefficient code paths, memory leaks, database queries, caching strategies. Return findings with severity levels.")
Task(subagent_type: "general-purpose", model: "sonnet", prompt: "Review codebase for best practices adherence. Focus on: coding standards, documentation, test coverage, refactoring opportunities. Return findings with severity levels.")
Note: These agents run concurrently and independently, with no cross-dependencies.
Provide a comprehensive report summarizing findings and actionable recommendations for each area reviewed. Use the following format for the report:
# Codebase Audit Report
## Summary
- **Files Analyzed**: N files
- **Total Findings**: N (🔴 X Critical, 🟠 Y High, 🟡 Z Medium, 🟢 W Low)
## Security 🔒 [Score: X/5 ⭐⭐⭐⭐☆]
- 🔴 **CRITICAL** `auth/handler.go:45` - [Finding description]
- Recommendation: [Actionable recommendation]
- 🟠 **HIGH** `config/secrets.go:12` - [Finding description]
- Recommendation: [Actionable recommendation]
- 🟡 **MEDIUM** `api/middleware.go:89` - [Finding description]
- Recommendation: [Actionable recommendation]
- 🟢 **LOW** `utils/logger.go:23` - [Finding description]
- Recommendation: [Actionable recommendation]
## Performance ⚡ [Score: X/5 ⭐⭐⭐⭐☆]
- 🔴 **CRITICAL** `db/queries.go:156` - [Finding description]
- Recommendation: [Actionable recommendation]
- 🟡 **MEDIUM** `api/handler.go:78` - [Finding description]
- Recommendation: [Actionable recommendation]
## Best Practices 📋 [Score: X/5 ⭐⭐⭐⭐☆]
- 🟠 **HIGH** `internal/service.go:34` - [Finding description]
- Recommendation: [Actionable recommendation]
- 🟢 **LOW** `cmd/main.go:15` - [Finding description]
- Recommendation: [Actionable recommendation]
## Action Items (Prioritized)
1. 🔴 [Most critical fix with file:line reference]
2. 🔴 [Next critical fix]
3. 🟠 [High priority fix]
4. 🟡 [Medium priority fix]
Severity badges:
Scoring: Rate each category 1-5 stars based on finding density and severity.
Ensure the report is clear, concise, and prioritized based on the severity of the findings. Sort findings within each category from highest to lowest severity.
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/analyze-and-create-issueAnalyze codebase and create GitHub/GitLab/Forgejo issues per finding/analyze-prReview PR for quality, security, and coverage (GitHub/GitLab/Forgejo)/auto-mrPush current branch, create MR/PR on GitHub, GitLab, or Forgejo, wait for CI pipeline, merge, and clean up branch using auto-mr CLI/check-claude-md-tokensMonitor and optimize CLAUDE.md token count to stay under 2500 token limit/commitCreate conventional commit from staged changes with approval/create-issueCreate formatted GitHub/GitLab/Forgejo issue with approvalnpx claudepluginhub sgaunet/claude-plugins --plugin software-engineeringOther plugins' skills for the same job