Skip to main content

---

title: "Standards Compliance" component_type: hook version: "1.0.0" audience: contributor status: stable summary: " Standards Compliance Validation Hook for CODITECT" keywords: ['api', 'compliance', 'git', 'security', 'standards'] tokens: ~1500 created: 2025-12-22 updated: 2025-12-22

Standards Compliance Validation Hook for CODITECT

Enforces STANDARDS.md compliance for all code changes. Prevents modifications that violate architectural decisions and naming conventions.

Event: PreToolUse Matcher: tool_name = "Edit" Trigger: When editing any .py, .sh, .md files

File: standards_compliance.py

Classes

ComplianceChecker

Checks code compliance against STANDARDS.md

Functions

main()

Main hook entry point

load_standards()

Load STANDARDS.md

check_file_naming(file_path)

Check file naming conventions

check_content_standards(file_path, content)

Check content against standards

check_security(file_path, content)

Check for security issues

check_all(file_path, content)

Run all compliance checks

Usage

python standards_compliance.py