databases

databases is a skill for Kiro from ihatesea69/kiro-kit. It costs 34 tokens per session (365 once invoked), scanned A, original, MIT.

Guidance for designing and managing data stores such as PostgreSQL, MongoDB, and Redis. It covers how data is structured, queried, migrated, indexed, backed up, and served.

In plain words
What is it for?
It helps design schemas, write SQL and aggregation queries, improve query speed, plan migrations, configure replication and backups, and choose between relational and non-relational databases.
Why use it?
It helps avoid poorly designed data layers, slow queries, unsafe migrations, and storage choices that do not fit the application's needs.

Skill for Kiro

Written for Kiro: installed under .kiro/.

Good fit It helps design schemas, write SQL and aggregation queries, improve query speed, plan migrations, configure replication and backups, and choose between relational and non-relational databases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ihatesea69/kiro-kit/databases
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 ihatesea69/kiro-kit --skill databases
Clone the repo
git clone --depth 1 https://github.com/ihatesea69/kiro-kit

Made for: Kiro.

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 databases

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ihatesea69/kiro-kit/databases"><img src="https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/databases.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 365 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.00034 $0.00365
Opus 5 $0.00017 $0.00182
Sonnet 5 $0.00007 $0.00073
Haiku 4.5 $0.00003 $0.00036

Measured 6d ago against content hash 21b7e5fe8279, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

databases 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 6d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/db_backup.py, scripts/db_migrate.py, scripts/db_performance_check.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.kiro/skills/databases/SKILL.md · 55 lines

What it actually says

Databases

Activate this skill when working with database design, queries, migrations, or optimization.

When to Use

  • Designing database schemas and relationships
  • Writing complex queries or aggregation pipelines
  • Optimizing slow queries with indexes and execution plans
  • Planning and executing database migrations
  • Configuring replication, backups, or sharding
  • Choosing between SQL and NoSQL for a use case

PostgreSQL

  • Use EXPLAIN ANALYZE for query optimization
  • Create indexes based on WHERE, JOIN, and ORDER BY patterns
  • Use partial indexes for filtered queries
  • Prefer UUID or ULID for distributed primary keys
  • Use transactions for multi-statement operations
  • Implement row-level security for multi-tenant apps

MongoDB

  • Design schemas around access patterns (embed vs reference)
  • Use compound indexes matching query patterns
  • Leverage aggregation pipeline for complex transformations
  • Use change streams for real-time data sync
  • Implement schema validation at the database level

Redis

  • Use appropriate data structures (strings, hashes, sorted sets, streams)
  • Set TTL on all cache entries
  • Use Redis transactions (MULTI/EXEC) for atomic operations
  • Implement pub/sub for real-time messaging
  • Use Redis Streams for reliable message queues

Migration Rules

  • Migrations must be reversible (up and down)
  • Never modify a deployed migration -- create a new one
  • Test migrations against production-like data volumes
  • Use zero-downtime migration patterns for live systems
  • Back up data before destructive migrations
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. 6d ago First seen · 55 lines · 34 tokens per session scan A 21b7e5fe8279

Subscribe to this mod's changes

databases is a skill published in the GitHub repository ihatesea69/kiro-kit (18 stars, last pushed 20d ago), licensed MIT. It adds 34 tokens to every session and 365 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

ring:mapping-service-resources

Mapping a Go service's Service -> Module -> Resource hierarchy for dispatch-layer registration: detects modules and per-module PostgreSQL/MongoDB/RabbitMQ resources, database names, and shared databases, generates MongoDB index migration pairs (.up.json/.down.json), detects existing Postgres migrations, emits an HTML…

LerianStudio/ring · 97 tokens

migration-audit

Stack-aware migration safety audit: data loss risks, destructive ops without rollback, NOT NULL without DEFAULT, unsafe ALTER TYPE, lock-heavy DDL, constraint sequencing. Supports Prisma, Drizzle, Supabase CLI, raw SQL.

marcoguillermaz/Tierward · 0 tokens

databases

Use when creating, changing, or reviewing MongoDB/PostgreSQL/SQLite database work in a real repository, including schema, models, migrations, queries, indexes, transactions, connection config, backup/restore assumptions, dual-database desktop sync, or performance; follow repo-native tooling and meet the production…

tamnguyendinh/Anvien · 74 tokens

sqlike

Check SQL with sqlike — deterministic static analysis (validity, anti-patterns, rewrites, index advice) and query-equivalence verification. Use whenever you write, edit, review, or rewrite a SQL query, or need to prove two queries return the same results. Requires the sqlike MCP server (@sqlike/mcp) or the sqlike CLI…

orifisher2/sqlike · 81 tokens

israeli-postgres-toolkit

Best practices for PostgreSQL in Israeli apps, covering Supabase patterns, Hebrew text indexing with ICU collation, shekel/NIS currency handling, Israeli date formats, and Asia/Jerusalem timezone gotchas. Use when user asks to "set up Hebrew full-text search", "handle NIS currency in Postgres", "tipul b'ivrit…

squadcodercom/squadcoder · 199 tokens

zeabur-database

Use when deploying a database to Zeabur. Use when user needs MySQL, PostgreSQL, MongoDB, or Redis. Use when user says "I need a database", "add database", "deploy postgres", "set up MySQL", "add Redis", "add MongoDB", or "connect to database". Also use when user mentions data persistence issues like "data lost after…

zeabur/agent-skills · 120 tokens