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:
Explore relevant tables
Use
~~data warehouse
schema tools to find tables in that domain
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?"
Generate new reference file
Create
references/[domain].md
using the domain template
Step 4: Update and Repackage
Add the new reference file
Update SKILL.md's "Knowledge Base Navigation" section to include the new domain
Repackage the skill
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