silk-profiler
Skill by baserow
Investigates backend performance using Django Silk profiling data. It helps developers find slow endpoints, N+1 queries and query plans for a specific Baserow request.
Install silk-profiler
Built from the published package, never by AI.
git clone --depth 1 https://github.com/baserow/baserow /tmp/baserow && mkdir -p ~/.claude/skills && cp -r /tmp/baserow/.agents/skills/silk-profiler ~/.claude/skills/silk-profilerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/baserow/baserow /tmp/baserow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/baserow/.agents/skills/silk-profiler ~/.gemini/antigravity-cli/skills/silk-profilerAntigravity 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 investigating slow backend requests using Django Silk profiling data. Django Silk is enabled by default in development through BASEROW_ENABLE_SILK in dev.py. It records every HTTP request, its SQL queries and full Python stack traces into PostgreSQL. The user can provide a Silk URL, a request ID, an endpoint path or a description of the slow operation.
The skill runs read-only SQL queries against the Silk tables. It splits request time between database queries and Python code, groups queries by normalized text to detect N+1 patterns, and reads stored EXPLAIN plans. It also reads stack traces to find Baserow frames, then reads the source code before proposing fixes. It is aimed at developers working on the Baserow backend who need to diagnose slow endpoints.
Written from the project's SKILL.md and checked against it.
What it can do
- Find the requestSearches Silk requests by path pattern, slowest time or highest SQL query count.
- Split time spentCompares total request time with SQL query time to show whether Python or the database dominates.
- Detect N+1 patternsGroups SQL queries by normalized text to find the same query repeated with different IDs.
- Examine slow queriesLists the slowest individual SQL queries for a request and shows their full text.
- Analyze query plansReads the EXPLAIN output stored in the analysis column of silk_sqlquery.
- Read stack tracesFinds Baserow application frames in stored Python stack traces for a query.
- Propose fixesReads the source code and suggests select_related, prefetch_related, batching or indexes.
What you need
- Django Silk enabled in dev (BASEROW_ENABLE_SILK)
- Access to the PostgreSQL database used by Silk
- Docker or a local psql client
- Baserow backend source code
Try asking
- Investigate why deleting a table is slow in my Baserow dev setup.
- Find N+1 query patterns in this Silk request: <paste Silk URL>
- Show the slowest recent Silk requests and their SQL query counts.
Good to know
- Read-only queries only. No INSERT, UPDATE, DELETE or DDL.
- Do not enable SILKY_ANALYZE_QUERIES, as it re-executes UPDATE statements.
- Stored EXPLAIN plans are estimates. EXPLAIN ANALYZE must be run manually.
- meta_time_spent_queries is usually NULL, so time is computed from silk_sqlquery.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/silk-profiler/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to silk-profiler
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
silk-profiler: common questions
What does Django Silk record?
Silk records every HTTP request, its SQL queries and full Python stack traces into PostgreSQL. The skill reads these records to investigate performance.
Is Silk enabled by default?
In development, Silk is enabled by default through BASEROW_ENABLE_SILK in dev.py. The source says the slow operation must have been performed recently so Silk captured it.
Can this skill change my data?
No. The skill says to use read-only queries only and to ask the user before truncating Silk tables.
How do I install silk-profiler?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is silk-profiler free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is silk-profiler safe to use?
It scores 76 of 100. Grades: maintenance A, licence F, quality A. 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 silk-profiler?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
