All skills
improving-drf-endpoints
Audit and fix DRF serializers and viewsets so generated OpenAPI types and MCP tools get correct fields.
- Part of PostHog/posthog
- 209 installs
- Developer Tools · Backend
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.
More Backend skills
See all- golang-pro19.8kWrites concurrent Go services with goroutines, channels, gRPC or REST, and profiles performance.
- php-pro16.4kBuilds modern PHP applications with strict typing, Laravel or Symfony, tests and REST or GraphQL APIs.
- cuopt-routing-api-python2.3kBuilds and solves vehicle routing, traveling salesman, and pickup-delivery problems in Python with cuOpt.
- cuopt-server-api-python2.2kStarts the cuOpt REST server and calls its endpoints from Python or curl.
Also in this pack
- react-doctor511Diagnoses and fixes React codebase health issues, including performance problems, security gaps and code quality.
- hogli267Explains the PostHog developer CLI and repo tooling for running, building, testing, and linting.
- clickhouse-migrations266Writes and modifies ClickHouse database migrations following project rules.
- survey-sdk-audit255Audits survey SDK features and version requirements, then implements survey changes across backend, UI, and SDKs.