data-storage

data-storage is a skill for Claude Code, Codex from d4rkNinja/arcforge. It costs 75 tokens per session (2,558 once invoked), scanned A, original, MIT.

A guide for designing and reviewing how an application stores data, including tables, documents, identifiers, dates, money, files, searches, deletion, and retention.

In plain words
What is it for?
Use it when designing or changing a database or file store, reviewing queries and indexes, planning deletion or retention, checking data provenance, or verifying storage behavior.
Why use it?
It exposes long-term risks that quick schema designs can miss, such as inaccurate values, unsafe constraints, poor indexes, duplicate records, and unclear data ownership.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/d4rkninja/arcforge/data-storage
Any agent
npx skills add d4rkNinja/arcforge --skill data-storage
Clone the repo
git clone --depth 1 https://github.com/d4rkNinja/arcforge

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 data-storage

README.md
[![agentmods](https://agentmods.dev/badge/skills/d4rkninja/arcforge/data-storage.svg)](https://agentmods.dev/skills/d4rkninja/arcforge/data-storage)
Your own site
<a href="https://agentmods.dev/skills/d4rkninja/arcforge/data-storage"><img src="https://agentmods.dev/badge/skills/d4rkninja/arcforge/data-storage.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,558 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00075 $0.02558
Opus 5 $0.00037 $0.01279
Sonnet 5 $0.00015 $0.00512
Haiku 4.5 $0.00007 $0.00256

Measured 3d ago against content hash 3c71bd334ef7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-storage 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 3d 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-storage/SKILL.md · 158 lines

How it starts

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

Think Through Data & Storage

Overview

Production guidance for data modeling and storage. Each reference paper captures the correctness work that schema-first drafts miss: precision hazards, constraint-race conditions, index design from real predicates, soft-delete interactions with uniqueness, file-handling abuse, derived-store rebuilds, and retention obligations.

Core principle: Data outlives code. Every column, identifier, file, and derived index is a durable decision with invariants, an owner, and a lifecycle — not a convenient shape for today's feature.

Domain Law

NO DATA OR STORAGE CHANGE WITHOUT:
1. the minimum required primary paper(s) for the data being modeled selected from the context table;
2. the paper's pre-change questions
   answered, or each open point labeled as an assumption;
3. "Existing-codebase checks" run when changing an existing schema or store;
4. every applicable MUST mapped to a decision (constraint, index, policy),
   a test, or a documented exception — never silently downgraded.

When to Use

Use this skill when thinking through, reviewing, changing, or verifying:

  • tables, documents, relationships, denormalization, and metadata modeling;
  • identifier generation, exposure, and migration (auto-increment, UUIDv4/v7, ULID, snowflake);
  • timestamps, timezones, DST, scheduling, and clock-skew handling;
  • money and numeric precision, rounding modes, and serialization fidelity;
  • primary/foreign/unique/check constraints and constraint race conditions;
  • indexes (composite, partial, covering) and query plans, N+1 elimination;
  • soft delete, restore, purging, and unique-constraint interaction;
  • retention, archival, expiration, anonymization, and legal hold;
  • immutable/append-only records, correction records, and tamper evidence;
  • file upload/download, MIME and signature validation, signed URLs, orphan cleanup;
  • image/video processing pipelines and original preservation;
  • full-text/vector search and index synchronization;
  • record versioning, provenance, source-of-truth boundaries, reconciliation, and cleanup jobs.

Read the full file on GitHub · 158 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. 3d ago First seen · 158 lines · 75 tokens per session scan A 3c71bd334ef7

Subscribe to this mod's changes

data-storage is a skill published in the GitHub repository d4rkNinja/arcforge (16 stars, last pushed 7d ago), licensed MIT. It adds 75 tokens to every session and 2,558 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-08-30.

Related

Other skills, from other repositories

nosql-database-design

Designs a NoSQL data model by leading with access pattern analysis. Covers DynamoDB single-table design (PK/SK/GSI) and MongoDB embedding vs referencing, consistency models, and capacity planning. Invoked when the user asks to design a DynamoDB schema, MongoDB data model, or NoSQL data model.

soulcodex/agentic · 71 tokens

relational-database-design

Designs or reviews a relational database schema for a given domain. Covers table structure, normalization, indexes, constraints, and migration strategy. Invoked when the user asks to design a schema, review a database structure, or optimize a data model.

soulcodex/agentic · 55 tokens

sql-query-optimization

Diagnoses and optimises slow SQL queries using EXPLAIN ANALYZE. Covers identifying bottlenecks (sequential scans, bad estimates, heap fetches), index strategy, query rewrites, and verification. Invoked when the user asks to optimize a query, fix a slow database query, or improve database performance.

soulcodex/agentic · 70 tokens

docker-compose-local-setup

Creates or updates local multi-service orchestration using docker compose. Covers compose.yaml design, service health checks, dependson readiness, env files, named volumes, migrations/seeds jobs, verification commands, and cleanup workflows for local development.

soulcodex/agentic · 52 tokens

backend-designer

This skill should be used when the user asks to "design an API", "plan database schema", "set up authentication", "design backend architecture", or discusses backend patterns and infrastructure. Provides pragmatic backend design guidance following "solid indie" principles.

Data-Wise/craft · 53 tokens

postgres-supabase

Postgres + Supabase specifics — RLS, migration workflow, schema cache, auth integration, common pitfalls.

Ozzeron/prompt-pack · 27 tokens