Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计通过

lookml-liquid外观液体

Agent Skill

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

总安装

364

周安装

15

GitHub Stars

7

下载量

119
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

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

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

SKILL.md

Instructions

  1. Syntax:

- {{value}}: Output syntax (inserts text). - {% if condition %}: Tag syntax (logic).

  1. Common Variables:

- value: Raw value from DB (best for comparisons). - rendered_value: Formatted value (best for display). - _filters['view.field']: User-selected filter values. - parameter_name._parameter_value: Selected parameter value.

  1. Best Practices:

- SQL Injection: Always use | sql_quote when inserting user input (like _filters) into SQL that generates string literals. - Booleans: If your dialect requires literal TRUE/FALSE (like BigQuery), append | sql_boolean to _in_query or _is_selected variables (e.g., {{view.field._in_query | sql_boolean}}). - Dependency Awareness: Remember that _in_query checks for usage in SELECT, Filters, and required_fields. It is NOT limited to just the visible columns. - Performance: Avoid referencing {{field._value}} in link parameters if the field isn't already in the query, as this forces Looker to add the field to the GROUP BY clause, potentially fan-outing the result set. Use row['view.field'] instead if you only need the value from the browser result row.

Advanced Variable Usage

_in_query vs _is_selected

VariableDefinitionCritical Difference (Totals)
_in_queryReturns true if the field is in the SELECT clause, Filters, or required_fields.Remains true during totals calculation if the field contributed to the query.
_is_selectedReturns true if the field is in the SELECT clause or required_fields.Returns false during totals calculation (Row/Column/Grand Totals) for dimensions, because dimensions are removed from the query to calculate totals.
[!WARNING] If you use _is_selected to conditionally render logic for a dimension, that logic will fail (return false) in the Totals row. Use _in_query if you need the logic to persist in totals, or explicitly handle the false state for totals if that is the desired behavior.

Liquid Variable Definitions

The following table describes the Liquid variables that you can use with LookML and where they can be used.

Usage Key:

  • A: action
  • DV: default_value (dashboards)
  • DE: description
  • F: filters (dashboard elements)
  • H: html
  • LA: Label parameters (label, view_label, group_label, group_item_label)
  • LI: link
  • S: SQL parameters (sql, sql_on, sql_table_name)
VariableDefinitionUsage
valueThe raw value of the field.A, H, LI
rendered_valueThe formatted value of the field.A, H, LI
filterable_valueThe value formatted for URL filtering.A, H, LI
linkThe default drill link URL.A, H, LI, S
linked_valueThe value with default formatting and linking.A, H, LI
_filters['view.field']User filters applied to the field.A, DE, H, LA, LI
{% date_start filter %}Start date of a date filter.S
{% date_end filter %}End date of a date filter.S
{% condition filter %} sql {% endcondition %}Applies filter logic to SQL.S
{% parameter name %}Value of a parameter.DE, LA, S
name._parameter_valueInjects parameter value (safe for logic).DE, H, LA, LI, S
_user_attributes['name']User attribute value.A, DE, H, LA, LI, S, DV, F
_model._nameModel name.A, DE, H, LA, LI, S
_view._nameView name.A, DE, H, LA, LI, S
_explore._nameExplore name.A, DE, H, LA, LI, S
_field._nameField name.A, DE, H, LA, LI, S
view._in_querytrue if *any* field from view is queried.DE, LA, LI, S
view.field._in_querytrue if field is in query/filter.DE, LA, LI, S
view.field._is_selectedtrue if field is in SELECT.DE, LA, LI, S
view.field._is_filteredtrue if field is filtered.DE, LA, LI, S

Advanced Use Cases

1. Aggregate Awareness (Dynamic Table Selection)

Use _in_query to route queries to smaller, pre-aggregated tables when the user doesn't request granular details. This significantly improves query performance.

view: orders {
  sql_table_name:
    {% if orders.created_date._in_query or orders.created_hour._in_query %}
      orders_daily_summary  -- Fallback to daily partition if granular date used
    {% elsif orders.created_month._in_query %}
      orders_monthly_summary -- Use monthly summary for high-level queries
    {% else %}
      orders_all_transactions -- Default/Detail table
    {% endif %} ;;
}

2. Dynamic Joins (sql_on)

Use _in_query in joins to avoid joining heavy tables unless they are actually required by the user's selection.

explore: order_items {
  join: users {
    type: left_outer
    sql_on: ${order_items.user_id} = ${users.id} ;;
    relationship: many_to_one
  }

  join: user_facts {
    type: left_outer
    sql_on: ${users.id} = ${user_facts.user_id} ;;
    relationship: one_to_one
    # Only join user_facts if a field from it is actually selected/filtered
    sql_where: {% if user_facts._in_query %} 1=1 {% else %} 1=0 {% endif %} ;;
  }
}

*Note: The sql_where trick is one way to force a join drop in some dialects, but standard sql_on logic with {% if %} is cleaner if supported.*

3. Column-Specific Logic (Dynamic Denominator)

Change a calculation based on what other fields are present in the query.

measure: dynamic_rate {
  type: number
  sql:
    {% if users.traffic_source._is_selected %}
      ${total_revenue} / NULLIF(${traffic_source_count}, 0)
    {% else %}
      ${total_revenue} / NULLIF(${total_users}, 0)
    {% endif %} ;;
}

Examples

Dynamic HTML (Conditional Formatting)

dimension: status {
  html:
    {% if value == 'complete' %}
      <span style="color: green">{{ rendered_value }}</span>
    {% else %}
      <span style="color: red">{{ rendered_value }}</span>
    {% endif %} ;;
}

Templated Filters (Derived Table)

view: customer_facts {
  derived_table: {
    sql:
      SELECT customer_id, SUM(amount)
      FROM orders
      WHERE {% condition order_date %} created_at {% endcondition %}
      GROUP BY 1 ;;
  }
}

Complex Logic (Loops & Split)

LookML Liquid can handle string manipulation and loops, which is useful for parsing complex filter parameters or unnesting values. This is used infrequently, but very handy in complex modeling tasks.

view: brand_category_item {
  parameter: filter { type: unquoted }
}

explore: complex_filter_parsing {
  # Example: Parsing a string like "Brand1..Category1__Brand2..Category2"
  # This logic splits the string by '__' then '..' to generate OR conditions
  sql_where:
    {% assign items = brand_category_item.filter._parameter_value | split: '__' %}
    {% for item in items %}
      {% assign parts = item | split: '..' %}
      {% if forloop.first %} ( {% else %} OR ( {% endif %}
        ${products.brand} = '{{ parts[0] }}' AND ${products.category} = '{{ parts[1] }}'
      )
    {% endfor %}
    {% if items.size == 0 %} 1=1 {% endif %}
  ;;
}

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.23%
按下载量换算42

Claude

29.85%
按下载量换算36

Cursor

19.04%
按下载量换算23

Gemini CLI

8.35%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills