.agents/skills/table-dependencies/SKILL.md
Generate table dependency graph based on foreign key relationships
npx skillsauth add starlake-ai/starlake-skills table-dependenciesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generates a visual graph showing table dependencies based on foreign key relationships defined in your YAML configurations. This is an entity-relationship diagram for your data model.
starlake table-dependencies [options]
--output <value>: Output file path (default: console output)--all-attrs: Include all attributes in the diagram (not just primary/foreign keys). Default: true--reload: Reload YAML files from disk before computing--svg: Generate SVG image--png: Generate PNG image--json: Generate JSON output--related: Include only entities that have relationships to other entities--tables <value>: Comma-separated list of specific tables to include--all: Include all tables (default)--reportFormat <value>: Report output format: console, json, or htmlTable dependencies are derived from foreignKey attributes in table definitions:
# metadata/load/starbake/order_lines.sl.yml
table:
name: "order_lines"
primaryKey: ["order_id", "product_id"]
attributes:
- name: "order_id"
type: "int"
foreignKey: "orders.order_id"
- name: "product_id"
type: "int"
foreignKey: "products.product_id"
- name: "quantity"
type: "int"
- name: "sale_price"
type: "double"
starlake table-dependencies --svg --output tables.svg --all
starlake table-dependencies --tables starbake.orders,starbake.order_lines --svg --output orders.svg
starlake table-dependencies --related --svg --output related.svg
starlake table-dependencies --json --output tables.json
starlake table-dependencies --all-attrs false --svg --output keys_only.svg
starlake table-dependencies --png --output tables.png --all
development
Design SQL transformations for data pipelines with quality checks and dependency management. Use when the user says "design transforms" or "create SQL transformations".
devops
Plan and track sprint progress for data pipeline implementation. Use when the user says "sprint planning" or "plan data sprint".
testing
Analyze data sources in depth: schema, quality, volume, and extraction strategy. Use when the user says "analyze data source" or "profile this data source".
data-ai
Design Starlake-compatible table schemas with types, constraints, privacy, and expectations. Use when the user says "design schema" or "create table definition".