Chdb Datastore
vemetric/vemetric
A skill your agent uses when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas.
查询 tdx2db 同步的 A 股行情数据库(dailydata / minutedata)。取日线分钟线、均线截面筛选、检查数据新鲜度/完整性、排查同步问题时使用。
$ npx skills add xbfighting/tdx2db --skill tdx2db-query -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install xbfighting/tdx2db tdx2db-query --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/xbfighting/tdx2db.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/tdx2db-query .claude/skills/tdx2db-query && rm -rf skills-srcUse ~/.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/
Install the "tdx2db-query" agent skill from https://github.com/xbfighting/tdx2db/tree/master/.claude/skills/tdx2db-query into .claude/skills/tdx2db-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdx2db-query", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/xbfighting/tdx2db/tree/master/.claude/skills/tdx2db-queryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add xbfighting/tdx2db --skill tdx2db-query -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install xbfighting/tdx2db tdx2db-query --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/xbfighting/tdx2db.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/tdx2db-query .agents/skills/tdx2db-query && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tdx2db-query" agent skill from https://github.com/xbfighting/tdx2db/tree/master/.claude/skills/tdx2db-query into .agents/skills/tdx2db-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdx2db-query", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add xbfighting/tdx2db --skill tdx2db-query -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install xbfighting/tdx2db tdx2db-query --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/xbfighting/tdx2db.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/tdx2db-query .cursor/skills/tdx2db-query && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tdx2db-query" agent skill from https://github.com/xbfighting/tdx2db/tree/master/.claude/skills/tdx2db-query into .cursor/skills/tdx2db-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdx2db-query", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/xbfighting/tdx2db.git --path .claude/skills/tdx2db-query--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add xbfighting/tdx2db --skill tdx2db-query -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install xbfighting/tdx2db tdx2db-query --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/xbfighting/tdx2db.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/tdx2db-query .gemini/skills/tdx2db-query && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tdx2db-query" agent skill from https://github.com/xbfighting/tdx2db/tree/master/.claude/skills/tdx2db-query into .gemini/skills/tdx2db-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdx2db-query", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install xbfighting/tdx2db tdx2db-queryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add xbfighting/tdx2db --skill tdx2db-query -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/xbfighting/tdx2db.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/tdx2db-query .github/skills/tdx2db-query && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tdx2db-query" agent skill from https://github.com/xbfighting/tdx2db/tree/master/.claude/skills/tdx2db-query into .github/skills/tdx2db-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdx2db-query", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add xbfighting/tdx2db --skill tdx2db-query -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install xbfighting/tdx2db tdx2db-query --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/xbfighting/tdx2db.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/tdx2db-query .opencode/skills/tdx2db-query && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tdx2db-query" agent skill from https://github.com/xbfighting/tdx2db/tree/master/.claude/skills/tdx2db-query into .opencode/skills/tdx2db-query/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tdx2db-query", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tdx2db-query查询 tdx2db 同步的 A 股行情数据库(dailydata / minutedata)。取日线分钟线、均线截面筛选、检查数据新鲜度/完整性、排查同步问题时使用。
Tdx2db Query is an agent skill from xbfighting/tdx2db. 查询 tdx2db 同步的 A 股行情数据库(dailydata / minutedata)。取日线分钟线、均线截面筛选、检查数据新鲜度/完整性、排查同步问题时使用。
Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics. It works with Python. The repository describes itself as: 快速拥有一个A股量化数据库,包含日线和多种分钟线历史数据。 The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2123165. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are sql and bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Tdx2db Query loads about 896 tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 125 words of instructions outside code blocks.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
写入(PostgreSQL / MySQL / SQLite,连接配置见项目 `.env`)。查询前先读 `AGENTS.md` 的 schema 与陷阱清单;本 skill 提供可直接套用的操作模板。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.
The full file from xbfighting/tdx2db at commit 2123165, republished under its MIT licence (© xbfighting). 125 words, ~896 tokens.
.claude/skills/tdx2db-query/SKILL.md (or your agent's skills folder).数据库由 tdx2db sync 写入(PostgreSQL / MySQL / SQLite,连接配置见项目 .env)。查询前先读 AGENTS.md 的 schema 与陷阱清单;本 skill 提供可直接套用的操作模板。
tdx2db status --json关注三点:daily_data.latest 是否为预期交易日;rows/codes 是否符合常识(全市场约 4000+ 只);warnings 是否为空。任何分析在数据不新鲜/不完整时都是白做。
单票日线(含缠论均线族)
SELECT date, open, high, low, close, volume, amount,
ma5, ma13, ma21, ma34, ma55, ma89, ma144, ma233
FROM daily_data
WHERE code = :code6 -- 6 位纯数字,如 '600036',不带 sh/sz 前缀!
AND date BETWEEN :start AND :end
ORDER BY date;某日全市场截面(成熟股票)
SELECT code, close, ma5, ma13, ma21, ma34, ma55, ma89, ma144, ma233
FROM daily_data
WHERE date = :d AND ma233 IS NOT NULL; -- ma233 非空 ≈ 上市满一年,天然剔除次新股最新可用交易日
SELECT MAX(date) FROM daily_data WHERE ma5 IS NOT NULL;分钟线(表按周期选:minute5_data / minute15_data / minute30_data / minute60_data)
SELECT datetime, open, high, low, close, volume, amount
FROM minute30_data
WHERE code = :code6 AND datetime BETWEEN :start AND :end
ORDER BY datetime;周线/月线:无独立表,取日线后 pandas resample('W')/resample('ME') 聚合(open=first, high=max, low=min, close=last, volume/amount=sum)。
板块成分 / 个股板块归属(block_type ∈ 行业/概念/指数/地区/风格/特殊)
-- 板块 → 成分(行业为 881 研究行业,一/二/三级各一行,按名或 block_code 定位)
SELECT code FROM block_stock_relation
WHERE block_type = '行业' AND block_name = '煤炭开采';
-- 全部二级行业(≈ 通达信导出 CSV 的行业口径,板块强弱迭代用这个)
SELECT DISTINCT block_name FROM block_stock_relation
WHERE block_type = '行业' AND block_level = 2;
-- 个股 → 全部板块归属
SELECT block_type, block_code, block_name FROM block_stock_relation WHERE code = :code6;
-- 板块成分 JOIN 行情(北交所成员在行情表无数据,JOIN 自然过滤)
SELECT d.code, d.close, d.ma233
FROM block_stock_relation b JOIN daily_data d ON d.code = b.code
WHERE b.block_type = '概念' AND b.block_name = '人形机器人' AND d.date = :d;板块表为全量快照(随 sync 更新,无历史版本);板块名以 tdxzs.cfg 官方全名为准,跨口径对齐用 block_code。
换手率 / 次新股过滤(股本与上市日期在 stock_info,万股,快照口径)
-- 换手率(%):volume(手)/ltag(万股) 单位差恰好抵消;股本变动点前的历史值失真
SELECT d.date, d.volume / s.ltag AS turnover_pct
FROM daily_data d JOIN stock_info s ON RIGHT(s.code, 6) = d.code
WHERE d.code = :code6 ORDER BY d.date DESC LIMIT 20;
-- 剔除次新股(上市不足 500 天)
SELECT RIGHT(code, 6) FROM stock_info WHERE list_date < CURRENT_DATE - 500;覆盖度自检(跑批前防"同步不完整静默算子集")
SELECT
(SELECT COUNT(*) FROM daily_data WHERE date = (SELECT MAX(date) FROM daily_data)) AS today_n,
(SELECT COUNT(*) FROM daily_data
WHERE date = (SELECT MAX(date) FROM daily_data
WHERE date < (SELECT MAX(date) FROM daily_data))) AS prev_n;
-- |today_n - prev_n| / prev_n > 5% ⇒ 疑似同步不完整,先重跑 tdx2db sync 再分析sh600036 / sz000001 是 stock_info 和文件名的格式,行情表里没有。WHERE date = :d 查不到就是停牌,需要回退到前一交易日时显式写,禁止用 <= :d ORDER BY date DESC LIMIT 1 静默错配。stock_info.name 为真实名称(含退市名)。注意 stock_info.code 带前缀(sz000001),与行情表按 code 关联要 RIGHT(stock_info.code, 6)。板块归属查 block_stock_relation。| 症状 | 检查 | 处理 |
|---|---|---|
| 某票查无数据 | 收录范围:仅深 000/001/002/300/301、沪 60/688 | 北交所/ETF/指数不收录,属预期 |
| 分钟表行数远少于日线 | status 的 warnings | tdx2db minutes --db-only --incremental 自愈 |
| 当日行数骤降 | 覆盖度自检 SQL | 通达信补做盘后下载 → 重跑 sync |
| 增量后仍缺历史 | 该票是否新入库(新股全历史应自动补) | 用 tdx2db daily --code XXX --db-only --incremental 单票重同步(必须带 --incremental,否则已有行会触发唯一约束冲突报错) |
© xbfighting, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/tdx2db-query of xbfighting/tdx2db.
Open the folder on GitHubat commit 2123165
Tdx2db Query 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Tdx2db Query this skillxbfighting/tdx2db | 165 | — | ~896 | Automated safety check: Notes | MIT | |
| Chdb Datastorevemetric/vemetric | 394 | 2 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Tushare Plugin BuilderYourdaylight/stock_datasource | 188 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Elodin DBelodin-sys/elodin | 547 | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Sap Hana Cloud Data Intelligencesecondsky/sap-skills | 462 | — | ~3.2k | Automated safety check: Pass | GPL-3.0 | |
| Frappe Syntax ReportsImpertio-Studio/Frappe_Claude_Skill_Package | 187 | — | ~2.3k | Automated safety check: Pass | MIT |
vemetric/vemetric
A skill your agent uses when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas.
Yourdaylight/stock_datasource
Turns a Tushare API doc URL into a full data plugin for the stock_datasource repo: extractor, ClickHouse schema, query service, config and curl examples.
elodin-sys/elodin
Work with Elodin-DB, the time-series telemetry database. An agent skill from elodin-sys/elodin.
secondsky/sap-skills
Develops data processing pipelines, integrations, and machine learning scenarios in SAP Data Intelligence Cloud.
Impertio-Studio/Frappe_Claude_Skill_Package
A skill your agent uses when building Query Reports, Script Reports, or configuring Report Builder, including chart data integration.
Mindrally/skills
Best practices for Snowpark Python (DataFrames, UDFs, UDTFs, stored procedures) and dbt with the dbt-snowflake adapter.
Works with
Categories
查询 tdx2db 同步的 A 股行情数据库(dailydata / minutedata)。取日线分钟线、均线截面筛选、检查数据新鲜度/完整性、排查同步问题时使用。. Tdx2db Query is an agent skill from xbfighting/tdx2db.
Tdx2db Query fits situations like: data & Analytics work in your project.
Run `npx skills add xbfighting/tdx2db --skill tdx2db-query -a claude-code`. Or copy the skill folder (.claude/skills/tdx2db-query in xbfighting/tdx2db) into .claude/skills/tdx2db-query in your project. Claude Code loads it when a task matches its description.
Run `npx skills add xbfighting/tdx2db --skill tdx2db-query -a codex`. Or copy the skill folder (.claude/skills/tdx2db-query in xbfighting/tdx2db) into .agents/skills/tdx2db-query in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xbfighting/tdx2db --skill tdx2db-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tdx2db-query, .gemini/skills/tdx2db-query, .github/skills/tdx2db-query and .opencode/skills/tdx2db-query in your project.
SKILL.md names no scripts, command-line tools or credentials: Tdx2db Query is instructions for the agent only.
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.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Tdx2db Query is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 896 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Tdx2db Query: Chdb Datastore (vemetric/vemetric, 394 stars), Tushare Plugin Builder (Yourdaylight/stock_datasource, 188 stars), Elodin DB (elodin-sys/elodin, 547 stars) and Sap Hana Cloud Data Intelligence (secondsky/sap-skills, 462 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
xbfighting (a GitHub user) maintains it in xbfighting/tdx2db, which has 165 GitHub stars. The repository was last updated on September 25, 2026.
Source: xbfighting/tdx2db on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.