athola

commands

@athola/commands
athola
120
14 forks
Updated 1/18/2026
View on GitHub

analyze-skill: Analyze skill complexity and get modularization recommendations

Installation

$skills install @athola/commands
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathplugins/abstract/commands/analyze-skill.md
Branchmaster
Scoped Name@athola/commands

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions


name: analyze-skill description: | Analyze skill complexity and get modularization recommendations.

Triggers: analyze skill, skill complexity, skill metrics, modularization, skill size, skill structure, skill analysis, complexity analysis

Use when: assessing skill file complexity before adding content, planning modularization strategies, checking if a skill needs to be split, validating progressive disclosure design

DO NOT use when: evaluating skill quality - use /skills-eval instead. DO NOT use when: estimating token usage only - use /estimate-tokens instead. DO NOT use when: creating new skills - use /create-skill instead.

Use this command to understand skill complexity before modularizing. usage: /analyze-skill [skill-path]

Analyze Skill Complexity

Analyzes a skill file for complexity metrics and provides modularization recommendations based on the modular-skills framework.

Usage

# Analyze specific skill file
/analyze-skill skills/my-skill/SKILL.md

# Analyze skill directory
/analyze-skill skills/my-skill

# Analyze current directory (if in a skill folder)
/analyze-skill .

What It Analyzes

The analyzer evaluates several complexity dimensions:

Metrics Collected

  • Line count: Total lines vs threshold (default: 150)
  • Word/character count: Content density indicators
  • Theme sections: Number of # level headings
  • Subsections: Number of ## level headings
  • Code blocks: Embedded code examples
  • Estimated tokens: Context window impact

Recommendations Generated

  • MODULARIZE: File exceeds thresholds, should be split
  • CONSIDER: Approaching limits, evaluate for future growth
  • OK: Within acceptable complexity bounds

Examples

/analyze-skill skills/modular-skills/SKILL.md
# Output:
# === Analysis for: skills/modular-skills/SKILL.md ===
# Line count: 180 (threshold: 150)
# Estimated tokens: 1,847
# === Recommendations ===
# MODULARIZE: File exceeds threshold (180 > 150)
# GOOD: Token usage in optimal range

/analyze-skill skills/skills-eval --verbose
# Includes detailed section breakdown

Integration with Modular Skills

This command is the first step in the modular-skills workflow:

  1. Analyze → Use this command to assess complexity
  2. Design → Plan module structure based on recommendations
  3. Estimate → Use /estimate-tokens for token budgeting
  4. Validate → Use /skills-eval for quality checks

Implementation

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/skill_analyzer.py --file "${1:-.}"