data-tier

data-tier is a skill for Claude Code from ivegamsft/basecoat. It costs 81 tokens per session (290 once invoked), scanned A, original, MIT.

A data-layer guide for designing database schemas, writing migrations, reviewing queries, and defining how application code accesses data.

In plain words
What is it for?
Use it to plan tables and indexes, create migrations with rollback steps, review N+1 queries, build data dictionaries, and define repositories.
Why use it?
It helps prevent inconsistent schemas, unsafe changes, slow queries, and unclear data-access patterns.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to plan tables and indexes, create migrations with rollback steps, review N+1 queries, build data dictionaries, and define repositories.

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

Made for: Claude Code.

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-tier

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivegamsft/basecoat/data-tier.svg)](https://agentmods.dev/skills/ivegamsft/basecoat/data-tier)
Your own site
<a href="https://agentmods.dev/skills/ivegamsft/basecoat/data-tier"><img src="https://agentmods.dev/badge/skills/ivegamsft/basecoat/data-tier.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 290 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.00081 $0.00290
Opus 5 $0.00041 $0.00145
Sonnet 5 $0.00016 $0.00058
Haiku 4.5 $0.00008 $0.00029

Measured 4d ago against content hash 302f6c6d6d17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

data-tier 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 4d 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-tier/SKILL.md · 29 lines

What it actually says

Data Tier Skill

Schema design, database migrations, query review, indexing strategy, and data access pattern definition.

Templates in This Skill

Template Purpose
schema-design-template.md Schema design: entities, attributes, relationships, constraints, and indexes
migration-template.md Migration scaffold with up/down blocks, rollback plan, and zero-downtime notes
query-review-checklist.md Query review: N+1 check, index usage, pagination, explain plan guidance
data-dictionary-template.md Data dictionary: table, column, type, nullable, description, and example values

Agent Pairing

Use with data-tier agent. Schema changes require coordination with backend-dev to keep repository patterns aligned.

Files

What ships with it

5 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. 4d ago First seen · 29 lines · 81 tokens per session scan A 302f6c6d6d17

Subscribe to this mod's changes

data-tier is a skill published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed today), licensed MIT. It adds 81 tokens to every session and 290 once invoked, about $0.0004 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

build-with-tinybase

Scaffold, extend, and verify reactive local-first JavaScript or TypeScript applications with TinyBase. Use when choosing TinyBase for in-memory tabular or key-value state, generating an app with create-tinybase, adding schemas or UI bindings, configuring browser or database persistence, configuring MergeableStore…

tinyplex/tinybase · 76 tokens

database

Query and manage SQLite, PostgreSQL, and MySQL databases from the command line. Use when the user asks to run SQL queries, inspect database schemas, create or alter tables, import or export data, manage indexes, analyze query performance with EXPLAIN, back up or restore databases, or perform CRUD operations via…

bug-ops/zeph · 76 tokens

qdrant

Manage Qdrant vector database via REST API. Use when the user asks to create or delete collections, upsert or search vectors, inspect points, filter by payload fields, manage snapshots, check cluster status, or debug semantic search issues. Covers collection CRUD, point upsert/search/scroll/count, payload indexes…

bug-ops/zeph · 88 tokens

analytical-databases-expert

Design and query columnar analytical stores: DuckDB, ClickHouse and cloud warehouses, including file formats, partitioning, sort keys and cost control. Use when the user mentions DuckDB, ClickHouse, Parquet, columnar storage, OLAP, a data warehouse or lakehouse, analytical queries over large tables, or when the task…

personamanagmentlayer/pcl · 100 tokens

mysql-expert

MySQL and MariaDB administration and development: InnoDB internals, indexing, query tuning, replication, and online schema change. Use when the user mentions MySQL, MariaDB, InnoDB, my.cnf, slow queries, EXPLAIN, binlog or replication lag, gtid, Percona or pt-online-schema-change, or when the task involves designing a…

personamanagmentlayer/pcl · 99 tokens

redis-expert

Expert-level Redis for caching, pub/sub, data structures, and high-performance applications. Use when the user mentions cache, pub/sub, in-memory stores, key-value stores, or NoSQL, or when the task involves Data Structures, Basic Operations, Advanced Patterns, or Redis Streams.

personamanagmentlayer/pcl · 61 tokens