ae-analysis
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseae-analysis
ae-analysis
This is the single entry skill for analysis intent and command execution.
这是处理分析意图与命令执行的唯一入口技能。
Before any command
执行任何命令前
- If the command family is already known, open its dedicated reference directly. Otherwise search only the matching row in (for example with
references/command_index.md); do not read the exhaustive index end to end.rg - Read the selected command's dedicated reference before composing it:
- ->
event listreferences/event_list.md - ->
analysis dashboard listreferences/dashboard_list.md - replace hyphens with underscores in gateway filenames.
- For an AI-facing ad-hoc definition, also read .
references/ai_models.md - For cluster/tag , also read the matching
--definition-requestorreferences/user_cluster_models.md. Shared primitives live inreferences/user_tag_models.md.references/audience_models.md - For analysis data retrieval, choose or
runusingexport.references/analysis_data_retrieval.md - When an AI-QP compile failure contains ,
slot_kind,allowed_resource_types, andsearch_targets, read and follownext_action.metadata_resolution.md
The generated command index is exhaustive. This file contains routing and workflow rules only; do not duplicate a hand-maintained command inventory here.
- 若已知命令类别,直接打开其专用参考文档;否则仅在中搜索匹配行(例如使用
references/command_index.md工具),无需通读完整索引。rg - 在编写命令前,先阅读对应命令的专用参考文档:
- ->
event listreferences/event_list.md - ->
analysis dashboard listreferences/dashboard_list.md - 网关文件名中的连字符需替换为下划线。
- 若涉及面向AI的临时定义,还需阅读。
references/ai_models.md - 若为集群/标签的,还需阅读对应的
--definition-request或references/user_cluster_models.md。通用基础定义见references/user_tag_models.md。references/audience_models.md - 对于分析数据检索,需参考选择
references/analysis_data_retrieval.md或run命令。export - 若AI-QP编译失败信息包含、
slot_kind、allowed_resource_types和search_targets,需阅读并遵循next_action中的指引。metadata_resolution.md
生成的命令索引已涵盖所有内容。本文档仅包含路由与工作流规则,请勿在此处手动维护命令清单。
Boundaries and priority
边界与优先级
Use this skill for these CLI services:
- : reports, dashboards, BI panels, ad-hoc analysis, drilldown, detail data, alerts, clusters, tags, and async runs/artifacts.
analysis - : gateway metadata assets, events, properties, virtual metadata, metrics, data tables, exchange rules, and super metadata.
analysis-meta - : gateway asset governance operations, including governed asset lists/exports, lineage, dependency, impact, query history, rule schema/list/create/update/delete, batch asset actions, and operation records. Use this service for asset governance workflows, not for metadata event/property/metric CRUD.
analysis-governance - : gateway tracking plan, checking, ingest, live-data, and event blacklist operations.
tracking
For metadata gateway detail outside the commands in the generated index, use the metadata skill. For Engage, DataOps, or Community work, use the corresponding skill.
Use as the only execution path for this skill. If a command is missing, unsupported, not implemented, or a capability gap is confirmed, report the gap and stop or provide framework-level guidance; do not switch to direct MCP execution. Repeated failures are not evidence of a capability gap until parameters, types, time formats, permissions, timeout choice, and payload construction have been checked. A validation error or is a reason to correct the input, not to switch tools.
ae-clineed_clarificationFor tags and audience clusters, use the native and gateway commands.
analysis user-tag ...analysis user-cluster ...本技能适用于以下CLI服务:
- :报表、仪表盘、BI面板、临时分析、下钻分析、明细数据、告警、集群、标签,以及异步运行/工件。
analysis - :网关元数据资产、事件、属性、虚拟元数据、指标、数据表、交换规则和超级元数据。
analysis-meta - :网关资产治理操作,包括治理资产列表/导出、血缘关系、依赖关系、影响分析、查询历史、规则 schema/列表/创建/更新/删除、批量资产操作及操作记录。此服务仅用于资产治理工作流,不处理元数据事件/属性/指标的增删改查。
analysis-governance - :网关追踪计划、校验、数据摄入、实时数据及事件黑名单操作。
tracking
若需处理生成索引中未涵盖的元数据网关细节,请使用元数据技能。若涉及Engage、DataOps或社区相关工作,请使用对应技能。
本技能仅通过执行命令。若命令缺失、不支持、未实现或确认存在能力缺口,需报告缺口并停止操作或提供框架级指导;请勿切换至直接MCP执行。在检查完参数、类型、时间格式、权限、超时选项及负载构造前,重复失败不能作为能力缺口的证据。验证错误或是修正输入的理由,而非切换工具的依据。
ae-clineed_clarification对于标签和受众集群,请使用原生的和网关命令。
analysis user-tag ...analysis user-cluster ...Global AE CLI Rules
全局AE CLI规则
Command forms:
bash
ae-cli analysis <resource> <action> [options]
ae-cli analysis-meta <resource> <action> [options]
ae-cli analysis-governance <resource> <action> [options]
ae-cli tracking <resource> <action> [options]
ae-cli capability search|inspect|validate|dry-run|run [options]- Gateway commands use kebab-case flags such as ; the CLI sends snake_case JSON.
--project-id - JSON values must be JSON string literals.
- Global flags include ,
--host,--format json|table,--jq,--validate, and--dry-run. Use--yesalone to normalize complex capability input; use--validatealone for execution or risk preview.--dry-run - JSON is the default machine-readable output. On failure, preserve the structured error and non-zero exit.
- CRITICAL — Host compat (do this first): After each run, check stderr and
ae-cli. If either is present, your reply MUST open with a short ⚠️ version warning and quote the_notice.host_compat/npm i -g(or update-cluster) lines verbatim, then present the business result. Never answer with only a project/table summary when a host_compat notice exists. Soft tip;npx skills addcan still carry the notice.ok: true - Never invent command names, flags, payload fields, projects, resource IDs, asset names, event/property names, metric definitions, or dates.
- 中文时间表达必须按固定语义映射:最近7天/近7天 -> -> QP
mode=recent,含今天;过去7天/前7天 ->recentDay=0-7-> QPmode=previous,不含今天。用户明确说明是否包含今天时,以该说明为准。完整映射见recentDay=1-7。references/ai_models.md
CAPABILITY_NOT_FOUNDInterpret gateway envelopes by state:
- with empty data is success and means no matching data. Never relabel an empty report/dashboard result as query failure.
ok: true - with
ok: trueis partial success. Use the successful data and explicitly reportmeta.partial: true; do not fail the whole batch or hide failed items.meta.failures - is failure. Preserve
ok: false,error.code, anderror.message,meta.request_id,meta.invocation_id, andmeta.stagewhen present.meta.failures - Do not retry an unchanged failed command or guess alternative payload shapes. Retry only after applying concrete validation/clarification guidance or correcting a verified transient condition.
For every gateway command that exposes , ae-cli generates a and prints it to stderr before dispatch when the caller omits it. Preserve that ID with the final envelope and diagnostics. Pass an explicit only when a caller-owned correlation ID is required.
--request-idrequest_id--request-id cli_<32 lowercase hex>命令格式:
bash
ae-cli analysis <resource> <action> [options]
ae-cli analysis-meta <resource> <action> [options]
ae-cli analysis-governance <resource> <action> [options]
ae-cli tracking <resource> <action> [options]
ae-cli capability search|inspect|validate|dry-run|run [options]- 网关命令使用短横线命名法(kebab-case)的标志,例如;CLI会将其转换为蛇形命名法(snake_case)的JSON格式发送。
--project-id - JSON值必须为JSON字符串字面量。
- 全局标志包括、
--host、--format json|table、--jq、--validate和--dry-run。单独使用--yes可规范化复杂的能力输入;单独使用--validate可预览执行或风险。--dry-run - JSON是默认的机器可读输出格式。执行失败时,需保留结构化错误信息及非零退出码。
- 关键——主机兼容性(优先处理):每次运行后,检查stderr和
ae-cli。若存在其中任意一项,回复必须以简短的⚠️版本警告开头,并逐字引用_notice.host_compat/npm i -g(或update-cluster)命令行,然后再展示业务结果。当存在host_compat通知时,绝不能仅返回项目/表格摘要。注意:即使npx skills add仍可能携带该通知。ok: true - 不得自行发明命令名称、标志、负载字段、项目、资源ID、资产名称、事件/属性名称、指标定义或日期。
- 中文时间表达必须按固定语义映射:最近7天/近7天 -> -> QP
mode=recent,含今天;过去7天/前7天 ->recentDay=0-7-> QPmode=previous,不含今天。用户明确说明是否包含今天时,以用户说明为准。完整映射见recentDay=1-7。references/ai_models.md
CAPABILITY_NOT_FOUND根据状态解析网关信封:
- 且数据为空表示执行成功,意味着无匹配数据。绝不能将空报表/仪表盘结果标记为查询失败。
ok: true - 且
ok: true表示部分成功。需使用成功数据并明确报告meta.partial: true;不得终止整个批量操作或隐藏失败项。meta.failures - 表示执行失败。若存在
ok: false、error.code、error.message、meta.request_id、meta.invocation_id和meta.stage,需全部保留。meta.failures - 不得重试未修改的失败命令或猜测替代负载格式。仅在应用具体的验证/澄清指引或修正已确认的临时问题后,方可重试。
对于所有支持的网关命令,若调用者未提供该参数,ae-cli会生成一个并在调度前打印至stderr。需将该ID与最终信封及诊断信息一同保留。仅当需要调用者提供的关联ID时,才需显式传递。
--request-idrequest_id--request-id cli_<32位小写十六进制字符串>Execution invariants
执行不变量
- Probe the first page exactly once. Verify , the documented data shape, and the effective
okbefore starting a pagination loop.limit - For paginated directory results, continue only with the returned while
next_offsetis true. Never calculate a speculative offset, repeat the current page, or declare the list complete beforehas_moreis false.has_more - Track the normalized command, input, and announced for every invocation. Never resubmit an identical invocation while it is still in flight; wait for the current process, or inspect its returned
request_idwhen it is asynchronous.run_id - Retry only the items named in , and only when their
meta.failuresvalue andretryablepermit it. Never retry successful or empty items from the same batch.next_action - For black-box coverage audits, maintain an explicit module × model × outcome matrix. Mark coverage complete only from observed responses; missing assets, permissions, or fixtures are environment gaps, not passing coverage.
- 仅精确探测第一页数据。在开始分页循环前,需验证状态、文档化的数据格式及实际生效的
ok值。limit - 对于分页目录结果,仅当为true时,使用返回的
has_more继续分页。绝不能计算推测性偏移量、重复当前页面,或在next_offset变为false前宣布列表已完成。has_more - 需追踪每次调用的规范化命令、输入及公布的。当前调用仍在执行时,不得重新提交完全相同的调用;需等待当前进程完成,或对于异步调用,检查其返回的
request_id。run_id - 仅重试中指定的项,且仅当该项的
meta.failures值和retryable允许时方可重试。不得重试同一批量操作中的成功项或空项。next_action - 对于黑盒覆盖审计,需维护明确的模块×模型×结果矩阵。仅当从观测响应中确认覆盖完成时,方可标记为覆盖完成;缺失资产、权限或测试环境属于环境缺口,不能视为覆盖通过。
Mandatory routing
强制路由规则
Product terminology gate
产品术语网关
- The Chinese product term means an analysis board backed by saved reports. Route it to
看板and capability IDs underae-cli analysis dashboard ....analysis.dashboard.* - The Chinese product terms and
仪表盘mean a BI dashboard with worksheets, charts, and pages. Route them toBI 仪表盘and capability IDs underae-cli analysis bi-panel ....analysis.bi_panel.* - These assets are not aliases. Never substitute an analysis board for a BI dashboard, or a BI dashboard for an analysis board.
- The standalone English word is ambiguous in this product. Before a write, ask whether the user means an analysis board (
dashboard) or a BI dashboard (看板) unless the surrounding context already makes the product asset explicit.仪表盘 - If the requested BI-panel capability is unavailable or unauthorized, report that constraint. Do not fall back to creating an analysis board.
- 中文产品术语指由已保存报表支撑的分析看板,需路由至
看板及ae-cli analysis dashboard ...下的能力ID。analysis.dashboard.* - 中文产品术语和
仪表盘指包含工作表、图表和页面的BI仪表盘,需路由至BI 仪表盘及ae-cli analysis bi-panel ...下的能力ID。analysis.bi_panel.* - 这些资产并非别名。绝不能用分析看板替代BI仪表盘,也不能用BI仪表盘替代分析看板。
- 在本产品中,单独的英文单词含义模糊。在执行写入操作前,需询问用户指的是分析看板(
dashboard)还是BI仪表盘(看板),除非上下文已明确指明产品资产类型。仪表盘 - 若请求的BI-panel能力不可用或未授权,需报告该限制。不得退而求其次创建分析看板。
Project gate
项目网关
Before a project-scoped command:
- Reuse a project only when its ID and host/environment were already verified in the same continuous conversation.
- Otherwise call and resolve the supplied ID/name.
project info list - If there are multiple plausible projects, the host is unclear, or no project matches, show the candidates and ask; never guess.
- Re-verify after the user changes project, host, or environment.
在执行项目范围的命令前:
- 仅当项目ID及主机/环境在同一场连续对话中已验证时,方可复用该项目。
- 否则调用并解析提供的ID/名称。
project info list - 若存在多个可能的项目、主机不明确或无匹配项目,需展示候选项目并询问用户;绝不能猜测。
- 用户更改项目、主机或环境后,需重新验证。
C. FUZZY_SEARCH_FALLBACK
C. 模糊搜索回退
For saved-asset operations on reports, dashboards, metrics, clusters, tags, and alerts, use the relevant list/search command first unless an exact ID or canonical asset name was already verified. For event, property, metric, cluster, and tag catalogs, put the user's phrase and its useful synonyms in one JSON array; matching is OR across at most 20 keywords. For ordinary asset discovery, broaden the keyword batch up to two times, then list all candidates. If no resource exists, stop instead of fabricating one.
--queriesOnly when explicitly complete event, property, metric, cluster, or tag metadata is needed, use that resource's command. Event/property/metric exports use ; cluster/tag exports use and an integrity sidecar. Search the temporary file locally and keep the full rows out of model context. Do not page repeatedly to synthesize a complete catalog.
export --output <temporary_path>/<resource>.json.jsonlDo not pre-list events or properties before constructing an AI-facing intent model. Pass the user's wording directly in ; the backend resolves it and returns evidence. Call event/property metadata commands only when the user explicitly asks to inspect metadata, a structured compiler error instructs , or the compiler reports an explicit metadata-resolution capability gap. When compiler candidates already exist, ask the user to confirm without another metadata call. If the user explicitly rejects every candidate for that path, treat the rejected set as exhausted and continue through the one aggregate-search workflow in ; do not terminate the original task or repeat the rejected candidates.
definitionresolvednext_action=search_candidatesmetadata_resolution.mdThe generic saved-asset search rule above does not control structured AI-QP metadata failures. For those failures, is authoritative: collect the whole compiler error array and follow the one aggregate online search, optional full-catalog, conversation-reuse workflow in . Never use a candidate from either path without user confirmation.
allowed_resource_typesmetadata_resolution.md对于报表、仪表盘、指标、集群、标签和告警的已保存资产操作,除非已验证精确ID或规范资产名称,否则需先使用相关的列表/搜索命令。对于事件、属性、指标、集群和标签目录,需将用户的表述及其有用同义词放入一个 JSON数组中;匹配时最多包含20个关键词,采用OR逻辑。对于普通资产发现,可将关键词范围扩大最多两次,然后列出所有候选项目。若无匹配资源,需停止操作,不得虚构资源。
--queries仅当明确需要完整的事件、属性、指标、集群或标签元数据时,才使用该资源的命令。事件/属性/指标导出使用格式;集群/标签导出使用格式及完整性副文件。需在本地搜索临时文件,避免将完整行数据带入模型上下文。不得通过多次分页来合成完整目录。
export --output <temporary_path>/<resource>.json.jsonl在构建面向AI的意图模型前,无需预先列出事件或属性。直接将用户表述传入;后端会解析并返回证据。仅当用户明确要求查看元数据、结构化编译器错误指示或编译器报告明确的元数据解析能力缺口时,才调用事件/属性元数据命令。若编译器已提供候选项,需询问用户确认,无需再次调用元数据命令。若用户明确拒绝该路径下的所有候选项,需将被拒绝的集合视为已穷尽,并继续执行中的聚合搜索工作流;不得终止原始任务或重复展示被拒绝的候选项。
definitionresolvednext_action=search_candidatesmetadata_resolution.md上述通用已保存资产搜索规则不适用于结构化AI-QP元数据失败场景。对于此类失败,为权威依据:需收集完整的编译器错误数组,并遵循中的聚合在线搜索、可选全目录搜索、对话复用工作流。未获得用户确认前,不得使用任一路径下的候选项。
allowed_resource_typesmetadata_resolution.mdExisting business asset before ad-hoc
优先使用现有业务资产而非临时资产
When the request can map to a saved business definition:
- Extract metric, dimensions, filters, time window, and comparison semantics.
- Search reports; use dashboard search only to discover candidate embedded reports.
- Read the candidate definition and verify semantic equality, not merely a similar name.
- Use report/dashboard data when the definition matches.
- Use when no definition matches, the user explicitly requests ad-hoc exploration, or custom grouping/filtering is required.
analysis adhoc run|export
Do not call removed QP builders or schema helpers for ad-hoc analysis. is the AI-facing contract from , not raw QP or a frontend DTO.
--definitionai_models.md当请求可映射至已保存的业务定义时:
- 提取指标、维度、过滤器、时间窗口及对比语义。
- 搜索报表;仅使用仪表盘搜索来发现候选嵌入式报表。
- 读取候选定义并验证语义等价性,而非仅匹配相似名称。
- 若定义匹配,使用报表/仪表盘数据。
- 若无匹配定义、用户明确要求临时探索或需要自定义分组/过滤时,使用命令。
analysis adhoc run|export
不得为临时分析调用已移除的QP构建器或schema助手。是中定义的面向AI的契约,而非原始QP或前端DTO。
--definitionai_models.mdResult data versus metadata
结果数据与元数据区分
- Metric value, trend, comparison, or anomaly -> saved report/dashboard first, then ad-hoc data.
- Metric definition search/create/update -> metadata commands.
- Event/entity rows -> or
event-detail run|export.entity-detail run|export - Events/entities from a query result -> pass the original , follow the returned synchronous
--project-idand compact source action summary, then callquery_context_idfor full coordinate options; never reconstruct raw QP or use export rows as coordinates.analysis query-context get - Cluster/tag definition -> matching gateway cluster/tag commands and matching model reference.
- Tag/cluster candidate values, including requests phrased as "latest version" or "latest result" -> resolve the exact asset, then use with
analysis filter-value list. This means the latest computed data snapshot, never a definition or configuration release; do not invent version lists, version IDs, draft states, or publish states.cluster_date_policy=LATEST - Alert/configuration/tracking-plan requests -> the dedicated gateway command reference from the index.
- 指标值、趋势、对比或异常 -> 优先使用已保存的报表/仪表盘,再使用临时数据。
- 指标定义搜索/创建/更新 -> 使用元数据命令。
- 事件/实体行数据 -> 使用或
event-detail run|export。entity-detail run|export - 查询结果中的事件/实体 -> 传入原始,遵循返回的同步
--project-id及紧凑的源操作摘要,然后调用query_context_id获取完整坐标选项;不得重构原始QP或使用导出行作为坐标。analysis query-context get - 集群/标签定义 -> 使用匹配的网关集群/标签命令及模型参考文档。
- 标签/集群候选值,包括表述为“最新版本”或“最新结果”的请求 -> 解析精确资产,然后使用并设置
analysis filter-value list。这表示最新计算的数据快照,而非定义或配置版本;不得自行创建版本列表、版本ID、草稿状态或发布状态。cluster_date_policy=LATEST - 告警/配置/追踪计划请求 -> 使用索引中的专用网关命令参考文档。
Run, export, and follow-up
运行、导出与后续操作
- is a bounded inline preview for work that can complete within the synchronous limits. Agents should normally pass
run; omitting it deliberately uses the model's current cluster-configured synchronous limit. User tag/cluster member list commands are the exception: omission defaults to 1000 rows, matching the UI member query.--preview-rows 100 - is for complete, unknown-size, over-limit, or long-running results. It returns
exportandrun_id.artifact_id - Drilldown event/entity/user-event exports are full-download streams bounded by
csv.gz; never pass or simulatemodel_full_download_limit,limit,offset, orpage_num.page_size - Plain submits only. Add
exportto wait for terminal state, or--waitto wait and atomically stream the completed artifact;--output <file>implies wait. Existing files require explicit--output.--force - Resume detached or interrupted work with . Local interruption never cancels the remote run; cancel only through the explicit
analysis run wait --run-id <run_id> [--output <file>]command.analysis query cancel - and
analysis run inspectremain primitive lifecycle commands. Do not call raw lifecycle URLs. Useanalysis artifact downloadonly to bound local waiting; it never changes or cancels the remote runtime.--wait-timeout-seconds - Drilldown requires the original , a synchronous preview context, and row/column/metric coordinate options fetched with
--project-id. Common rejects a project ID that does not match the stored context. If the context/options are absent or the action is not advertised, report that drilldown/result-cluster creation is unavailable.analysis query-context get
- 是有界的内联预览,适用于可在同步限制内完成的工作。Agent通常应传递
run;若省略该参数,则使用模型当前集群配置的同步限制。用户标签/集群成员列表命令除外:省略该参数默认返回1000行,与UI成员查询一致。--preview-rows 100 - 适用于完整、未知大小、超出限制或长时间运行的结果。该命令返回
export和run_id。artifact_id - 下钻事件/实体/用户事件导出为格式的完整下载流,受
csv.gz限制;不得传递或模拟model_full_download_limit、limit、offset或page_num参数。page_size - 普通仅提交任务。添加
export可等待终端状态,或添加--wait可等待并原子化流式传输完成的工件;--output <file>隐含--output。若文件已存在,需显式传递--wait。--force - 可使用恢复已分离或中断的工作。本地中断不会取消远程运行;仅可通过显式的
analysis run wait --run-id <run_id> [--output <file>]命令取消。analysis query cancel - 和
analysis run inspect仍是原始生命周期命令。不得调用原始生命周期URL。仅可使用analysis artifact download限制本地等待时间;该参数不会更改或取消远程运行时长。--wait-timeout-seconds - 下钻分析需要原始、同步预览上下文及通过
--project-id获取的行/列/指标坐标选项。若上下文/选项缺失或操作未被支持,需报告下钻分析/结果集群创建不可用。analysis query-context get
Writes and destructive operations
写入与破坏性操作
Write only with explicit user intent. Use alone while correcting complex input, or alone to inspect the resolved request and execution impact; do not stack both by default. Execute and ordinary commands without . For , dry-run first, summarize the target and impact, wait for explicit user confirmation, and only then execute the unchanged command with .
--validate--dry-runreadwrite--yeshigh-risk-write--yesProject-space and folder create/delete/share are L3 capabilities rather than curated commands. Read the matching command reference, then use ; discover through and . For , dry-run first, summarize the impact, and execute with only after a later explicit confirmation.
analysisae-cli capability inspect|dry-run|run*.memberscapability search|inspect|runreferences/analysis_gateway_assets.mdrisk=high-risk-write--yesAfter a successful create/update, if a resource ID and supported resource type are available, call and return the link. Explicitly state when link generation is skipped because no resource ID exists or when it fails.
analysis-meta asset url-get仅当用户明确表达意图时,方可执行写入操作。在修正复杂输入时,单独使用;或单独使用检查解析后的请求及执行影响;默认不得同时使用两者。执行和普通命令时无需。对于操作,需先执行dry-run,总结目标及影响,等待用户明确确认,然后再执行未修改的命令并添加。
--validate--dry-runreadwrite--yeshigh-risk-write--yes项目空间和文件夹的创建/删除/共享属于L3能力,而非预设的命令。需先阅读匹配的命令参考文档,然后使用;通过及发现。对于操作,需先执行dry-run,总结影响,仅在获得用户明确确认后,再添加执行。
analysisae-cli capability inspect|dry-run|runcapability search|inspect|runreferences/analysis_gateway_assets.md*.membersrisk=high-risk-write--yes成功创建/更新后,若资源ID及支持的资源类型可用,需调用并返回链接。若因无资源ID或生成失败而跳过链接生成,需明确说明。
analysis-meta asset url-getAnalysis workflow
分析工作流
For a data question:
- Clarify only missing facts that change the query: KPI, scope, time window, dimensions, filters, and baseline.
- Pass the project gate.
- For AI-facing intent models, let the backend resolve event/property wording and consume ; discover metadata directly only for explicit metadata inspection, compiler clarification, or a reported resolution capability gap.
resolved - Check existing reports/dashboards when applicable.
- Run or export one reproducible query path.
- For anomalies, compare consistent scopes, rank drivers, then drill down to users/events only when result contexts permit it.
- Return conclusion, evidence, limitations, and a concrete next action.
For attribution, use the algorithms and self-checks in . The main driver is determined by absolute contribution, not the largest relative growth rate.
references/analysis_interpretation.md处理数据问题时:
- 仅澄清会改变查询结果的缺失信息:KPI、范围、时间窗口、维度、过滤器及基线。
- 通过项目网关验证。
- 对于面向AI的意图模型,由后端解析事件/属性表述并使用结果;仅在明确要求查看元数据、编译器需要澄清或报告解析能力缺口时,才直接查询元数据。
resolved - 适用时检查现有报表/仪表盘。
- 运行或导出一条可复现的查询路径。
- 对于异常情况,对比一致范围,排序驱动因素,仅当结果上下文允许时,才下钻至用户/事件层面。
- 返回结论、证据、局限性及具体的下一步操作。
进行归因分析时,需使用中的算法及自检步骤。主要驱动因素由绝对贡献值决定,而非最大相对增长率。
references/analysis_interpretation.mdOutput requirements
输出要求
- Lead with the conclusion.
- Include the metric, time window, dimension/filter scope, value, and baseline needed to reproduce it.
- Separate observed evidence from inferred causes and state uncertainty.
- For attribution, include total absolute/percentage change and dimension contributions sorted by absolute delta; verify the contribution sum.
- Do not return an unexplained raw table.
- State missing data, definition, permission, or capability constraints explicitly.
- 以结论开头。
- 包含重现结果所需的指标、时间窗口、维度/过滤器范围、数值及基线。
- 将观测证据与推断原因分开,并说明不确定性。
- 归因分析需包含总绝对/百分比变化及按绝对增量排序的维度贡献值;需验证贡献值之和。
- 不得返回未解释的原始表格。
- 需明确说明缺失数据、定义、权限或能力限制。
Maintenance
维护
When commands change, update source command metadata and the dedicated reference, then run:
bash
npm run generate:analysis-skill
npm run verify:analysis-skill
npm run verify:analysis-toolsThe verification fails for missing command references, retired/orphan command references, or a stale generated index.
当命令变更时,需更新源命令元数据及专用参考文档,然后运行:
bash
npm run generate:analysis-skill
npm run verify:analysis-skill
npm run verify:analysis-tools若存在缺失的命令参考文档、已废弃/孤立的命令参考文档或过期的生成索引,验证会失败。