[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77SMHC145018NVZZESJB2YH":3,"skill-same:01M77SMHC145018NVZZESJB2YH":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M77SMHC145018NVZZESJB2YH","django-db-performance",null,"Diagnose and improve slow Django database-backed endpoints with evidence-first profiling, query-plan review, index selection, ORM loading fixes, batching, database-side computation, materialized views, and pagination choices. Use when a Django view, API, job, report, queryset, or database query is slow and the right optimization path is not obvious.","ConcertoNotes\u002Fcodex-plugins","ConcertoNotes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F249301288?v=4","01M77NJ0BK2KN5YW0D8RHD99TB","01M77NJ0CCEDPATAY3JTXEWNK5",0,"MIT","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-db-performance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: django-db-performance\ndescription: Diagnose and improve slow Django database-backed endpoints with evidence-first profiling, query-plan review, index selection, ORM loading fixes, batching, database-side computation, materialized views, and pagination choices. Use when a Django view, API, job, report, queryset, or database query is slow and the right optimization path is not obvious.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Django DB Performance\n  category: Django\n  tags: django,database,performance,orm,profiling\n---\n\n# Django DB Performance\n\nUse this as the orchestration skill for Django database performance work. Start with measured evidence, reproduce the slow path, and route to the smallest optimization that changes the measured bottleneck.\n\n## Core Workflow\n\n1. Capture the symptom.\n   - Identify the exact endpoint, command, task, report, or queryset.\n   - Record current wall-clock time, query count, slow SQL, database backend, data volume, and Django version.\n   - Keep the original request parameters or fixture that reproduces the issue.\n\n2. Profile before changing code.\n   - Use APM traces, database slow-query logs, Django Debug Toolbar, `connection.queries`, or targeted logging.\n   - If the expensive query is known, use `QuerySet.explain()` or database `EXPLAIN`.\n   - For API endpoints, profile serializers and permission checks as well as querysets.\n\n3. Classify the dominant problem.\n   - Many repeated similar queries: use `django-orm-query-optimization`.\n   - One or two expensive SQL statements: use `django-query-plan-reading` and `django-index-design`.\n   - Large memory use or long loops over querysets: use `django-queryset-batch-processing`.\n   - Python loops computing counts, totals, flags, or latest related rows: use `django-db-side-computation`.\n   - Slow aggregate\u002Freport query that is acceptable when stale: use `django-materialized-views`.\n   - Slow or inconsistent list pages: use `django-pagination-performance`.\n   - Unclear evidence: use `django-query-profiling`.\n\n4. Apply one change at a time.\n   - Prefer the narrowest change with a clear expected effect.\n   - Avoid adding indexes, prefetches, or materialized views speculatively.\n   - Confirm that the optimization helps real production-like data, not only tiny fixtures.\n\n5. Verify and document the result.\n   - Re-run the same request or command with the same parameters.\n   - Compare query count, total DB time, wall-clock time, memory, and query plan.\n   - Keep before\u002Fafter evidence in the PR or final report.\n\nSee [diagnostic-flow.md](references\u002Fdiagnostic-flow.md) for routing checklists, common symptoms, and before\u002Fafter evidence templates.\n\n## Modern Django Notes\n\n- Prefer `QuerySet.explain()` for ORM query plans before dropping to raw `EXPLAIN`.\n- Prefer native Django\u002FPostgreSQL migration operations such as `AddIndexConcurrently` over hand-written concurrent index SQL when they fit.\n- Prefer ORM expressions, `Subquery`, `Exists`, `Window`, `GeneratedField`, and `db_default` when they make database work explicit and portable enough.\n- Treat every backend-specific optimization as conditional on the project database. PostgreSQL patterns do not automatically apply to MySQL, MariaDB, SQLite, or Oracle.\n\n## Verification\n\n- Show the slow path is still functionally correct.\n- Show the measured bottleneck improved.\n- Show the optimization did not create a worse query, stale data bug, write-path regression, or memory spike.\n","# Django DB Performance\n\nUse this as the orchestration skill for Django database performance work. Start with measured evidence, reproduce the slow path, and route to the smallest optimization that changes the measured bottleneck.\n\n## Core Workflow\n\n1. Capture the symptom.\n   - Identify the exact endpoint, command, task, report, or queryset.\n   - Record current wall-clock time, query count, slow SQL, database backend, data volume, and Django version.\n   - Keep the original request parameters or fixture that reproduces the issue.\n\n2. Profile before changing code.\n   - Use APM traces, database slow-query logs, Django Debug Toolbar, `connection.queries`, or targeted logging.\n   - If the expensive query is known, use `QuerySet.explain()` or database `EXPLAIN`.\n   - For API endpoints, profile serializers and permission checks as well as querysets.\n\n3. Classify the dominant problem.\n   - Many repeated similar queries: use `django-orm-query-optimization`.\n   - One or two expensive SQL statements: use `django-query-plan-reading` and `django-index-design`.\n   - Large memory use or long loops over querysets: use `django-queryset-batch-processing`.\n   - Python loops computing counts, totals, flags, or latest related rows: use `django-db-side-computation`.\n   - Slow aggregate\u002Freport query that is acceptable when stale: use `django-materialized-views`.\n   - Slow or inconsistent list pages: use `django-pagination-performance`.\n   - Unclear evidence: use `django-query-profiling`.\n\n4. Apply one change at a time.\n   - Prefer the narrowest change with a clear expected effect.\n   - Avoid adding indexes, prefetches, or materialized views speculatively.\n   - Confirm that the optimization helps real production-like data, not only tiny fixtures.\n\n5. Verify and document the result.\n   - Re-run the same request or command with the same parameters.\n   - Compare query count, total DB time, wall-clock time, memory, and query plan.\n   - Keep before\u002Fafter evidence in the PR or final report.\n\nSee [diagnostic-flow.md](references\u002Fdiagnostic-flow.md) for routing checklists, common symptoms, and before\u002Fafter evidence templates.\n\n## Modern Django Notes\n\n- Prefer `QuerySet.explain()` for ORM query plans before dropping to raw `EXPLAIN`.\n- Prefer native Django\u002FPostgreSQL migration operations such as `AddIndexConcurrently` over hand-written concurrent index SQL when they fit.\n- Prefer ORM expressions, `Subquery`, `Exists`, `Window`, `GeneratedField`, and `db_default` when they make database work explicit and portable enough.\n- Treat every backend-specific optimization as conditional on the project database. PostgreSQL patterns do not automatically apply to MySQL, MariaDB, SQLite, or Oracle.\n\n## Verification\n\n- Show the slow path is still functionally correct.\n- Show the measured bottleneck improved.\n- Show the optimization did not create a worse query, stale data bug, write-path regression, or memory spike.\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":28},{"tags":24,"version":25,"category":26,"displayName":27},"django,database,performance,orm,profiling","0.1.0","Django","Django DB Performance","Codex, Claude Code, and other Agent Skills-compatible clients.","main","9ba3c9fadff1092395837bf1502e1b8a7f98b1e1","plugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-db-performance","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FConcertoNotes","2026-06-26 10:13:54",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ConcertoNotes\u002Fcodex-plugins --skill django-db-performance",{"tool":41,"command":42},"bunx","bunx skills add ConcertoNotes\u002Fcodex-plugins --skill django-db-performance",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ConcertoNotes\u002Fcodex-plugins --skill django-db-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-db-performance\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fdiagnostic-flow.md","REFERENCE","参考文档",2692,"https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Fdjango-db-performance\u002Freferences\u002Fdiagnostic-flow.md",[56,65,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":60,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M77YB7WW36DS9AERTWP673E0","android-emulator-qa","Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M77Y7AA8N45G6NM0WJSS2W9C","supabase-postgres-best-practices","Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsupabase\u002Fskills\u002Fsupabase-postgres-best-practices\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":60,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M77Y2W5H5YGSW7MYWEJ8HYXD","sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsentry\u002Fskills\u002Fsentry\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsentry\u002Fskills\u002Fsentry\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M77Y06GV1DAME7PN9KBFHWRX","render-workflows","Sets up, develops, tests, and deploys Render Workflows. Covers first-time scaffolding (via CLI or manual), SDK installation (Python or TypeScript), task patterns (retries, subtasks, fan-out), local development, Dashboard deployment, and troubleshooting. Use when a user wants to set up Render Workflows for the first time, scaffold a workflow service, add or modify workflow tasks, test workflows locally, or deploy workflows to Render.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-workflows\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M77Y01A6RJA8VYT7CZ2TVETF","render-web-services","Configures Render web services—port binding, TLS, health checks, custom domains, auto-deploy, PR previews, persistent disks, and deploy lifecycle. Use when the user needs to set up a web service, fix health check failures, add a custom domain, configure zero-downtime deploys, or troubleshoot port binding issues.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-web-services\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M77XZW1AZ6B6NZTWWFVY72T3","render-static-sites","Deploys and configures static sites on Render's global CDN—build commands, publish paths, SPA routing, redirects, custom headers, and PR previews. Use when the user needs to deploy a static site, set up a React\u002FVue\u002FHugo\u002FGatsby frontend, configure SPA fallback routing, add redirect rules, customize response headers, or choose between a static site and a web service for their frontend. Trigger terms: static site, CDN, SPA, single-page app, React deploy, Vue deploy, Hugo, Gatsby, Docusaurus, Jekyll, staticPublishPath.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-static-sites\u002FSKILL.md",[],[]]