macro: Agent for Claude Code

.pi/agents/db-checker.md

db-checker is an agent for Claude Code from macro-inc/macro. It costs 44 tokens per session (734 once invoked), scanned A, original, AGPL-3.0.

A database-focused reviewer for Rust code that uses SQLx, a Rust library for working with SQL databases.

In plain words
What is it for?
Use it to inspect Rust SQLx changes, check SQLx macro usage, run just preparedb when queries change, and report concerns.
Why use it?
It catches query, performance, security, and database-preparation issues in changed code before review is complete.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is macro-inc/macro's own configuration. It tells Claude Code how to work on macro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything macro configures →

About the project

Macro is a shared workspace that brings email, chat, documents, tasks, AI agents, calls, and customer relationship management into one connected system. It is for teams that want work information and cross-references in a single searchable environment. The catalogue entries provide skills, instructions, MCP integrations, commands, settings, and an agent for working with Macro.

macro-inc/macro · 5,438 stars · on GitHub · macro.com

Reuse

Borrowing it

Nothing to install: this file belongs to macro-inc/macro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/macro-inc/macro/main/.pi/agents/db-checker.md
Clone the repo
git clone --depth 1 https://github.com/macro-inc/macro

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for db-checker

README.md
[![agentmods](https://agentmods.dev/badge/agents/macro-inc/macro/db-checker/github.svg)](https://agentmods.dev/agents/macro-inc/macro/db-checker)
Your own site
<a href="https://agentmods.dev/agents/macro-inc/macro/db-checker"><img src="https://agentmods.dev/badge/agents/macro-inc/macro/db-checker/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for db-checker

Your own site · 80×15
<a href="https://agentmods.dev/agents/macro-inc/macro/db-checker"><img src="https://agentmods.dev/badge/agents/macro-inc/macro/db-checker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00734
Opus 5.5 $0.00018 $0.00294
Sonnet 5.5 $0.00009 $0.00147
Haiku 4.5 $0.00004 $0.00073

Measured 13d ago against content hash 4b732188b1ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

db-checker scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.pi/agents/db-checker.md · 54 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed 4b732188b1ed
  2. 1mo ago Changed · +9 lines · -2 tokens per session 2469d25d3089
  3. 2mo ago First seen · 45 lines · 46 tokens per session scan A 984120f18e63

Subscribe to this mod's changes

db-checker is an agent published in the GitHub repository macro-inc/macro (5,438 stars, last pushed today), licensed AGPL-3.0. It adds 44 tokens to every session and 734 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

performance-profiler

Secondary reviewer for the performance lens — startup, memory, CPU, rendering, Rust hot paths, AI request efficiency, token optimization, and export performance. Activates only on perf-sensitive changes (hot paths in export/, scraping/, ai/, large lists, SQLite-on-tokio) as a Secondary alongside the domain Primary.

saeedkolivand/ai-job-hunter-app · 68 tokens

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

data-engineer

Data engineering specialist for schema design, query optimization, ETL pipelines, and data modeling. Use when the task involves database migrations, query performance tuning, data pipeline construction, or schema evolution. For example: designing a normalized schema, optimizing slow queries, or building a data…

josstei/maestro-orchestrate · 61 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data. Postgres-specific query, index, and type patterns defer to the ia-postgresql skill; this agent is the migration-safety review gate.

iliaal/whetstone · 69 tokens

codesage-feature-reviewer

Review one CodeSage feature slice and return strict JSON findings.

iliaal/codesage · 19 tokens

extension-reviewer

Primary reviewer for the browser extension (apps/extension/ — MV3, Chrome + Firefox) and the desktop⇄extension bridge (native-host + loopback WebSocket pairing/token auth, origin allowlist) plus the shared extension protocol. Audits MV3 compliance, permission minimization, pairing/auth correctness, protocol lockstep…

saeedkolivand/ai-job-hunter-app · 88 tokens