agentleFS
bruuuuucebruuuuuce/mana/skills/database-read-verification/SKILL.md

database-read-verification

Skill2 starsChanged 4 months agoMITView on GitHub

Authors and executes explicitly approved PostgreSQL read-only verification queries against isolated test databases, preserving access-controlled result evidence and redacted reports.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify expected persisted state with approved PostgreSQL read-only queries on an isolated test database.

    line 43
  2. Very specific:

    Use after an approved integration/API/UI flow needs persistence evidence, or when a defect investigation needs a bounded, non-production …

    line 47
  3. Very specific:

    Only SELECT or non-mutating WITH queries are eligible.

    line 60
  4. Very specific:

    Write verification proposal, machine-readable run report, access-controlled log reference, and approval-required learning proposal.

    line 69
  5. Very specific:

    Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard).

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Database Read Verification

Purpose

Verify expected persisted state with approved PostgreSQL read-only queries on an isolated test database. It is not a generic database console or migration tool.

When To Use It

Use after an approved integration/API/UI flow needs persistence evidence, or when a defect investigation needs a bounded, non-production read verification.

Workflow

  1. Map requirements to aggregate, count, state, or referential-integrity checks.
  2. Store each query in a local .sql file and propose a catalog entry with a test-only connection environment-variable reference.
  3. Require DBA/owner approval for target, data classification, and entries.
  4. Execute selected IDs through scripts/run-db-verification.sh.
  5. Report only approved, non-sensitive result summaries and propose catalog improvements for future runs.

Rules

  • Only SELECT or non-mutating WITH queries are eligible; the runner rejects DDL, DML, locks, multiple statements, and non-isolated targets.
  • The connection string is supplied by an environment variable and is never read into a Mana report.
  • Queries must avoid customer data and prefer counts, IDs already approved for testing, and aggregate assertions.
  • Production access, mutations, migrations, and arbitrary client commands are blocked.

Outputs

Write verification proposal, machine-readable run report, access-controlled log reference, and approval-required learning proposal. Use templates/database-verification.template.yaml.

Decision Rules

  • passed: the read-only query completes successfully.
  • failed: the approved query returns a non-zero client result.
  • blocked: policy, query safety, target, approval, or client gate refuses execution.
  • inconclusive: result cannot distinguish product state from fixture or environment cause.

Output Standard

Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard). Use compact caveman mode and a context budget: retain query references, approved summaries, artifacts, gaps, and decisions, never connection strings or raw sensitive rows.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.