What problem does it solve?
Install and maintain a pre-commit framework config (.pre-commit-config.yaml
by default, or lefthook/husky) aligned with the project's Octopus rules —
the git-level enforcement loop hooks can't cover for Copilot or direct human
commits. Detects the stack, infers checks from rules/common, merges
idempotently by hook id. Guardrails bundle.
Core Features & Use Cases
- Detects active stacks and maps them to appropriate hooks (formatting, linting, and policy checks) to ensure consistency across repositories.
- Merges new guardrails configurations with existing user configs without overwriting customized rules, preserving user intent.
- Provides drift detection and guidance to reconcile differences between declared rules and actual hooks in the repository.
Quick Start
Install and configure the pre-commit framework in your repository to enforce project-wide guardrails.