ln-25-persistence-auditor

levnikolaevich/claude-code-skills

Аудит запросов, транзакций, производительности данных и жизненного цикла ресурсов.

Звёзды597
Форки90
Авторlevnikolaevich
Обновлённоя 11 2026

Установка

SKILL.md

Persistence Auditor

Goal: Perform a read-only audit of persistence and data-heavy runtime paths. Connect static candidates to real query, transaction, resource, or consistency mechanisms and avoid claiming performance impact without evidence.

Execution contract: Treat the ordered checkbox workflow below as this skill's Definition of Done. Work through every item in order, and mark it complete only when its action and required evidence are complete. N/A, skipped, unavailable, or delegated items remain incomplete. Before returning, apply this skill's verdict, decision, and approval rules to every incomplete item and prepend Checklist: X/Y complete<br>Incomplete: None | section/item — reason; outcome impact; exact next action; list every incomplete item.

Tool Routing

NeedPreferred toolUse it whenFallback
Data-layer mapNative file search over manifests, models, mappings, repositories, migrations, queries, cache, queue, and pool configurationEstablishing stores, frameworks, ownership, and scopeTrace from known request, job, or command entrypoints
Call paths and resource ownershipLanguage server or host-native code intelligenceFollowing service calls, transaction boundaries, async flow, session scopes, and cleanupTargeted search plus direct inspection of definitions and callers
Query behaviorExisting query logs, tracing, ORM diagnostics, and application metricsEstablishing frequency, duplication, timing, rows, and cache behaviorStatic query-in-loop and fetch-shape analysis with explicit limits
Query plansDatabase-native explain tooling on an approved non-production targetA safe read query and representative schema/data are availableInspect indexes, predicates, joins, statistics assumptions, and generated SQL statically
Runtime performanceExisting profiler, benchmark, or repository diagnostic commandAllocation, blocking, loop amplification, or I/O cost needs measurementComplete static cost path marked as unmeasured
Correctness verificationRepository-defined tests, integration environment, and migration checksReproducing transaction, retry, consistency, or lifecycle behavior safelyStatic failure trace and required verification plan
External semanticsOfficial database, driver, framework, and runtime documentation matching installed versionsIsolation, pooling, cancellation, caching, trigger, or async semantics affect a findingPrimary-source web research; otherwise mark UNVERIFIED

Never connect to production or run mutating diagnostics. EXPLAIN ANALYZE executes the statement: use it only for confirmed read-only queries on an approved disposable or non-production target. Do not create indexes, migrate, vacuum, rewrite data, or change pool settings during the audit.

Evidence Rules

  • Query count, duration, rows, plan, lock, or profile evidence is stronger than a static performance suspicion.
  • Static evidence can prove correctness and lifecycle defects when the full path is visible, but performance impact must be labeled unmeasured.
  • ORM conventions, bounded administrative paths, startup-only work, and intentionally small datasets require context before becoming findings.
  • Transaction advice must match the actual database, isolation level, driver, framework, and retry model.
  • Recommendations must preserve data integrity and failure semantics, not only reduce latency.

Checklist

1. Establish the Data and Runtime Context

  • <!-- -->Detect databases, ORMs, drivers, caches, queues, schemas, migrations, pools, dependency-injection scopes, and runtime entrypoints in scope.
  • <!-- -->Resolve installed versions, database capabilities, deployment topology, consistency requirements, and expected workload from repository evidence.
  • <!-- -->Identify critical data paths, high-volume paths, streaming paths, scheduled work, and operations that hold transactions or resources across external calls.
  • <!-- -->Read repository instructions and inspect Git state before running diagnostics or interpreting current work.
  • <!-- -->Establish available query logs, metrics, traces, profiles, representative data, test environments, and safe diagnostic permissions.
  • <!-- -->Keep the audit read-only and document every executed query, command, target, and artifact created.

2. Audit Query and Cache Efficiency

  • <!-- -->Trace representative paths from entrypoint through business logic to generated query and materialization.
  • <!-- -->Find N+1 behavior, repeated identical fetches, query-in-loop patterns, sequential independent reads, and redundant existence or count queries.
  • <!-- -->Check over-fetching, broad entity loading, unbounded reads, premature materialization, missing pagination, and user-controlled result amplification.
  • <!-- -->Check missing bulk operations, per-row writes, avoidable round trips, fragmented commits, and opportunities for set-based work.
  • <!-- -->Inspect predicates, joins, sort and group operations, index alignment, query-plan assumptions, and statistics only with schema and workload context.
  • <!-- -->Check cache ownership, key design, scope, invalidation, stampede control, negative caching, staleness tolerance, and duplication with database guarantees.
  • <!-- -->Distinguish latency caused by query shape, connection wait, locks, network, serialization, application work, or downstream services before recommending a fix.
  • <!-- -->Measure or clearly label the expected impact; do not present a candidate index or cache as a proven optimization.

3. Audit Transactions and Consistency

  • <!-- -->Identify who begins, commits, rolls back, retries, and disposes each transaction and whether ownership matches the business operation.
  • <!-- -->Check atomicity across related writes, early commits, missing rollback, swallowed exceptions, nested transaction behavior, and partial-success states.
  • <!-- -->Find long-held transactions, network or file calls inside transactions, user interaction during locks, and transactions spanning unnecessary computation.
  • <!-- -->Check isolation assumptions, lost updates, write skew, duplicate processing, optimistic or pessimistic locking, and retry safety.
  • <!-- -->Verify idempotency keys, unique constraints, deduplication, outbox or inbox behavior, and at-least-once delivery paths where applicable.
  • <!-- -->Check triggers, notifications, events, and subscribers for naming, commit-time visibility, payload compatibility, ordering, duplicate delivery, and orphan consumers; do not add intermediate commits merely to expose progress if that breaks business atomicity.
  • <!-- -->Check migrations and backfills for transactional behavior, lock duration, mixed-version compatibility, resumability, and failure recovery.
  • <!-- -->Verify recommendations against official semantics for the installed database, driver, and framework when behavior is version-sensitive.

4. Audit Runtime and Resource Lifecycle

  • <!-- -->Check blocking database, filesystem, or network I/O in asynchronous paths and synchronous waits that can starve workers or event loops.
  • <!-- -->Check repeated allocation, copying, serialization, string building, conversion, and collection growth on data-heavy loops.
  • <!-- -->Trace sessions, connections, cursors, readers, streams, locks, subscriptions, and temporary files through success, error, timeout, cancellation, and streaming completion.
  • <!-- -->Include consumer abandonment and partial enumeration: generators, async iterators, streaming responses, and client disconnects must release resources even when normal completion never occurs.
  • <!-- -->Check dependency-injection scope against resource lifetime, especially singleton access to scoped state and request resources held by background or streaming work.
  • <!-- -->For background, streaming, or otherwise longer-lived work, verify bounded resource ownership and acquisition at the point of need instead of retaining a shorter-lived session or connection; a passed factory or pool is one valid design, not a universal requirement.
  • <!-- -->Inspect pool size, timeouts, acquisition, validation, recycling, leak evidence, and the total connection budget across replicas, processes, workers, and failover capacity—not only one process's setting.
  • <!-- -->Check cancellation propagation, command timeouts, retry storms, circuit behavior, and cleanup between retry attempts and after abandoned work.
  • <!-- -->Check ORM expiration, lazy loading, detached entities, and implicit autoflush so no query or write occurs outside the intended session or transaction lifetime.
  • <!-- -->Use runtime measurements where available to separate hot paths from low-frequency or bounded code before assigning performance severity.

5. Validate Findings and Report

  • <!-- -->Reproduce high-severity correctness defects with a safe test or complete failure trace and performance defects with query, plan, lock, or profile evidence where possible.
  • <!-- -->Filter framework-managed lifecycle, bounded maintenance tasks, fixtures, migrations kept for history, and documented consistency tradeoffs before confirming findings.
  • <!-- -->Deduplicate symptoms that share one root query, transaction boundary, scope mismatch, or pool configuration.
  • <!-- -->Classify findings as P0-P3 based on data corruption, security, outage risk, scalability, latency, resource exhaustion, and recurrence.
  • <!-- -->Include call path, query or resource, evidence, failure or cost mechanism, impact, confidence, and smallest safe remediation.
  • <!-- -->Use BLOCKED when a critical data path, database semantic, or required non-production environment cannot be verified without a credible fallback; use FAIL for an evidenced unresolved corruption, atomicity, outage, resource-exhaustion risk, required failing gate, or another P0/P1; use CONCERNS only for evidenced non-blocking risk or material unmeasured uncertainty, and PASS only when critical paths are trustworthy with no material finding.
  • <!-- -->Return the verdict with measured and static scope separated, remediation order, limitations, and residual persistence risks.

Output Contract

# Persistence Audit

**Verdict:** PASS | CONCERNS | FAIL | BLOCKED

## Data context and evidence
- Stores, frameworks, versions, and deployment topology
- Critical and measured paths
- Diagnostics, commands, and environments used

## Health summary
| Area | Status | Evidence basis |
|---|---|---|
| Query and cache efficiency | PASS / CONCERNS / FAIL | measured / static |
| Transactions and consistency | PASS / CONCERNS / FAIL | ... |
| Runtime performance | PASS / CONCERNS / FAIL | measured / static |
| Resource lifecycle | PASS / CONCERNS / FAIL | ... |

## Findings
### [P0 | P1 | P2 | P3] Finding title
- Call path, query, transaction, or resource
- Evidence and confidence
- Failure or cost mechanism
- Required change and verification

## Measurement gaps and residual risks
Unmeasured candidates, unavailable environments, and accepted consistency tradeoffs.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: ln-25-persistence-auditor](https://darkplay.ru/ai/skills/levnikolaevich-claude-code-skills-ln-25-persistence-auditor)

Из того же репозитория

ln-33-code-modernizer Модернизация ограниченной функциональности: удаление устаревших механизмов, снижение затра ★597 ln-12-delivery-reviewer Ревью завершённого изменения и затронутых путей: поиск дефектов и проверка готовности. ★597 ln-41-test-strategy-planner Стратегия тестирования на основе рисков и приоритетные сценарии без изменения кода. ★597 ln-42-acceptance-test-builder Создание и запуск воспроизводимых приёмочных тестов на штатных инструментах проекта. ★597 ln-51-opportunity-evaluator Оценка новых продуктовых направлений по спросу, конкуренции, экономике и валидации. ★597 ln-31-performance-optimizer Оптимизация известного узкого места через профилирование и эксперименты keep-or-discard. ★597 ln-34-benchmark-comparator Сравнение инструментов через воспроизводимые A/B-нагрузки и контролируемые замеры. ★597 ln-63-release-publisher Подготовка и публикация тегированного релиза GitHub на основе данных репозитория. ★597

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

ruflo-rvfruvnet · Формат RVF для переносимой памяти агентов, сохранения сессий и кросс-платформенного…
240 комп.
context-managementwshobson · Сохранение и восстановление контекста, управление долгими диалогами.
495 комп.
statement-auditoranthropics · Проверяет заранее подготовленные отчёты для LP перед рассылкой
186 комп.
ai-firstifyanthropics · AI-аудитор проектов и реинжиниринг на основе 9 принципов и 7 паттернов проектирования из…
233 комп.
Security Auditoranthropics · Аудит безопасности: OWASP Top 10, CWE, CVE, секреты, инъекции.
31 495 ★
cavemanalirezarezvani · Режим сверхсжатого общения. Сокращает расход токенов на 20–50% (до 75%), убирая воду и…
510 комп.
compliance-team-iso42001alirezarezvani · Специалист по ISO/IEC 42001: анализ пробелов AIMS, реестр рисков ИИ, планирование аудита.
510 комп.
data-quality-auditoralirezarezvani · Аудит наборов данных на полноту, согласованность, точность и валидность. 3…
510 комп.
engineering-advanced-skillsalirezarezvani · 37 продвинутых инженерных навыков: дизайн агентов, RAG-архитектор, проектирование БД и…
510 комп.
kubernetes-operatoralirezarezvani · Полный цикл работы с Kubernetes Operator: проектирование CRD, паттерны reconcile-loop и…
510 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8