cm-skills

cm-skills is a skill for Claude Code, Codex from agentscope-ai/QwenPaw-Data. It costs 73 tokens per session (2,054 once invoked), scanned A, original, Apache-2.0.

A set of instructions for using Context Manager to find business definitions and run approved business queries. Context Manager is a service that stores business terms, data relationships, table details, and verified queries.

In plain words
What is it for?
Use it to search business knowledge, inspect graph structure, find datasets and columns, run read queries, and create or modify business tables when authorized.
Why use it?
It reduces the risk of using the wrong metric meaning, table, column, or database query when answering business questions.

Skill for Claude CodeCodex

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

Good fit Use it to search business knowledge, inspect graph structure, find datasets and columns, run read queries, and create or modify business tables when authorized.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentscope-ai/qwenpaw-data/cm-skills
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 cm-skills
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 cm-skills

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/cm-skills"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/cm-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,054 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.
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.00073 $0.02054
Opus 5.5 $0.00029 $0.00822
Sonnet 5.5 $0.00015 $0.00411
Haiku 4.5 $0.00007 $0.00205

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

Security

Grade A, and why

cm-skills 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/domains/cm-skills/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Manager

CM 负责业务语义和知识的构建、维护与检索,为 Agent 提供指标定义、计算口径、数据集、物理表列、维度、知识和已验证查询等上下文,并通过 MCP 提供图检索与业务 SQL 执行能力。Host 和业务 Skill 负责理解任务、制定计划、组织答案;本 Skill 负责 CM 工具的使用方式。

选择工具

信息或操作 工具
已知名称、术语或关键词,寻找候选节点 search_graph_fulltext
只有业务描述,不知道标准名称,寻找语义候选 search_graph_vector
确认图后端、节点、关系、属性类型和授权范围 get_graph_schema
按精确名称 / key 查询事实、关系、完整名单或聚合 query_graph
读取业务表数据 execute_read
用户要求创建业务表或视图 execute_create
用户要求插入或更新业务数据 execute_modify

按需要选工具,无需连续调用所有检索入口。搜索无需预查 schema;已有足够的节点属性时可以直接使用。调用参数、结果结构、限制、SQL 写入条件与通用错误处理见 MCP 工具参考,按所用工具阅读对应章节。

编写图查询

Skill 只加载本文,不会自动加载引用文件。首次 query_graph 前必须按顺序执行:get_graph_schema → 根据 backend 用 Read 加载对应方言文件的语法部分 → 编写并执行查询。未成功加载前不调用 query_graph;只加载实际后端,配方也在同一文件中。

backend 查询前必须加载的文件
neo4j references/neo4j.md
holoage references/holoage.md

同一 Workspace 可复用已加载的 schema 和方言;切换 Workspace 或后端后重新确认。标签、关系、属性和类型以 schema 为准,声明不代表已有数据或索引就绪。

确认检索范围

业务域与数据源是两个独立维度,不能相互替代:

对象 显示名称 用于过滤的身份
Domain name domain_id;其他业务域节点的 domain 属性存这个 ID
DataSource datasource_name datasource_id;来源节点的同名属性存这个 ID
  • 上下文已有确认的 ID 时直接复用,无需重复查列表。只有名称时,先搜索对应的 Domain / DataSource,或按名称精确查询,核对名称、描述并取得 ID;不将显示名或图 key 当作 ID。
  • 业务域尚未明确时,可先搜索指标等候选,再用其 domain 查 Domain 核对业务含义;候选不等于已选定范围。数据源尚未确定时,保留已知域约束,从口径、数据集或 DataSource 返回的 datasource_id 发现候选。证据唯一且符合问题时采用,多候选先消歧,仍有歧义再询问用户。
  • 搜索和图查询按下方类型规则沿用已确认的 ID;跨层范围通过口径、数据集或字段绑定核对。不将未知 ID 填为 null/空串参与等值过滤。

SQL 操作的数据源一致性

以已确认的 datasource_id 和业务域 ID 作为检索、消歧与选择节点的首要依据;用户已指定数据源时以其选择为准。不同数据源、不同业务域可能存在同名或相似节点,名称和搜索排名不能代替归属核对。

生成和执行 SQL 前,必须确认所依据的 Table、Column、Dataset、DatasetField 节点,其 datasource_id 属性均与已确认的目标数据源一致。 此规则适用于 execute_read、execute_create 和 execute_modify。

  • 搜索 Domain、Metric、Dimension、VerifiedQuery 只支持 domain_id 过滤;DataSource、Table、Column 只支持 datasource_id;Dataset、DatasetField、MetricCaliber 支持两者。完整类型表见 MCP 参考。Metric/Dimension 的来源沿口径或字段绑定核对。
  • 对 schema 中声明了 domain 的节点(如 Metric、MetricCaliber、Dimension、Dataset、DatasetField),按已确认的业务域过滤和核对。Table、Column 没有 domain 属性,通过语义对象和物理映射核对其业务用途,不虚构该属性。
  • 两个 ID 都省略时才不做域/数据源过滤,查询文本不会自动选择范围。查看 searched_node_types 确认实际搜索类型;类型与过滤条件不兼容时修正类型或查询路径,不为消除报错而取消已确认范围。
  • 使用图查询配方时,在相应节点上补齐业务域/数据源过滤并返回归属字段。搜索命中须按上述规则核对;属性未返回时按 key 补查。JOIN、子查询和复用已验证 SQL 时同样核对涉及的表、列、数据集及数据集字段,不能仅凭存在关联边或 SQL 连接正确就认定来源一致。
  • 节点归属不一致、应核对的属性缺失或范围尚未确认时,不得将其作为本次 SQL 的依据。先在指定数据源和已确认业务域内重新检索;仍无法确认时说明缺失或冲突并向用户澄清,不能用其他数据源或业务域的同名节点替代。
  • SQL 工具的 datasource_id 沿用已确认的目标数据源;用户已指定来源时,只有用户明确变更选择后才能切换,并重新核对相关对象。创建尚不存在的表或视图时,目标创建在该数据源中,源查询涉及的已有对象仍须按上述规则核对。

Read the full file on GitHub · 71 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 First seen · 71 lines · 73 tokens per session scan A 4051150f4c04

Subscribe to this mod's changes

cm-skills is a skill published in the GitHub repository agentscope-ai/QwenPaw-Data (208 stars, last pushed 5d ago), licensed Apache-2.0. It adds 73 tokens to every session and 2,054 once invoked, about $0.0003 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-11-21.

Related

cm-skills compared with skills from other repositories

cm-skills next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cm-skillsagentscope-ai/QwenPaw-DataSkill2085d agoApache-2.0A73Claude Code, Codex
alembic-migrationvstorm-co/full-stack-ai-agent-templateSkill2.0k3d agoMITA56Claude Code
knowledge_graph_skillNPC-Worldwide/npcpySkill1.5kyesterdayMITA474Claude Code, Codex
stripe-projectsstripe/aiSkill2.1k5d agoMITC213Claude Code
tageszeitungellmos-ai/skillsSkill10yesterdayMITA112Claude Code, Codex
datasetsAryan-Jhaveri/mcp-statcanSkill823d agoMITA67Claude Code, Codex
brain-bitemporalinite-ai/inite-brain-serviceSkill43todayAGPL-3.0A74Claude Code