madappgang/claude-code/audit
Claude Code and agent skill by madappgang/claude-code
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
On-demand security and code quality audit. Use when checking for vulnerabilities, security issues, code smells, or compliance problems. Trigger keywords - "audit", "security check", "vulnerability scan", "code quality", "compliance", "security audit".
Install
npx vskill@latest install madappgang/claude-code/auditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Audit Skill
Overview
The audit skill provides comprehensive on-demand security and code quality audits for your codebase. It identifies vulnerabilities, security issues, code smells, outdated dependencies, exposed secrets, and compliance problems across all supported technology stacks.
When to Use:
- Security audits and vulnerability scans
- Pre-deployment security checks
- Compliance verification (GDPR, HIPAA, SOC2)
- Code quality assessment
- Dependency vulnerability scanning
- Secret exposure detection
- Third-party license compliance
Technology Coverage:
- React/TypeScript/JavaScript projects
- Go applications
- Rust projects
- Python codebases
- Full-stack applications
- Monorepos and microservices
Audit Categories
1. Security Vulnerabilities (OWASP Top 10)
What Gets Checked:
- SQL injection vulnerabilities
- Cross-site scripting (XSS)
- Authentication and session management flaws
- Security misconfigurations
- Sensitive data exposure
- XML external entities (XXE)
- Broken access control
- Cross-site request forgery (CSRF)
- Using components with known vulnerabilities
- Insufficient logging and monitoring
Detection Methods:
- Static code analysis
- Pattern matching for common vulnerabilities
- Framework-specific security checks
- API endpoint security validation
- Input validation analysis
2. Dependency Vulnerabilities
What Gets Checked:
- Outdated packages with known CVEs
- Unmaintained dependencies
- License compatibility issues
- Transitive dependency risks
- Version conflicts
Package Managers Supported:
- npm/yarn/pnpm (JavaScript/TypeScript)
- go.mod (Go)
- Cargo.toml (Rust)
- requirements.txt/pyproject.toml (Python)
- Gemfile (Ruby)
Tools Used:
npm audit/yarn audit/pnpm auditgo mod verify+ vulnerability databasescargo auditpip-audit/safety
3. Exposed Secrets and Credentials
What Gets Detected:
- Hardcoded API keys and tokens
- Database credentials
- Private keys and certificates
- OAuth tokens and secrets
- AWS/GCP/Azure credentials
- JWT secrets
- Encryption keys
Detection Patterns:
- Regex patterns for common secret formats
- Environment variable misuse
- Configuration file analysis
- Git history scanning (if requested)
- Common secret naming patterns
False Positive Reduction:
- Ignore test fixtures and mocks
- Respect
.gitignorepatterns - Check for proper environment variable usage
- Validate against
.env.exampletemplates
4. Code Quality Issues
What Gets Analyzed:
- Code complexity (cyclomatic complexity)
- Code duplication
- Dead code and unused exports
- Large functions and files
- Naming convention violations
- Magic numbers and hardcoded values
- Lack of error handling
- Poor separation of concerns
Metrics Calculated:
- Cyclomatic complexity per function
- Duplication percentage
- Lines of code (LOC) per file/function
- Comment-to-code ratio
- Test-to-code ratio
Running Audits
Full Audit
Run all audit categories:
The audit will:
- Scan all source files for vulnerabilities
- Check dependencies for known CVEs
- Search for exposed secrets
- Analyze code quality metrics
- Generate comprehensive report
Category-Specific Audits
Security Only:
Dependencies Only:
Secrets Only:
Code Quality Only:
Targeted Audits
Specific Directory:
Specific Files:
Pre-Deployment:
Audit Report Format
Severity Levels
Reports classify findings by severity:
- CRITICAL: Immediate security risk, exploitable vulnerability
- HIGH: Significant security or quality issue
- MEDIUM: Moderate issue that should be addressed
- LOW: Minor issue or code smell
- INFO: Informational finding, best practice suggestion
Report Structure
const query = SELECT * FROM users WHERE email = '${email}';
const query = db.prepare('SELECT * FROM users WHERE email = ?').bind(email);
const STRIPE_SECRET_KEY = "sk_live_abc123xyz789";
const STRIPE_SECRET_KEY = process.env.STRIPE_SECRET_KEY;
npm install lodash@latest
Integration with Dev Plugin
With Code Analysis Agent
Use code-analysis enrichment before audit:
This provides:
- Context-aware vulnerability detection
- Better false positive filtering
- Dependency graph analysis
With Test Architect Agent
Combine audit with test coverage:
With Optimize Skill
Security-performance trade-offs:
Best Practices
1. Regular Audits
Recommended Schedule:
- Daily: Dependency vulnerability scans (CI/CD)
- Weekly: Full security audit
- Pre-deployment: Comprehensive audit
- Post-incident: Targeted security review
2. Incremental Audits
For large codebases:
This focuses on recent changes and reduces noise.
3. Baseline and Track
First Audit:
Subsequent Audits:
Track improvements over time.
4. Prioritize by Risk
Focus on:
- User-facing authentication code
- Payment processing
- Data storage and retrieval
- API endpoints with PII
- Third-party integrations
5. Automate in CI/CD
GitHub Actions Example:
Pre-commit Hook:
Examples
Example 1: Pre-Deployment Security Audit
Request:
Audit Process:
- Scan all source files for OWASP top 10
- Check all dependencies for CVEs
- Search for exposed secrets
- Verify CORS and authentication config
- Check logging and monitoring setup
Report Highlights:
- 1 CRITICAL: Exposed database password
- 2 HIGH: Outdated dependencies with CVEs
- 5 MEDIUM: Missing input validation
- Compliance: 8/10 OWASP categories passing
Outcome: Deployment blocked until CRITICAL/HIGH fixed
Example 2: Dependency Vulnerability Scan
Request:
Process:
- Run
npm audit --json - Parse vulnerability reports
- Check for available fixes
- Identify breaking changes
Report:
Example 3: Compliance Check (GDPR)
Request:
Checks:
- Data retention policies
- User consent mechanisms
- Right to erasure implementation
- Data export functionality
- Encryption at rest and in transit
- Privacy policy references
- Third-party data sharing
Report:
Example 4: Code Quality Audit
Request:
Analysis:
- Complexity: 8 functions exceed threshold
- Duplication: 15% code duplication
- Dead code: 23 unused exports
- Large files: 4 files over 500 lines
- Magic numbers: 47 instances
Top Issues:
Stack-Specific Audit Patterns
React/TypeScript
Security Focus:
- XSS via dangerouslySetInnerHTML
- Insecure refs and DOM manipulation
- Exposed environment variables in client code
- CORS misconfigurations
Quality Focus:
- Prop types and TypeScript coverage
- Component complexity
- Hook dependencies
- Re-render performance
Go
Security Focus:
- SQL injection in database/sql
- Command injection in exec
- Path traversal
- Goroutine leaks
Quality Focus:
- Error handling consistency
- Context propagation
- Resource cleanup (defer)
- Race conditions
Rust
Security Focus:
- Unsafe blocks
- Integer overflow
- Memory leaks in FFI
- Dependency vulnerabilities
Quality Focus:
- Error propagation patterns
- Clippy warnings
- Documentation coverage
- Panic usage
Audit Workflow Integration
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/dev/skills/audit/SKILL.md
Popularity
- Repository stars
- 248
- Repository forks
- 28
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 1 Apr 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/madappgang/claude-code/audit)