data-data-api

data-data-api is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 143 tokens per session (4,705 once invoked), scanned A, original, MIT.

A data-API guide for exposing database information through REST or GraphQL APIs. It covers generated endpoints, authentication, authorization, real-time updates, and performance.

In plain words
What is it for?
Design Hasura, PostgREST, or WunderGraph APIs, set row- and column-level permissions, add real-time subscriptions, and plan caching and rate limits.
Why use it?
It helps applications share database data safely without every client needing direct database access or custom endpoint code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

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.

agentmods
npx agentmods add skills/j4flmao/agent-skills/data-api
Any agent
npx skills add j4flmao/agent-skills --skill data-api
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

Made for: Claude Code, Codex.

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 data-data-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/data-api.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/data-api)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/data-api"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/data-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,705 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00143 $0.04705
Opus 5 $0.00072 $0.02353
Sonnet 5 $0.00029 $0.00941
Haiku 4.5 $0.00014 $0.00470

Measured 3d ago against content hash 7929a8c75f4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

data-data-api 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 3d 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.

skills/data/data-api/SKILL.md · 572 lines

How it starts

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

Data Data API

Purpose

Design and deploy data APIs using Hasura (GraphQL) or PostgREST (REST) with authorization, real-time subscriptions, performance optimization, and security patterns.

Agent Protocol

Trigger

Exact user phrases: "data API", "Hasura", "PostgREST", "WunderGraph", "GraphQL for data", "REST API for data", "instant API", "database API", "real-time API", "data authorization", "data gateway", "auto-generated API".

Input Context

  • Database(s) to expose (PostgreSQL, MySQL, SQL Server)
  • API style preference (GraphQL, REST, both)
  • Authentication provider (Auth0, Keycloak, Cognito, custom)
  • Authorization model (RBAC, column-level, row-level)
  • Real-time requirements (subscriptions, webhooks)
  • Performance requirements (latency, throughput, caching)
  • API consumers (frontend, mobile, external, internal services)
  • Rate limiting and throttling needs

Output Artifact

Data API architecture with tool selection (Hasura/PostgREST/WunderGraph), authorization model (row-level, column-level, session), real-time subscription setup, and performance strategy.

Response Format

# API tool selection
# Hasura/PostgREST configuration
# Authorization rules (row + column level)
# Real-time subscription config
# Caching and performance tuning

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • API tool selected with rationale
  • Database connected and tables tracked
  • Row-level security (RLS) configured for all tables
  • Column-level permissions set per role
  • Real-time subscriptions enabled where needed
  • Caching and rate limiting configured
  • API monitoring and logging set up
  • Error handling and mutation constraints defined

Max Response Length

350 lines of configuration.

Workflow

Step 1: Select API Tool

Tool Comparison Matrix
Tool API Style Database Support Real-time Auth
Hasura GraphQL + REST Postgres, MySQL, SQL Server, BigQuery, Snowflake Subscriptions, live queries JWT, Webhook, OIDC
PostgREST REST PostgreSQL only Webhooks (trigger) JWT, API key, OAuth
WunderGraph GraphQL + REST + RPC Postgres + any OpenAPI/gRPC Server-sent events JWT, OIDC, API key

Read the full file on GitHub · 572 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 572 lines · 143 tokens per session scan A 7929a8c75f4f

Subscribe to this mod's changes

data-data-api is a skill published in the GitHub repository j4flmao/agent-skills (21 stars, last pushed yesterday), licensed MIT. It adds 143 tokens to every session and 4,705 once invoked, about $0.0007 per session on Opus 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-09-03.