Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计通过

lookml-fieldsLookml 字段

Agent Skill

lookml-fields 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

384

周安装

16

GitHub Stars

7

下载量

128
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lookml-fields(Lookml 字段)
来源仓库:https://github.com/lkrdev/lookml_skills
仓库路径:skills/lookml-fields
安装命令:
npx skills add https://github.com/lkrdev/lookml_skills --skill lookml-fields
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lkrdev/lookml_skills --skill lookml-fields

简介

用于处理 GitHub 仓库及协作信息,适合在开发流程中跟踪代码变更和 Issue。

  • 支持 Pull Request 管理和仓库状态查询,提升团队协作效率。
  • 通过 GitHub 安装,需确认权限范围和维护状态后再使用。
  • 可能触发联网、命令执行或文件读写操作,建议提前评估风险。
  • lookml-fields 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Instructions

1. Field Types Overview

LookML fields are the building blocks of your data model. Each type serves a specific purpose in generating SQL.

Field TypePurposeSQL Generation Phase
DimensionDescribes data (attributes). Groups results.SELECT and GROUP BY clause.
MeasureAggregates data (metrics). Calculates results.SELECT clause (with aggregation).
FilterRestricts data based on conditions.WHERE or HAVING clause (via templated filters).
ParameterCaptures user input for dynamic logic.*None directly* (injects values into other fields).
Dimension GroupGenerates a set of time-based dimensions.SELECT and GROUP BY clause (multiple columns).

2. The Role of sql Parameter

The sql parameter behaves differently strictly based on the field type.

Dimensions: The "What"

  • Role: Defines the raw transformation of the column *before* any aggregation.
  • SQL Context: The expression is placed directly into the GROUP BY clause.
  • Input: Can reference table columns (${TABLE}.col), other dimensions (${dim}), or raw SQL functions.
  • Example: dimension: full_name {sql: CONCAT(${first_name}, ' ', ${last_name});;} -- Generates: CONCAT(table.first_name, ' ', table.last_name)

Measures: The "How Much"

  • Role: Defines the value to be aggregated *or* the calculation involving other aggregates.
  • SQL Context: Puts the expression *inside* the aggregation function (e.g., SUM(sql)), or as a standalone calculation for type: number.
  • Input:

- For type: sum/avg/min/max: References dimensions or columns. - For type: number: References other *measures*. - For type: count: sql is ignored (always COUNT(*) or COUNT(primary_key)).

  • Example: measure: total_profit {type: sum sql: ${sale_price} - ${cost};;} -- Generates: SUM(sale_price - cost)

Filters: The "Which"

  • Role: Defines the condition logic, *usually* for Templated Filters used in Derived Tables or sql_always_where.
  • SQL Context: The sql parameter in a filter field is rarely used directly in modern LookML. Instead, the *input* to the filter is used in {% condition %} tags.
  • Best Practice: Identify if you need a filter field or just a parameter + dimension.
  • Example (Templated Filter): filter: date_filter {type: date} -- Usage in Derived Table SQL: -- WHERE {% condition date_filter %} created_at {% endcondition %}

Parameters: The "User Input"

  • Role: Does NOT generate SQL itself. It holds a user-selected value to be injected into *other* fields.
  • SQL Context: Accessed via Liquid variables ({% parameter name %}) inside Dimensions, Measures, or Derived Tables.
  • Input: User selects from a UI list or types a value.
  • Example: parameter: timeframe_selector {type: unquoted allowed_value: {value: "month"} allowed_value: {value: "year"}} dimension: dynamic_date {sql: DATE_TRUNC({% parameter timeframe_selector %}, ${created_raw});;}

Dimension Groups: The "Time Generator"

  • Role: Defines the *source* timestamp or date column. Looker then generates multiple dimension fields based on the timeframes list.
  • SQL Context: Casts and truncates the source column for each timeframe.
  • Input: Must be a standardized timestamp or date expression.
  • Example: dimension_group: created {type: time timeframes: [date, month] sql: ${TABLE}.created_at;;} -- Generates: -- created_date -> CAST(table.created_at AS DATE) -- created_month -> DATE_TRUNC(table.created_at, MONTH)

3. Summary of Differences

Typesql references...Can reference Measures?Aggregated?
DimensionColumns, Other DimensionsNONo
Measure (Agg)Columns, DimensionsNOYes
Measure (Num)Other MeasuresYESYes (already agg)
Filter(Rarely used)NoN/A
Parameter(None)NoN/A
Value Format(None)NoN/A

Reference Skills

For detailed standards on specific field types, refer to:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.39%
按下载量换算43

Claude

31.8%
按下载量换算41

Cursor

21.04%
按下载量换算27

Gemini CLI

10.46%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills