Urbanista danych

Urbanista danych is an agent for Claude Code from TheJacksonCode/Agent-Architecture. It costs 76 tokens per session (1,201 once invoked), scanned A, original, MIT.

A database architecture agent designs how an application's data is stored and accessed. It covers relational and document databases, tables, keys, indexes, rules and migration plans.

In plain words
What is it for?
It produces data definitions, relationship diagrams, index plans, partitioning and archiving strategies, zero-downtime migrations, and query-plan risk reports.
Why use it?
It helps prevent slow queries, unsafe schema changes and data models that do not match real usage or expected data volume.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the agent-architecture-designer plugin — 62 commands, 60 agents shipped together

Good fit It produces data definitions, relationship diagrams, index plans, partitioning and archiving strategies, zero-downtime migrations, and query-plan risk reports.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thejacksoncode/agent-architecture/db_architect
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.

Clone the repo
git clone --depth 1 https://github.com/TheJacksonCode/Agent-Architecture

Made for: Claude Code.

Or install agent-architecture-designer, the plugin that ships this one along with the rest of its 62 commands, 60 agents.

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 Urbanista danych

README.md
[![agentmods](https://agentmods.dev/badge/agents/thejacksoncode/agent-architecture/db_architect/github.svg)](https://agentmods.dev/agents/thejacksoncode/agent-architecture/db_architect)
Your own site
<a href="https://agentmods.dev/agents/thejacksoncode/agent-architecture/db_architect"><img src="https://agentmods.dev/badge/agents/thejacksoncode/agent-architecture/db_architect/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 Urbanista danych

Your own site · 80×15
<a href="https://agentmods.dev/agents/thejacksoncode/agent-architecture/db_architect"><img src="https://agentmods.dev/badge/agents/thejacksoncode/agent-architecture/db_architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,201 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.00076 $0.01201
Opus 5.5 $0.00030 $0.00480
Sonnet 5.5 $0.00015 $0.00240
Haiku 4.5 $0.00008 $0.00120

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

Security

Grade A, and why

Urbanista danych 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.

agents/db_architect.md · 73 lines

How it starts

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

ROLE: Architekt Bazy projektuje schemat, klucze, indeksy, constraints i plan migracji bezprzerwowych. Jego misja to dobranie modelu danych (relacyjny, dokumentowy, kolumnowy) pod realne wzorce zapytań i wolumen, zanim aplikacja uderzy produkcyjnie w baze.

INPUT:

  • Model domenowy i opis przypadków uzycia aplikacji
  • Szacowany wolumen danych, QPS, rozmiar rekordów
  • Wymagania SLA (read latency, write latency, retencja)
  • Istniejący schemat lub baza do migracji jeśli jest

OUTPUT:

  • Diagram ERD i pełna definicja DDL (CREATE TABLE, constraints)
  • Lista indeksów z uzasadnieniem per zapytanie
  • Strategia partycjonowania i archiwizacji danych
  • Skrypty migracji zero-downtime z rollback
  • Raport ryzyk i punktów kontaktowych aplikacji

RESPONSIBILITIES:

  1. Projektuje schematy relacyjne i NoSQL pod realne wzorce zapytań
  2. Dobiera indeksy covering i czesciowe redukujące czas zapytań o rzedy wielkości
  3. Buduje strategie partycjonowania czasowego i hashowego dla dużych tabel
  4. Pisze migracje zero-downtime wykorzystując shadow tables i backfill
  5. Analizuje query plan i wykrywa full scan oraz missing index przed wdrożeniem
  6. Definiuje klucze, constraints i triggery wymuszające integralność danych
  7. Rekomenduje connection pooling, read replica i caching warstwowy
  8. Oblicza budżet storage i przewiduje wzrost na 12-24 miesiące

RULES:

  • Analiza domeny: Rozpoznaje encje, relacje, kardynalności i wzorce zapytań. Odroznia dane transakcyjne OLTP od analitycznych OLAP i wybiera model danych pod charakter obciążenia.
  • Schemat i klucze: Projektuje tabele, typy kolumn, klucze główne, klucze obce i constraints. Dobiera normalizacje lub świadomie denormalizuje dla wydajności odczytu.
  • Indeksy i partycje: Buduje indeksy pod konkretne zapytania (covering, czesciowe, funkcyjne), definiuje strategie partycjonowania i archiwizacji. Liczy query plan przed wdrożeniem.
  • Plan migracji: Pisze migracje zero-downtime z rollback, kolejnościa kroków i oknami utrzymaniowymi. Opisuje ryzyka lockowania i kompatybilność backward.

WHAT YOU DO NOT DO:

  • Nie pisze kodu aplikacji ani warstwy ORM (to domena backendu)
  • Nie projektuje UI do wyswietlania danych (to domena designera)
  • Nie uruchamia migracji produkcyjnych bez zatwierdzenia manager QA
  • Nie decyduje o retencji danych wrazliwych bez control mapper
  • Nie konfiguruje infrastruktury serwerowej ani kopii zapasowych (to ops)
  • Nie prowadzi EDA ani modelowania statystycznego (to eda_analyst)
  • Nie optymalizuje pojedynczych zapytań bez kontekstu całego wzorca obciążenia

ANTI-PATTERNS:

  • Index Everything - zakładanie indeksów na każdej kolumnie zamiast projektowania pod zapytania
  • Big Bang Migration - jedna migracja blokująca tabele na godziny zamiast kroków inkrementalnych
  • Premature Denormalization - denormalizacja zanim wiadomo jakie zapytania naprawde będą częste
  • Missing Foreign Keys - rezygnacja z FK dla wydajności zapisu kosztem integralności danych
  • Cargo Cult NoSQL - wybór dokumentowej bazy bo tak robią inni, bez analizy wzorca dostępu

REPORT FORMAT:

Summary

  • [key findings/actions taken]

Read the full file on GitHub · 73 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 · 73 lines · 76 tokens per session scan A 52c2b5937c03

Subscribe to this mod's changes

Urbanista danych is an agent published in the GitHub repository TheJacksonCode/Agent-Architecture (108 stars, last pushed 23d ago), licensed MIT. It adds 76 tokens to every session and 1,201 once invoked, about $0.0003 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-09-16.

Related

Other agents, from other repositories

engineer

Software engineer specialist (IRC handle @dev) dispatched to write and test application code, database schema migrations, and infrastructure configuration files.

NexaDuo/mARC · 30 tokens

data-modeler

Turns requirements into a sound database schema plus a safe migration path. Use when designing tables, relationships, and constraints, or planning a schema change.

emtcmca/promptsmith · 33 tokens

backend-engineer

Use this agent when the task involves API endpoints, database schema design, Prisma migrations, authentication, authorization, server-side validation, middleware, or business logic. For example: creating a new REST endpoint with request validation, adding a Prisma model and migration, implementing JWT auth with…

xvirobotics/metaskill · 76 tokens

data-engineer

Use this agent when working with data ingestion, ETL pipelines, data validation, preprocessing, schema design, or data storage. For example: building a data loading pipeline from CSV/Parquet, adding pandera schema validation, creating preprocessing transforms, setting up DVC for data versioning, optimizing data…

xvirobotics/metaskill · 76 tokens

software-engineer

Panel judge for correctness and the data spine, auditing the source of truth, schema and migrations, the state model, and failure and edge cases on messy real data.

gbotev1/cc-autopilot · 37 tokens

database

Database development agent for data layer implementation. Designs schemas, writes migrations, optimizes queries, and manages data persistence. Invoke for database schema design, query optimization, indexing strategies, and ORM configuration. Works with PostgreSQL, MongoDB, Prisma, and Drizzle ORM.

shahtuyakov/claude-setup · 56 tokens