
Data archaeology
Reconstructs an undocumented data model from migrations, queries and live data
Data archaeology is an open-source agent skill for databases. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 19
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Data archaeology
This skill guides an agent through working out what a database's tables and columns really mean when the schema is unreliable or undocumented. It starts by reading migrations in order as a history of the model, then searches the codebase for the queries actually issued, since those reveal which columns matter and which values are compared against. The agent is directed to run aggregate queries against the data to see live enum vocabularies, when each value was in use, implied foreign keys and orphaned rows, and to identify distinct generations of rows that a change must handle.
The workflow ends with a structured data model write-up covering entities, column reality, live vocabulary, eras, relationships and other readers of the tables, with unverified points flagged as gaps. It points to other skills for related work such as shape queries, control-flow tracing and blast-radius analysis.
It expects read access to the codebase and ideally a database with aggregate-query permission. Without a database it still works from migrations and code, at lower confidence. It also assumes a workspace folder from the FDE orientation process for saving its output.
When your agent uses it
Reconstruct an undocumented data model from whatever exists - migrations, DDL, ORM definitions, and most reliably the queries actually issued - then surface the gap between the schema's stated intent and its real use. Use when a schema is undocumented, when the domain model is unclear, before a migration or reporting change, when column names do not match their contents, or when you need to know what the data actually looks like rather than what the schema claims. The schema tells you what is allowed; the data tells you what happens.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (9 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the fde-data plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-data@fde-skillsOr copy only this skill to ~/.claude/skills/data-archaeology:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/data-archaeology &&
cp -R "$tmp/fde-data/skills/data-archaeology" ~/.claude/skills/data-archaeology &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/data-archaeology inside it instead.
Copy the skill folder to ~/.agents/skills/data-archaeology to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/data-archaeology &&
cp -R "$tmp/fde-data/skills/data-archaeology" ~/.agents/skills/data-archaeology &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/data-archaeology inside it instead.
Copy the skill folder to ~/.cursor/skills/data-archaeology to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/data-archaeology &&
cp -R "$tmp/fde-data/skills/data-archaeology" ~/.cursor/skills/data-archaeology &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/data-archaeology inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/rpraharaj/forward-deployed-engineer.git --path fde-data/skills/data-archaeologyOr copy the folder to ~/.gemini/skills/data-archaeology yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/data-archaeology:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/data-archaeology &&
cp -R "$tmp/fde-data/skills/data-archaeology" ~/.copilot/skills/data-archaeology &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/data-archaeology inside it instead.
Get the folder:
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.gitThen copy forward-deployed-engineer/fde-data/skills/data-archaeology into your agent's skills folder as data-archaeology. Agents that support SKILL.md read one folder per skill.
What it does
- Migration history reading
- Reads schema migrations in sequence to reconstruct how the data model changed over time.
- Query-driven discovery
- Finds the columns, filters and literal values the code actually uses to infer intended meaning.
- Live data profiling
- Runs aggregate queries to reveal enum usage periods, implied relationships and orphaned rows.
- Data era detection
- Identifies generations of rows with differing shapes that any change must account for.
- Declared versus actual gap
- Compares what the schema permits with what the data contains, such as null-as-empty-string usage.
- Structured model report
- Writes a data model document with entities, vocabulary, eras, relationships and unverified gaps.
Good for
- Figure out what an undocumented orders table really contains before changing it
- Find out which status values are still written and which are legacy
- Check whether child rows have valid parent records when foreign keys are missing
- Map who reads a production table before running a migration
- Understand why a column named status holds several different vocabularies
Data archaeology FAQ
Does Data archaeology need database access?
Database read access is ideal, mainly for aggregate queries. Without it, the skill still works from migrations and code at reduced confidence, and says so.
When does Data archaeology trigger?
It applies when a schema is undocumented, the domain model is unclear, before a migration or reporting change, or when column names do not match their contents.
What does Data archaeology produce?
It writes a data model document to the workspace traces folder, covering entities, column reality, live vocabulary, eras, relationships, other readers and gaps.
Does Data archaeology change the database?
The skill is built around reading migrations, code and aggregate queries; it does not describe making changes to the data.
How do I install Data archaeology in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/data-archaeology to use it in all your projects, or to .claude/skills/data-archaeology in one project. Or install the fde-data plugin, which includes it: /plugin marketplace add rpraharaj/forward-deployed-engineer, then /plugin install fde-data@fde-skills.
Does Data archaeology run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Data archaeology?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Data archaeology?
The closest alternatives to Data archaeology are Db change management, Database migrations, Alembic knowledge patch, Cosmosdb datamodeling and Bigquery migration validator.
Where this comes from
- Description: from the skill's own SKILL.md.
More from rpraharaj/forward-deployed-engineer

Defines and tests the boundaries on what an AI agent's tool calls can do
- Open source
- 19 GitHub stars
- Security

Gives agents a procedure to test AI workflows against cases, thresholds and regression
- Open source
- 19 GitHub stars
- Developer tools

Turns access requests into a tracked, parallel critical path with workarounds
- Open source
- 19 GitHub stars
- Productivity

Plans how end users move to a new workflow, with barriers, pilot, support and measures
- Open source
- 19 GitHub stars
- Productivity

Maps what a proposed code change could break before you make it
- Open source
- 19 GitHub stars
- Developer tools

Maps an organization's change approval process so releases can be planned backwards from
- Open source
- 19 GitHub stars
- Productivity



