Agent skill

Trend Analysis

by larry-zy in larry-zy/cognida

“趋势分析技能,取带时间维度的序列并量化其增长/变化幅度与异常点。”

— description from SKILL.md by larry-zy
MITAuto-check passedData & Analytics

Install Trend Analysis

skills CLI
$ npx skills add larry-zy/cognida --skill trend-analysis -a claude-code

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

GitHub CLI
$ gh skill install larry-zy/cognida trend-analysis --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/larry-zy/cognida.git skills-src && mkdir -p .claude/skills && cp -r skills-src/services/cognida-go/skills/trend-analysis .claude/skills/trend-analysis && 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
trend-analysis
GitHub stars
182
Token cost
~428 tokens
SKILL.md length
62 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

  • SKILL.md covers 何时用 / 何时不用, 标准流程, 工具 and 编排(按上下文重量分流), plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Trend Analysis is a skill in larry-zy/cognida (182 stars). Its SKILL.md is about 428 tokens. Licence: MIT.

What it can do on your machine

Read from SKILL.md and the folder at commit bf76257. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Trend Analysis loads about 428 tokens when it runs. Until then it costs about 12 tokens; SKILL.md has 62 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from larry-zy/cognida at commit bf76257, republished under its MIT licence (© larry-zy). 62 words, ~428 tokens.

Download SKILL.mdSave it as .claude/skills/trend-analysis/SKILL.md (or your agent's skills folder).
name
trend-analysis
description
趋势分析技能,取带时间维度的序列并量化其增长/变化幅度与异常点。
when_to_use
当用户问某指标随时间的走势、增长/下降、环比/同比、波动或异常(如“最近半年 GMV 的走势”“订单量是不是在下滑”)时使用;只要单个静态数字不属于此技能。
category
data
tags
trend, time-series, analytics, anomaly
version
1.0.0
author
Cognida Team

趋势分析

面向「带时间维度的序列 → 量化趋势」的场景:取出按时间聚合的指标序列,用 data_analysis 算出增长/变化幅度,必要时叠加异常检测,再给出有数据支撑的结论。区别于即席取数(要一个静态值)与归因(追问为什么变化)。

何时用 / 何时不用

  • ✅ 用:某指标随时间怎么变、涨了还是跌了、涨跌幅多少、有没有异常波动。
  • ❌ 不用:
    • 只要一个当前值/明细 → text2sql-adhoc
    • 追问「为什么会这样变」「谁在拉动」 → attribution-analysis

标准流程

1. 确定时间粒度与范围(日/周/月),取带时间维度的指标序列
   ↓  受治理指标优先 semantic_query,其余 get_schema 后 sql_execute
2. data_analysis(analysis_type=trend, options.value_col=<指标列>)
   → 拿到方向、斜率、增长幅度
   ↓
3. 必要时 data_analysis(analysis_type=anomaly) 检测异常点
   ↓
4. 结论:给出量化的增长/变化幅度(如“环比 +12.3%”),标注异常拐点

工具

  • semantic_query / sql_execute:取按时间聚合、时间列升序排列的序列。
  • data_analysis:
    • analysis_type=trend,options.value_col 指定数值列,得方向与幅度。
    • analysis_type=anomaly:检测序列中的异常点/突变。

编排(按上下文重量分流)

  • 取数重则委派、轻则直接做——判据是上下文重量,不是步数:
    • 需多表定位、序列很长、或 SQL 可能多轮试错 → 委派 SQLAuthor 取回 result_id,再委派 Analysis 做 analysis_type=trend(携 result_id);子代理的中间往返不进你的上下文,你只收结论摘要。
    • 序列小、表已知、单查即得 → 直接按标准流程自己做,省委派往返。
  • 委派携最小 scope(read),把 result_id 串进下一次委派的 inputs.result_id 做数据接力。

数据传递

  • 取数返回的大结果以 result_id 承载;分析时传 result_id,不要把整段序列复制进参数。

渲染

  • 时序数据首选一张 LineChart(数字用 {"path":"/..."} 绑定),配一句 Callout 写关键结论(涨跌幅、拐点)。
  • 不要为一条趋势再叠一张重复同列数字的表格。

约束

  • 序列必须按时间升序;口径(时间列、聚合方式)在结论里写明。
  • 趋势判断以 data_analysis 的计算结果为准,不凭样本目测下结论。
  • 只做趋势量化;「为什么变化」的根因归属属于 attribution-analysis。

© larry-zy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in services/cognida-go/skills/trend-analysis of larry-zy/cognida.

Open the folder on GitHubat commit bf76257

Compare with similar skills

Trend Analysis 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.

Trend Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Trend Analysis this skilllarry-zy/cognida182—~428Automated safety check: PassMIT
TimesFM Forecastinggoogle-research/timesfm34k—~4.7kAutomated safety check: PassApache-2.0
Timesfm ForecastingzLanqing/codex-claude-academic-skills4.6k6 repos~7.5kAutomated safety check: NotesApache-2.0
StatsmodelszLanqing/codex-claude-academic-skills4.6k16 repos~4.9kAutomated safety check: PassBSD-3-Clause
Alphaear Predictorninehills/skills2812 repos~531Automated safety check: PassNone
Find Hypertable Candidatestimescale/pg-aiguide1.9k1 repos~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • TimesFM Forecasting

    google-research/timesfm

    Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training.

    34k GitHub stars~4.7k tokensUpdated 9 days ago
    Data & AnalyticsAuto-check passed
  • Timesfm Forecasting

    zLanqing/codex-claude-academic-skills

    Zero-shot time series forecasting with Google's TimesFM foundation model.

    4.6k GitHub starsUsed in 6 repos~7.5k tokens
    Data & AnalyticsAuto-check: notes
  • Statsmodels

    zLanqing/codex-claude-academic-skills

    Statistical models library for Python. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 16 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Alphaear Predictor

    ninehills/skills

    Market prediction skill using Kronos. An agent skill from ninehills/skills.

    281 GitHub starsUsed in 2 repos~531 tokens
    Data & AnalyticsAuto-check passed
  • Find Hypertable Candidates

    timescale/pg-aiguide

    A skill your agent uses to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables.

    1.9k GitHub starsUsed in 1 repo~2.6k tokens
    Data & AnalyticsAuto-check passed
  • Pensieve Search

    arkohut/pensieve

    Search the user's local Pensieve screenshot archive by text, app, or time range.

    1.4k GitHub stars~8.2k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check passed

More from larry-zy/cognida

All 9 skills in this repo
  • Attribution Analysis

    larry-zy/cognida

    归因/根因分析技能,把指标的期间变化拆解到候选维度,定位驱动因子并给出置信与下钻建议. An agent skill from larry-zy/cognida.

    182 GitHub stars~524 tokensUpdated 1 mo ago
    Auto-check passed
  • Report Composition

    larry-zy/cognida

    综合报告生成技能,把多段取数(总览+趋势+分群等)整合成一份带洞察的结构化报告. An agent skill from larry-zy/cognida.

    182 GitHub stars~397 tokensUpdated 1 mo ago
    Auto-check passed
  • Semantic Metric

    larry-zy/cognida

    语义指标取数技能,先查治理好的指标语义模型,再按统一口径取指标,避免对物理表猜测. An agent skill from larry-zy/cognida.

    182 GitHub stars~329 tokensUpdated 1 mo ago
    Auto-check passed
  • Generate a comprehensive report of core e-commerce operating metrics (GMV, orders, average order value, repurchase)

    182 GitHub stars~470 tokensUpdated 1 mo ago
    Auto-check passed
  • Graph Retrieval

    larry-zy/cognida

    图谱与血缘检索技能,查询实体之间的关系、上下游依赖与数据血缘。

    182 GitHub stars~236 tokensUpdated 1 mo ago
    Auto-check passed
  • Text2sql Adhoc

    larry-zy/cognida

    即席取数技能,把一句话的具体数据问题翻译成 SQL 并执行返回结果。

    182 GitHub stars~390 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Trend Analysis

How do I install Trend Analysis in Claude Code?

Run `npx skills add larry-zy/cognida --skill trend-analysis -a claude-code`. Or copy the skill folder (services/cognida-go/skills/trend-analysis in larry-zy/cognida) into .claude/skills/trend-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Trend Analysis in Codex?

Run `npx skills add larry-zy/cognida --skill trend-analysis -a codex`. Or copy the skill folder (services/cognida-go/skills/trend-analysis in larry-zy/cognida) into .agents/skills/trend-analysis in your project. Codex loads it when a task matches its description.

Can I use Trend Analysis 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 larry-zy/cognida --skill trend-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trend-analysis, .gemini/skills/trend-analysis, .github/skills/trend-analysis and .opencode/skills/trend-analysis in your project.

What does Trend Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: Trend Analysis is instructions for the agent only.

Does Trend Analysis 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 Trend Analysis 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. Review the folder before installing.

What licence does Trend Analysis use?

Trend Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Trend Analysis use?

About 428 tokens (SKILL.md is roughly 1.7k 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 Trend Analysis?

Skills that share tags, products or a category with Trend Analysis: TimesFM Forecasting (google-research/timesfm, 34k stars), Timesfm Forecasting (zLanqing/codex-claude-academic-skills, 4.6k stars), Statsmodels (zLanqing/codex-claude-academic-skills, 4.6k stars) and Alphaear Predictor (ninehills/skills, 281 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Trend Analysis?

larry-zy (a GitHub user) maintains it in larry-zy/cognida, which has 182 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 31, 2026.

Source: larry-zy/cognida on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.