Registry Loader - Component Discovery and Registration System
Scans CODITECT framework for all components (agents, skills, commands, scripts, hooks, prompts) and populates JSON registries for runtime activation.
Part of Component Activation Infrastructure (Phase 2) Created: 2025-11-29
File: registry_loader.py
Classes
ComponentMetadata
Metadata for a CODITECT component
RegistryLoader
Load and validate CODITECT components
Functions
main()
Main entry point
to_dict()
Convert to dictionary for JSON serialization
scan_agents()
Scan agents/ directory for agent definitions
scan_skills()
Scan skills/ directory for skill definitions
scan_commands()
Scan commands/ directory for command definitions
scan_scripts()
Scan scripts/ directory for Python and shell scripts
scan_hooks()
Scan hooks/ directory for git hooks
scan_prompts()
Scan prompts/ directory for prompt templates
load_all_components()
Scan all component types
validate_component(component)
Validate component has required fields and valid path
export_to_json(output_path, component_type)
Export components to JSON registry file
Usage
python registry_loader.py