CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

django-patterns

Django架构模式,使用DRF设计REST API,ORM最佳实践,缓存,信号,中间件,以及生产级Django应用程序。

1.20x
Quality

66%

Does it follow best practices?

Impact

94%

1.20x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./docs/zh-CN/skills/django-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

50%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-organized catalog of mostly concrete Django/DRF patterns whose examples are weakened by missing imports, undefined references, and model-field mismatches that block copy-paste execution. The monolithic single-file structure and complete absence of validation or verification steps (especially around destructive batch operations) keep it in the mid range.

Suggestions

Add validation checkpoints around model and batch operations — e.g. run 'python manage.py makemigrations && python manage.py migrate' after model changes and 'python manage.py check' / tests before considering changes done; wrap destructive examples like bulk delete in transaction.atomic with an explicit verify step.

Fix non-executable examples: import or set up 'env' (and state the django-environ dependency), import 'slugify', 'timezone', 'Count', 'logger', and 'generic', and align ViewSet/service examples with fields actually defined in the shown Product model ('is_featured', 'created_by') or define them.

Split detailed sections (caching strategies, signals, middleware, performance optimization) into one-level-deep reference files under references/, keeping SKILL.md as a concise overview with clearly signaled links and trimming boilerplate settings lists Claude can generate unaided.

DimensionReasoningScore

Conciseness

The body is code-dominant with no explanatory prose padding, but it inlines substantial boilerplate Claude already knows, such as full INSTALLED_APPS and MIDDLEWARE stacks and standard settings modules, which could be trimmed or summarized.

3 / 5

Actionability

Examples are real code rather than pseudocode, but recurring gaps prevent copy-paste execution: 'env' is undefined (django-environ is never imported or mentioned), 'slugify', 'logger', 'timezone', 'Count', and 'generic' are used without imports, and ViewSet/service snippets reference fields and objects ('is_featured', 'created_by', 'Cart', 'PaymentGateway') absent from the models shown.

3 / 5

Workflow Clarity

The sections follow a coherent topical order (structure, models, API, services, caching, signals, middleware, performance), but no validation checkpoints appear anywhere (no makemigrations/migrate, manage.py check, or test steps), and destructive batch operations like 'Product.objects.filter(stock=0).delete()' and bulk_update are shown without any verification guidance, capping this dimension at 3.

3 / 5

Progressive Disclosure

The single 735-line SKILL.md is well-sectioned with clear headers and a quick-reference table, but there are no bundle files at all — detailed material on caching, signals, middleware, and performance that belongs in one-level-deep reference files is fully inlined, so there is no overview-to-detail split.

3 / 5

Total

12

/

20

Passed

Description

70%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 specific, well-scoped description with strong natural keywords and clear Django/DRF niche identity. Its main weakness is the missing explicit 'when to use' trigger clause, leaving activation guidance only implied.

Suggestions

Append an explicit trigger clause, e.g. 'Use when building or refactoring Django applications, designing Django REST Framework APIs, or working with Django models, caching, signals, or middleware.'

Spell out 'Django REST Framework (DRF)' on first mention so the description matches users who type the full framework name rather than the abbreviation.

Add a few natural synonym terms users say, such as 'serializers', 'views', or 'migrations', to broaden trigger coverage.

DimensionReasoningScore

Specificity

The description enumerates several concrete capability areas — '使用DRF设计REST API' (design REST APIs with DRF), 'ORM最佳实践', '缓存', '信号', '中间件' — with only minor coverage gaps, though most items are framed as topic nouns rather than concrete actions.

4 / 5

Completeness

The 'what' is clear (architecture patterns, DRF APIs, ORM, caching, signals, middleware), but there is no 'Use when...' clause or equivalent explicit trigger guidance — usage timing is only weakly implied by the domain, which caps completeness at 3.

3 / 5

Trigger Term Quality

Good natural keyword coverage: Django, DRF, REST API, ORM, caching, signals, middleware are terms users would actually say. Missing common variations such as the spelled-out 'Django REST Framework' and terms like serializers, models, or views.

4 / 5

Distinctiveness Conflict Risk

The description is firmly anchored in a specific framework niche (Django, DRF, Django ORM) with distinct triggers, so it is clearly distinguishable from general Python, web-development, or API skills with minimal conflict risk.

5 / 5

Total

16

/

20

Passed

Validation

87%

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

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (735 lines); consider splitting into references/ and linking

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

14

/

16

Passed

Repository

xu-xiang/everything-claude-code-zh

Path

docs/zh-CN/skills/django-patterns/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.