Market Breadth Heatmap logo

Market Breadth Heatmap

Community
cyhzzz
market-breadth-heatmap

大盘云图市场宽度热力图生成。从 sckd.dapanyuntu.com 获取一级行业 MA20 站上率数据,按行业聚合后生成浅色系 3:4 比例热力图 PNG 图片。触发词:市场宽度、鱼盆热力图、大盘云图热力图、行业MA20站上率

Overview

Publishercyhzzz
Repositorymarket-breadth-heatmap-skill
Skill namemarket-breadth-heatmap
Stars
51
Forks
12
Bundled files
8
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cyhzzz on GitHub. Read the source before you install it.

Installation

Install the Market Breadth Heatmap AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cyhzzz/market-breadth-heatmap-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cyhzzz/market-breadth-heatmap-skill.git \
  .claude/skills/market-breadth-heatmap
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Market Breadth Heatmap in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Market Breadth Heatmap on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Market Breadth Heatmap is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

市场宽度热力图

大盘云图数据 → 浅色系热力图 PNG。一级行业 MA20 站上率变化追踪。

规则

  • 数据来源:https://sckd.dapanyuntu.com/,每日 16:00 更新
  • 输出格式:3:4 比例(690×920px)浅色系 PNG 图片
  • 行业层级:86 个二级行业 → 26 个一级行业大类聚合(取均值)
  • 色阶:0-100,浅色系渐变(淡紫 → 浅蓝 → 浅绿 → 浅黄 → 浅橙)
  • 时间范围:默认最近 31 个交易日(约 6 周)
  • 数据聚合:过滤 0 值(无数据),对有效值取算术平均
  • 截图引擎:Playwright Chromium(来自 ljg-card 的 capture.js)
  • 质控标准:
    • 26 个一级行业全部显示
    • 31 个日期列全部对齐
    • 颜色与数值对应准确
    • 底部统计正确(最强/最弱行业、全市场均值)
    • PNG 文件清晰、无截断、无渲染残留

工作流程

Step 1:获取原始数据

读取 <skill-base>/references/data-fetch.md,按其步骤获取 API 数据。

数据结构:

json
{
  "data": [[date_idx, industry_idx, value], ...],
  "dates": ["2026-02-24", ...],
  "industries": ["专业服务", "专用设备", ...],
  "page": 0,
  "start_date": "2026-02-23",
  "end_date": "2026-04-09"
}

Step 2:按一级行业聚合

读取 <skill-base>/references/industry-mapping.md,将 86 个二级行业映射到 26 个一级行业大类。

聚合逻辑:

  • 对每个 (category, date) 组合,收集所有子行业的有效值(>0)
  • 计算算术平均值,保留 1 位小数
  • 按最新日期的值降序排列行业

执行:

bash
cd "<skill-base>" && python3 scripts/generate.py --mode aggregate --input <raw_data.json> --output aggregated_data.json

Step 3:生成浅色系热力图 HTML

使用 <skill-base>/assets/heatmap_template.html 作为模板,注入聚合后的数据。

模板特点:

  • 浅色背景:#ffffff
  • 浅色系色阶:#e0e7ff → #bae6fd → #bbf7d0 → #fef08a → #fdba74
  • 3:4 比例:690×920px
  • 响应式布局:flexbox + gap

执行:

bash
cd "<skill-base>" && python3 scripts/generate.py --mode render --input aggregated_data.json --template assets/heatmap_template.html --output heatmap.html

Step 4:HTML → PNG 截图

使用 Playwright 将 HTML 渲染为 PNG 图片。

截图工具:<skill-base>/assets/capture.js(来自 ljg-card)

bash
cd "<skill-base>" && python3 scripts/generate.py --mode capture --input heatmap.html --output market_breadth_heatmap.png

依赖安装(首次使用):

bash
cd "<skill-base>" && npm install && npx playwright install chromium

Step 5:质控检查

验证 PNG 输出:

  1. 打开 PNG 文件,检查:
    • 26 个行业标签全部可见
    • 31 个日期列全部对齐
    • 颜色渐变平滑,数值与颜色对应
    • 底部统计正确
    • 图片清晰、无截断
  2. 检查文件大小:约 50-200 KB
  3. 确认 3:4 比例:690×920px

Step 6:交付

报告文件路径:

[查看热力图](computer:///workspace/market_breadth_heatmap.png)

输出格式

最终交付物为单个 PNG 图片文件(690×920px),通过 HTML 中间产物渲染生成。

文件命名:market_breadth_heatmap.png

依赖

  • Python 3(数据获取 + 聚合)
  • Node.js + Playwright Chromium(HTML → PNG 截图)
  • 依赖声明:<skill-base>/package.json

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Market Breadth Heatmap AI skill do?

大盘云图市场宽度热力图生成。从 sckd.dapanyuntu.com 获取一级行业 MA20 站上率数据,按行业聚合后生成浅色系 3:4 比例热力图 PNG 图片。触发词:市场宽度、鱼盆热力图、大盘云图热力图、行业MA20站上率

Why use Market Breadth Heatmap on TypingMind?

Because you install it once and use it with any model. Market Breadth Heatmap is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Market Breadth Heatmap in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cyhzzz/market-breadth-heatmap-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Market Breadth Heatmap?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Market Breadth Heatmap?

As many as you like. As long as a model supports skills, you can use Market Breadth Heatmap with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Market Breadth Heatmap AI skill free?

It is published on GitHub by cyhzzz. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇