Component Registry - Authoritative source of valid CODITECT components.
Provides validated lists of agents, commands, skills, and other components for cross-checking in retrospective analysis and skill optimization.
Usage: from scripts.core.component_registry import ComponentRegistry
registry = ComponentRegistry()
# Check if a skill is valid
if registry.is_valid_skill("classify"):
print("Valid!")
# Get all valid skill names
all_skills = registry.get_all_skills()
# Validate a list of detected skills
valid, invalid = registry.validate_skills(["classify", "fake-skill"])
File: component_registry.py
Classes
ComponentRegistry
Authoritative registry of all valid CODITECT components.
Functions
get_registry()
Get the singleton registry instance.
is_valid_skill(name)
Convenience function to check if a skill is valid.
validate_skills(skills)
Convenience function to validate a list of skills.
is_valid_skill(name)
Check if a name is a valid invocable skill/command/agent.
is_valid_agent(name)
Check if a name is a valid agent.
is_valid_command(name)
Check if a name is a valid command.
get_all_skills()
Get all valid invocable component names.
get_agents()
Get all valid agent names.
get_commands()
Get all valid command names.
get_skills_only()
Get skill names (from skills/ directory only).
validate_skills(skills)
Validate a list of detected skills.
get_stats()
Get component statistics.
export_registry(output_path)
Export the registry to a JSON file.
Usage
python component_registry.py