Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

improving-drf-endpoints

Audit and fix DRF serializers and viewsets so generated OpenAPI types and MCP tools get correct fields.

When to use it

You're editing a serializer or viewset in posthog/api/ or a product backend and the generated TypeScript shows unknown types or missing endpoints.

For example

You say

Use improving-drf-endpoints to review the serializer and viewset in products/alerts/backend/presentation/views/alert.py and fix any missing help_text, bare ListField, or untyped response.

You get
  • Serializer field fixes
  • Viewset schema annotations
  • Notes on remaining gaps

How it works

  • Start from the committed generated types to see which fields and endpoints are broken before touching Python.
  • Choice fields should use a class-backed enum so OpenAPI component names don't collide on names like format or status.
  • List querysets get wrapped with strict_fetch() so a missing select_related fails the list test.