/gabbe-coding:time-complexityfrom gabbe-coding
Estimates Big-O time complexity of functions, files, or directories via static analysis with the time-complexity MCP server. Lists performance hotspots for code review or optimization.
Ships in gabbe-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Estimate Big-O time complexity of functions, files, directories, or entire GitHub repositories using the time-complexity-mcp server — a static-analysis engine powered by tree-sitter. No code execution; code is parsed into ASTs and inspected.
time-complexity must be configured in your MCP config (see templates/core/MCP_CONFIG_TEMPLATE.json).git in PATH (required only for analyze_github_repo).JavaScript (.js, .mjs, .cjs, .jsx), TypeScript (.ts, .tsx), Python (.py), Java (.java), Go (.go), PHP (.php), Dart (.dart), Kotlin (.kt, .kts).
| Tool | Purpose |
|---|---|
analyze_file | Analyze all functions in a single source file |
analyze_function | Analyze a specific named function in a file |
analyze_directory | Scan an entire directory for complexity hotspots |
analyze_github_repo | Clone and analyze a public GitHub repo (requires git) |
get_supported_languages | List all file extensions the server can parse |
for, while, do-while with depth tracking. Constant-bound loops (e.g., for i in range(10)) recognized as O(1)..sort() as O(n log n), .filter()/.map() as O(n), .push()/.pop() as O(1). Each language has its own patterns.Results include per-function complexity with:
Scope the analysis
analyze_functionanalyze_fileanalyze_directoryanalyze_github_repoInterpret results
Act on findings
refactor.skill to restructure high-complexity functions.performant-*.skill for language-specific optimizations.TIME_COMPLEXITY_REPORT_TEMPLATE.md.Integrate into workflow
code-review.skill) to flag regression.TIME_COMPLEXITY_REPORT_TEMPLATE.md: Structured complexity analysis with hotspots and recommendations.> Analyze the complexity of src/utils/sort.ts
> What's the complexity of the fibonacci function in recursion.py?
> Scan src/ for complexity hotspots
> Analyze the complexity of facebook/react
> Analyze https://github.com/expressjs/express, focus on the lib/ directory
analyze_github_repo clones a remote repository: tell the human first, and clone into a temporary directory outside the project.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
JavaScript, TypeScript, Python, Java, Go, PHP, Dart, Kotlin
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coding30 skills in this plugin
/agent-trajectory-evalScore an agent's run by its tool calls and state transitions, not only its final answer: tool and parameter F1, in-order match, legal transitions, pass^k. Use when you evaluate how an agent reached an answer or need a reliability figure over repeated runs./artisan-commandsRun Laravel Artisan commands safely: check the project and environment, run the command, verify the result. Use when the user asks to scaffold a controller or model, run migrations or manage a Laravel app with php artisan./browser-tddWrite Playwright tests that check a UI in a real browser (DOM, computed styles, scroll, screenshots) before the code. Use when a UI task is about layout, sticky or fixed elements, modals, animations or anything that only works when it renders correctly.Other plugins' skills for the same job