ai-design-vault: Skill for Claude Code

.claude/skills/database/SKILL.md

database is a skill for Claude Code from textura-agency/ai-design-vault. It costs 84 tokens per session (804 once invoked), scanned A, original, Unlicense.

A workflow for adding or operating a database, including choosing one that fits the application's runtime and handling connections, migrations, generated types, and row-level security. It also checks whether a database is needed at all.

In plain words
What is it for?
Use it to decide whether database storage is justified, select a suitable hosted or local option, configure runtime and migration connections, create migrations, and protect rows and credentials.
Why use it?
The wrong database setup can exhaust connections in serverless applications, expose data from a browser, or add an unnecessary service to a site that does not have queryable, project-owned data.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is textura-agency/ai-design-vault's own configuration. It tells Claude Code how to work on ai-design-vault itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-design-vault configures →

Reuse

Borrowing it

Nothing to install: this file belongs to textura-agency/ai-design-vault. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/textura-agency/ai-design-vault/main/.claude/skills/database/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/textura-agency/ai-design-vault

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 database

README.md
[![agentmods](https://agentmods.dev/badge/skills/textura-agency/ai-design-vault/database/github.svg)](https://agentmods.dev/skills/textura-agency/ai-design-vault/database)
Your own site
<a href="https://agentmods.dev/skills/textura-agency/ai-design-vault/database"><img src="https://agentmods.dev/badge/skills/textura-agency/ai-design-vault/database/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 database

Your own site · 80×15
<a href="https://agentmods.dev/skills/textura-agency/ai-design-vault/database"><img src="https://agentmods.dev/badge/skills/textura-agency/ai-design-vault/database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 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.00084 $0.00804
Opus 5.5 $0.00034 $0.00322
Sonnet 5.5 $0.00017 $0.00161
Haiku 4.5 $0.00008 $0.00080

Measured 23d ago against content hash 8e51ab0db674, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database 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 23d 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.

.claude/skills/database/SKILL.md · 69 lines

How it starts

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

Database

1. Does this project need one?

A marketing site usually does not. Form submissions can go to a CRM or an email service; content belongs in a CMS. Add a database when there is genuinely relational, queryable, project-owned data. Say so if there is not.

2. Pick for the runtime, not the brand

framework.renderModel and the deploy target decide more than the vendor does.

  • Serverless / edge functions — connections are the problem, not SQL. Use a pooled or HTTP-based driver (Supabase's pooler, Neon serverless, PlanetScale, Turso). A plain long-lived TCP pool in a serverless function exhausts connections under load.
  • A long-lived Node server — a normal pool is fine.
  • Static/SPA with no server at all — you cannot talk to a database from the browser safely. Either add a serverless function layer, or use a service designed for public clients with row-level security enforced server-side.

3. The rules that actually bite

  • Connection strings are not interchangeable. Most hosted Postgres offers a pooled string for app runtime and a direct one for migrations and dumps. Transaction-mode pooling does not support prepared statements — disable them in the client. Running migrations through the pooler is the single most common setup failure.
  • Store both strings, validated, server-only in the env module. Never behind the public prefix.
  • Use current keys. Vendors rotate their key model (publishable/secret pairs replacing legacy JWTs). The secret key bypasses row-level security entirely — server only, never imported into a component.
  • Row-level security on every table holding user data, with an index on any column a policy filters. A table with RLS on and no policy is locked; a table with RLS off is wide open. Neither by accident.
  • Never point local development at the production database. A schema push rewrites it. Separate project, branch, or local instance.
  • One owner of the schema. If a CMS manages its own tables, it owns their migrations too — do not hand-write migrations against them.

Read the full file on GitHub · 69 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. 23d ago First seen · 69 lines · 84 tokens per session scan A 8e51ab0db674

Subscribe to this mod's changes

database is a skill published in the GitHub repository textura-agency/ai-design-vault (25 stars, last pushed 2mo ago), licensed Unlicense. It adds 84 tokens to every session and 804 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-10-14.

Related

database compared with skills from other repositories

database next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
databasetextura-agency/ai-design-vaultSkill252mo agoUnlicenseA84Claude Code
event-store-designwshobson/agentsSkill42kyesterdayMITA33Claude Code
platform-custom-field-generateforcedotcom/sf-skillsSkill1.1k2d agoApache-2.0A139Claude Code
field-service-sobject-create-configureforcedotcom/sf-skillsSkill1.1k2d agoApache-2.0A74Claude Code
durable-objectsfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A22Claude Code
nornicdb-grpcorneryd/NornicDBSkill923todayMITA98Claude Code, Codex
nw-ddd-eventsourcingnWave-ai/nWaveSkill631yesterdayMITA38Claude Code