fix-slow-endpoint
Skill by vpcarlos
Diagnoses and fixes slow endpoints in Python web apps using Profyle traces. It replays the request and compares traces to prove the fix. Built for developers who see high latency, timeouts or unknown bottlenecks.
Install fix-slow-endpoint
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vpcarlos/profyle /tmp/profyle && mkdir -p ~/.claude/skills && cp -r /tmp/profyle/profyle/claude ~/.claude/skills/fix-slow-endpointRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vpcarlos/profyle /tmp/profyle && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/profyle/profyle/claude ~/.gemini/antigravity-cli/skills/fix-slow-endpointAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through diagnosing and fixing a slow endpoint or request in a Python web app. It supports FastAPI, Flask, Django, Tornado and other ASGI or WSGI frameworks. It relies on real Profyle or VizTracer traces read through the profyle MCP server, so claims about where time goes come from measurements.
The workflow checks the setup, starts the app under profyle run without editing the user's code, and records a baseline by replaying the request. It then analyzes the trace for repeated calls, blocking I/O and other hot spots. After a fix, it replays the request again and compares traces to confirm the response is unchanged and the bottleneck is gone. It is aimed at developers who report slow endpoints, high latency or timeouts.
Written from the project's SKILL.md and checked against it.
What it can do
- doctorReports which trace database is read, whether traces exist and whether the app is running.
- slowest_endpointsLists the slowest endpoints so the user can choose which one to work on.
- list_tracesFinds traces for a named endpoint or request.
- analyze_traceShows the critical path, repeated calls and top self time in a trace.
- get_call_detailsShows callers, callees and slowest invocations of a function, with arguments and return values.
- get_function_sourceShows the code of a function as it was when the trace was recorded.
- replay_requestReplays a recorded request several times to get a median baseline and check the response.
- compare_tracesCompares a baseline trace with a new trace for status, response body and timings.
What you need
- Python web app (FastAPI, Flask, Django, Tornado or an ASGI/WSGI framework)
- Profyle installed in the project environment
- profyle MCP server
Try asking
- Why is my /orders endpoint slow? Trace it and find the bottleneck.
- Show me the slowest endpoints in this FastAPI app.
- Replay the baseline request and compare traces after my fix.
Good to know
- Replays POST, PUT, PATCH and DELETE requests only with the user's explicit permission.
- Tracing adds about 1µs per function call, so functions with many calls look slower than they are.
- The first request after server start includes warm-up time and should not be diagnosed when a later trace exists.
- The baseline trace may have no recorded response body for Flask.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: profyle/claude/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to fix-slow-endpoint
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
fix-slow-endpoint: common questions
Does this skill edit my application code to add tracing?
No. It starts the app with profyle run without editing the user's code, and it asks before installing anything.
Can it replay POST or DELETE requests?
Not without the user's explicit permission, because those requests may create or delete data.
Which frameworks does it support?
The description names FastAPI, Flask, Django and Tornado, and any ASGI or WSGI framework.
How do I install fix-slow-endpoint?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fix-slow-endpoint free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is fix-slow-endpoint safe to use?
It scores 70 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to fix-slow-endpoint?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
