Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Improving DRF Endpoints

Skill Aktiv

Use when editing, reviewing, or auditing DRF viewsets and serializers in PostHog. Triggers on files in posthog/api/, products/*/backend/api/, products/*/backend/presentation/, or any file importing rest_framework. Covers field typing, schema annotations, enum collision fixes, and OpenAPI spec quality — everything that flows downstream into generated TypeScript types and MCP tools.

Zweck

Improve the quality and accuracy of DRF viewset and serializer definitions to ensure correct type generation for frontend, MCP tools, and API documentation.

Funktionen

  • Audits DRF viewsets and serializers.
  • Covers field typing, schema annotations, and OpenAPI spec quality.
  • Ensures correct TypeScript types and MCP tool compatibility.
  • Provides guidance on `help_text`, `ListField`, `JSONField`, `SerializerMethodField`, and choice fields.
  • Details best practices for `@validated_request` and `@extend_schema` decorators.

Anwendungsfälle

  • Editing or reviewing files defining DRF `Serializer` or `ViewSet`.
  • Fixing OpenAPI spec warnings or generated type issues.
  • Preparing an endpoint for MCP tool exposure.
  • Code review of API changes for type accuracy.

Nicht-Ziele

  • Directly modifying or executing code.
  • Performing automated code fixes.
  • Reviewing non-DRF code or general Python code.

Workflow

  1. Identify relevant DRF serializer or viewset files.
  2. Audit generated types and API schema for issues.
  3. Review serializer fields for `help_text`, typed lists/JSON, and explicit choices.
  4. Verify viewset methods have appropriate schema annotations (`@validated_request` or `@extend_schema`).
  5. Ensure correct response serializers and error types are defined.
  6. Apply recommended patterns and fix anti-patterns.

Praktiken

  • API Design
  • Code Quality
  • Type Safety
  • OpenAPI Specification

Trust

  • warning:Issues AttentionThere are 544 open issues and 163 closed issues in the last 90 days, indicating a low closure rate and potentially slow response times.

Installation

npx skills add PostHog/posthog

Führt das Vercel skills CLI (skills.sh) via npx aus — benötigt Node.js lokal und mindestens einen installierten skills-kompatiblen Agent (Claude Code, Cursor, Codex, …). Setzt voraus, dass das Repo dem agentskills.io-Format folgt.

Qualitätspunktzahl

79 /100
Analysiert 1 day ago

Vertrauenssignale

Letzter Commit1 day ago
Sterne34.5k
LizenzMIT-0
Status
Quellcode ansehen

Ähnliche Erweiterungen

Google Docs

100

Interact with Google Docs - create documents, search by title, read content, and edit text. Use when user asks to: create a Google Doc, find a document, read doc content, add text to a doc, or replace text in a document. Lightweight alternative to full Google Workspace MCP server with standalone OAuth authentication.

Skill
sanjay3290

Django Framework

65

Django full-featured Python web framework with batteries included (ORM, admin, auth)

Skill
bobmatnyc

X Twitter Scraper

100

Verwenden Sie dies, wenn der Benutzer X (Twitter)-Daten oder durch Bestätigung gesicherte X-Aktionen über Xquik benötigt: Tweet-Suche, Benutzer-Lookup, Follower-Extraktion, Mediendownload, Überwachung, Webhooks, MCP, SDKs, Posting, Likes, DMs und Profilaktualisierungen. Erfordert einen Xquik API-Schlüssel. Fordern Sie niemals X-Login-Materialien an.

Skill
Xquik-dev

Slack

100

Use the Slack tool to react, pin/unpin, send, edit, delete messages, or fetch Slack member info.

Skill
steipete

Github

100

Use gh for GitHub issues, PR status, CI/logs, comments, reviews, releases, and API queries.

Skill
steipete

Product Self Knowledge

100

Stop and consult this skill whenever your response would include specific facts about Anthropic's products. Covers: Claude Code (how to install, Node.js requirements, platform/OS support, MCP server integration, configuration), Claude API (function calling/tool use, batch processing, SDK usage, rate limits, pricing, models, streaming), and Claude.ai (Pro vs Team vs Enterprise plans, feature limits). Trigger this even for coding tasks that use the Anthropic SDK, content creation mentioning Claude capabilities or pricing, or LLM provider comparisons. Any time you would otherwise rely on memory for Anthropic product details, verify here instead — your training data may be outdated or wrong.

Skill
SeifBenayed