ワンクリックで
lookml-modeling-guidelines
Guidelines for LookML modeling and command execution.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guidelines for LookML modeling and command execution.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Looker Developer Onboarding: Step 3. Authenticates the Looker CLI using OAuth. Only execute this after Step 2 (CLI Verification using `installing-looker-cli`).
Looker 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`).
Looker 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`).
Looker Developer Onboarding: Step 6. Creates LookML views and models based on the user's goals, maps model connections, validates LookML, and runs verification queries. Only execute this after Step 5 (Project Setup using `setting-up-looker-project`).
Looker Developer Onboarding: Step 1. Guides the agent to explore BigQuery data and define the onboarding goal. This is the first active step, to be executed immediately after reading the parent orchestrator `looker-developer-onboarding`.
Looker Developer Onboarding: Step 2. Verifies that the Looker CLI is available in the PATH, or installs it from GitHub Releases if missing. Only execute this after Step 1 (Data Discovery using `exploring-data-for-looker`).
SOC 職業分類に基づく
| name | lookml-modeling-guidelines |
| description | Guidelines for LookML modeling and command execution. |
| license | Apache-2.0 |
| metadata | {"publisher":"google","version":"v1"} |
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.