audit

Scan codebases for Code Highway Patrol law violations and generate reports.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/code-highway-patrol/chp --skill audit-code-highway-patrol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit
Source: https://github.com/code-highway-patrol/chp/tree/main/.claude-plugin/plugins/chp/skills/audit
Command: npx skills add https://github.com/code-highway-patrol/chp --skill audit-code-highway-patrol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assesses the health of your codebase by scanning for violations of Code Highway Patrol laws and providing a detailed report.

Core Features & Use Cases

  • Codebase Analysis: Scan for CHP law violations across your codebase.
  • Health Report: Get a comprehensive report on the current state of your code.
  • Use Case: Before deploying a new version of your application, use the audit skill to ensure there are no critical issues.

Quick Start

Run a full audit of your codebase with the command: ./commands/chp-scan

Frequently Asked Questions about audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan my codebase for code quality and security violations?

A codebase health audit scans your source code using defined Code Highway Patrol rules to detect quality and security violations. It parses law definitions and scan results to provide a comprehensive health report for your codebase.

Can I run a code audit in pre-commit hooks or pull request reviews?

Yes, you can run a code audit in pre-commit hooks and pull request reviews. The CHP scanner applies defined law definitions to evaluate codebase health and identify violations before changes are merged.

What is a codebase health check and when do I need to run one?

A codebase health check evaluates your code for violations of defined coding standards and laws. You should run it during periodic reviews, before pull request merges, or before deploying a new application version to ensure no critical issues exist.

How do I get a comprehensive health report for my codebase?

You get a comprehensive health report for your codebase by running the CHP scanner command. It parses law definitions and scan results to produce a detailed report on the current state of your code and any CHP violations.

Does the code audit require any specific dependencies or environment setup?

No specific dependencies are required to run the code audit. The Skill operates independently using built-in scripts and references to execute the CHP scanner and parse law definitions and scan results.

Why should I use a CHP law scanner instead of other code quality tools?

A CHP law scanner provides specialized rule enforcement by parsing defined Code Highway Patrol laws and standards. It delivers targeted codebase health reports for pre-commit hooks and PR reviews, ensuring critical issues are caught before deployment.