From looker-skills
Guides LookML developers on defining and using sets to group fields for drill paths, explore visibility, and field exclusion.
How this skill is triggered — by the user, by Claude, or both
Slash command
/looker-skills:lookml-setsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Sets are reusable lists of fields (dimensions, measures, and filters) defined within a view or a model. They are primarily used to group fields together for various purposes such as drill-down paths, explore field visibility, and more.
Sets are reusable lists of fields (dimensions, measures, and filters) defined within a view or a model. They are primarily used to group fields together for various purposes such as drill-down paths, explore field visibility, and more.
set: set_name {
fields: [field_name1, field_name2, view_name.field_name3, ...]
}
[set_name*] includes all fields from another set.[-field_name] excludes a specific field.view_name.set_name* refers to a set in another view (ensure views are joined).Sets are the standard way to define what happens when a user clicks on a measure value. Instead of listing fields repeatedly, define a set and reference it.
view: orders {
# ... dimensions ...
set: order_details {
fields: [id, created_date, status, user.email]
}
measure: count {
type: count
drill_fields: [order_details*]
}
}
You can use sets at the Explore level to explicitly define which fields are visible to users. This is best practice for curating Explores.
explore: orders {
fields: [ALL_FIELDS*] # Start with everything (default)
# OR
fields: [orders.order_details*, users.user_info*] # Allowlist specific sets
}
Use sets to exclude specific fields from an Explore without hiding them at the view level (which hides them globally).
explore: orders {
fields: [ALL_FIELDS*, -users.password_hash]
}
detail SetEvery view should ideally have a default set (commonly named detail or drill_set) that includes the most relevant fields for drilling into a record from that view.
view: users {
dimension: id { primary_key: yes ... }
dimension: name { ... }
dimension: email { ... }
# Standard set for drilling
set: detail {
fields: [id, name, email]
}
}
snake_case for set names.user_info, financial_metrics, drill_detail.While you can reference other_view.field in a view's set, this creates a dependency. Ensure that other_view is always joined whenever the set is used.
fields: [orders.detail*, users.detail*]).You can build sets on top of other sets.
set: basic_info {
fields: [id, name]
}
set: extended_info {
fields: [basic_info*, email, created_date]
}
npx claudepluginhub looker-open-source/looker-skillsTeaches LookML includes, refinements for layering, and the one-explore-per-file pattern for maintainable Looker models.
Manages LookML projects via the Looker API: creates git branches, project directories, LookML files, and generates view boilerplate from database schemas.
Create and edit Omni Analytics semantic model definitions (views, topics, dimensions, measures, relationships) using YAML via the Omni CLI. Useful for data modeling and adding metrics.