bi-semantic-layer-guide

bi-semantic-layer-guide is a skill for Claude Code, Codex from agentscope-ai/QwenPaw-Data. It costs 48 tokens per session (536 once invoked), scanned A, original, Apache-2.0.

A usage guide for a semantic layer, a shared service that defines business metrics, dimensions, and datasets in consistent terms.

In plain words
What is it for?
Finding metric definitions, checking which dimensions can be used for breakdowns, reviewing metric hierarchies and values, and locating the datasets and columns behind a metric.
Why use it?
It helps prevent conflicting definitions and unclear business meaning when analysing data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Finding metric definitions, checking which dimensions can be used for breakdowns, reviewing metric hierarchies and values, and locating the datasets and columns behind a metric.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentscope-ai/qwenpaw-data/bi-semantic-layer-guide
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 agentscope-ai/QwenPaw-Data --skill bi-semantic-layer-guide
Clone the repo
git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data

Made for: Claude Code, Codex.

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 bi-semantic-layer-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/bi-semantic-layer-guide/github.svg)](https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/bi-semantic-layer-guide)
Your own site
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/bi-semantic-layer-guide"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/bi-semantic-layer-guide/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 bi-semantic-layer-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/bi-semantic-layer-guide"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/bi-semantic-layer-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 536 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.00048 $0.00536
Opus 5.5 $0.00019 $0.00214
Sonnet 5.5 $0.00010 $0.00107
Haiku 4.5 $0.00005 $0.00054

Measured 9d ago against content hash 26087434bb64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bi-semantic-layer-guide 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 9d 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.

packages/qwenpaw-data-skills/skills/runtime/bi-semantic-layer-guide/SKILL.md · 28 lines

What it actually says

业务语义查询指南

先加载 cm-skills,使用原生图读取,不把 App 的旧兼容工具作为默认入口。

  • 已知术语:search_graph_fulltext(text, node_types, domain_id)。
  • 只有业务描述:search_graph_vector(text, node_types, domain_id)。
  • 查完整结构和授权范围:get_graph_schema()。
  • 按 key 补齐指标口径、维度绑定及物理映射:query_graph(cypher, params, limit),先加载对应 backend 方言。
  • 真实业务数据及枚举探针:execute_read(datasource_id, sql, max_rows, timeout_ms)。

指标匹配

精确名称优先于同义词,名称相同但跨域时限定已确认 domain_id;排名和 lexical_matches 不代表口径正确。完整口径沿 Metric → MetricCaliber → Dataset 查询,核对 expr、time_window、additivity、is_default、单位和过滤条件,不能仅取搜索片段。

no_match 必须拦截:空候选/缺少口径表示定义缺失,不是值为 0 或无数据。换成有依据的精确查询仍未命中时向用户说明缺口,禁止猜测同名指标或用相似定义冒充。

指标属性与维度

保留返回的 is_north_star、is_display、is_display_distribution、priority 等语义属性;缺失则标空,不自行补默认业务事实。经共同 Dataset 查询可用 Dimension,再沿 MAPS_TO_FIELD 核对字段表达式、value_example 和 total_value_marker。示例不是全量枚举,需要时在同一 datasource_id 上只读 DISTINCT 探测。

若图保留贡献/展示标记,只使用明确允许贡献拆解的维度。合法绑定不证明两个维度统计总体等价;层级以实际 schema 和关系事实为准。

管理员同样只读当前身份个人图,不传 owner/workspace 参数扩权。SQL 引用的 Dataset、DatasetField、Table、Column 必须与已确认来源一致;truncated 表示未取全,错误不当作空结果。

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. 9d ago Changed · -39 lines · -10 tokens per session 26087434bb64
  2. 2mo ago Changed · +9 lines 5e1f6c929012
  3. 3mo ago First seen · 58 lines · 58 tokens per session scan A d6a70b0a0a05

Subscribe to this mod's changes

bi-semantic-layer-guide is a skill published in the GitHub repository agentscope-ai/QwenPaw-Data (208 stars, last pushed 6d ago), licensed Apache-2.0. It adds 48 tokens to every session and 536 once invoked, about $0.0002 per session on Opus 5.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

bi-semantic-layer-guide compared with skills from other repositories

bi-semantic-layer-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bi-semantic-layer-guideagentscope-ai/QwenPaw-DataSkill2086d agoApache-2.0A48Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill70k3d agoApache-2.0A146Claude Code, Codex
pausemem0ai/mem0Skill70k3d agoApache-2.0A30Claude Code
mem0-test-integrationmem0ai/mem0Skill70k3d agoApache-2.0A207Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
horizonThysrael/HorizonSkill15kyesterdayMITA95Claude Code, Codex
migrating-openai-agents-sdk-to-pydantic-aipydantic/pydantic-aiSkill21kyesterdayMITA87Codex