Agent skill

Bi Time Impact Attribution

by agentscope-ai in agentscope-ai/QwenPaw-Data

将累加型量值指标的周期波动拆解为结构变动、趋势变动和事件影响。当需要量化时间因素对指标变动的影响时调用. An agent skill from agentscope-ai/QwenPaw-Data.

Apache-2.0Auto-check passed

Install Bi Time Impact Attribution

skills CLI
$ npx skills add agentscope-ai/QwenPaw-Data --skill bi-time-impact-attribution -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agentscope-ai/QwenPaw-Data bi-time-impact-attribution --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/atomic/bi-time-impact-attribution .claude/skills/bi-time-impact-attribution && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bi-time-impact-attribution
GitHub stars
127
Token cost
~1k tokens
SKILL.md length
142 words
Files
2 (incl. scripts)
Skills in repo
29
Repo updated
First seen
Licence
Apache-2.0

At a glance

将累加型量值指标的周期波动拆解为结构变动、趋势变动和事件影响。当需要量化时间因素对指标变动的影响时调用. An agent skill from agentscope-ai/QwenPaw-Data.

  • Works in 2 steps: 动态基线构建:先计算非事件日的“初始基线”作为裁判,评估各事件偏离度;剔除影响度超… → 基于最终基线拆解总变动
  • Runs Python scripts from its folder; calls python

What it does

Bi Time Impact Attribution is an agent skill from agentscope-ai/QwenPaw-Data. 将累加型量值指标的周期波动拆解为结构变动、趋势变动和事件影响。当需要量化时间因素对指标变动的影响时调用。

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/time_impact_attribution.py`).

The repository describes itself as: Agentic enterprise data analytics: governed facts (DataBridge), reusable methodology (Skill-Hub), and controllable execution (Host). The licence is Apache-2.0.

Example prompts

  • “/bi-time-impact-attribution”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. 动态基线构建:先计算非事件日的“初始基线”作为裁判,评估各事件偏离度;剔除影响度超过阈值的大事件后,重算得到反映业务自然水平的最终基线
  2. 基于最终基线拆解总变动

What it can do on your machine

Read from SKILL.md and the folder at commit e0bae36. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bi Time Impact Attribution loads about 1k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 142 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from agentscope-ai/QwenPaw-Data at commit e0bae36, republished under its Apache-2.0 licence (© agentscope-ai). 142 words, ~1,005 tokens.

Download SKILL.mdSave it as .claude/skills/bi-time-impact-attribution/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
bi-time-impact-attribution
description
将累加型量值指标的周期波动拆解为结构变动、趋势变动和事件影响。当需要量化时间因素对指标变动的影响时调用。

bi-time-impact-attribution

将指标周期波动拆解为结构变动、趋势变动和事件影响,量化各时间因素对指标变化的贡献。典型场景:拆解本周期 vs 上周期的指标变动来源,量化节假日、营销活动、产品发布等事件对指标的影响度。

适用范围:

  • 仅适用于累加型量值指标:各时间点的值可直接求和得到周期总量,如 DAU、访问量、GMV、订单量。率值指标(留存率、转化率等)不适用
  • 时间粒度:通常适用于周度或月度对比

执行步骤

1:数据准备

需要两份数据:

指标数据:包含本周期和上周期日粒度数据的 CSV 文件,至少包含以下两列:

列说明示例
日期列时间标识日期
指标列指标值访问用户数

示例:

csv
日期,访问用户数
2025-01-01,10000
2025-01-02,10500
...

事件信息(可选):本周期和上周期内发生的事件列表(CSV),包含事件名称和起止日期。不提供则只拆解结构变动和趋势变动,不计算事件影响:

列说明示例
事件名称事件描述春节
开始日期事件起始2025-01-28
结束日期事件结束2025-02-04

示例:

csv
事件名称,开始日期,结束日期
春节,2025-01-28,2025-02-04
元旦,2025-01-01,2025-01-01

若上游步骤已产出可用数据文件则直接使用,否则自行取数并按上述格式组织。若未提供事件信息,跳过步骤 2 和 3,直接进入步骤 4。

2:确定事件影响时间区间

每个事件需确定其影响的时间区间:

  • 已指定:若外部已提供事件影响区间,按以下优先级取值,命中即停:
    优先级来源示例
    1用户显式指定用户要求"春节影响区间为 1.25-2.05"
    2域知识包(若存在)域知识包指定各事件的影响区间
    3语义层接口(若可用)通过接口查询到的事件影响区间配置
  • 未指定:若没有外部来源提供,按以下默认规则推断:
    事件类型时间区间范围默认值
    节假日假期开始前 N 天 ~ 假期结束N=1
    事件波动事件开始当天 ~ 事件开始后 M 天M=2
3:确定事件影响度阈值

事件影响度阈值用于计算指标基线:影响度超过阈值的事件视为"大事件",其事件日将被剔除后计算基线,以获得更准确的非事件日基线水平。低于阈值的"小事件"不剔除。

  • 已有阈值:若外部已提供阈值,按以下优先级取值,命中即停:
    优先级来源示例
    1用户显式指定用户要求"影响度阈值设为 5%"
    2域知识包(若存在)域知识包指定事件影响度阈值为 10%
    3语义层接口(若可用)通过接口查询到的阈值配置
  • 未提供阈值:若没有任何外部来源提供阈值,尝试从历史事件影响度数据中自适应计算阈值
4:执行时间归因

按以下优先级选择计算方式,命中即停:

方式一:使用脚本

路径:scripts/time_impact_attribution.py

原理:先排除事件干扰建立纯净指标基线,再将总变动拆解为结构变动、趋势和事件影响三部分:

  1. 动态基线构建:先计算非事件日的“初始基线”作为裁判,评估各事件偏离度;剔除影响度超过阈值的大事件后,重算得到反映业务自然水平的最终基线
  2. 基于最终基线拆解总变动:
    • 结构变动:用上周期基线衡量两个周期工作日/非工作日天数分布差异带来的变动
    • 趋势变动:用当周期天数结构衡量基线本身的升降(当周期基线 - 上周期基线),反映业务自然增长
    • 事件影响(有事件信息时):分别计算双向影响。当周期事件计算其相对于基线的正向/负向冲击;上周期事件计算其消除效应(基数回落带来的同比影响)

若脚本适用于当前场景,按以下方式调用:

参数:

参数说明
--input-file日粒度指标数据文件路径(必填)
--date-col日期列名(必填)
--metric-col指标列名(必填)
--events-file事件信息文件路径(可选,不提供则不计算事件影响)
--current-month当前周期,格式 YYYY-MM 或 YYYY-WXX(必填)
--prev-month上周期,格式同上(必填)
--impact-threshold事件影响度阈值,超过则剔除该事件日重算基线
--holiday-lead-days节假日前置天数
--event-lag-days事件后置天数
--output-file波动拆解结果输出路径(可选)

调用示例:

bash
# 有事件信息
python scripts/time_impact_attribution.py \
  --input-file data.csv \
  --date-col "日期" \
  --metric-col "访问用户数" \
  --events-file events.csv \
  --current-month 2025-02 \
  --prev-month 2025-01

# 无事件信息(只拆解结构变动和趋势变动)
python scripts/time_impact_attribution.py \
  --input-file data.csv \
  --date-col "日期" \
  --metric-col "访问用户数" \
  --current-month 2025-02 \
  --prev-month 2025-01

输出格式:

同时输出绝对影响值与相对占比(占比 = 单项影响 / 总变动量):

有事件时:

 影响因素   绝对值    占比
 总变动    +15000   100.0%
 结构变动   +3000    20.0%
 趋势变动   +8000    53.3%
 事件影响   +4000    26.7%
   春节     +5000    33.3%
   元旦     -1000    -6.7%

无事件时:

 影响因素   绝对值    占比
 总变动    +11000   100.0%
 结构变动   +3000    27.3%
 趋势变动   +8000    72.7%
方式二:自行实现

若脚本不适用于当前场景,参考上述原理自行实现时间归因计算。

© agentscope-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in packages/qwenpaw-data-skills/skills/atomic/bi-time-impact-attribution of agentscope-ai/QwenPaw-Data.

  • SKILL.md
  • scripts/time_impact_attribution.py

Open the folder on GitHubat commit e0bae36

Compare with similar skills

Bi Time Impact Attribution next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bi Time Impact Attribution compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bi Time Impact Attribution this skillagentscope-ai/QwenPaw-Data127—~1kAutomated safety check: PassApache-2.0
Performance AttributionHKUDS/Vibe-Trading35k—~3.1kAutomated safety check: PassMIT
Direction Attributethedaviddias/Front-End-Checklist74k—~534Automated safety check: PassMIT
Fetchpriority Attributethedaviddias/Front-End-Checklist74k—~535Automated safety check: PassMIT
Lang Attributethedaviddias/Front-End-Checklist74k—~995Automated safety check: PassMIT
Ads AttributionAgriciDaniel/claude-ads9.9k—~499Automated safety check: PassMIT

Similar skills

  • Performance Attribution

    HKUDS/Vibe-Trading

    Explains why a portfolio beat or lagged its benchmark with Brinson sector attribution, factor alpha and beta decomposition, timing evaluation and benchmark comparison.

    35k GitHub stars~3.1k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Direction Attribute

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing templates, rendered HTML, or shared components related to Set text direction for RTL languages.

    74k GitHub stars~534 tokensUpdated 4 days ago
    Auto-check passed
  • Fetchpriority Attribute

    thedaviddias/Front-End-Checklist

    A skill your agent uses when optimising Largest Contentful Paint (LCP), reducing render-blocking resource contention, or fine-tuning resource loading order in the critical rendering path.

    74k GitHub stars~535 tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Lang Attribute

    thedaviddias/Front-End-Checklist

    A skill your agent uses when applies to all HTML documents. An agent skill from thedaviddias/Front-End-Checklist.

    74k GitHub stars~995 tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • Ads Attribution

    AgriciDaniel/claude-ads

    Audit cross-platform attribution, conversion definitions, reporting windows, GA4, AdServices and AdAttributionKit, MMPs, browser and server events, offline conversions, and platform reconciliation.

    9.9k GitHub stars~499 tokensUpdated 3 days ago
    Marketing & SEOAuto-check passed
  • Campaign Attribution Evidence Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Weighs infrastructure, TTP, malware code and timing evidence with the Diamond Model and competing hypotheses to reach a confidence-rated attribution.

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    SecurityAuto-check passed

More from agentscope-ai/QwenPaw-Data

All 29 skills in this repo
  • Bi Report Generation

    agentscope-ai/QwenPaw-Data

    将 BI 数据分析结果组织成可视化 HTML 报告。当分析完成、需要生成报告时调用. An agent skill from agentscope-ai/QwenPaw-Data.

    127 GitHub stars~1.2k tokensUpdated 6 days ago
    Auto-check passed
  • Fetch Data

    agentscope-ai/QwenPaw-Data

    取数 / 查数据 / 拉数据 / 跑 SQL。把自然语言取数需求转为 SQL,经数据湖仓执行后返回查询结果供下游分析。任何需要业务数据的任务在工作区缺少对应文件时都必须先调用此技能——覆盖 BI 业务分析、留存 / 转化 / 同期群分析、数据探索 EDA、统计建模、定量计算、元数据查询、数据查询。命中任一即触发:(1) 直接索要指标或记录,如「DAU 多少」「上月销售额」「3…

    127 GitHub stars~2.5k tokensUpdated 6 days ago
    Auto-check passed
  • Bi Adaptive Threshold

    agentscope-ai/QwenPaw-Data

    通过量化历史数据的自然波动幅度,自适应计算判定阈值。当需要从数据本身确定阈值(如波动阈值、影响度阈值等)、而非使用固定值时调用。仅适用于日/周粒度阈值确定。

    127 GitHub stars~726 tokensUpdated 6 days ago
    Auto-check passed
  • Bi Anomaly Detection

    agentscope-ai/QwenPaw-Data

    基于阈值检测时间序列中的显著异常波动点。当需要找出指标异常波动日期、识别数据异动时调用. An agent skill from agentscope-ai/QwenPaw-Data.

    127 GitHub stars~637 tokensUpdated 6 days ago
    Auto-check passed
  • Bi Attribution Analysis

    agentscope-ai/QwenPaw-Data

    计算各维度(组)值对指标变动的贡献度,支持可加型量值指标和加权平均型/率值指标。当需要计算贡献度、解释指标"为什么涨/跌"时调用。

    127 GitHub stars~1.2k tokensUpdated 6 days ago
    Auto-check passed
  • Bi Causal Attribution

    agentscope-ai/QwenPaw-Data

    从运营周报、活动文档、对话输入或文档工具 API 中提取业务事件,与指标异常时间窗口对齐,生成有证据支撑的因果归因假设并排序。当已知指标存在异常波动、需要从外部文档证据中解释"为什么"时调用。

    127 GitHub stars~1.3k tokensUpdated 6 days ago
    Auto-check passed

Questions about Bi Time Impact Attribution

What does Bi Time Impact Attribution do?

将累加型量值指标的周期波动拆解为结构变动、趋势变动和事件影响。当需要量化时间因素对指标变动的影响时调用. An agent skill from agentscope-ai/QwenPaw-Data. Bi Time Impact Attribution is an agent skill from agentscope-ai/QwenPaw-Data.

How do I install Bi Time Impact Attribution in Claude Code?

Run `npx skills add agentscope-ai/QwenPaw-Data --skill bi-time-impact-attribution -a claude-code`. Or copy the skill folder (packages/qwenpaw-data-skills/skills/atomic/bi-time-impact-attribution in agentscope-ai/QwenPaw-Data) into .claude/skills/bi-time-impact-attribution in your project. Claude Code loads it when a task matches its description.

How do I install Bi Time Impact Attribution in Codex?

Run `npx skills add agentscope-ai/QwenPaw-Data --skill bi-time-impact-attribution -a codex`. Or copy the skill folder (packages/qwenpaw-data-skills/skills/atomic/bi-time-impact-attribution in agentscope-ai/QwenPaw-Data) into .agents/skills/bi-time-impact-attribution in your project. Codex loads it when a task matches its description.

Can I use Bi Time Impact Attribution in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agentscope-ai/QwenPaw-Data --skill bi-time-impact-attribution -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bi-time-impact-attribution, .gemini/skills/bi-time-impact-attribution, .github/skills/bi-time-impact-attribution and .opencode/skills/bi-time-impact-attribution in your project.

What does Bi Time Impact Attribution need to run?

Going by SKILL.md and its folder, Bi Time Impact Attribution needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Bi Time Impact Attribution access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Bi Time Impact Attribution safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Bi Time Impact Attribution use?

Bi Time Impact Attribution is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bi Time Impact Attribution use?

About 1k tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bi Time Impact Attribution?

Skills that share tags, products or a category with Bi Time Impact Attribution: Performance Attribution (HKUDS/Vibe-Trading, 35k stars), Direction Attribute (thedaviddias/Front-End-Checklist, 74k stars), Fetchpriority Attribute (thedaviddias/Front-End-Checklist, 74k stars) and Lang Attribute (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bi Time Impact Attribution?

agentscope-ai (a GitHub organization) maintains it in agentscope-ai/QwenPaw-Data, which has 127 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 5, 2026.

Source: agentscope-ai/QwenPaw-Data on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.