creating-lookml-model

creating-lookml-model is a skill for Claude Code from looker-open-source/looker-skills. It costs 58 tokens per session (1,598 once invoked), scanned A, original, Apache-2.0.

A guided step for creating LookML views and models in Looker. LookML is Looker’s code for describing database fields, relationships, and dashboards; this step connects those definitions to a BigQuery data source and checks them with queries.

In plain words
What is it for?
Use it after Looker project setup to write views and models, map them to a connection, validate the LookML, and run verification queries.
Why use it?
It turns an agreed dashboard goal and database schema into validated Looker code. The required earlier setup prevents the model from being created without the project, connection, and data details it needs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the looker-skills plugin — 23 skills shipped together

Good fit Use it after Looker project setup to write views and models, map them to a connection, validate the LookML, and run verification queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/looker-open-source/looker-skills/creating-lookml-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add looker-open-source/looker-skills --skill creating-lookml-model
Clone the repo
git clone --depth 1 https://github.com/looker-open-source/looker-skills

Made for: Claude Code.

Or install looker-skills, the plugin that ships this one along with the rest of its 23 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for creating-lookml-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/looker-open-source/looker-skills/creating-lookml-model/github.svg)](https://agentmods.dev/skills/looker-open-source/looker-skills/creating-lookml-model)
Your own site
<a href="https://agentmods.dev/skills/looker-open-source/looker-skills/creating-lookml-model"><img src="https://agentmods.dev/badge/skills/looker-open-source/looker-skills/creating-lookml-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for creating-lookml-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/looker-open-source/looker-skills/creating-lookml-model"><img src="https://agentmods.dev/badge/skills/looker-open-source/looker-skills/creating-lookml-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01598
Opus 5 $0.00029 $0.00799
Sonnet 5 $0.00012 $0.00320
Haiku 4.5 $0.00006 $0.00160

Measured 12d ago against content hash 319af3a22eef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

creating-lookml-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/creating-lookml-model/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Creating LookML Model, Views & Writing LookML

This skill guides you through the process of writing all the LookML (view files and model files) needed to prepare for the dashboard requested by the user during their onboarding interview, configuring the connection mapping in Looker, validating the LookML code, and running inline queries to verify it functions correctly.

Prerequisites & References

  • Looker CLI must be installed and authenticated (Step 2 & 3).
  • Looker project and BigQuery connection must be created (Step 4 & 5).
  • Critical Reference: You MUST read and strictly follow the best practices, naming requirements, and constraints in the lookml-modeling-guidelines skill for writing and verifying all LookML elements.

Instructions

1. Retrieve Onboarding Goal and Schema Specifications

Refer back to the onboarding goal and BigQuery exploration results established with the user during the Step 1 (Discovery) interview in the conversation history. You must recall: 1. The target Dashboard Goal (e.g., Sales Overview, Support Metrics, etc.). 2. The specific GCP Project, Dataset, and Tables (fact and dimension) agreed upon. 3. The target Metrics (measures) and Dimensions to be used.

Note: Do not invent or guess these details. The names of your views, fields, explores, and models must directly map to the schema and tables you discovered in Step 1.

2. Create and Edit View Files (CLI)

For each BigQuery table required to build the target dashboard, you must write the LookML view definition and upload it to the project:

  1. Create the views directory: If the views/ directory does not yet exist in the project, create it using the Looker CLI:

    looker-cli project directory create {project_id} views
    
  2. Generate View Content: Retrieve the table columns (from Discovery) and write the LookML view file content locally (e.g. to /tmp/{table_name}.view.lkml). Follow the primary key and field definitions guidelines.

Read the full file on GitHub · 176 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 176 lines · 58 tokens per session scan A 319af3a22eef

Subscribe to this mod's changes

creating-lookml-model is a skill published in the GitHub repository looker-open-source/looker-skills (28 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 58 tokens to every session and 1,598 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-pr

Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for Prisma 8. Use when the user wants to create a pull request, open a PR, or submit changes for review.

prisma/orm · 48 tokens

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

nornicdb-cypher-queries

Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.

orneryd/NornicDB · 79 tokens

supabase

Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…

PentesterFlow/agent · 120 tokens

volcengine-rds-postgresql

A tool for operating PostgreSQL databases hosted by Volcano Engine's managed database service. PostgreSQL is a relational database used to store structured application data.

bytedance/agentkit-samples · 63 tokens