django-drf
Skill by prowler-cloud
django-drf is an agent skill that gives an AI assistant Django REST Framework patterns for ViewSets, serializers, routers, permissions and filtersets. It is written for the Prowler API in the api/ directory.
Install django-drf
Built from the published package, never by AI.
git clone --depth 1 https://github.com/prowler-cloud/prowler /tmp/prowler && mkdir -p ~/.claude/skills && cp -r /tmp/prowler/skills/django-drf ~/.claude/skills/django-drfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/prowler-cloud/prowler /tmp/prowler && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/prowler/skills/django-drf ~/.gemini/antigravity-cli/skills/django-drfAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The django-drf skill gives an AI assistant patterns for building Django REST Framework APIs. It covers ViewSets, serializers, routers, permissions and filtersets. The skill includes a checklist for new endpoints, plus decision trees for choosing serializers, filter base classes and base ViewSets.
The patterns are written for the Prowler API in the api/ directory and point to file locations such as api/models.py, api/v1/serializers.py and api/filters.py. The rules include separate read, create, update and include serializers, select_related and prefetch_related in get_queryset(), and UUID primary keys. For RLS and RBAC specifics, the source says to also use the prowler-api skill.
Written from the project's SKILL.md and checked against it.
What it can do
- ViewSet implementationGuides building ViewSets that inherit from base classes such as BaseRLSViewSet.
- Serializer designSeparates read, create, update and include serializers and explains which base class to use.
- Filter patternsShows how to use filterset_class, base provider filters and multi-value filters.
- PermissionsExplains required_permissions, set_required_permissions() and HasPermissions for each action.
- Pagination and performanceCovers the default pagination class and a PaginateByPkMixin for heavy joins.
- URL routingSets trailing_slash=False and kebab-case paths for endpoints.
- OpenAPI schemaShows how to document endpoints with drf-spectacular decorators such as extend_schema_field.
- Test and changelog guidancePoints to the test file locations and to the towncrier changelog fragment process.
What you need
- Django REST Framework
- drf-spectacular for OpenAPI schema generation
Try asking
- Create a ViewSet and serializers for a new model in api/ using the Prowler patterns
- Add a filterset_class with provider filters to this endpoint
- Document this SerializerMethodField for the OpenAPI schema with extend_schema_field
Good to know
- Written for the Prowler API layout in the api/ directory.
- RLS and RBAC specifics are covered by the separate prowler-api skill.
- swagger_fake_view applies only to drf-spectacular.
Security check
B- Allowed to use Edit, Write, Bash without limitsIn
SKILL.md
Checked automatically: skills/django-drf/SKILL.md, skills/django-drf/assets/security_patterns.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadEditWriteGlobGrepBashWebFetchWebSearchTask
-
SKILL.md15 KB -
assets/security_patterns.py5 KB -
references/file-locations.md6 KB -
references/json-api-conventions.md3 KB
Alternatives to django-drf
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
django-drf: common questions
What does the django-drf skill help with?
It gives patterns for Django REST Framework work, including ViewSets, serializers, routers, permissions, filtersets and pagination. The source says it is aimed at the Prowler API.
Does it cover RLS and RBAC for Prowler?
Not in full. The source says to also use the prowler-api skill for Prowler API specifics such as RLS, RBAC and Providers.
Which OpenAPI tool does it assume?
The source assumes drf-spectacular. It describes swagger_fake_view and extend_schema_field as drf-spectacular features.
How do I install django-drf?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is django-drf free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is django-drf safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use edit, write, bash without limits). Review the code before you install. How grades work.
What are alternatives to django-drf?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
