/mako-database
TRIGGER when: user asks about database schema, RLS policies, foreign keys, stored procedures, or table DDL directly. Covers `db_ping`, `db_columns`, `db_fk`, `db_rls`, `db_rpc`, `db_table_schema`.
$ npx -y skills add drhalto/agentmako --skill mako-database --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/mako-database
Context preview
The summary Claude sees to decide when to auto-load this skill.
TRIGGER when: user asks about database schema, RLS policies, foreign keys, stored procedures, or table DDL directly. Covers `db_ping`, `db_columns`, `db_fk`, `db_rls`, `db_rpc`, `db_table_schema`.
SKILL.md
mako-database.SKILL.mddescription: >-
TRIGGER when: user asks about database schema, RLS policies, foreign keys,
stored procedures, or table DDL directly. Covers `db_ping`, `db_columns`,
`db_fk`, `db_rls`, `db_rpc`, `db_table_schema`.
when_to_use: >-
Use for focused live database introspection when the question is about schema,
policies, relationships, or stored procedures rather than app-code usage.
allowed-tools: "mcp__mako-ai__*"
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`.
See Also
- Use `/mako-ai:mako-neighborhoods` for table/RPC context that combines DB facts
with app-code usage.
- Use `/mako-ai:mako-trace` for table/RPC traces through code and schema.
- Use `/mako-ai:mako-workflow` for tenant audits and review artifacts.
Read more
description: >- TRIGGER when: user asks about database schema, RLS policies, foreign keys, stored procedures, or table DDL directly. Covers `db_ping`, `db_columns`, `db_fk`, `db_rls`, `db_rpc`, `db_table_schema`. when_to_use: >- Use for focused live database introspection when the question is about schema, policies, relationships, or stored procedures rather than app-code usage. allowed-tools: "mcp__mako-ai__*"
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`.
See Also
- Use `/mako-ai:mako-neighborhoods` for table/RPC context that combines DB facts
with app-code usage.
- Use `/mako-ai:mako-trace` for table/RPC traces through code and schema.
- Use `/mako-ai:mako-workflow` for tenant audits and review artifacts.
agentmako is a local-first codebase intelligence engine for AI coding tools. It gives agents like Codex, Claude Code, Cursor, and local harnesses a compact Reef-first tool surface for understanding a project before they edit it.
Repo: drhalto/agentmako
Other skills on agentmako.
- /mako-code-intel
TRIGGER when: user wants structural code pattern search (ast-grep) or static lint against selected files, or wants to turn a fix diff into a rule-pack draft. Covers `ast_find_pattern`, `lint_files`, `extract_rule_template`.
Open skill - /mako-discovery
TRIGGER when: user is working in an unfamiliar repo, asks 'where is X', 'what touches Y', needs broad search across code/schema/routes, or is unsure which mako tool fits the task. Covers `reef_ask`, `reef_status`, `reef_verify`, `reef_impact`, `mako_help`, `tool_search`,
Open skill - /mako-graph
TRIGGER when: user asks about relationships, dependency paths, import hotspots or cycles, symbol impact, or blast radius of a proposed change. Covers `graph_neighbors`, `graph_path`, `flow_map`, `change_plan`, `imports_deps`, `imports_impact`, `imports_hotspots`,
Open skill - /mako-guide
Start here when working in a project with the mako-ai MCP server configured. Entry point that explains how mako's tool skills are organized and carries the policy for logging `agent_feedback` vs acknowledging static findings with `finding_ack`.
Open skill - /mako-neighborhoods
TRIGGER when: user wants entity-wide context for a table, route, or RPC -- schema + RLS + readers + writers + downstream touches all at once. Covers `table_neighborhood`, `route_context`, `rpc_neighborhood`.
Open skill - /mako-trace
TRIGGER when: user asks to trace a specific route, schema object, file, table, RPC, or error string through its evidence. Covers `route_trace`, `schema_usage`, `file_health`, `auth_path`, `trace_file`, `preflight_table`, `trace_edge`, `trace_error`, `trace_table`, `trace_rpc`.
Open skill

