Agent skill

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.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill complexity-analyzer --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Version: 1.0
Declared author: babysitter-sdk
Allowed tools: BashReadWriteGrepGlob
Path: library/specializations/algorithms-optimization/skills/complexity-analyzer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Purpose
  2. Capabilities
  3. Core Analysis Features
  4. Supported Languages
  5. Integration Options
  6. MCP Servers
  7. Web-Based Tools
  8. Usage
  9. Analyze Code Complexity
  10. Example Analysis
  11. Output Schema
  12. Analysis Patterns
  13. Loop Analysis
  14. Recursion Analysis
Ships with 1 file
  • README.md
Commands it runs
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
More from babysitter
All skills →
About this skill
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.

Keep going