一键导入
validate
Validate .view.yml semantic layer files using airlayer. Use when the user creates or modifies view files and wants to check for errors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate .view.yml semantic layer files using airlayer. Use when the user creates or modifies view files and wants to check for errors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bootstrap a semantic layer from a database. Use when the user wants to create .view.yml files from their warehouse schema, or when starting a new airlayer project from scratch.
Run a semantic query against the database via airlayer. Use when the user wants to query data through the semantic layer, test view definitions, or debug query results.
Migrate a Cube.js semantic layer to airlayer .view.yml files. Use when the user has existing Cube.js schema files (.js or .yml) they want to convert to airlayer format.
Profile dimensions in the semantic layer to discover data values, ranges, and cardinality. Use when the user wants to understand what data is in a dimension, find valid filter values, or validate view definitions against actual data.
Inspect semantic layer views, dimensions, measures, and entities. Use when the user wants to explore what's available in their .view.yml files or understand the schema structure.
Compile a semantic query to SQL using airlayer. Use when the user wants to generate SQL from .view.yml schemas, test a query against their semantic layer, or translate dimensions/measures/filters into dialect-specific SQL.
| name | validate |
| description | Validate .view.yml semantic layer files using airlayer. Use when the user creates or modifies view files and wants to check for errors. |
| allowed-tools | ["Bash","Read","Glob"] |
| argument-hint |
Validate .view.yml files for correctness.
which airlayer || cargo install --git https://github.com/oxy-hq/airlayer
views/:find . -name "*.view.yml" -not -path "*/node_modules/*" -not -path "*/cube/*" 2>/dev/null | head -10
airlayer validate
$ARGUMENTS
table or sql (not both, not neither){{entity.field}}) resolve correctly{{view.measure}}) resolve correctlyShow the user the validation error and the relevant section of the .view.yml file. Suggest a fix.