vcp-pre-commit-review

Analyze staged files against VCP standards and output a PASS or BLOCK verdict.

14|3|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/Z-M-Huang/vcp --skill vcp-pre-commit-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vcp-pre-commit-review
Source: https://github.com/Z-M-Huang/vcp/tree/main/plugins/vcp/skills/vcp-pre-commit-review
Command: npx skills add https://github.com/Z-M-Huang/vcp --skill vcp-pre-commit-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review staged or changed files against all applicable VCP standards before committing, producing a PASS/BLOCK verdict to help keep code compliant.

Core Features & Use Cases

  • Pre-commit validation: analyzes the current commit set and applies all relevant VCP standards to determine pass/fail.
  • Config-driven checks: loads project configuration from .vcp/config.json and respects ignore rules to tailor findings.
  • Clear verdict reporting: reports per-file findings with severity and aggregates a global PASS or BLOCK verdict for CI or local use.
  • CI integration-ready: outputs structured results suitable for use in automated pipelines and developer workflows.

Quick Start

Stage changes and run the pre-commit review to verify compliance before committing.

Frequently Asked Questions about vcp-pre-commit-review

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

FAQPage Schema
How do I enforce code quality and security standards before a git commit?

To enforce code quality and security standards before a commit, you can analyze staged files against VCP rules to produce a PASS or BLOCK verdict. This pre-commit review mechanism loads project configurations, filters findings with ignore rules, and outputs structured results.

Can I integrate pre-commit code review checks into my CI pipeline?

Yes, you can integrate pre-commit code review checks into your CI pipeline. The review process outputs a structured global PASS or BLOCK verdict with per-file severity findings, which is specifically designed for automated workflows and CI integration.

How does pre-commit validation handle multi-file changes across different programming languages?

Pre-commit validation handles multi-file changes across varied languages by analyzing the entire current commit set. It resolves configuration via a dedicated pluginRoot, loads all applicable VCP standards dynamically, and applies them uniformly to produce a global compliance verdict.

Do I need a specific configuration file to ignore certain files during a pre-commit code review?

Yes, you need a .vcp/config.json configuration file to manage ignore rules during a pre-commit code review. This config-driven approach allows the review process to respect your ignore rules and tailor findings specifically to your project requirements.

What is the best way to block non-compliant code from being committed locally?

The best way to block non-compliant code locally is to run a pre-commit review that analyzes staged changes against VCP standards. It generates a BLOCK verdict if violations are found, preventing the commit until the reported per-file findings are resolved.

Why does my pre-commit review report a BLOCK verdict even when I only changed a few lines?

A pre-commit review reports a BLOCK verdict because it analyzes all staged or changed files against applicable VCP standards, not just individual line counts. It aggregates per-file severity findings into a global decision, meaning any unresolved violation triggers a block.