banco-de-dados-ops

banco-de-dados-ops is a skill for Claude Code, Codex from ricneves-ai/flowgrammers-skills. It costs 55 tokens per session (889 once invoked), scanned A, original, MIT.

A guide to operating relational and non-relational databases, with emphasis on PostgreSQL and MySQL. It covers data models, queries, indexes, versioned migrations, backups, and recovery.

In plain words
What is it for?
Use it to design schemas, write and optimize queries, choose indexes, create migrations with rollback plans, and plan backup and recovery procedures.
Why use it?
It helps prevent slow queries, unsafe schema changes, data loss, and inconsistent handling of stored values. It also explains how to make database changes reversible.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions AGENTS.md; mentions Codex; built for openclaw.

Good fit Use it to design schemas, write and optimize queries, choose indexes, create migrations with rollback plans, and plan backup and recovery procedures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ricneves-ai/flowgrammers-skills/banco-de-dados-ops
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 ricneves-ai/flowgrammers-skills --skill banco-de-dados-ops
Clone the repo
git clone --depth 1 https://github.com/ricneves-ai/flowgrammers-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 banco-de-dados-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/ricneves-ai/flowgrammers-skills/banco-de-dados-ops/github.svg)](https://agentmods.dev/skills/ricneves-ai/flowgrammers-skills/banco-de-dados-ops)
Your own site
<a href="https://agentmods.dev/skills/ricneves-ai/flowgrammers-skills/banco-de-dados-ops"><img src="https://agentmods.dev/badge/skills/ricneves-ai/flowgrammers-skills/banco-de-dados-ops/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 banco-de-dados-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/ricneves-ai/flowgrammers-skills/banco-de-dados-ops"><img src="https://agentmods.dev/badge/skills/ricneves-ai/flowgrammers-skills/banco-de-dados-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 889 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.00055 $0.00889
Opus 5 $0.00028 $0.00445
Sonnet 5 $0.00011 $0.00178
Haiku 4.5 $0.00006 $0.00089

Measured 9d ago against content hash 778628e4fda5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

banco-de-dados-ops 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 9d 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.

codigo-automacao/banco-de-dados-ops/SKILL.md · 101 lines

How it starts

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

Especialista em Operações de Banco de Dados

Você é um DBA / engenheiro de dados sênior. Seu papel é criar modelos de dados eficientes, queries otimizadas e operações de banco seguras e reversíveis.

Quando Usar Esta Skill

  • Modelar schema de banco relacional (normalização, relacionamentos)
  • Criar queries complexas com JOINs, CTEs e window functions
  • Identificar e resolver queries lentas com EXPLAIN ANALYZE
  • Criar estratégia de indexação para queries de produção
  • Escrever migrations versionadas com rollback seguro

Princípios de Modelagem

Normalização

  • 1NF: sem grupos repetidos, chave primária única
  • 2NF: sem dependências parciais (elimina redundância)
  • 3NF: sem dependências transitivas
  • Desnormalizar conscientemente quando performance exige

Tipos de Dados Brasileiros

-- CPF e CNPJ: armazenar como string (preservar zeros à esquerda)
cpf VARCHAR(14),          -- 000.000.000-00
cnpj VARCHAR(18),         -- 00.000.000/0000-00

-- CEP: VARCHAR nunca INT
cep VARCHAR(9),           -- 01310-100

-- Valores monetários: DECIMAL, nunca FLOAT
preco DECIMAL(10, 2),     -- Evita problemas de arredondamento

-- Datas com timezone BR
criado_em TIMESTAMPTZ DEFAULT NOW(),

Indexação

  • INDEX em colunas de WHERE e JOIN frequentes
  • Índice composto: ordem importa (coluna mais seletiva primeiro)
  • Índice parcial para subsets (ex: apenas pedidos ativos)
  • EXPLAIN ANALYZE antes e depois de criar índice

Migrations com Rollback

-- Migration UP
ALTER TABLE usuarios ADD COLUMN plano_id INTEGER REFERENCES planos(id);

-- Migration DOWN (rollback)
ALTER TABLE usuarios DROP COLUMN plano_id;

Contexto Brasileiro

  • Charset: sempre UTF-8 com collation pt_BR para acentuação correta
  • Timezone: America/Sao_Paulo como default (ou UTC com conversão na app)
  • LGPD: colunas com PII devem ter comentário e política de retenção
  • Dados de NF-e: CHAVE_NF (44 chars), armazenar como VARCHAR(44)

Exemplos de Prompts

Use database-ops para otimizar esta query que está levando [X] segundos:
[SQL query]
Tabela tem [Y] registros. Índices existentes: [lista].
Me dê EXPLAIN ANALYZE esperado, índices recomendados e versão otimizada.

Read the full file on GitHub · 101 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. 9d ago First seen · 101 lines · 55 tokens per session scan A 778628e4fda5

Subscribe to this mod's changes

banco-de-dados-ops is a skill published in the GitHub repository ricneves-ai/flowgrammers-skills (112 stars, last pushed 3mo ago), licensed MIT. It adds 55 tokens to every session and 889 once invoked, about $0.0003 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.