[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MC0VES1N5Q54Q8Z60YXFZ1":3,"skill-same:01M6MC0VES1N5Q54Q8Z60YXFZ1":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6MC0VES1N5Q54Q8Z60YXFZ1","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.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-db-performance\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"performance","django db performance","db","django","when","review","fixes","path","loading","database query","query","selection","evidence","view","orm","plan","improve","api","database","code","diagnose","2026-11-10 10:12:30",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":15,"metadata":53,"description":7,"compatibility":58},{"tags":54,"version":55,"category":56,"displayName":57},"django,database,performance,orm,profiling","0.1.0","Django","Django DB Performance","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-db-performance",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-db-performance",{"tool":75,"command":76},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-db-performance",{"tool":78,"command":79},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-db-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-db-performance\u002FSKILL.md",true,[83],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fdiagnostic-flow.md","REFERENCE","参考文档",2692,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-db-performance\u002Freferences\u002Fdiagnostic-flow.md",[90,99,107,115,123,131],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":98},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":98},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":111,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":98},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":98},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":98},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":135,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":98},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]