cdrf-expert

- Classify the request.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cdrf-expert" with this command: npx skills add vintasoftware/django-ai-plugins/vintasoftware-django-ai-plugins-cdrf-expert

CDRF Expert

Instructions

  • Classify the request.

Map the user request to one or more categories:

  • Class selection (APIView vs GenericAPIView vs concrete generics vs ViewSets)

  • Lifecycle tracing (request-to-response flow)

  • Override strategy (which hook to customize)

  • MRO debugging (method came from mixin/base class)

  • Version differences (behavior changed between DRF versions)

  • Read only the required reference file(s).

Load the minimum needed context:

  • references/class-selection-matrix.md for class selection

  • references/lifecycle-and-overrides.md for hook placement and lifecycle

  • references/mro-debugging-playbook.md for MRO/source-of-method tracing

  • references/version-check-workflow.md for DRF-version comparisons

  • Navigate cdrf.co with version-first discipline.

  • Identify the project DRF version from user context.

  • If unknown, ask for version or provide a version-agnostic answer and explicitly mark assumptions.

  • Open the matching CDRF version namespace first (for example https://www.cdrf.co/3.16/ ).

  • Open the target class page and extract:

  • Ancestors and MRO

  • Available methods and source class for each method

  • Default attributes that affect behavior (queryset , serializer_class , pagination/filter backends)

  • Choose the minimal override point.

  • Prefer narrow hooks (perform_create , perform_update , perform_destroy ) before broad methods (create , update , destroy ).

  • Prefer get_queryset and get_serializer_class for per-request behavior over hardcoding class attributes.

  • Keep HTTP orchestration in view methods and business/domain logic outside views.

  • Preserve DRF defaults unless the request needs behavior changes.

  • Produce an answer grounded in method flow.

Return:

  • Recommended class

  • Method(s) to override

  • Why these methods are correct in the MRO/lifecycle

  • Concise code patch or skeleton

  • Risks/regressions and tests to add

  • Validate before finalizing.

Check for common regressions:

  • Accidentally bypassing permission/authentication/filter/pagination hooks

  • Duplicating object-save logic between serializer and view

  • Overriding broad methods when narrow hooks are sufficient

  • Depending on methods not present in the selected DRF version

Error Handling

  • If cdrf.co is unavailable, state that limitation and fall back to DRF official docs and installed source code.

  • If the user cannot provide DRF version, provide a version-agnostic path and clearly mark assumptions.

  • If multiple override points appear valid, recommend the narrowest hook first and explain tradeoffs.

Output Rules

  • Cite exact class and method names from CDRF.

  • State assumptions when DRF version is unknown.

  • Keep responses focused on DRF CBV internals and actionable code changes.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

django-expert

No summary provided by upstream source.

Repository SourceNeeds Review
General

django-celery-expert

No summary provided by upstream source.

Repository SourceNeeds Review
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated
General

explainer

Create explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce X (video)", "解释一下XX(视频形式)".

Archived SourceRecently Updated