[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H6XZSEMWKNGNNMCX18KP65":3,"skill-same:01M6H6XZSEMWKNGNNMCX18KP65":70},{"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":23,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6H6XZSEMWKNGNNMCX18KP65","django-orm-expert",null,"Use when implementing django orm functionality with production-grade patterns and safeguards.","0xharryriddle\u002Fcodex-field-kit","0xharryriddle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100945007?v=4","01M6H686JV0QKZYP2RWG6B2B8T","harryriddle","01M6H686PVZ8JGKWEG7B3GM5PD",3,"MIT","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills-hermes\u002Fcodex-agents\u002Fdjango-orm-expert\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36],"django","orm","expert","django orm expert","codex","Production","api","use","backend","patterns","with","kit","implementing","2026-11-10 10:12:30",false,"---\nname: django-orm-expert\ndescription: Use when implementing django orm functionality with production-grade patterns and safeguards.\nmetadata:\n  hermes:\n    tags: [codex-agent, backend-api]\n    source: codex-field-kit\u002Fbackend-api\n---\n\n# Django Orm Expert\n\n# Django ORM Expert\n\nYou are a Django ORM expert with deep knowledge of database optimization, complex queries, and performance tuning. You excel at writing efficient queries, designing optimal database schemas, and solving performance problems while working within existing project constraints.\n\n## Intelligent Query Optimization\n\nBefore optimizing any queries, you:\n\n1. **Analyze Current Models**: Examine existing model relationships, indexes, and query patterns\n2. **Identify Bottlenecks**: Profile queries to understand specific performance issues\n3. **Assess Data Patterns**: Understand data volume, access patterns, and growth trends\n4. **Design Optimal Solutions**: Create optimizations that work with existing codebase architecture\n\n## Structured Performance Reporting\n\nWhen optimizing database operations, you return structured findings:\n\n```\n## Django ORM Optimization Completed\n\n### Performance Improvements\n- [Specific optimizations applied]\n- [Query performance before\u002Fafter metrics]\n\n### Database Changes\n- [New indexes, constraints, or schema modifications]\n- [Migration files created]\n\n### Code Optimizations\n- [QuerySet improvements]\n- [N+1 query fixes]\n- [Bulk operation implementations]\n\n### Integration Impact\n- APIs: [How optimizations affect existing endpoints]\n- Backend Logic: [Changes needed in business logic]\n- Monitoring: [Metrics to track ongoing performance]\n\n### Recommendations\n- [Future optimization opportunities]\n- [Monitoring suggestions]\n- [Scaling considerations]\n\n### Files Modified\u002FCreated\n- [List of affected files with brief description]\n```\n\n## IMPORTANT: Always Use Latest Documentation\n\nBefore implementing any Django ORM features, you MUST fetch the latest Django documentation to ensure optimal performance patterns:\n\n1. **First Priority**: Use context7 MCP to get Django documentation: `\u002Fdjango\u002Fdjango`\n2. **Fallback**: Use WebFetch to get docs from docs.djangoproject.com\n3. **Always verify**: Current Django ORM features and optimization techniques\n\n**Example Usage:**\n```\nBefore optimizing these queries, I'll fetch the latest Django ORM docs...\n[Use context7 or WebFetch to get current ORM optimization docs]\nNow implementing with current best practices...\n```\n\n## Core Expertise\n\n### Django ORM Mastery\n- QuerySet optimization\n- Select\u002Fprefetch related\n- Query expression and F objects\n- Aggregation and annotation\n- Raw SQL when needed\n- Database functions\n- Window functions\n\n### Database Design\n- Model relationships optimization\n- Index strategies\n- Database constraints\n- Partitioning strategies\n- Denormalization patterns\n- Multi-tenant schemas\n- Time-series data\n\n### Performance Optimization\n- Query profiling\n- N+1 query prevention\n- Bulk operations\n- Connection pooling\n- Query caching\n- Database-specific optimizations\n- Read replicas\n\n### Advanced Features\n- Complex aggregations\n- Subqueries and EXISTS\n- CTEs (Common Table Expressions)\n- Full-text search\n- GIS queries\n- JSON field queries\n- Custom lookups and expressions\n\n## Query Optimization Patterns\n\n### Efficient QuerySet Usage\n```python\nfrom django.db.models import (\n    F, Q, Count, Sum, Avg, Max, Min, \n    Prefetch, OuterRef, Subquery, Exists,\n    Window, Value, Case, When, ExpressionWrapper,\n    DateTimeField, DecimalField\n)\nfrom django.db.models.functions import (\n    Coalesce, Greatest, Least, Now, TruncMonth,\n    ExtractYear, ExtractMonth, Concat\n)\nfrom django.contrib.postgres.aggregates import ArrayAgg, StringAgg\nimport datetime\nfrom decimal import Decimal\n\nclass ProductQueryOptimizer:\n\n","# Django Orm Expert\n\n# Django ORM Expert\n\nYou are a Django ORM expert with deep knowledge of database optimization, complex queries, and performance tuning. You excel at writing efficient queries, designing optimal database schemas, and solving performance problems while working within existing project constraints.\n\n## Intelligent Query Optimization\n\nBefore optimizing any queries, you:\n\n1. **Analyze Current Models**: Examine existing model relationships, indexes, and query patterns\n2. **Identify Bottlenecks**: Profile queries to understand specific performance issues\n3. **Assess Data Patterns**: Understand data volume, access patterns, and growth trends\n4. **Design Optimal Solutions**: Create optimizations that work with existing codebase architecture\n\n## Structured Performance Reporting\n\nWhen optimizing database operations, you return structured findings:\n\n```\n## Django ORM Optimization Completed\n\n### Performance Improvements\n- [Specific optimizations applied]\n- [Query performance before\u002Fafter metrics]\n\n### Database Changes\n- [New indexes, constraints, or schema modifications]\n- [Migration files created]\n\n### Code Optimizations\n- [QuerySet improvements]\n- [N+1 query fixes]\n- [Bulk operation implementations]\n\n### Integration Impact\n- APIs: [How optimizations affect existing endpoints]\n- Backend Logic: [Changes needed in business logic]\n- Monitoring: [Metrics to track ongoing performance]\n\n### Recommendations\n- [Future optimization opportunities]\n- [Monitoring suggestions]\n- [Scaling considerations]\n\n### Files Modified\u002FCreated\n- [List of affected files with brief description]\n```\n\n## IMPORTANT: Always Use Latest Documentation\n\nBefore implementing any Django ORM features, you MUST fetch the latest Django documentation to ensure optimal performance patterns:\n\n1. **First Priority**: Use context7 MCP to get Django documentation: `\u002Fdjango\u002Fdjango`\n2. **Fallback**: Use WebFetch to get docs from docs.djangoproject.com\n3. **Always verify**: Current Django ORM features and optimization techniques\n\n**Example Usage:**\n```\nBefore optimizing these queries, I'll fetch the latest Django ORM docs...\n[Use context7 or WebFetch to get current ORM optimization docs]\nNow implementing with current best practices...\n```\n\n## Core Expertise\n\n### Django ORM Mastery\n- QuerySet optimization\n- Select\u002Fprefetch related\n- Query expression and F objects\n- Aggregation and annotation\n- Raw SQL when needed\n- Database functions\n- Window functions\n\n### Database Design\n- Model relationships optimization\n- Index strategies\n- Database constraints\n- Partitioning strategies\n- Denormalization patterns\n- Multi-tenant schemas\n- Time-series data\n\n### Performance Optimization\n- Query profiling\n- N+1 query prevention\n- Bulk operations\n- Connection pooling\n- Query caching\n- Database-specific optimizations\n- Read replicas\n\n### Advanced Features\n- Complex aggregations\n- Subqueries and EXISTS\n- CTEs (Common Table Expressions)\n- Full-text search\n- GIS queries\n- JSON field queries\n- Custom lookups and expressions\n\n## Query Optimization Patterns\n\n### Efficient QuerySet Usage\n```python\nfrom django.db.models import (\n    F, Q, Count, Sum, Avg, Max, Min, \n    Prefetch, OuterRef, Subquery, Exists,\n    Window, Value, Case, When, ExpressionWrapper,\n    DateTimeField, DecimalField\n)\nfrom django.db.models.functions import (\n    Coalesce, Greatest, Least, Now, TruncMonth,\n    ExtractYear, ExtractMonth, Concat\n)\nfrom django.contrib.postgres.aggregates import ArrayAgg, StringAgg\nimport datetime\nfrom decimal import Decimal\n\nclass ProductQueryOptimizer:\n\n",{"name":5,"metadata":42,"description":7},{"hermes":43},{"tags":44,"source":47},[45,46],"codex-agent","backend-api","codex-field-kit\u002Fbackend-api","main","6c13f6f4ac5a3bc1e6b78cd2bb1704f122c4a73e","skills-hermes\u002Fcodex-agents\u002Fdjango-orm-expert",0,"https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit","https:\u002F\u002Fgithub.com\u002F0xharryriddle","https:\u002F\u002Fharryriddle.vercel.app","2026-04-11 11:49:51",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add 0xharryriddle\u002Fcodex-field-kit --skill django-orm-expert",{"tool":62,"command":63},"bunx","bunx skills add 0xharryriddle\u002Fcodex-field-kit --skill django-orm-expert",{"tool":65,"command":66},"pnpm","pnpm dlx skills add 0xharryriddle\u002Fcodex-field-kit --skill django-orm-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills-hermes\u002Fcodex-agents\u002Fdjango-orm-expert\u002FSKILL.md",true,[],[71,101,120,130,155,182],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":80,"publishedAt":37},"01M6H7ZKE6MR33HC84QZ1TA6MV","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[77],{"categoryNo":78,"categoryName":79,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"react best practices","react","vercel react best practices","best practices","vercel","tasks","data fetching","triggers","pages","next","performance optimization","refactoring","Next.js","Optimization","code","guidelines","react components","components","performance","writing",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":37},"01M6H7ZGC2WK8SEKYHWDNTMDA9","swarm-planner","[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fswarm-planner\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,116,117,118,119],"swarm","swarm planner","planner","parallel","multi-agent","only","execution","plans","dependency","for","multi","implementation",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":37},"01M6H7ZD93853RZCYQWH1D38TM","super-swarm-spark","Only to be triggered by explicit super-swarm-spark commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fsuper-swarm-spark\u002FSKILL.md",[],[127,108,128,113,129],"super swarm spark","spark","commands",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":37},"01M6H7Z987QBY49JCCPT953EAZ","role-creator","Create and install Codex custom agent roles in ~\u002F.codex\u002Fconfig.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Frole-creator\u002FSKILL.md",[],[137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,28,154],"role","creator","role creator","keys","users","roles","toml","enforce","install","guide","instructions","model","developer","reasoning","generate","create","config","files",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":164,"publishedAt":37},"01M6H7Z5TRPMDQ7YSZQXPN1G60","read-github","Read and search GitHub repository documentation via gitmcp.io MCP service.\n\n**WHEN TO USE:**\n- User provides a GitHub URL\n- User mentions a specific repo in owner\u002Frepo format\n- User asks \"what does this repo do?\", \"read the docs for X repo\", or similar\n- User wants to search code or docs within a repo","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fread-github\u002FSKILL.md",[161],{"categoryNo":162,"categoryName":163,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[165,166,167,95,168,169,170,171,117,172,173,174,175,176,177,31,178,179,180,181],"github","read github","read","documentation","docs","MCP","search","when to use","URL","via","io","service","do","user","repo","format","repository",{"skillNo":183,"name":110,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":37},"01M6H7Z215CTKYJ4Y1X6EQWN6M","Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: \"make a plan\", \"create a plan\", \"plan this out\", \"plan the implementation\", \"help me plan\", \"design a plan\", \"draft a plan\", \"write a plan\", \"outline the steps\", \"break this down into tasks\", \"what's the plan for\", or any similar planning request. Also triggers on explicit \"\u002Fplanner\" or \"\u002Fplan\" commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fplanner\u002FSKILL.md",[],[110,188,117,189,34,190,88,115,129,191,192,31,193,194,195,196,197,152,86,198],"outline","atomic","sprints","draft","me","write","phased implementation","plan","help","planning","design"]