---
title: "Validate Component" component_type: hook version: "1.0.0" audience: contributor status: stable summary: " Component Validation Hook for CODITECT" keywords: ['analysis', 'component', 'validate', 'validation'] tokens: ~1500 created: 2025-12-22 updated: 2025-12-22
Component Validation Hook for CODITECT
Validates new agents, skills, and commands against STANDARDS.md before creation. Ensures all components meet quality standards and architectural requirements.
Event: PreToolUse Matcher: tool_name: "Write" Trigger: When creating .coditect/agents/.md, .coditect/skills//SKILL.md, or .coditect/commands/*.md
File: validate_component.py
Functions
validate_agent(content)
Validate agent against STANDARDS.md
validate_skill(content)
Validate skill against STANDARDS.md
validate_command(content)
Validate slash command against STANDARDS.md
main()
Main hook entry point
Usage
python validate_component.py