pre-commit-review

Route staged changes to governance domains and produce a go/no-go recommendation.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/qdhenry/Foundry-OSS --skill pre-commit-review-qdhenry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-commit-review
Source: https://github.com/qdhenry/Foundry-OSS/tree/main/.claude/governance/skills/pre-commit-review
Command: npx skills add https://github.com/qdhenry/Foundry-OSS --skill pre-commit-review-qdhenry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool automates a comprehensive review of all staged changes before committing, routing files to the appropriate governance domains and producing a clear go/no-go decision.

Core Features & Use Cases

  • Classifies modified files by governance domain (security, architecture, design) to ensure proper review.
  • Generates a deterministic go/no-go recommendation with findings and required fixes.
  • Integrates into pre-commit workflows to prevent unsafe or non-compliant commits.

Quick Start

Stage your changes and run the pre-commit review before committing to ensure governance routing and a recommended action.

Frequently Asked Questions about pre-commit-review

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

FAQPage Schema
How do I automate code review for staged git changes before committing?

Automating code review for staged git changes involves routing each modified file to governance domains like security and architecture, then generating a deterministic go/no-go recommendation with required fixes to prevent unsafe commits.

What is a pre-commit governance review and how does it work?

A pre-commit governance review classifies staged files by domain such as security or architecture, flags findings, and produces an auditable go/no-go decision to ensure non-compliant or unsafe code is blocked before entering the commit workflow.

How do I block non-compliant commits using a pre-commit hook?

You can block non-compliant commits by integrating a governance review into your pre-commit workflow, which evaluates staged changes against domain rules and halts the process with required fixes for any blocking issues found.

Does pre-commit governance routing work for security and architecture reviews?

Yes, governance routing works for security and architecture reviews by classifying modified files into appropriate domains, ensuring each file receives the correct evaluation and contributing to a deterministic go/no-go recommendation.

What is the best way to ensure deterministic code review before committing?

The best way to ensure deterministic code review is to route staged files to specific governance domains for evaluation, producing an auditable go/no-go recommendation that safely integrates into the commit workflow and specifies required fixes.

Why does my pre-commit review flag blocking issues without specifying fixes?

A proper pre-commit governance review must specify required fixes for any blocking issues it flags, ensuring the process remains deterministic and auditable while safely integrating into the commit workflow to prevent unsafe commits.