mako-database

mako-database is a skill for Claude Code from drhalto/agentmako. It costs 53 tokens per session (663 once invoked), scanned A, original, Apache-2.0.

A database-inspection skill for projects with a live database connection. It examines tables, columns, relationships, security policies, and stored database functions.

In plain words
What is it for?
Use it to check database connectivity, inspect columns and table definitions, review foreign keys, examine row-level security policies, and inspect stored procedures or database functions.
Why use it?
It provides direct answers about how a database is structured and protected without confusing database questions with questions about application code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the mako-ai plugin — 8 skills, 1 MCP server shipped together

Good fit Use it to check database connectivity, inspect columns and table definitions, review foreign keys, examine row-level security policies, and inspect stored procedures or database functions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drhalto/agentmako/mako-database
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add drhalto/agentmako --skill mako-database
Clone the repo
git clone --depth 1 https://github.com/drhalto/agentmako

Made for: Claude Code.

Or install mako-ai, the plugin that ships this one along with the rest of its 8 skills, 1 MCP server.

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 mako-database

README.md
[![agentmods](https://agentmods.dev/badge/skills/drhalto/agentmako/mako-database/github.svg)](https://agentmods.dev/skills/drhalto/agentmako/mako-database)
Your own site
<a href="https://agentmods.dev/skills/drhalto/agentmako/mako-database"><img src="https://agentmods.dev/badge/skills/drhalto/agentmako/mako-database/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 mako-database

Your own site · 80×15
<a href="https://agentmods.dev/skills/drhalto/agentmako/mako-database"><img src="https://agentmods.dev/badge/skills/drhalto/agentmako/mako-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 663 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 original 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.00053 $0.00663
Opus 5.5 $0.00021 $0.00265
Sonnet 5.5 $0.00011 $0.00133
Haiku 4.5 $0.00005 $0.00066

Measured 1mo ago against content hash 3621b86e7086, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mako-database 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 1mo 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.

mako-ai-claude-plugin/skills/mako-database/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mako Database

Use this skill for direct database introspection. These tools require the project to have a live DB binding configured. If the user asks how app code uses database objects, use trace or neighborhood tools instead.

Tools

db_ping

Use to verify database connectivity and project wiring.

  • Best when DB tools seem unavailable or the user asks whether the DB is connected.
  • Use before deeper DB queries when the binding is uncertain.

db_columns

Use to inspect columns and primary-key details for one or more tables.

  • Best for narrow column questions.
  • Use db_table_schema when indexes, constraints, triggers, or broader table shape matter.

db_fk

Use to inspect foreign keys and relationships.

  • Best for inbound/outbound relationship questions.
  • Pair with table_neighborhood when code readers/writers also matter.

db_rls

Use to inspect row-level security status and policies.

  • Best for policy and protection questions.
  • Pair with tenant_leak_audit for broader tenant-boundary risk review.

db_rpc

Use to inspect database RPC/function definitions, signatures, args, return shape, language, and security.

  • Pair with rpc_neighborhood or trace_rpc when app-code callers matter.

db_table_schema

Use to inspect the full table shape, including columns, indexes, constraints, foreign keys, RLS, and triggers.

  • Use when column-only output is insufficient.
  • Pair with trace_table or table_neighborhood when code usage matters.

Feedback Logging

Log agent_feedback when a DB introspection result here was notably useful, partial, noisy, stale, wrong, or wasted the turn. Skip routine calls.

Required procedure (see /mako-ai:mako-guide for full rules and reason-code vocabulary):

  1. Call recall_tool_runs to get the prior run's requestId. Do not fabricate one — if no run is recalled, skip feedback.
  2. Call agent_feedback with referencedToolName, referencedRequestId, grade: "full" | "partial" | "no", reasonCodes from the starter vocabulary in /mako-ai:mako-guide, and a short reason.

Read the full file on GitHub · 88 lines

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. 1mo ago First seen · 88 lines · 53 tokens per session scan A 3621b86e7086

Subscribe to this mod's changes

mako-database is a skill published in the GitHub repository drhalto/agentmako (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 53 tokens to every session and 663 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.