CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

django-queries

Write Django ORM queries, raw SQL, and transactions that work on Sentry's production databases. Use when writing or reviewing database access code in Sentry. Not for migration files (use generate-migration) or model design (use django-models).

Quality

95%

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

An exemplary knowledge-dense skill body: every token delivers Sentry-specific information Claude cannot know, guidance is directly executable with exact paths, commands, and code patterns, and the structure pairs a pre-flight check with a scenario checklist and a failure fallback. No improvements identified.

DimensionReasoningScore

Conciseness

Every sentence carries non-derivable, repo-specific knowledge — `_default_db_routing_map`, `TestSiloMultiDatabaseRouter`, `SENTRY_DB_ROUTING_MAP_OVERRIDES`, `BoundedBigIntegerField` — with zero padding and no explanation of Django basics Claude already knows. The ~15-line body assumes Claude's competence throughout.

5 / 5

Actionability

Fully concrete guidance: exact file paths (`src/sentry/db/router.py`, `getsentry/db/router.py`), a copy-paste `gh api` command to fetch the routing map, and executable patterns like `list(qs.values_list("id", flat=True))` and `connections[router.db_for_read(Model)]`. The migration bullet correctly defers to the generate-migration skill.

5 / 5

Workflow Clarity

A clear pre-flight check ('Look up every table involved before you:') leads into a four-scenario checklist, with an explicit error-recovery fallback ('If you cannot read getsentry, say so instead of assuming the tables share a database'). The skill writes code rather than executing batch operations, and the preventive check-before-writing step serves as the validation checkpoint; the single action is unambiguous for this simple sub-50-line skill.

5 / 5

Progressive Disclosure

The skill is under 50 lines with no need for external references (no references/, scripts/, or assets/ bundles exist), and the content is well organized into a headed section with a checklist. The only pointer is to a sibling skill (generate-migration), which is appropriate one-level cross-referencing rather than nested indirection.

5 / 5

Total

20

/

20

Passed

Description

87%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 strong description that clearly states what the skill does, when to use it, and which neighboring skills to use instead. Trigger terms are natural developer language; the only improvement space is broader keyword coverage and reflecting the multi-database routing specialty in the action list.

DimensionReasoningScore

Specificity

Lists several concrete actions — 'Write Django ORM queries, raw SQL, and transactions' plus 'writing or reviewing' — but the skill's distinctive multi-database routing specialization is only gestured at via 'that work on Sentry's production databases', leaving minor gaps in coverage. Not 5 because the action list doesn't comprehensively span the skill's actual scope; not 3 because multiple specific actions are explicitly named.

4 / 5

Completeness

Explicitly answers both what ('Write Django ORM queries, raw SQL, and transactions that work on Sentry's production databases') and when ('Use when writing or reviewing database access code in Sentry') with concrete trigger phrasing. Not 4 because the 'when' clause is already explicit and specific rather than merely implied.

5 / 5

Trigger Term Quality

Includes natural developer phrases users would actually say: 'Django ORM', 'raw SQL', 'transactions', 'database access code in Sentry'. A few natural variations are missing (e.g., 'queryset', 'N+1', 'select_related'), which keeps it just below comprehensive coverage.

4 / 5

Distinctiveness Conflict Risk

Clear niche (Sentry production databases) with explicit disambiguation: 'Not for migration files (use generate-migration) or model design (use django-models)'. This actively routes adjacent requests away, minimizing conflict risk with closely related skills.

5 / 5

Total

18

/

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

getsentry/sentry

Path

.agents/skills/django-queries/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.