From looker-skills
Guides LookML modeling with file type explanations, requirement analysis, and CLI commands for project discovery and field exploration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/looker-skills:lookml-modeling-guidelinesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This guide provides instructions on how to effectively use the Looker CLI to
This guide provides instructions on how to effectively use the Looker CLI to assist with LookML modeling tasks. It synthesizes best practices for LookML development with effective CLI usage.
Understand the purpose of different file types in a LookML project:
manifest.lkml): Global configuration for the
project, including imports and constants..model.lkml): Defines database connections and Explores
(how views are joined)..view.lkml): Blueprints for data, defining dimensions,
measures, and derived tables..dashboard.lookml): LookML-defined dashboards
(layout, visualizations, filters)..md).Before writing any LookML code or making modifications, analyze the user's request to determine the necessary LookML elements.
lookml-pdt-guidelines skill).count,
sum, average) or calculated metrics?looker-cli api project all_projectslooker-cli api lookmlmodel all_lookml_modelslooker-cli api lookmlmodel lookml_model {model_name}looker-cli api lookmlmodel lookml_model_explore {model_name} {explore_name} (This is cleaner than reading raw view files).looker-cli connection lslooker-cli api metadata connection_schemas {connection_name}looker-cli api metadata connection_tables {connection_name}looker-cli api metadata connection_columns {connection_name} --schema_name {schema_name} --table_names {table_name}looker-cli query runquery {query_id} or run inline query using looker-cli api query run_inline_query. Fully qualified fields (e.g. view.field) must be used.Always verify that your LookML is valid and generates the expected SQL or results.
sql parameters must match the
specific database dialect (e.g., BigQuery, Snowflake).looker-cli query runquery to verify results.looker-cli api query run_inline_query requesting
the query's SQL field to inspect the generated SQL.looker-cli api project validate_project {project_id}
frequently during development.looker-cli api project all_lookml_tests {project_id}looker-cli api project run_lookml_test {project_id}Since we do not have an automated CLI view generation subcommand, you MUST
create views manually. Construct the LookML view definition structure from
scratch based on the column schemas retrieved in Step 2, save the content to a
local file (e.g. /tmp/my_view.view.lkml), and upload it:
looker-cli project file create {project_id} views/{view_name}.view.lkml /tmp/my_view.view.lkml
After making any changes to LookML files:
looker-cli api project validate_project {project_id} to check for
syntax and reference errors.looker-cli api project run_lookml_test {project_id} to ensure they still pass.include paths instead of broad
wildcards to prevent performance bloat, avoid namespace collisions, and
improve compilation speed.
include: "/views/users.view.lkml"include: "/views/*.view.lkml"relationship parameter explicitly (e.g.,
many_to_one). This is critical for Looker to generate correct SQL and
avoid fanouts.primary_key: yes. This is
essential for symmetric aggregates.${dimension_name}), not table columns directly (e.g.,
${TABLE}.column_name). This ensures a single source of truth.description parameter
to any new dimension or measure. This helps end-users understand the field
in the field picker.extends, refinements (for
modular, scalable code), and sets to eliminate code duplication.+ syntax) to layer
changes onto existing objects without renaming (e.g., customizing Blocks).
Use Extensions (extends) to create new, specialized variants while
keeping the original object intact.primary_key: yes when creating any view, derived table, or PDT. Every
table must have an explicit primary key.npx claudepluginhub looker-open-source/looker-skillsCreates LookML views and models for Looker BI projects based on user goals. Maps model connections, validates LookML, and runs verification queries. Use after project setup.
Manages LookML projects via the Looker API: creates git branches, project directories, LookML files, and generates view boilerplate from database schemas.
Build, validate, and manage semantic models using Sidemantic. Creates semantic layers mapping database tables to business dimensions/metrics, generates SQL, and imports from Cube/dbt/LookML.