CtrlK
BlogDocsLog inGet started
Tessl Logo

improving-drf-endpoints

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.

70

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, domain-specific audit skill that pairs a concrete checklist with a triage step, a decision flowchart, and clean one-level references to detailed pattern files. Minor gains available from tightening the routing rationale and making the post-fix validation loop explicit.

Suggestions

Tighten the 'Why core discovers and calls the product' paragraph and the long x-product bullet (#15) to their load-bearing points; the laziness/AppConfig.ready rationale can move to the referenced RouterRegistry docstring.

Add an explicit closing validation step (e.g. 'After fixes, re-run hogli build:openapi and find_enum_collisions; confirm no unknown types remain in generated api.schemas.ts') to turn the implied loop into a clear validate→fix→retry cycle.

Inline one short representative code pattern (e.g. a typed SerializerMethodField with @extend_schema_field) so the most common action is copy-paste ready without opening a reference.

DimensionReasoningScore

Conciseness

Dense and information-rich with almost no generic concept explanation, but the 'Why core discovers and calls the product' paragraph and the long x-product item (#15) could be trimmed slightly without losing value.

4 / 5

Actionability

Gives concrete decorator names, a copy-paste routes.py snippet, and specific commands (find_enum_collisions, hogli build:openapi), though the bulk of executable code patterns are delegated to the referenced files rather than inline.

4 / 5

Workflow Clarity

Clear triage-first sequence, a decision flowchart, and validation checkpoints (run hogli build:openapi and verify generated schemas, CI --fail-on-warn) are present, but the validate→fix→retry loop is implied rather than framed as an explicit end-to-end cycle.

4 / 5

Progressive Disclosure

Clean overview structure with four well-signaled one-level-deep references (serializer-fields.md, viewset-annotations.md, quick-reference-table.md, common-anti-patterns.md), all of which resolve to real files with valid deep-link anchors, and content is appropriately split between overview rules and detailed patterns.

5 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A tightly scoped, action-oriented description that clearly states both what it covers and when to invoke it, with concrete file-path and import triggers. Slightly technical in phrasing but highly distinct and complete.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'editing, reviewing, or auditing DRF viewsets and serializers' plus 'field typing, schema annotations, enum collision fixes, and OpenAPI spec quality' — giving comprehensive coverage of the skill's capabilities.

5 / 5

Completeness

Explicitly answers both what ('Covers field typing, schema annotations, enum collision fixes, and OpenAPI spec quality') and when ('Use when editing, reviewing, or auditing ... Triggers on files in posthog/api/ ... or any file importing rest_framework') with concrete trigger phrases.

5 / 5

Trigger Term Quality

Strong keyword coverage ('DRF viewsets and serializers', 'rest_framework', 'OpenAPI', file paths under posthog/api/) with natural verbs, but leans technical and omits a few conversational synonyms a user might say (e.g. 'Django REST framework', 'API endpoints').

4 / 5

Distinctiveness Conflict Risk

Scoped tightly to PostHog + DRF + rest_framework imports with specific directory triggers, giving a clear niche with minimal overlap risk against generic skills.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
PostHog/posthog
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.