data-archaeology

data-archaeology is a skill for Claude Code from rpraharaj/forward-deployed-engineer. It costs 111 tokens per session (2,002 once invoked), scanned A, original, MIT.

A process for discovering what a database's data really means from migrations, table definitions, application models, queries, and stored records. It compares the intended schema with how the application actually uses it.

In plain words
What is it for?
Use it before a database or reporting change, when the schema is undocumented, or when column names and stored values do not agree.
Why use it?
Older databases often contain misleading names, unused values, unexpected empty fields, or rules that are not documented. Finding those differences prevents failed migrations and incorrect reports.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fde-data plugin — 3 skills shipped together

Good fit Use it before a database or reporting change, when the schema is undocumented, or when column names and stored values do not agree.

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

Made for: Claude Code.

Or install fde-data, the plugin that ships this one along with the rest of its 3 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rpraharaj/forward-deployed-engineer/data-archaeology.svg)](https://agentmods.dev/skills/rpraharaj/forward-deployed-engineer/data-archaeology)
Your own site
<a href="https://agentmods.dev/skills/rpraharaj/forward-deployed-engineer/data-archaeology"><img src="https://agentmods.dev/badge/skills/rpraharaj/forward-deployed-engineer/data-archaeology.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,002 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.00111 $0.02002
Opus 5 $0.00056 $0.01001
Sonnet 5 $0.00022 $0.00400
Haiku 4.5 $0.00011 $0.00200

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

Security

Grade A, and why

data-archaeology 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 8d 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.

fde-data/skills/data-archaeology/SKILL.md · 166 lines

How it starts

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

Data archaeology

Working out what the data actually means.

Why this exists

In a system of any age the schema is an unreliable narrator. Columns are nullable that are never null, and non-nullable columns hold empty strings meaning "unknown." Enums contain values the code stopped writing four years ago. A column named status holds three different vocabularies depending on when the row was created. Foreign keys are declared in some places and merely implied in others.

None of this is in the documentation, because there isn't any. It is discoverable from two sources: the queries the code actually issues, which reveal intended meaning, and the data itself, which reveals what happened.

The gap between them is where migrations fail and reports go quietly wrong.

When this applies

  • Undocumented schema or unclear domain model
  • Before a migration, a reporting change, or a schema change
  • Column names that don't match their contents
  • You need to know what the data looks like, not what the schema permits
  • Before data-pipeline-work or db-change-management

When it doesn't

  • Well-documented schema with a maintained model
  • You need control flow rather than data — that's trace-the-flow
  • You need current row-level values for testing — that's test-data-strategy

Prerequisites

  • Locate the workspace: FDE_WORKSPACE, else the charter's Location, else .fde/, else ../<repo>-fde/. Do not invent a second workspace.
  • .fde/02-system-map.md — where data lives
  • Read access to a database, ideally. Where you have none, this skill still works from migrations and code, at reduced confidence — say so.
  • Understand the organization's data policy before running aggregates. Shape queries live in core test-data-strategy step 2 — run those, do not paste a second dialect-specific copy.

Procedure

1. Reconstruct the declared schema

# Migrations, in order, are the schema's history
find . \( -path "*migration*" -o -path "*/db/*" \) -name "*.sql" | sort | tail -40
# ORM / schema declarations — bind EXT from the language mix, do not assume one framework
grep -rn "CREATE TABLE\|Schema(\|DbSet\|entity-name" --include="*.$EXT" --include="*.sql" --include="*.xml" . | head -30

Read the full file on GitHub · 166 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. 8d ago First seen · 166 lines · 111 tokens per session scan A 02e1186fd0ba

Subscribe to this mod's changes

data-archaeology is a skill published in the GitHub repository rpraharaj/forward-deployed-engineer (6 stars, last pushed 21d ago), licensed MIT. It adds 111 tokens to every session and 2,002 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

gonavi-cli

Operate databases through the GoNavi headless CLI — the gonavi executable shipped in verified GitHub Release archives. Covers listing/adding/importing saved connections, running SQL queries against saved connections or ad-hoc connection files, exporting result sets to csv/json/md/html/xlsx, batch-executing SQL files…

Syngnat/GoNavi · 144 tokens

memstack-security-rls-guardian

Use this skill when creating or altering database tables in Supabase or PostgreSQL projects. Triggers include: CREATE TABLE, ALTER TABLE, migration files, 'RLS', 'row level security', 'new table', 'database schema'. Enforces Row Level Security policies on every table to prevent unauthorized data access. Do NOT use for…

cwinvestments/memstack · 84 tokens

solr-semantic-search

To build Solr phrase-tagging semantic search: concept tagging, taxonomy, graph paths.

griddynamics/rosetta · 24 tokens

codex-log-guard

Diagnose excessive Codex local SQLite diagnostic log writes with read-only evidence by default. Use when a user mentions logs2.sqlite, logs2.sqlite-wal, blockloginserts, SSD/TBW wear, or explicitly asks to protect, clean up, verify, or restore Codex diagnostic logging.

majiayu000/spellbook · 68 tokens

ring:using-lib-systemplane

Using lib-systemplane, the hot-reload runtime-config plane (Postgres LISTEN/NOTIFY or MongoDB change streams), in two modes. Sweep Mode detects DIY config reload (SIGHUP, fsnotify, viper, pgx LISTEN), manual tenant-scoping, hand-built admin CRUD, and v4 residue. Reference Mode catalogs client lifecycle and…

LerianStudio/ring · 106 tokens

solr-schema

To design and audit Solr schemas: field types, analyzers, docValues, solrconfig.

griddynamics/rosetta · 25 tokens