/looker-skills:lookml-modeling-guidelinesfrom looker-skills
Provides LookML modeling best practices and CLI commands for Looker development, including project exploration, field discovery, and file type guidance.
Ships in looker-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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-view skill,
references/derived_table.md).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.What SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/authenticating-looker-cliLooker Developer Onboarding: Step 3. Authenticates the Looker CLI using OAuth. Only execute this after Step 2 (CLI Verification using `installing-looker-cli`)./connecting-looker-to-bigqueryLooker Developer Onboarding: Step 4. Creates a database connection in Looker to Google BigQuery. Only execute this after Step 3 (CLI Authentication using `authenticating-looker-cli`)./creating-looker-dashboardLooker Developer Onboarding: Step 7 (Final Step). Creates a LookML dashboard in the project, imports it as a user-defined dashboard (UDD) in Looker, and iteratively refines it based on user feedback by syncing changes. Only execute this after Step 6 (Model Setup using `creating-lookml-model`).Generated from the plugin's indexed repository (looker-open-source/looker-skills) — no native marketplace selected
npx claudepluginhub p/looker-open-source-looker-skillsOther plugins' skills for the same job