Skip to main content

/component-stats - Component Statistics

Display CODITECT component counts and statistics by type.

System Prompt

EXECUTION DIRECTIVE: When /component-stats is invoked, IMMEDIATELY display component statistics.

Usage

/component-stats            # Summary by type
/component-stats --full # Detailed breakdown
/component-stats --type agents # Specific type
/component-stats --growth # Growth over time
/component-stats --json # JSON output

Execution

~/.coditect/scripts/component-stats.sh
~/.coditect/scripts/component-stats.sh --full
~/.coditect/scripts/component-stats.sh --type agents

Data Source

Primary source: ~/.coditect/config/component-counts.json

# Update counts
python3 ~/.coditect/scripts/update-component-counts.py

Output Format

Summary

======================================================================
CODITECT Component Statistics
======================================================================

Component Type Count % of Total
-------------- ----- ----------
Agents 776 22.4%
Skills 445 12.9%
Commands 377 10.9%
Scripts 581 16.8%
Hooks 118 3.4%
Standards 15 0.7%
ADRs 64 3.0%
Guides 45 2.1%
Workflows 52 2.5%
Templates 38 1.8%
Other 901 42.6%
-------------- ----- ----------
Total 3,458 100.0%

Last Updated: 2026-01-15T05:00:00Z

======================================================================

Detailed (--full)

======================================================================
CODITECT Component Statistics (Detailed)
======================================================================

Agents (152)
------------
By Category:
Architecture: 12
Development: 45
DevOps: 23
Security: 18
Testing: 15
Documentation: 22
Specialized: 17

By Model Binding:
claude-sonnet-4: 85
claude-opus-4: 12
claude-haiku-4: 34
unbound: 21

Skills (221)
------------
By Domain:
Backend: 45
Frontend: 38
Infrastructure: 42
Security: 25
Testing: 31
Patterns: 40

...

======================================================================

Implementation

#!/bin/bash
# Read from config
CONFIG="$HOME/.coditect/config/component-counts.json"

if [ -f "$CONFIG" ]; then
python3 -c "
import json
with open('$CONFIG') as f:
data = json.load(f)
for k, v in data.items():
print(f'{k}: {v}')
"
else
# Count dynamically
echo "Agents: $(find ~/.coditect/agents -name '*.md' | wc -l)"
echo "Skills: $(find ~/.coditect/skills -name 'SKILL.md' | wc -l)"
echo "Commands: $(find ~/.coditect/commands -name '*.md' | wc -l)"
echo "Scripts: $(find ~/.coditect/scripts -type f | wc -l)"
fi
CommandPurpose
/agent-usageAgent usage stats
/whichFind agents
/health-checkSystem health

Version: 1.0.0 Created: 2026-01-15 Author: CODITECT Team