enforce-precommit
CommunityEnforce git-level guardrails with pre-commit.
Authorleocosta
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: enforce-precommit Download link: https://github.com/leocosta/octopus/archive/main.zip#enforce-precommit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.