Skip to content
Back to skills

General Purpose

ASecurity

Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
ai-agentspythongobashgit

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill general-purpose --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of General Purpose?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for General Purpose
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-general-purpose/badge)](https://www.skillsdirectory.com/skills/thedixitjain-general-purpose)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyze-skill
description: "Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading."
category: general-purpose
source_repo: athola/claude-night-market
source_path: "plugins/abstract/commands/analyze-skill.md"
source_url: https://github.com/athola/claude-night-market/blob/HEAD/plugins/abstract/commands/analyze-skill.md
---


# Analyze Skill Complexity

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

## When To Use

Use this command when you need to:
- Assessing skill file complexity before adding content
- Planning modularization strategies
- Checking if a skill needs to be split
- Validating progressive disclosure design

## When NOT To Use

Avoid this command if:
- Evaluating skill quality - use /skills-eval instead
- Estimating token usage only - use /estimate-tokens instead
- Creating new skills - use /create-skill instead

## Usage

```bash
# 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

```bash
/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

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

---

**Source:** [`athola/claude-night-market`](https://github.com/athola/claude-night-market) → `plugins/abstract/commands/analyze-skill.md`

Files in this skill

  • add-feature.md2.2 KB
  • add-language-rules.md1.4 KB
  • add-package-to-workspace.md4.2 KB
  • add-types-add-type-definitions.md2 KB
  • agentdb.md1.2 KB
  • aggregate-skill-execution-logs.md5.3 KB
  • analytics-advanced-advanced-analytics-and-reporting-dashboard.md15.3 KB
  • analyze-complexity-analyze-code-complexity.md2 KB
  • analyze-raptor-llm-analysis.md1.7 KB
  • analyze-skill.md2.7 KB
  • analyze-workflow.md1.2 KB
  • analyze.md11.1 KB
  • annotate.md5.1 KB
  • anti-patterns-creative-strategy.md13.3 KB
  • auto-fix-pr.md2.3 KB
  • auto-update.md2.1 KB
  • autopilot-status.md837 B
  • autopilot.md1.2 KB
  • backup.md3.5 KB
  • best-practices-command.md35.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.