cdrf-expert — Claude Code skill: what it does, how to install
Guides Django REST Framework class-based view design using cdrf.co inspection. It traces method resolution orders and selects the narrowest hooks to override.
npx skills add vintasoftware/django-ai-plugins --skill cdrf-expert -a claude-codeWhat cdrf-expert does
The skill navigates DRF class-based view hierarchies using reference data from cdrf.co. It inspects method resolution order across mixins, traces how a request flows through the view lifecycle, and identifies whether an endpoint needs APIView, GenericAPIView, or a full ModelViewSet.
The override strategy focuses on minimal intervention. It prioritizes narrow hooks like perform_create or perform_destroy instead of rewriting full dispatchers such as create or destroy. It also accounts for behavioral shifts across DRF versions and verifies that permission checks remain intact.
Do not load this for function-based views or FastAPI endpoints, because it strictly targets DRF class internals. If cdrf.co is unreachable, the skill falls back to local source files and official framework documentation.
What it helps with
- choose the right view class between APIView and ModelViewSet
- trace method resolution order across complex DRF mixins
- identify the correct override hook for custom save logic
- detect behavioral differences across DRF version updates
Example prompts for the agent
- Should I override create or perform_create to inject the current user into this serializer?
- Help me trace where get_queryset is coming from in this custom ViewSet mixin chain
- Which generic view should I inherit from for a read-only list with filtering in DRF 3.16?
How to install cdrf-expert
1Skills CLI (Vercel)
npx skills add vintasoftware/django-ai-plugins --skill cdrf-expert -a claude-code2Manually: put the files in place
~/.claude/skills/cdrf-expert/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cdrf-expert/
1Skills CLI (Vercel)
npx skills add vintasoftware/django-ai-plugins --skill cdrf-expert -a codex2Manually: put the files in place
.agents/skills/cdrf-expert/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add vintasoftware/django-ai-plugins --skill cdrf-expert -a cursor2Manually: put the files in place
.cursor/skills/cdrf-expert/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install vintasoftware/django-ai-plugins cdrf-expert2Manually: put the files in place
.github/skills/cdrf-expert/SKILL.md1Skills CLI (Vercel)
npx skills add vintasoftware/django-ai-plugins --skill cdrf-expert -a gemini-cli2Platform CLI
gemini skills install https://github.com/vintasoftware/django-ai-plugins --path skills/cdrf-expertManually: put the files in place
.devin/skills/cdrf-expert/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add vintasoftware/django-ai-plugins --skill cdrf-expert -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cdrf-expert
How do I install cdrf-expert in Claude Code?
Run npx skills add vintasoftware/django-ai-plugins --skill cdrf-expert -a claude-code.
What does cdrf-expert do?
It guides DRF class-based view development by checking method origins, tracing MRO, and recommending minimal override points like perform_update or get_serializer_class.
What architectures are unsupported?
It does not handle function-based views, GraphQL schemas, or backend frameworks like FastAPI and Flask.