[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EAP72WGYPJBTPN8CVBTQ48":3,"skill-same:01M7EAP72WGYPJBTPN8CVBTQ48":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M7EAP72WGYPJBTPN8CVBTQ48","django-expert",null,"Use when building Django web applications or REST APIs with Django REST Framework. Invoke when working with settings.py, models.py, manage.py, or any Django project file. Creates Django models with proper indexes, optimizes ORM queries using select_related\u002Fprefetch_related, builds DRF serializers and viewsets, and configures JWT authentication. Trigger terms: Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web.","infinityplatformhub\u002Fopencode-gen","infinityplatformhub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F254854803?v=4","01M7EAN7RB68HJBYF1V0TEYCE1","01M7EAN7SDY3K98M6J16DQNQ5Y",0,"MIT","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fdjango-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: django-expert\ndescription: \"Use when building Django web applications or REST APIs with Django REST Framework. Invoke when working with settings.py, models.py, manage.py, or any Django project file. Creates Django models with proper indexes, optimizes ORM queries using select_related\u002Fprefetch_related, builds DRF serializers and viewsets, and configures JWT authentication. Trigger terms: Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web.\"\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: backend\n  triggers: Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: fullstack-guardian, fastapi-expert, test-master\n---\n\n# Django Expert\n\nSenior Django specialist with deep expertise in Django 5.0, Django REST Framework, and production-grade web applications.\n\n## When to Use This Skill\n\n- Building Django web applications or REST APIs\n- Designing Django models with proper relationships\n- Implementing DRF serializers and viewsets\n- Optimizing Django ORM queries\n- Setting up authentication (JWT, session)\n- Django admin customization\n\n## Core Workflow\n\n1. **Analyze requirements** — Identify models, relationships, API endpoints\n2. **Design models** — Create models with proper fields, indexes, managers → run `manage.py makemigrations` and `manage.py migrate`; verify schema before proceeding\n3. **Implement views** — DRF viewsets or Django 5.0 async views\n4. **Validate endpoints** — Confirm each endpoint returns expected status codes with a quick `APITestCase` or `curl` check before adding auth\n5. **Add auth** — Permissions, JWT authentication\n6. **Test** — Django TestCase, APITestCase\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Models | `references\u002Fmodels-orm.md` | Creating models, ORM queries, optimization |\n| Serializers | `references\u002Fdrf-serializers.md` | DRF serializers, validation |\n| ViewSets | `references\u002Fviewsets-views.md` | Views, viewsets, async views |\n| Authentication | `references\u002Fauthentication.md` | JWT, permissions, SimpleJWT |\n| Testing | `references\u002Ftesting-django.md` | APITestCase, fixtures, factories |\n\n## Minimal Working Example\n\nThe snippet below demonstrates the core MUST DO constraints: indexed fields, `select_related`, serializer validation, and endpoint permissions.\n\n```python\n# models.py\nfrom django.db import models\n\nclass Article(models.Model):\n    title = models.CharField(max_length=255, db_index=True)\n    author = models.ForeignKey(\n        \"auth.User\", on_delete=models.CASCADE, related_name=\"articles\"\n    )\n    published_at = models.DateTimeField(auto_now_add=True, db_index=True)\n\n    class Meta:\n        ordering = [\"-published_at\"]\n        indexes = [models.Index(fields=[\"author\", \"published_at\"])]\n\n    def __str__(self):\n        return self.title\n\n\n# serializers.py\nfrom rest_framework import serializers\nfrom .models import Article\n\nclass ArticleSerializer(serializers.ModelSerializer):\n    author_username = serializers.CharField(source=\"author.username\", read_only=True)\n\n    class Meta:\n        model = Article\n        fields = [\"id\", \"title\", \"author_username\", \"published_at\"]\n\n    def validate_title(self, value):\n        if len(value.strip()) \u003C 3:\n            raise serializers.ValidationError(\"Title must be at least 3 characters.\")\n        return value.strip()\n\n\n# views.py\nfrom rest_framework import viewsets, permissions\nfrom .models import Article\nfrom .serializers import ArticleSerializer\n\nclass ArticleViewSet(viewsets.ModelViewSet):\n    \"\"\"\n    Uses select_related to avoid N+1 on author lookups.\n    IsAuthenticatedOrReadOnly: safe methods are public, writes require auth.\n    \"\"\"\n    serializer_class = ArticleSerializer\n    permission_classes = [permissions.IsAuthenticatedOrReadOnly]\n\n    def get_queryset(self):\n        return Article.objects.select_related(\"author\").all()\n\n    def perform_create(self, serializer):\n        serializer.save(author=self.request.user)\n```\n\n```python\n# tests.py\nfrom rest_framework.test import APITestCase\nfrom rest_framework import status\nfrom django.contrib.auth.models import User\n\nclass ArticleAPITest(APITestCase):\n    def setUp(self):\n        self.user = User.objects.create_user(\"alice\", password=\"pass\")\n\n    def test_list_public(self):\n        res = self.client.get(\"\u002Fapi\u002Farticles\u002F\")\n        self.assertEqual(res.status_code, status.HTTP_200_OK)\n\n    def test_create_requires_auth(self):\n        res = self.client.post(\"\u002Fapi\u002Farticles\u002F\", {\"title\": \"Test\"})\n        self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN)\n\n    def test_create_authenticated(self):\n        self.client.force_authenticate(self.user)\n        res = self.client.post(\"\u002Fapi\u002Farticles\u002F\", {\"title\": \"Hello Django\"})\n        self.assertEqual(res.status_code, status.HTTP_201_CREATED)\n```\n\n## Constraints\n\n### MUST DO\n- Use `select_related`\u002F`prefetch_related` for related objects\n- Add database indexes for frequently queried fields\n- Use environment variables for secrets\n- Implement proper permissions on all endpoints\n- Write tests for models and API endpoints\n- Use Django's built-in security features (CSRF, etc.)\n\n### MUST NOT DO\n- Use raw SQL without parameterization\n- Skip database migrations\n- Store secrets in settings.py\n- Use DEBUG=True in production\n- Trust user input without validation\n- Ignore query optimization\n\n## Output Templates\n\nWhen implementing Django features, provide:\n1. Model definitions with indexes\n2. Serializers with validation\n3. ViewSet or views with permissions\n4. Brief note on query optimization\n\n## Knowledge Reference\n\nDjango 5.0, DRF, async views, ORM, QuerySet, select_related, prefetch_related, SimpleJWT, django-filter, drf-spectacular, pytest-django\n","# Django Expert\n\nSenior Django specialist with deep expertise in Django 5.0, Django REST Framework, and production-grade web applications.\n\n## When to Use This Skill\n\n- Building Django web applications or REST APIs\n- Designing Django models with proper relationships\n- Implementing DRF serializers and viewsets\n- Optimizing Django ORM queries\n- Setting up authentication (JWT, session)\n- Django admin customization\n\n## Core Workflow\n\n1. **Analyze requirements** — Identify models, relationships, API endpoints\n2. **Design models** — Create models with proper fields, indexes, managers → run `manage.py makemigrations` and `manage.py migrate`; verify schema before proceeding\n3. **Implement views** — DRF viewsets or Django 5.0 async views\n4. **Validate endpoints** — Confirm each endpoint returns expected status codes with a quick `APITestCase` or `curl` check before adding auth\n5. **Add auth** — Permissions, JWT authentication\n6. **Test** — Django TestCase, APITestCase\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Models | `references\u002Fmodels-orm.md` | Creating models, ORM queries, optimization |\n| Serializers | `references\u002Fdrf-serializers.md` | DRF serializers, validation |\n| ViewSets | `references\u002Fviewsets-views.md` | Views, viewsets, async views |\n| Authentication | `references\u002Fauthentication.md` | JWT, permissions, SimpleJWT |\n| Testing | `references\u002Ftesting-django.md` | APITestCase, fixtures, factories |\n\n## Minimal Working Example\n\nThe snippet below demonstrates the core MUST DO constraints: indexed fields, `select_related`, serializer validation, and endpoint permissions.\n\n```python\n# models.py\nfrom django.db import models\n\nclass Article(models.Model):\n    title = models.CharField(max_length=255, db_index=True)\n    author = models.ForeignKey(\n        \"auth.User\", on_delete=models.CASCADE, related_name=\"articles\"\n    )\n    published_at = models.DateTimeField(auto_now_add=True, db_index=True)\n\n    class Meta:\n        ordering = [\"-published_at\"]\n        indexes = [models.Index(fields=[\"author\", \"published_at\"])]\n\n    def __str__(self):\n        return self.title\n\n\n# serializers.py\nfrom rest_framework import serializers\nfrom .models import Article\n\nclass ArticleSerializer(serializers.ModelSerializer):\n    author_username = serializers.CharField(source=\"author.username\", read_only=True)\n\n    class Meta:\n        model = Article\n        fields = [\"id\", \"title\", \"author_username\", \"published_at\"]\n\n    def validate_title(self, value):\n        if len(value.strip()) \u003C 3:\n            raise serializers.ValidationError(\"Title must be at least 3 characters.\")\n        return value.strip()\n\n\n# views.py\nfrom rest_framework import viewsets, permissions\nfrom .models import Article\nfrom .serializers import ArticleSerializer\n\nclass ArticleViewSet(viewsets.ModelViewSet):\n    \"\"\"\n    Uses select_related to avoid N+1 on author lookups.\n    IsAuthenticatedOrReadOnly: safe methods are public, writes require auth.\n    \"\"\"\n    serializer_class = ArticleSerializer\n    permission_classes = [permissions.IsAuthenticatedOrReadOnly]\n\n    def get_queryset(self):\n        return Article.objects.select_related(\"author\").all()\n\n    def perform_create(self, serializer):\n        serializer.save(author=self.request.user)\n```\n\n```python\n# tests.py\nfrom rest_framework.test import APITestCase\nfrom rest_framework import status\nfrom django.contrib.auth.models import User\n\nclass ArticleAPITest(APITestCase):\n    def setUp(self):\n        self.user = User.objects.create_user(\"alice\", password=\"pass\")\n\n    def test_list_public(self):\n        res = self.client.get(\"\u002Fapi\u002Farticles\u002F\")\n        self.assertEqual(res.status_code, status.HTTP_200_OK)\n\n    def test_create_requires_auth(self):\n        res = self.client.post(\"\u002Fapi\u002Farticles\u002F\", {\"title\": \"Test\"})\n        self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN)\n\n    def test_create_authenticated(self):\n        self.client.force_authenticate(self.user)\n        res = self.client.post(\"\u002Fapi\u002Farticles\u002F\", {\"title\": \"Hello Django\"})\n        self.assertEqual(res.status_code, status.HTTP_201_CREATED)\n```\n\n## Constraints\n\n### MUST DO\n- Use `select_related`\u002F`prefetch_related` for related objects\n- Add database indexes for frequently queried fields\n- Use environment variables for secrets\n- Implement proper permissions on all endpoints\n- Write tests for models and API endpoints\n- Use Django's built-in security features (CSRF, etc.)\n\n### MUST NOT DO\n- Use raw SQL without parameterization\n- Skip database migrations\n- Store secrets in settings.py\n- Use DEBUG=True in production\n- Trust user input without validation\n- Ignore query optimization\n\n## Output Templates\n\nWhen implementing Django features, provide:\n1. Model definitions with indexes\n2. Serializers with validation\n3. ViewSet or views with permissions\n4. Brief note on query optimization\n\n## Knowledge Reference\n\nDjango 5.0, DRF, async views, ORM, QuerySet, select_related, prefetch_related, SimpleJWT, django-filter, drf-spectacular, pytest-django\n",{"name":5,"license":14,"metadata":23,"description":7},{"role":24,"scope":25,"author":26,"domain":27,"version":28,"triggers":29,"output-format":30,"related-skills":31},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","backend","1.1.0","Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web","code","fullstack-guardian, fastapi-expert, test-master","master","630f92e7d70ca0702a45824c77b5ea1ec042fa81","skills-library\u002F_cache\u002Fdjango-expert","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub","2026-10-09 11:55:04",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add infinityplatformhub\u002Fopencode-gen --skill django-expert",{"tool":44,"command":45},"bunx","bunx skills add infinityplatformhub\u002Fopencode-gen --skill django-expert",{"tool":47,"command":48},"pnpm","pnpm dlx skills add infinityplatformhub\u002Fopencode-gen --skill django-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fdjango-expert\u002FSKILL.md",true,[52,58,62,66,70],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fauthentication.md","REFERENCE","参考文档",3962,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fdjango-expert\u002Freferences\u002Fauthentication.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fdrf-serializers.md",4132,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fdjango-expert\u002Freferences\u002Fdrf-serializers.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fmodels-orm.md",3886,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fdjango-expert\u002Freferences\u002Fmodels-orm.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Ftesting-django.md",5519,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fdjango-expert\u002Freferences\u002Ftesting-django.md",{"path":71,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fviewsets-views.md",4305,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fdjango-expert\u002Freferences\u002Fviewsets-views.md",[75,82,91,98,105,112],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7EARBNC37P86X4Y8MBDM3J6","typescript-pro","Implements advanced TypeScript type systems, creates custom type guards, utility types, and branded types, and configures tRPC for end-to-end type safety. Use when building TypeScript applications requiring advanced generics, conditional or mapped types, discriminated unions, monorepo setup, or full-stack type safety with tRPC.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7EAR4SD7KJGZMH3Z280KYC6","security-audit","Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M7EAQXCT9TT975X8TY460Q1Z","react-expert","Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components, implements custom hooks, debugs rendering issues, migrates class components to functional, and implements state management. Invoke for Server Components, Suspense boundaries, useActionState forms, performance optimization, or React 19 features.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Freact-expert\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M7EAQPPXJYHMN5WG8X5GYK5V","python-pro","Use when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures mypy in strict mode, writes pytest test suites with fixtures and mocking, and validates code with black and ruff. Invoke for type hints, async\u002Fawait patterns, dataclasses, dependency injection, logging configuration, and structured error handling.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fpython-pro\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M7EAQFW1N62N8P6S6A1G9X1P","php-pro","Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Swoole, and PSR standards. Creates controllers, configures middleware, generates migrations, writes PHPUnit\u002FPest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST\u002FGraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fphp-pro\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":18},"01M7EAQ45FDXE4CYKD59813QM7","nextjs-developer","Use when building Next.js 14+ applications with App Router, server components, or server actions. Invoke to configure route handlers, implement middleware, set up API routes, add streaming SSR, write generateMetadata for SEO, scaffold loading.tsx\u002Ferror.tsx boundaries, or deploy to Vercel. Triggers on: Next.js, Next.js 14, App Router, RSC, use server, Server Components, Server Actions, React Server Components, generateMetadata, loading.tsx, Next.js deployment, Vercel, Next.js performance.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fnextjs-developer\u002FSKILL.md",[],[]]