complexity-analyzer
Automated Big-O complexity analysis of code and algorithms. Performs static analysis of loop structures, recursive call trees, space complexity estimation, and amortized analysis with detailed derivation documents.
npx skills add a5c-ai/babysitter --skill complexity-analyzer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# complexity-analyzer A specialized skill for automated analysis of algorithm time and space complexity, providing Big-O notation analysis, detailed derivations, and optimization recommendations. ## Purpose Analyze code and algorithms to determine: - Time complexity (Big-O, Big-Omega, Big-Theta) - Space complexity (auxiliary and total) - Amortized complexity for data structure operations - Complexity derivation with step-by-step reasoning - Optimization opportunities and bottleneck identification ## Capabilities ### Core Analysis Features 1. **Static Analysis** - Loop structure analysis (nested loops, dependent bounds) - Recursive call tree analysis - Function call graph traversal - Branch condition impact analysis 2. **Complexity Types** - **Time Complexity**: Worst, average, and best case analysis - **Space Complexity**: Stack space, heap allocations, auxiliary space - **Amortized Analysis**: Aggregate, accounting, and potential methods - **Recurrence Relations**: Master theorem, substitution method 3. **Output Formats** - Big-O notation with detailed derivation - Complexity comparison tables - Visual complexity graphs - Optimization recommendations ### Supported Languages - Pyth
- Purpose
- Capabilities
- Core Analysis Features
- Supported Languages
- Integration Options
- MCP Servers
- Web-Based Tools
- Usage
- Analyze Code Complexity
- Example Analysis
- Output Schema
- Analysis Patterns
- Loop Analysis
- Recursion Analysis
Provides AST parsing and complexity analysis npm install -g @angrysky56/ast-mcp-server Deep code understanding with data flow analysis npm install -g code-analysis-mcp Analyze a Python function complexity-analyzer analyze --file solution.py --function two_sum Analyze C++ code with detailed derivation complexity-analyzer analyze --file solution.cpp --verbose Compare multiple implementations complexity-analyzer compare --files impl1.py impl2.py impl3.py
What does the complexity-analyzer skill do?
Automated Big-O complexity analysis of code and algorithms. Performs static analysis of loop structures, recursive call trees, space complexity estimation, and amortized analysis with detailed derivation documents.
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill complexity-analyzer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
