Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
anthropics avatar

Data Context Extractor

  • 2.4k installs
  • 23.3k repo stars
  • Updated August 5, 2026
  • anthropics/knowledge-work-plugins

data-context-extractor bootstraps or extends company data-analysis skills from warehouse schema and analyst interviews.

About

The data-context-extractor meta-skill generates tailored data analysis skills from company-specific warehouse knowledge. Bootstrap mode connects to BigQuery, Snowflake, PostgreSQL, Redshift, or Databricks, explores schemas, asks analysts about entity disambiguation, primary identifiers, key metrics, standard filters, and common gotchas, then packages SKILL.md plus reference files for entities, metrics, and domain tables. Iteration mode loads an existing skill, identifies gaps such as new domains or failing queries, runs targeted discovery, and appends reference files before repackaging. It enforces reference standards covering table location, keys, relationships, sample queries, metric formulas, and entity definitions. A quality checklist verifies frontmatter, terminology, exclusions, dialect-correct SQL, and navigation links. The skill uses warehouse MCP tools for schema discovery and produces zip-deliverable skills analysts can reuse so Claude understands their metrics and query patterns. Analysts receive a zip-deliverable skill reusable across sessions.

  • Bootstrap mode discovers schemas and interviews analysts for tribal knowledge.
  • Iteration mode patches existing skills with new domain reference files.
  • Captures entity disambiguation, metrics formulas, and mandatory filters.
  • Packages SKILL.md plus entities, metrics, and per-domain table references.
  • Quality checklist enforces dialect SQL, exclusions, and sample queries.

Data Context Extractor by the numbers

  • 2,438 all-time installs (skills.sh)
  • +97 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #52 of 782 Skill Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

data-context-extractor capabilities & compatibility

Capabilities
warehouse schema discovery via mcp tools · analyst interview question bank for entities and · bootstrap and iteration packaging workflows · reference file templates for tables and kpis · quality checklist before skill delivery
Use cases
data analysis · documentation · orchestration
From the docs

What data-context-extractor says it does

A meta-skill that extracts company-specific data knowledge from analysts
SKILL.md
When people here say 'user' or 'customer', what exactly do they mean?
SKILL.md
What should ALWAYS be filtered out of queries?
SKILL.md
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill data-context-extractor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2.4k
repo stars23.3k
Security audit3 / 3 scanners passed
Last updatedAugust 5, 2026
Repositoryanthropics/knowledge-work-plugins

What it does

Bootstrap or iterate a company-specific data analysis skill by extracting warehouse tribal knowledge from analysts.

Who is it for?

Data teams onboarding Claude to BigQuery, Snowflake, or similar warehouses.

Skip if: Skip for one-off SQL questions without intent to maintain a reusable skill.

When should I use this skill?

User asks to create a data context skill, improve warehouse analysis skill, or add domain references.

What you get

A packaged data analyst skill with reference files for entities, metrics, and domain tables.

  • SKILL.md
  • reference files
  • domain-specific query patterns

Files

SKILL.mdMarkdownGitHub ↗

Data Context Extractor

A meta-skill that extracts company-specific data knowledge from analysts and generates tailored data analysis skills.

How It Works

This skill has two modes:

1. Bootstrap Mode: Create a new data analysis skill from scratch 2. Iteration Mode: Improve an existing skill by adding domain-specific reference files

---

Bootstrap Mode

Use when: User wants to create a new data context skill for their warehouse.

Phase 1: Database Connection & Discovery

Step 1: Identify the database type

Ask: "What data warehouse are you using?"

Common options:

  • BigQuery
  • Snowflake
  • PostgreSQL/Redshift
  • Databricks

Use ~~data warehouse tools (query and schema) to connect. If unclear, check available MCP tools in the current session.

Step 2: Explore the schema

Use ~~data warehouse schema tools to: 1. List available datasets/schemas 2. Identify the most important tables (ask user: "Which 3-5 tables do analysts query most often?") 3. Pull schema details for those key tables

Sample exploration queries by dialect:

-- BigQuery: List datasets
SELECT schema_name FROM INFORMATION_SCHEMA.SCHEMATA

-- BigQuery: List tables in a dataset
SELECT table_name FROM `project.dataset.INFORMATION_SCHEMA.TABLES`

-- Snowflake: List schemas
SHOW SCHEMAS IN DATABASE my_database

-- Snowflake: List tables
SHOW TABLES IN SCHEMA my_schema

Phase 2: Core Questions (Ask These)

After schema discovery, ask these questions conversationally (not all at once):

Entity Disambiguation (Critical)

"When people here say 'user' or 'customer', what exactly do they mean? Are there different types?"

Listen for:

  • Multiple entity types (user vs account vs organization)
  • Relationships between them (1:1, 1:many, many:many)
  • Which ID fields link them together

Primary Identifiers

"What's the main identifier for a [customer/user/account]? Are there multiple IDs for the same entity?"

Listen for:

  • Primary keys vs business keys
  • UUID vs integer IDs
  • Legacy ID systems

Key Metrics

"What are the 2-3 metrics people ask about most? How is each one calculated?"

Listen for:

  • Exact formulas (ARR = monthly_revenue × 12)
  • Which tables/columns feed each metric
  • Time period conventions (trailing 7 days, calendar month, etc.)

Data Hygiene

"What should ALWAYS be filtered out of queries? (test data, fraud, internal users, etc.)"

Listen for:

  • Standard WHERE clauses to always include
  • Flag columns that indicate exclusions (is_test, is_internal, is_fraud)
  • Specific values to exclude (status = 'deleted')

Common Gotchas

"What mistakes do new analysts typically make with this data?"

Listen for:

  • Confusing column names
  • Timezone issues
  • NULL handling quirks
  • Historical vs current state tables

Phase 3: Generate the Skill

Create a skill with this structure:

[company]-data-analyst/
├── SKILL.md
└── references/
    ├── entities.md          # Entity definitions and relationships
    ├── metrics.md           # KPI calculations
    ├── tables/              # One file per domain
    │   ├── [domain1].md
    │   └── [domain2].md
    └── dashboards.json      # Optional: existing dashboards catalog

SKILL.md Template: See references/skill-template.md

SQL Dialect Section: See references/sql-dialects.md and include the appropriate dialect notes.

Reference File Template: See references/domain-template.md

Phase 4: Package and Deliver

1. Create all files in the skill directory 2. Package as a zip file 3. Present to user with summary of what was captured

---

Iteration Mode

Use when: User has an existing skill but needs to add more context.

Step 1: Load Existing Skill

Ask user to upload their existing skill (zip or folder), or locate it if already in the session.

Read the current SKILL.md and reference files to understand what's already documented.

Step 2: Identify the Gap

Ask: "What domain or topic needs more context? What queries are failing or producing wrong results?"

Common gaps:

  • A new data domain (marketing, finance, product, etc.)
  • Missing metric definitions
  • Undocumented table relationships
  • New terminology

Step 3: Targeted Discovery

For the identified domain:

1. Explore relevant tables: Use ~~data warehouse schema tools to find tables in that domain 2. Ask domain-specific questions:

  • "What tables are used for [domain] analysis?"
  • "What are the key metrics for [domain]?"
  • "Any special filters or gotchas for [domain] data?"

3. Generate new reference file: Create references/[domain].md using the domain template

Step 4: Update and Repackage

1. Add the new reference file 2. Update SKILL.md's "Knowledge Base Navigation" section to include the new domain 3. Repackage the skill 4. Present the updated skill to user

---

Reference File Standards

Each reference file should include:

For Table Documentation

  • Location: Full table path
  • Description: What this table contains, when to use it
  • Primary Key: How to uniquely identify rows
  • Update Frequency: How often data refreshes
  • Key Columns: Table with column name, type, description, notes
  • Relationships: How this table joins to others
  • Sample Queries: 2-3 common query patterns

For Metrics Documentation

  • Metric Name: Human-readable name
  • Definition: Plain English explanation
  • Formula: Exact calculation with column references
  • Source Table(s): Where the data comes from
  • Caveats: Edge cases, exclusions, gotchas

For Entity Documentation

  • Entity Name: What it's called
  • Definition: What it represents in the business
  • Primary Table: Where to find this entity
  • ID Field(s): How to identify it
  • Relationships: How it relates to other entities
  • Common Filters: Standard exclusions (internal, test, etc.)

---

Quality Checklist

Before delivering a generated skill, verify:

  • [ ] SKILL.md has complete frontmatter (name, description)
  • [ ] Entity disambiguation section is clear
  • [ ] Key terminology is defined
  • [ ] Standard filters/exclusions are documented
  • [ ] At least 2-3 sample queries per domain
  • [ ] SQL uses correct dialect syntax
  • [ ] Reference files are linked from SKILL.md navigation section

Related skills

How it compares

Pick data-context-extractor over generic SQL skills when analytics logic and naming conventions are company-specific and must persist across agent sessions.

FAQ

What is bootstrap versus iteration mode?

Bootstrap creates a new skill from schema discovery and interviews; iteration adds domains to an existing skill.

Which questions are critical?

Entity disambiguation, primary IDs, top metrics with formulas, always-on filters, and analyst gotchas.

What gets delivered?

A zip with SKILL.md and references for entities, metrics, domain tables, and optional dashboards.json.

Is Data Context Extractor safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Skill Developmentanalyticspipelines

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.