Agent skill

Ln 57 Persistence Auditor

by levnikolaevich in levnikolaevich/claude-code-skills

Audits queries, transactions, consistency and persistence resource lifetimes; read-only.

MITAuto-check passed

Install Ln 57 Persistence Auditor

skills CLI
$ npx skills add levnikolaevich/claude-code-skills --skill ln-57-persistence-auditor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install levnikolaevich/claude-code-skills ln-57-persistence-auditor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/levnikolaevich/claude-code-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/quality-assurance-suite/skills/ln-57-persistence-auditor .claude/skills/ln-57-persistence-auditor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ln-57-persistence-auditor
GitHub stars
574
Token cost
~3.5k tokens
SKILL.md length
1,698 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

Audits queries, transactions, consistency and persistence resource lifetimes; read-only.

  • Works in 5 steps: Establish the Data and Runtime Context → Audit Query and Cache Efficiency → Audit Transactions and Consistency → …
  • SKILL.md covers Tool Routing, Evidence Rules, Checklist and Self-Check, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ln 57 Persistence Auditor is an agent skill from levnikolaevich/claude-code-skills. Audits queries, transactions, consistency and persistence resource lifetimes; read-only.

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Help your AI agent finish the job: solve the right problem, keep changes focused, and show what was verified. For Claude Code and Codex. The licence is MIT.

Example prompts

  • “Use the ln-57-persistence-auditor skill to audit queries, transactions, consistency and persistence resource lifetimes; read-only”
  • “/ln-57-persistence-auditor”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Establish the Data and Runtime Context
  2. Audit Query and Cache Efficiency
  3. Audit Transactions and Consistency
  4. Audit Runtime and Resource Lifecycle
  5. Validate Findings and Report

What it can do on your machine

Read from SKILL.md and the folder at commit 0ce8796. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ln 57 Persistence Auditor loads about 3.5k tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 1,698 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from levnikolaevich/claude-code-skills at commit 0ce8796, republished under its MIT licence (© levnikolaevich). 1,698 words, ~3,479 tokens.

Download SKILL.mdSave it as .claude/skills/ln-57-persistence-auditor/SKILL.md (or your agent's skills folder).
name
ln-57-persistence-auditor
description
Audits queries, transactions, consistency and persistence resource lifetimes; read-only.

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: The checklist defines completion. Track each item internally as PENDING, PROVEN with evidence, CLEARED with evidence its condition is absent, or UNPROVEN with a gap; reading, delegation, tool failure, a zero exit status, or a self-reported success is not proof; only the observed outcome is. Reconcile after each section. Before returning, resolve all PENDING, count only PROVEN and CLEARED, and apply verdict and approval rules to every gap. Preserve intent, scope, and existing authorization. Continue authorized work; ask only for consequential unresolved choices or required external approval. When no one can answer during the run, state the exact question and apply the skill's verdict for the remaining gap instead of waiting or guessing. Scale depth to material risk without skipping checks. Preserve dependency and safety order; otherwise choose an appropriate verification method. Accept equivalent user or repository evidence; no other skill, named artifact, or complete lifecycle is required. Preserve source requirement and decision IDs. Bind reused evidence to relevant source versions, dirty changes, configuration, and environment; invalidate only affected claims. On continuation, reconcile task, authorization, current state, and unresolved evidence. For long work, return a compact continuation record or update an already authorized artifact; read-only skills do not persist it. Distinguish artifact readiness, verified behavior, and external-action authority. Prepare authorized work before required approval. If blocked by an instruction, cite its exact source and unresolved boundary; do not invent approval gates from caution.

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; record executed query shapes, commands, targets, and created artifacts with sensitive parameters, credentials, and row data redacted.
2. Audit Query and Cache Efficiency
  • Trace representative paths from entrypoint to generated query and materialization, including tenant/owner predicates and row-level controls where they determine which data may be read or changed.
  • Find N+1 behavior, repeated fetches, query-in-loop amplification, unnecessary sequential independent reads, and redundant existence/count queries; preserve snapshot, ordering, connection-budget, and transaction constraints when proposing batching or parallelism.
  • 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.
Show full SKILL.md (676 more words)Show less
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.
  • Apply the materiality gate: require concrete integrity, security, availability, latency, scalability, resource, or recurring maintenance impact at evidenced scale. Reject taste, theoretical purity, generic practice, hypothetical scale, and reasonable alternatives; require the outcome or constraint, not a preferred implementation.
  • External correction evidence: Ground external corrections in version-matched official contracts, using primary engineering sources for unresolved tradeoffs. Cite the supported mechanism; local evidence suffices for local defects.
  • For accepted persistence findings, name the data invariant, owning transaction/query boundary, and reproducible correction evidence without performing remediation.
  • Classify findings as P0-P3 based on data corruption, security, outage risk, scalability, latency, resource exhaustion, and recurrence.
  • 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.

Self-Check

  • Reconcile before returning. Check item-level evidence, requirement coverage, contradictions, scope, verdict, and applicable cleanup. Correct the report or authorized artifacts. Reuse valid evidence; do not automatically rescan the repository or rerun successful commands. Repeat checks only for relevant changes, failures, or unresolved evidence. Disclose remaining gaps.

Output Contract

Report in the user's language, in this order; label all five fields and state each fact once. Use controlled plain language: one fact per sentence, usually under 20 words, active voice, and one term per concept, with no synonyms for verdicts, IDs, or states. Small results may use one line per field; omit empty tables and do not copy linked artifacts:

  1. Result: The exact skill-specific verdict token first, then the supported outcome.
  2. Scope: Reviewed/changed scope, exclusions, baseline, and material assumptions.
  3. Evidence: Skill-specific fields below; distinguish facts, inferences, and unverified claims. Link artifacts; use tables when useful.
  4. Verification: Checks/results, unavailable evidence, and applicable cleanup/external state.
  5. Completion: Checklist: X/Y complete; Incomplete: None or each UNPROVEN item's reason, outcome impact, and exact next action; residual risks and required decisions.

Skill-specific evidence: Stores, versions, workload, deployment, and measured versus statically inspected paths; query/cache efficiency, transactions, consistency, and resource lifecycle. Findings need priority, call path/query/resource, evidence and confidence, failure or cost mechanism, workload impact, unacceptable tradeoff, and minimal safe correction plus verification. Label unmeasured impact and accepted consistency tradeoffs.

© levnikolaevich, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/quality-assurance-suite/skills/ln-57-persistence-auditor of levnikolaevich/claude-code-skills.

Open the folder on GitHubat commit 0ce8796

Compare with similar skills

Ln 57 Persistence Auditor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ln 57 Persistence Auditor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ln 57 Persistence Auditor this skilllevnikolaevich/claude-code-skills574—~3.5kAutomated safety check: PassMIT
AWS Resource Querygithub/awesome-copilot40k—~5.5kAutomated safety check: PassMIT
Audit Preparationsickn33/agentic-awesome-skills47k1 repos~5.3kAutomated safety check: PassMIT
Semantic Consistency Auditoraipoch/medical-research-skills1.9k—~3.1kAutomated safety check: PassMIT
Production Auditaffaan-m/ECC276k1 repos~1.9kAutomated safety check: PassMIT
Aims Auditalirezarezvani/claude-skills28k—~1.3kAutomated safety check: PassMIT

Similar skills

  • AWS Resource Query

    github/awesome-copilot

    Official

    Query AWS resources using natural language. An agent skill from github/awesome-copilot.

    40k GitHub stars~5.5k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Audit Preparation

    sickn33/agentic-awesome-skills

    Audit preparation register: required document, period covered, request and receipt dates, preparer and reviewer, auditor queries and adjustments.

    47k GitHub starsUsed in 1 repo~5.3k tokens
    Legal & ComplianceAuto-check passed
  • Semantic Consistency Auditor

    aipoch/medical-research-skills

    Use semantic consistency auditor for academic writing workflows that need structured execution, explicit assumptions, and clear output boundaries.

    1.9k GitHub stars~3.1k tokensUpdated 23 days ago
    Research & ScienceAuto-check passed
  • Production Audit

    affaan-m/ECC

    Local-evidence production readiness audit for shipped apps, pre-launch reviews, post-merge checks, and "what breaks in prod?" questions without sending repo data to an external audit service.

    276k GitHub starsUsed in 1 repo~1.9k tokens
    Product & Project ManagementAuto-check passed
  • Aims Audit

    alirezarezvani/claude-skills

    /cs:aims-audit <scope — ISO/IEC 42001 AIMS internal-audit 6-question forcing interrogation.

    28k GitHub stars~1.3k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Consistency Auditor

    zhnnky329/MathModeling-skills

    Run scoped or final cross-media consistency checks for mathematical-modeling artifacts, comparing canonical numbers, symbols, parameters, decisions, files, and paper claims without performing…

    1.1k GitHub stars~567 tokensUpdated 16 days ago
    Auto-check passed

More from levnikolaevich/claude-code-skills

All 31 skills in this repo
  • Ln 53 Documentation Auditor

    levnikolaevich/claude-code-skills

    Audits documentation and comments for trust, coverage, consistency and freshness; read-only.

    574 GitHub stars~3.8k tokensUpdated 5 days ago
    Auto-check passed
  • Ln 81 Skill Reviewer

    levnikolaevich/claude-code-skills

    Reviews skill instructions, trigger boundaries and distribution contracts; not product code.

    574 GitHub stars~3.5k tokensUpdated 5 days ago
    Auto-check passed
  • Ln 11 Opportunity Evaluator

    levnikolaevich/claude-code-skills

    Evaluates new product opportunities through demand, channels and economics before committing to build.

    574 GitHub stars~3k tokensUpdated 5 days ago
    Auto-check passed
  • Ln 12 Product Requirements Builder

    levnikolaevich/claude-code-skills

    Defines product requirements, business rules and acceptance criteria for a committed intent; edits product docs only.

    574 GitHub stars~1.9k tokensUpdated 5 days ago
    Auto-check passed
  • Ln 13 Interaction Design Builder

    levnikolaevich/claude-code-skills

    Designs user flows, interaction states and mockups for a defined product scope; does not implement UI code.

    574 GitHub stars~1.8k tokensUpdated 5 days ago
    Auto-check passed
  • Ln 21 System Design Baseline Builder

    levnikolaevich/claude-code-skills

    Defines measurable architecture drivers and constraints before system design; edits architecture docs only.

    574 GitHub stars~2.5k tokensUpdated 5 days ago
    Auto-check passed

Questions about Ln 57 Persistence Auditor

What does Ln 57 Persistence Auditor do?

Audits queries, transactions, consistency and persistence resource lifetimes; read-only. Ln 57 Persistence Auditor is an agent skill from levnikolaevich/claude-code-skills. Audits queries, transactions, consistency and persistence resource lifetimes; read-only.

How do I install Ln 57 Persistence Auditor in Claude Code?

Run `npx skills add levnikolaevich/claude-code-skills --skill ln-57-persistence-auditor -a claude-code`. Or copy the skill folder (plugins/quality-assurance-suite/skills/ln-57-persistence-auditor in levnikolaevich/claude-code-skills) into .claude/skills/ln-57-persistence-auditor in your project. Claude Code loads it when a task matches its description.

How do I install Ln 57 Persistence Auditor in Codex?

Run `npx skills add levnikolaevich/claude-code-skills --skill ln-57-persistence-auditor -a codex`. Or copy the skill folder (plugins/quality-assurance-suite/skills/ln-57-persistence-auditor in levnikolaevich/claude-code-skills) into .agents/skills/ln-57-persistence-auditor in your project. Codex loads it when a task matches its description.

Can I use Ln 57 Persistence Auditor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add levnikolaevich/claude-code-skills --skill ln-57-persistence-auditor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ln-57-persistence-auditor, .gemini/skills/ln-57-persistence-auditor, .github/skills/ln-57-persistence-auditor and .opencode/skills/ln-57-persistence-auditor in your project.

What does Ln 57 Persistence Auditor need to run?

SKILL.md names no scripts, command-line tools or credentials: Ln 57 Persistence Auditor is instructions for the agent only.

Does Ln 57 Persistence Auditor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ln 57 Persistence Auditor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ln 57 Persistence Auditor use?

Ln 57 Persistence Auditor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ln 57 Persistence Auditor use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ln 57 Persistence Auditor?

Skills that share tags, products or a category with Ln 57 Persistence Auditor: AWS Resource Query (github/awesome-copilot, 40k stars), Audit Preparation (sickn33/agentic-awesome-skills, 47k stars), Semantic Consistency Auditor (aipoch/medical-research-skills, 1.9k stars) and Production Audit (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ln 57 Persistence Auditor?

levnikolaevich (a GitHub user) maintains it in levnikolaevich/claude-code-skills, which has 574 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 5, 2026.

Source: levnikolaevich/claude-code-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.