hithink-finance-data

hithink-finance-data is a skill for Claude Code, Codex from HiThink-Tech/Financial-API. It costs 52 tokens per session (1,153 once invoked), scanned A, original, MIT.

A local data-management skill for the HiThink Finance command-line tool and its DuckDB database. DuckDB is a database stored in a local file.

In plain words
What is it for?
Use it to initialize or synchronize data, inspect database tables, run read-only SQL queries, validate or migrate the database, repair derived data, and export results.
Why use it?
It gives agents a defined way to create, update, inspect, check, repair, export, and remove local financial data without guessing command options.

Skill for Claude CodeCodex

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

Good fit Use it to initialize or synchronize data, inspect database tables, run read-only SQL queries, validate or migrate the database, repair derived data, and export results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hithink-tech/financial-api/hithink-finance-data
About the project

HiThink-Tech/Financial-API is an official Tonghuashun service that provides A-share market data, including prices, financial statements, indices, sectors, funds and trading activity through APIs and developer tools. It serves AI agents, quantitative researchers and application developers. The catalogue add-ons help coding agents access and use this financial data.

HiThink-Tech/Financial-API · 4,715 stars · on GitHub · fuyao.aicubes.cn

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 HiThink-Tech/Financial-API --skill hithink-finance-data
Clone the repo
git clone --depth 1 https://github.com/HiThink-Tech/Financial-API

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 hithink-finance-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/hithink-tech/financial-api/hithink-finance-data/github.svg)](https://agentmods.dev/skills/hithink-tech/financial-api/hithink-finance-data)
Your own site
<a href="https://agentmods.dev/skills/hithink-tech/financial-api/hithink-finance-data"><img src="https://agentmods.dev/badge/skills/hithink-tech/financial-api/hithink-finance-data/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 hithink-finance-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/hithink-tech/financial-api/hithink-finance-data"><img src="https://agentmods.dev/badge/skills/hithink-tech/financial-api/hithink-finance-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 11 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 12
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 37
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 39
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 41
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 42
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 43
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 44
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 46
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 47
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 48
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 49
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
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.00052 $0.01153
Opus 5.5 $0.00021 $0.00461
Sonnet 5.5 $0.00010 $0.00231
Haiku 4.5 $0.00005 $0.00115

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

Security

Grade A, and why

hithink-finance-data 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 18d 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.

hithink-finance-cli/skills/hithink-finance-data/SKILL.md · 69 lines

How it starts

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

hithink-finance-data

本地数据生命周期和 SQL 入口。负责让数据可用、可校验、可导出,而不是解释所有研究结论。

前置条件表

条件 操作
需要认证、共用输出或维护指引 按需读取 共享规则,同会话已加载内容可复用
选定命令或版本变化 用目标 schema <id> --format json 核对参数;命令未知时再读取 capabilities
需要执行下表某个命令 先读取对应 reference 文件,不要只凭命令名猜参数
全市场、分页、多标的或长区间 使用命令声明的 --output <path> 落盘,只报告摘要

快速决策

用户意图 首选命令 / 路由
首次建库或从 dump 导入 data init
增量/重新同步本地数据 data sync
查看库路径和 schema data status
质量校验 data validate
迁移计划或应用 data migrate
重建复权等派生数据 data repair
清理下载缓存 data clean
删除本地库 data remove --plan 先预览
查看表/视图 db describe
只读 SQL 查询 db query --sql <sql>
大结果导出 db export --sql <sql> --output <file>

Shortcuts

命令 何时使用
data clean 只清理 CLI 管理的下载缓存,不删除数据库。
data init 远端初始化先通过 auth status 复用当前启用的 OAuth 或 API Key;首次登录默认推荐 OAuth。本地文件导入无需远端认证。
data migrate 默认只输出迁移计划;应用迁移前让用户确认。
data remove 高风险操作;先运行 --plan 报告路径和大小。
data repair 用于重建派生复权因子等本地派生数据。
data status 查看库路径和 schema 版本;该命令可创建缺失数据库,严格只读任务须先用文件系统确认目标存在。
data sync 需要当前可用凭据,先按 shared 查看只读 auth status,或提供本次显式 Key。
data validate 质量检查会先应用普通迁移。严格只读研究须先确认目标文件存在,并用 data migrate 的默认计划确认 versions 为空。
db describe 查询表和视图清单,并应用普通迁移;严格只读研究使用 db query 查询 information_schema。
db export 用于大结果或下游 pandas/notebook 消费。
db query 只读 SQL;小结果才可直接读取 JSON。

Read the full file on GitHub · 69 lines

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. 18d ago Changed · -8 tokens per session 7d773d914a43
  2. 2mo ago Changed · -9 lines 3a3601f1cad2
  3. 3mo ago First seen · 78 lines · 60 tokens per session scan A eb92eae9d669

Subscribe to this mod's changes

hithink-finance-data is a skill published in the GitHub repository HiThink-Tech/Financial-API (4,715 stars, last pushed 3d ago), licensed MIT. It adds 52 tokens to every session and 1,153 once invoked, about $0.0002 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-08-30.

Related

hithink-finance-data compared with skills from other repositories

hithink-finance-data next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hithink-finance-dataHiThink-Tech/Financial-APISkill4.7k3d agoMITA52Claude Code, Codex
通达信TQadambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA56Claude Code, Codex
机构持仓股东分析adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA229Claude Code, Codex
问小达选A股adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA82Claude Code, Codex
政策解读与受益分析adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA248Claude Code, Codex
仓位决策adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA109Claude Code, Codex
生成交易计划adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA64Claude Code, Codex