[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GKB5WRNF4ZZMMTE2GQ3Z96":3,"skill-same:01M6GKB5WRNF4ZZMMTE2GQ3Z96":108},{"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":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6GKB5WRNF4ZZMMTE2GQ3Z96","drf",null,"Use when building, securing, or fixing REST APIs with Django REST Framework (anything importing rest_framework). Triggers on: \"DRF\", \"serializer\", \"ViewSet\", \"APIView\", \"router\", \"permission classes\", \"throttling\", \"pagination\". Not for pure Django ORM\u002Ftemplate\u002Fform\u002Fadmin work — use django for those.","dekoza\u002Foh-my-slop","dekoza","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F210980?v=4","01M6GK5KFK2SJQ364J2SR2P57S","Dominik Kozaczko","01M6GK5KP5PAA51JVTXYXHN66N",4,"Unlicense","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"framework","admin","REST","throttling","template","django","work","orm","use","router","pagination","permission","triggers","form","with","2026-11-10 10:12:30",false,"---\nname: drf\ndescription: >\n  Use when building, securing, or fixing REST APIs with Django REST Framework\n  (anything importing rest_framework). Triggers on: \"DRF\", \"serializer\",\n  \"ViewSet\", \"APIView\", \"router\", \"permission classes\", \"throttling\",\n  \"pagination\". Not for pure Django ORM\u002Ftemplate\u002Fform\u002Fadmin work — use django\n  for those.\n---\n\n# Django REST Framework Reference\n\nUse this skill for DRF API implementation: serializers, views, viewsets, routers, authentication, permissions, throttling, filtering, pagination, testing, and configuration. Apply the critical rules below, then route to the reference files the task needs.\n\n## Critical Rules\n\n1. **`fields` or `exclude` is mandatory** — Since v3.3.0, `ModelSerializer.Meta` MUST declare `fields` or `exclude`. Omitting both raises `ImproperlyConfigured`.\n2. **Writable nested representations require explicit code** — `ModelSerializer.create()` and `.update()` do NOT support writable nested serializers by default. You must override these methods.\n3. **Reverse relations are NOT auto-included** — `ModelSerializer` and `HyperlinkedModelSerializer` do not include reverse FK\u002FM2M fields. Add them explicitly to `fields`.\n4. **M2M with `through` model defaults to read-only** — Relational fields targeting `ManyToManyField` with a `through` model are automatically `read_only=True`.\n5. **Object-level permissions skip creation** — `has_object_permission()` is NOT called during object creation (POST). Restrict creation in `perform_create()` or the serializer.\n6. **Permission composition precedence** — `~` highest, then `&`, then `|`. Use parentheses to be explicit.\n7. **`HiddenField` disappears in partial updates** — `HiddenField()` does not appear in `partial=True` serializers (PATCH requests).\n8. **`UniqueTogetherValidator` treats fields as required** — All fields in a `UniqueTogetherValidator` are implicitly `required=True`, except those with `default` values.\n9. **ViewSet `action` unavailable in early methods** — `self.action` is NOT set when `get_parsers`, `get_authenticators`, or `get_content_negotiator` are called.\n10. **No trailing slash in router `register()` prefix** — Routers append slashes automatically. `router.register(r'users', ...)` not `r'users\u002F'`.\n11. **Throttling uses non-atomic cache operations** — Race conditions possible under high concurrency. Not a security measure against brute force.\n12. **`CursorPagination` defaults to `-created` ordering** — Models MUST have a `created` field, or override the `ordering` attribute.\n13. **`Request` uses composition, not inheritance** — DRF `Request` wraps Django `HttpRequest` via composition. Access standard attributes via `request.META`, `request.session` etc.\n14. **`extra_kwargs` silently ignored for explicit fields** — If you declare a field on the serializer class AND have `extra_kwargs` for it, the `extra_kwargs` do nothing.\n15. **Serializer relations cause N+1 queries** — Nested and related serializer fields fire one query per object during list serialization. Pair every list-returning view with `select_related`\u002F`prefetch_related` on its queryset (django-discipline's ORM rule applies to DRF views too).\n\n## When Not To Use This Skill\n\n- **Pure Django ORM\u002Fviews\u002Ftemplates** — Load `django` for models, querysets, template rendering, forms, admin, or middleware outside `rest_framework`.\n- **FastAPI \u002F Django Ninja APIs** — This skill is `rest_framework`-only; do not apply DRF patterns to other API frameworks.\n- **HTMX interaction flows** — For partial rendering, swaps, triggers, load `htmx`.\n- **Tabler UI work** — For Tabler components and CSS patterns, load `tabler`.\n- **HTTP status code deep semantics** — For 400 vs 422, 401 vs 403, redirect codes, load `http-status-codes`.\n- **Project-specific business rules** — Load the project's custom skill.\n\n## Routing\n\nChoose the primary reference; add one secondary reference only when the task clearly crosses domains. Keep the answer grounded in the reference files actually used.\n\n**Single-domain** (one file):\n\n| Use for | File |\n|---------|------|\n| Serializer hierarchy, field types, relations, validators, nested writes | `references\u002Fserializers-fields.md` |\n| APIView, generics, mixins, viewsets, `@action`, routers | `references\u002Fviews-viewsets.md` |\n| Authentication, permissions, throttling | `references\u002Fauth-permissions.md` |\n| Filter backends, search, ordering, pagination | `references\u002Ffiltering-pagination.md` |\n| Request, Response, exceptions, status codes | `references\u002Frequests-responses.md` |\n| Parsers, renderers, negotiation, metadata | `references\u002Fparsers-renderers.md` |\n| Test utilities, complete settings reference | `references\u002Ftesting-settings.md` |\n| Dispatch flow, parsing pipeline, versioning, schemas | `references\u002Finternals.md` |\n\n**Cross-domain** (two files):\n\n- Full CRUD API → `views-viewsets.md` + `serializers-fields.md`\n- Secured API → `auth-permissions.md` + `views-viewsets.md`\n- Filtered\u002Fpaginated lists → `filtering-pagination.md` + `views-viewsets.md`\n- Custom content handling → `parsers-renderers.md` + `requests-responses.md`\n- Serializer with permissions → `serializers-fields.md` + `auth-permissions.md`\n\n## Output Expectations\n\n- Name the reference files used.\n- State the minimum tests or verification steps.\n- Call out the critical DRF rules applied.\n","# Django REST Framework Reference\n\nUse this skill for DRF API implementation: serializers, views, viewsets, routers, authentication, permissions, throttling, filtering, pagination, testing, and configuration. Apply the critical rules below, then route to the reference files the task needs.\n\n## Critical Rules\n\n1. **`fields` or `exclude` is mandatory** — Since v3.3.0, `ModelSerializer.Meta` MUST declare `fields` or `exclude`. Omitting both raises `ImproperlyConfigured`.\n2. **Writable nested representations require explicit code** — `ModelSerializer.create()` and `.update()` do NOT support writable nested serializers by default. You must override these methods.\n3. **Reverse relations are NOT auto-included** — `ModelSerializer` and `HyperlinkedModelSerializer` do not include reverse FK\u002FM2M fields. Add them explicitly to `fields`.\n4. **M2M with `through` model defaults to read-only** — Relational fields targeting `ManyToManyField` with a `through` model are automatically `read_only=True`.\n5. **Object-level permissions skip creation** — `has_object_permission()` is NOT called during object creation (POST). Restrict creation in `perform_create()` or the serializer.\n6. **Permission composition precedence** — `~` highest, then `&`, then `|`. Use parentheses to be explicit.\n7. **`HiddenField` disappears in partial updates** — `HiddenField()` does not appear in `partial=True` serializers (PATCH requests).\n8. **`UniqueTogetherValidator` treats fields as required** — All fields in a `UniqueTogetherValidator` are implicitly `required=True`, except those with `default` values.\n9. **ViewSet `action` unavailable in early methods** — `self.action` is NOT set when `get_parsers`, `get_authenticators`, or `get_content_negotiator` are called.\n10. **No trailing slash in router `register()` prefix** — Routers append slashes automatically. `router.register(r'users', ...)` not `r'users\u002F'`.\n11. **Throttling uses non-atomic cache operations** — Race conditions possible under high concurrency. Not a security measure against brute force.\n12. **`CursorPagination` defaults to `-created` ordering** — Models MUST have a `created` field, or override the `ordering` attribute.\n13. **`Request` uses composition, not inheritance** — DRF `Request` wraps Django `HttpRequest` via composition. Access standard attributes via `request.META`, `request.session` etc.\n14. **`extra_kwargs` silently ignored for explicit fields** — If you declare a field on the serializer class AND have `extra_kwargs` for it, the `extra_kwargs` do nothing.\n15. **Serializer relations cause N+1 queries** — Nested and related serializer fields fire one query per object during list serialization. Pair every list-returning view with `select_related`\u002F`prefetch_related` on its queryset (django-discipline's ORM rule applies to DRF views too).\n\n## When Not To Use This Skill\n\n- **Pure Django ORM\u002Fviews\u002Ftemplates** — Load `django` for models, querysets, template rendering, forms, admin, or middleware outside `rest_framework`.\n- **FastAPI \u002F Django Ninja APIs** — This skill is `rest_framework`-only; do not apply DRF patterns to other API frameworks.\n- **HTMX interaction flows** — For partial rendering, swaps, triggers, load `htmx`.\n- **Tabler UI work** — For Tabler components and CSS patterns, load `tabler`.\n- **HTTP status code deep semantics** — For 400 vs 422, 401 vs 403, redirect codes, load `http-status-codes`.\n- **Project-specific business rules** — Load the project's custom skill.\n\n## Routing\n\nChoose the primary reference; add one secondary reference only when the task clearly crosses domains. Keep the answer grounded in the reference files actually used.\n\n**Single-domain** (one file):\n\n| Use for | File |\n|---------|------|\n| Serializer hierarchy, field types, relations, validators, nested writes | `references\u002Fserializers-fields.md` |\n| APIView, generics, mixins, viewsets, `@action`, routers | `references\u002Fviews-viewsets.md` |\n| Authentication, permissions, throttling | `references\u002Fauth-permissions.md` |\n| Filter backends, search, ordering, pagination | `references\u002Ffiltering-pagination.md` |\n| Request, Response, exceptions, status codes | `references\u002Frequests-responses.md` |\n| Parsers, renderers, negotiation, metadata | `references\u002Fparsers-renderers.md` |\n| Test utilities, complete settings reference | `references\u002Ftesting-settings.md` |\n| Dispatch flow, parsing pipeline, versioning, schemas | `references\u002Finternals.md` |\n\n**Cross-domain** (two files):\n\n- Full CRUD API → `views-viewsets.md` + `serializers-fields.md`\n- Secured API → `auth-permissions.md` + `views-viewsets.md`\n- Filtered\u002Fpaginated lists → `filtering-pagination.md` + `views-viewsets.md`\n- Custom content handling → `parsers-renderers.md` + `requests-responses.md`\n- Serializer with permissions → `serializers-fields.md` + `auth-permissions.md`\n\n## Output Expectations\n\n- Name the reference files used.\n- State the minimum tests or verification steps.\n- Call out the critical DRF rules applied.\n",{"name":5,"description":7},"main","8c687fa2c077e1cd3ff8e5b2912c28fd443bc675","skills\u002Freference\u002Fdrf",0,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop","https:\u002F\u002Fgithub.com\u002Fdekoza","https:\u002F\u002Fqoto.org\u002F@minder","Plz send BTC: 32UQpSVbcYXdfZnbyPuPvYi7rXvHcueqi1","2026-10-28 00:52:41",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add dekoza\u002Foh-my-slop --skill drf",{"tool":54,"command":55},"bunx","bunx skills add dekoza\u002Foh-my-slop --skill drf",{"tool":57,"command":58},"pnpm","pnpm dlx skills add dekoza\u002Foh-my-slop --skill drf","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002FSKILL.md",true,[62,68,72,76,80,84,88,92,96,100,104],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"evals\u002Fevals.json","REFERENCE","参考文档",8122,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Fevals\u002Fevals.json",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Ftrigger-evals.json",3270,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Fevals\u002Ftrigger-evals.json",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fauth-permissions.md",11244,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Fauth-permissions.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Ffiltering-pagination.md",11017,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Ffiltering-pagination.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Finternals.md",15037,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Finternals.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fparsers-renderers.md",8186,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Fparsers-renderers.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002FREFERENCE.md",2503,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002FREFERENCE.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Frequests-responses.md",8701,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Frequests-responses.md",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fserializers-fields.md",18493,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Fserializers-fields.md",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Ftesting-settings.md",10785,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Ftesting-settings.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fviews-viewsets.md",13263,"https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Freference\u002Fdrf\u002Freferences\u002Fviews-viewsets.md",[109,135,154,171,185,210],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":34},"01M6GKGSV5GC23S7CZ8XMXQF7C","wizard","Generate an interactive bash wizard that walks a human through a manual procedure — third-party setup, credential provisioning, a one-off migration — opening URLs, capturing values, confirming each step, and writing .env files and CI secrets (GitHub and Gitea\u002FForgejo Actions).","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fwizard\u002FSKILL.md",[],[111,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134],"true","interactive","manual","gitea","env","third-party","human","credential","files","migration","Bash","secrets","provisioning","ci","actions","generate","setup","github","writing",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":34},"01M6GKFC9YYQ4CC6N7YAW7BWW1","restore-test-pyramid","Analyze the project's E2E suite and push every assertion that doesn't need a real browser down to a faster integration or unit test, proving each migration honest before thinning E2E.","MIT","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Frestore-test-pyramid\u002FSKILL.md",[],[143,144,145,146,147,125,148,149,150,151,152,153,116],"restore test pyramid","test","restore","real browser","analyze","push","project","unit","e2e","integration","browser",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":34},"01M6GKEW0YH8ZSSN1PT543TDNZ","ponytail-debt","Harvest SHORTCUT markers from the codebase and report them grouped by file, flagging any missing upgrade paths.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fponytail-debt\u002FSKILL.md",[],[161,162,163,116,164,165,166,167,168,169,170],"ponytail","ponytail debt","missing","shortcut","paths","markers","upgrade","file","report","harvest",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":34},"01M6GKE8R93K0Z9XCM0MVCMS82","humanify","Repair an inherited or human-blocked ticket for agent implementation, or finish its explicit human-only outcome.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fhumanify\u002FSKILL.md",[],[173,178,116,179,180,181,122,182,183,184],"finish","ticket","agent implementation","repair","implementation","only","outcome",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":34},"01M6GKDQYP2QQZCVE34AAJW7KC","fix-pr","Repair an existing pull request's review findings and target-branch conflicts, verify the result, and update the same open PR.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Ffix-pr\u002FSKILL.md",[],[192,193,194,195,196,197,198,199,200,201,202,203,204,205,116,206,207,181,208,209],"pr","fix","fix pr","testing","open","verify","pull","update","pull request","merge","workflow","tdd","review","branch","merge-conflicts","review findings","conflicts","discipline",{"skillNo":211,"name":212,"nameZh":6,"description":213,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":214,"categories":215,"keywords":216,"publishedAt":34},"01M6GKDMR2V617S1V8APDT4R2B","feature-milestones","Reconstruct a fragmented backlog as finishable feature milestones with explicit delivery boundaries and an approval-gated tracker update.","https:\u002F\u002Fgithub.com\u002Fdekoza\u002Foh-my-slop\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Ffeature-milestones\u002FSKILL.md",[],[217,218,199,116,33,219,220,221,222,223,224],"feature","feature milestones","as","delivery","backlog","gated","tracker","approval"]