CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dmr-from-dj-rest-auth

Migrate an existing Django auth API from dj-rest-auth to django-modern-rest, moving account flows onto django-allauth headless and rebuilding the transport layer with dmr controllers and auth classes. Use when replacing dj_rest_auth login/logout/registration/password/MFA/social views and their DRF serializers.

Quality

94%

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

92%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.

The body is a tightly written, expert-level migration procedure: lean prose, exact class and settings names, an explicitly ordered flow sequence with required gates, per-flow and final validation, a mandated 4-section report, and clean separation of policy from lookup tables in a verified one-level-deep reference. The main gap is the absence of any syntax examples for the dmr constructs (Controller/DTOs, CookieSpec, external_path), leaving those details to the linked external docs.

Suggestions

Add a minimal worked example of a dmr Controller with input/output TypedDict DTOs for the rebuilt user-details endpoint, since that is the one flow with no allauth equivalent and no inline example.

Show a one-line usage example of CookieSpec / NewCookie with the preserved flags (httponly, secure, samesite, path) and of external_path() for exposing allauth endpoints, so cookie preservation and OpenAPI wiring are copy-paste ready rather than doc lookups.

DimensionReasoningScore

Conciseness

The ~220-line body is dense with non-obvious, decision-critical guidance (behavioral vs transport parity, security posture rules, drift accounting, pitfalls) and explains nothing Claude already knows about Django or DRF; the architectural framing that allauth keeps owning account flows is exactly the kind of context Claude lacks. Only one or two reassurance sentences ("This is normal, and it is the right place...") could be trimmed, which does not reach the 4 anchor's 'minor instances of over-explanation'.

5 / 5

Actionability

Quotes: "Add `allauth`, `allauth.account`, `allauth.headless` to `INSTALLED_APPS`", "`XSessionTokenSyncAuth`", "`HeaderJWTSyncAuth`", "`@sensitive_post_parameters`", "Return `NO_STORE_HEADERS` from `dmr.security` in `@modify`". Guidance names exact classes, settings keys, decorators, and an ordered 8-flow sequence, but provides no syntax examples for the dmr constructs it invokes (`Controller` with typed DTOs, `CookieSpec`, `external_path()`), delegating those to the external docs — fitting 'mostly executable guidance; concrete code or commands with minor gaps' rather than the 5 anchor's copy-paste-ready examples.

4 / 5

Workflow Clarity

Quotes: "Migrate one flow at a time, in this order, because later flows depend on being able to log in", "(required gate)", "then run the repository's checks", "Do not mark a flow done until linters pass, tests pass, the client is updated, and the report is updated", plus the Output Checklist. The sequence is explicit with rationale, two required gates act as checkpoints, validation is mandated per flow and at the finish gate, and a final checklist covers the complex process — matching the 5 anchor's explicit validation steps and checklists.

5 / 5

Progressive Disclosure

The body keeps procedure and policy in SKILL.md while all lookup tables (endpoint, MFA, social, auth-class, settings, serializer maps) live in the single one-level-deep reference [references/dj-rest-auth-to-dmr-map.md], which exists in the bundle, is clearly signaled in the required-docs list, and is pointed to twice more by name ("See the settings table in the local map", "See the auth table in the local map"). The reference chains no further files, and the split is appropriate for navigation — matching the 5 anchor.

5 / 5

Total

19

/

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.

The description is a strong, specific two-sentence statement in third person that names the source and target stacks, breaks the work into three concrete actions, and closes with an explicit 'Use when' clause enumerating the flows that trigger it. Its only weakness is modest synonym coverage (e.g., the legacy 'django-rest-auth' package name and 'Django REST Framework auth' phrasings) that slightly narrows natural trigger matching.

DimensionReasoningScore

Specificity

Quotes: "Migrate an existing Django auth API from dj-rest-auth to django-modern-rest", "moving account flows onto django-allauth headless", "rebuilding the transport layer with dmr controllers and auth classes", "replacing dj_rest_auth login/logout/registration/password/MFA/social views and their DRF serializers". Multiple specific concrete actions with comprehensive coverage of the migration scope, in third-person voice; the 4 anchor would require minor coverage gaps, which are absent.

5 / 5

Completeness

Quotes: "Migrate an existing Django auth API from dj-rest-auth to django-modern-rest..." (what) and "Use when replacing dj_rest_auth login/logout/registration/password/MFA/social views and their DRF serializers." (when). Both what and when are answered explicitly with concrete trigger phrases, matching the 5 anchor exactly; the 4 anchor's 'when could be more explicit' does not apply.

5 / 5

Trigger Term Quality

Quotes: "Django auth API", "dj-rest-auth ... dj_rest_auth", "login/logout/registration/password/MFA/social", "DRF serializers". Good natural keyword coverage including both the package and module spellings, but common synonyms such as the legacy "django-rest-auth" package name and "Django REST Framework auth" phrasings are missing, matching the 4 anchor rather than the 5 anchor's comprehensive synonym coverage.

4 / 5

Distinctiveness Conflict Risk

The description pins a named-source (dj-rest-auth) to named-target (django-modern-rest) migration niche with distinct triggers, so it is clearly distinguishable even from a sibling DRF-migration skill; minimal conflict risk, matching the 5 anchor.

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.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

wemake-services/django-modern-rest

Path

dmr/.agents/skills/dmr-from-dj-rest-auth/SKILL.md

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.