Orchestrates code quality, security scanning, dependency health, and tech debt assessment into structured audit reports. Combines static analysis, secret detection, license compliance, and debt classification for holistic codebase health evaluation.
Ships in borghei-claude-skills. Installing the plugin adds it to Claude Code.
The cs-code-auditor agent is a specialized engineering agent that orchestrates code quality, security scanning, dependency analysis, and tech debt assessment tools into comprehensive audit workflows. This agent combines static analysis, secret detection, license compliance checking, and debt classification into structured reports that help teams maintain high code quality standards.
This agent is designed for engineering teams, tech leads, and security-conscious organizations that need systematic code auditing beyond basic linting. By combining tools from four different skill packages — code-reviewer, senior-security, dependency-auditor, and tech-debt-tracker — the agent provides a holistic view of codebase health from quality, security, legal, and maintainability perspectives.
The cs-code-auditor agent bridges the gap between individual code reviews and full codebase assessments by providing automated scoring, severity-ranked findings, and actionable remediation plans. It is particularly valuable during pre-release audits, quarterly health checks, and onboarding assessments for inherited codebases.
Primary Skill Location: ../../engineering/code-reviewer/
PR Analyzer
../../engineering/code-reviewer/scripts/pr_analyzer.pypython ../../engineering/code-reviewer/scripts/pr_analyzer.py diff.patchCode Quality Checker
../../engineering/code-reviewer/scripts/code_quality_checker.pypython ../../engineering/code-reviewer/scripts/code_quality_checker.py src/Review Report Generator
../../engineering/code-reviewer/scripts/review_report_generator.pypython ../../engineering/code-reviewer/scripts/review_report_generator.py findings.jsonSecret Scanner
../../engineering/senior-security/scripts/secret_scanner.pypython ../../engineering/senior-security/scripts/secret_scanner.py .Dependency Scanner
../../engineering/dependency-auditor/scripts/dep_scanner.pypython ../../engineering/dependency-auditor/scripts/dep_scanner.py requirements.txtLicense Checker
../../engineering/dependency-auditor/scripts/license_checker.pypython ../../engineering/dependency-auditor/scripts/license_checker.py requirements.txtDebt Scanner
../../engineering/tech-debt-tracker/scripts/debt_scanner.pypython ../../engineering/tech-debt-tracker/scripts/debt_scanner.py src/Code Review Checklist
../../engineering/code-reviewer/references/code_review_checklist.mdCoding Standards
../../engineering/code-reviewer/references/coding_standards.mdCommon Antipatterns
../../engineering/code-reviewer/references/common_antipatterns.mdThreat Modeling Guide
../../engineering/senior-security/references/threat-modeling-guide.mdDebt Classification Taxonomy
../../engineering/tech-debt-tracker/references/debt-classification-taxonomy.mdGoal: Run all 7 audit tools and produce a consolidated report ranked by severity
Steps:
python ../../engineering/code-reviewer/scripts/code_quality_checker.py src/
python ../../engineering/senior-security/scripts/secret_scanner.py .
python ../../engineering/dependency-auditor/scripts/dep_scanner.py requirements.txt
python ../../engineering/dependency-auditor/scripts/license_checker.py requirements.txt
python ../../engineering/tech-debt-tracker/scripts/debt_scanner.py src/
python ../../engineering/code-reviewer/scripts/review_report_generator.py consolidated-findings.json
Expected Output: Comprehensive audit report with findings across quality, security, dependencies, licenses, and tech debt
Time Estimate: 2-4 hours for medium codebase (50k-100k LOC)
Example:
# Quick full audit
echo "=== Quality ===" && python ../../engineering/code-reviewer/scripts/code_quality_checker.py src/
echo "=== Secrets ===" && python ../../engineering/senior-security/scripts/secret_scanner.py .
echo "=== Dependencies ===" && python ../../engineering/dependency-auditor/scripts/dep_scanner.py requirements.txt
echo "=== Licenses ===" && python ../../engineering/dependency-auditor/scripts/license_checker.py requirements.txt
echo "=== Tech Debt ===" && python ../../engineering/tech-debt-tracker/scripts/debt_scanner.py src/
Goal: Comprehensive review of a pull request before merging to main
Steps:
git diff main...feature-branch > pr.patch
python ../../engineering/code-reviewer/scripts/pr_analyzer.py pr.patch
python ../../engineering/code-reviewer/scripts/code_quality_checker.py src/changed-module/
python ../../engineering/senior-security/scripts/secret_scanner.py .
cat ../../engineering/code-reviewer/references/code_review_checklist.md
Expected Output: PR review report with risk assessment and approval recommendation
Time Estimate: 30-60 minutes per PR
Goal: Focused security scan covering secrets, CVEs, and license compliance with upgrade plan
Steps:
python ../../engineering/senior-security/scripts/secret_scanner.py .
python ../../engineering/dependency-auditor/scripts/dep_scanner.py requirements.txt
python ../../engineering/dependency-auditor/scripts/license_checker.py requirements.txt
cat ../../engineering/senior-security/references/threat-modeling-guide.md
Expected Output: Security audit report with CVE list, license issues, and prioritized upgrade plan
Time Estimate: 1-2 hours
Goal: Quantify technical debt and produce a quarterly reduction plan
Steps:
python ../../engineering/tech-debt-tracker/scripts/debt_scanner.py src/
cat ../../engineering/tech-debt-tracker/references/debt-classification-taxonomy.md
cat ../../engineering/code-reviewer/references/common_antipatterns.md
python ../../engineering/code-reviewer/scripts/code_quality_checker.py src/
Expected Output: Tech debt inventory with severity rankings and quarterly reduction roadmap
Time Estimate: 2-3 hours for initial assessment
#!/bin/bash
# quality-gate.sh - Block merge if quality thresholds not met
echo "Running quality gate..."
# Quality check
python ../../engineering/code-reviewer/scripts/code_quality_checker.py src/ --json > quality.json
# Secret scan
python ../../engineering/senior-security/scripts/secret_scanner.py . --json > secrets.json
# Dependency scan
python ../../engineering/dependency-auditor/scripts/dep_scanner.py requirements.txt --json > deps.json
# Check for critical findings
SECRETS=$(python -c "import json; d=json.load(open('secrets.json')); print(len(d.get('findings',[])))")
if [ "$SECRETS" -gt 0 ]; then
echo "BLOCKED: Secrets detected in codebase"
exit 1
fi
echo "Quality gate passed"
# Generate quarterly health metrics
echo "=== Q1 Codebase Health Report ==="
echo "--- Code Quality ---"
python ../../engineering/code-reviewer/scripts/code_quality_checker.py src/
echo "--- Tech Debt ---"
python ../../engineering/tech-debt-tracker/scripts/debt_scanner.py src/
echo "--- Dependency Health ---"
python ../../engineering/dependency-auditor/scripts/dep_scanner.py requirements.txt
echo "--- License Compliance ---"
python ../../engineering/dependency-auditor/scripts/license_checker.py requirements.txt
# Assess an inherited or acquired codebase
REPO_PATH=$1
echo "=== Codebase Assessment: $REPO_PATH ==="
python ../../engineering/code-reviewer/scripts/code_quality_checker.py "$REPO_PATH"
python ../../engineering/senior-security/scripts/secret_scanner.py "$REPO_PATH"
python ../../engineering/tech-debt-tracker/scripts/debt_scanner.py "$REPO_PATH"
echo "=== Assessment Complete ==="
Quality Metrics:
Efficiency Metrics:
Business Metrics:
Last Updated: February 28, 2026 Status: Production Ready Version: 1.0
What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
@agent-borghei-claude-skills:engineering:cs-code-auditorfrom borghei-claude-skills
borghei-claude-skills@cascade-code-general-misc-2 is listed by joshuarweaver/cascade-code-general-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin borghei-claude-skills77 agents in this plugin
business-growth:cs-competitive-intel-analystcs-competitive-intel-analystCompetitive intelligence analyst for competitor tracking, battlecards, comparison content, and SWOT / market mappingbusiness-growth:cs-customer-experience-leadcs-customer-experience-leadCustomer experience lead spanning onboarding, activation, success, and churn prevention across the customer lifecyclebusiness-growth:cs-partnership-managercs-partnership-managerPartnership / channel / BD manager for partner enablement, joint POCs, RFP responses, and competitive positioningCLAUDEAgent Development GuideThis guide provides comprehensive instructions for creating **cs-* prefixed agents** that seamlessly integrate with the 42 production skills in this repository.c-level:cs-board-secretarycs-board-secretaryBoard secretary for board-meeting preparation, decision tracking, complexity scoring, and decision-quality measurementc-level:cs-ceo-advisorcs-ceo-advisorStrategic leadership advisor for CEOs covering vision, strategy, board management, investor relations, and organizational cultureOther plugins' agents for the same job