backend-orm-review
БесплатноБез исполняемых скриптовНе проверенUse before reviewing Django ORM usage in backend/**, such as queries, bulk writes, GraphQL optimization, migrations, and test data.
от City-of-Helsinki★ 26 звёзд на GitHubОб этом скилле
Read the rules in .agents/docs/backend-orm.md.
Steps
- Find the target. If
backend-reviewcalled this skill, use its target. Otherwise, use the same order asbackend-review: what the user said, then uncommitted changes, then committed changes on this branch up to its merge base. - Trace every call. For each changed line that can reach the database, follow each call into our code
(
tilavarauspalvelu/andutils/). This includes methods, properties, lookup properties,actions,validators, serializers, permission checks, and signal receivers intilavarauspalvelu/signals.py. The step is done when every call path ends in a known query or in code that does not touch the database. - Measure. When a finding depends on the number of queries, write a throwaway test and run it.
See
Throwaway tests. Delete the test file when you have the numbers. - Report. Apply every rule in
.agents/docs/backend-orm.mdto the target. Number each finding (#1,#2,#3, ...). State one issue per finding. Link to the file and line. Order findings by importance, most important first. Give the measured query count when you have one. Ifbackend-reviewcalled this skill, add the findings to its list instead.
Throwaway tests
- Put the test in
tests/test_orm_review_tmp.py. Run only that file withpoetry run pytest. - Count queries with the
query_counterfixture (len(counter.queries),counter.log). For GraphQL, uselen(response.queries)andresponse.query_log. - To find an N+1, run the same code with 2 rows and then with 3 rows. If the count grows with the rows, the code makes queries in a loop.
- When a hot path has a fixed query count, suggest a real test that asserts it with
response.assert_query_count(). Admin pages havetests/test_admin/test_admin_query_counts.pyfor this.
Установить backend-orm-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл backend-orm-review?
Use before reviewing Django ORM usage in backend/**, such as queries, bulk writes, GraphQL optimization, migrations, and test data.
Как установить скилл backend-orm-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл backend-orm-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic