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.

80

Quality

100%

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

100%

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

An excellently structured audit skill: a tight triage-and-checklist body with executable examples and validation steps, deferring patterns and before/after pairs to clearly signaled reference files one level deep.

DimensionReasoningScore

Conciseness

The body is a lean, dense audit checklist with no padding of concepts Claude already knows; the longer routing-rationale paragraph covers non-obvious architecture rather than fluff, so it sits at the level-3 'every token earns its place' anchor (borderline with 2 but justified).

3 / 3

Actionability

Provides an executable register_routes snippet, exact commands ('python manage.py find_enum_collisions', 'hogli build:openapi'), and concrete decorator names — fully actionable, copy-paste-ready guidance rather than the abstract level-1 anchor.

3 / 3

Workflow Clarity

Sequences triage-first (check generated output) then a numbered 1–16 checklist with a decision flowchart and explicit validation steps ('run hogli build:openapi and verify generated MCP tool schemas'), matching the level-3 anchor with checkpoints and a feedback loop.

3 / 3

Progressive Disclosure

A concise overview points to four well-signaled, one-level-deep reference files (all verified present, including the #choicefield--explicit-choices anchor), with detail appropriately split out — exactly the level-3 anchor.

3 / 3

Total

12

/

12

Passed

Description

100%

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 strong, specific description that concretely states what it covers and when to invoke it, with explicit path-based and import-based triggers that make it highly distinct from other skills.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions — 'editing, reviewing, or auditing DRF viewsets and serializers' and 'field typing, schema annotations, enum collision fixes, and OpenAPI spec quality' — matching the level-3 anchor rather than the partial level-2 anchor.

3 / 3

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...'), matching the level-3 anchor with an explicit trigger clause.

3 / 3

Trigger Term Quality

Natural domain terms a PostHog developer would say ('DRF viewsets', 'serializers', 'OpenAPI spec', 'rest_framework') plus explicit path/file triggers give good coverage, beyond the level-2 'some relevant keywords' anchor.

3 / 3

Distinctiveness Conflict Risk

Scoped to PostHog-specific paths (posthog/api/, products/*/backend/api/) and gated on 'rest_framework' imports, giving it a clear niche unlikely to fire for unrelated skills.

3 / 3

Total

12

/

12

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.