Tushare Data
zillionare/zillionare
面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。
Daily trading signal generator. An agent skill from VernonOY/alpha-skills.
$ npx skills add VernonOY/alpha-skills --skill alpha-signal -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install VernonOY/alpha-skills alpha-signal --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/VernonOY/alpha-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/alpha-signal .claude/skills/alpha-signal && 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 "alpha-signal" agent skill from https://github.com/VernonOY/alpha-skills/tree/main/skills/alpha-signal into .claude/skills/alpha-signal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "alpha-signal", 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/VernonOY/alpha-skills/tree/main/skills/alpha-signalType 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 VernonOY/alpha-skills --skill alpha-signal -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install VernonOY/alpha-skills alpha-signal --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/VernonOY/alpha-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/alpha-signal .agents/skills/alpha-signal && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "alpha-signal" agent skill from https://github.com/VernonOY/alpha-skills/tree/main/skills/alpha-signal into .agents/skills/alpha-signal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "alpha-signal", 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 VernonOY/alpha-skills --skill alpha-signal -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install VernonOY/alpha-skills alpha-signal --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/VernonOY/alpha-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/alpha-signal .cursor/skills/alpha-signal && 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 "alpha-signal" agent skill from https://github.com/VernonOY/alpha-skills/tree/main/skills/alpha-signal into .cursor/skills/alpha-signal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "alpha-signal", 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/VernonOY/alpha-skills.git --path skills/alpha-signal--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 VernonOY/alpha-skills --skill alpha-signal -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install VernonOY/alpha-skills alpha-signal --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/VernonOY/alpha-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/alpha-signal .gemini/skills/alpha-signal && 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 "alpha-signal" agent skill from https://github.com/VernonOY/alpha-skills/tree/main/skills/alpha-signal into .gemini/skills/alpha-signal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "alpha-signal", 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 VernonOY/alpha-skills alpha-signalInstalls 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 VernonOY/alpha-skills --skill alpha-signal -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/VernonOY/alpha-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/alpha-signal .github/skills/alpha-signal && 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 "alpha-signal" agent skill from https://github.com/VernonOY/alpha-skills/tree/main/skills/alpha-signal into .github/skills/alpha-signal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "alpha-signal", 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 VernonOY/alpha-skills --skill alpha-signal -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install VernonOY/alpha-skills alpha-signal --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/VernonOY/alpha-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/alpha-signal .opencode/skills/alpha-signal && 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 "alpha-signal" agent skill from https://github.com/VernonOY/alpha-skills/tree/main/skills/alpha-signal into .opencode/skills/alpha-signal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "alpha-signal", 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.
alpha-signalDaily trading signal generator. An agent skill from VernonOY/alpha-skills.
Alpha Signal is an agent skill from VernonOY/alpha-skills. Daily trading signal generator. Compute factor scores on latest data and output target portfolio. 每日交易信号生成器。基于最新数据计算因子得分,输出目标持仓。 Triggers: "generate signals", "today's trades", "生成信号", "今日信号", "alpha-signal"
Its SKILL.md is about 2.5k 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 Business, Finance & HR, covering Trading and backtesting. The repository describes itself as: Quantitative factor research skills for AI coding assistants. The licence is Apache-2.0.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f58f80a. 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.
Shell commands in SKILL.md call:
claudeFrom 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.
Alpha Signal loads about 2.5k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 335 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 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.
The full file from VernonOY/alpha-skills at commit f58f80a, republished under its Apache-2.0 licence (© VernonOY). 335 words, ~2,498 tokens.
.claude/skills/alpha-signal/SKILL.md (or your agent's skills folder).You are a portfolio signal generator. Read active factors from the library, compute scores on latest data, and output today's target portfolio.
你是一个组合信号生成器。从因子库读取活跃因子,在最新数据上计算得分,输出今日目标持仓。
| English | 中文 |
|---|---|
| Signal | 信号 |
| Target Portfolio | 目标持仓 |
| Rebalance | 调仓 |
| Holdings | 持仓 |
| Weight | 权重 |
| Turnover | 换手率 |
alpha_skills.db (SQLite in project root)signals/ directory (auto-created).claude/alpha-agent.config.mdLanguage Rule / 语言规则:
import sqlite3, json, os
from datetime import datetime
PROJECT_DIR = "<current working directory>"
db_path = os.path.join(PROJECT_DIR, "alpha_skills.db")
with sqlite3.connect(db_path) as conn:
conn.row_factory = sqlite3.Row
active_factors = conn.execute(
"SELECT * FROM factors WHERE status='active' ORDER BY icir DESC"
).fetchall()
active_factors = [dict(r) for r in active_factors]
if not active_factors:
print("No active factors in library. Run alpha-evaluate and alpha-library first.")
# Stop hereIf the library is empty, tell the user to evaluate and register factors first. 如果因子库为空,提示用户先评估并注册因子。
Same data loading pattern as alpha-evaluate (support Tushare cache, YFinance, or custom module). 数据加载方式同 alpha-evaluate。
Key difference: for signal generation, we need the most recent dates only. 关键区别:信号生成只需要最近的日期数据。
# After loading and preprocessing close, volume, daily_basic, etc.
# Filter to recent data for efficiency
recent_start = close.index[-252] # last 1 year for factor computation windows
close_recent = close.loc[recent_start:]
volume_recent = volume.loc[recent_start:]
# ... same for other dataFor each active factor, compute its value on the latest date:
对每个活跃因子,计算其在最新日期上的值:
import pandas as pd
import numpy as np
# Factor computation functions (self-contained, same as alpha-evaluate)
def momentum(close, period=20):
return close.pct_change(period)
def reversal(close, period=5):
return -close.pct_change(period)
def volatility(close, period=20):
return -(close.pct_change().rolling(period).std() * np.sqrt(252))
def price_volume_divergence(close, volume, period=20):
price_ret = close.pct_change()
vol_ret = volume.pct_change()
result = pd.DataFrame(index=close.index, columns=close.columns, dtype=float)
for col in close.columns:
if col in volume.columns:
result[col] = price_ret[col].rolling(period).corr(vol_ret[col])
return -result
def turnover_rate(daily_basic_df, period=20):
df = daily_basic_df[["ts_code","trade_date","turnover_rate_f"]].copy()
df["trade_date"] = pd.to_datetime(df["trade_date"], format="%Y%m%d")
pivot = df.pivot_table(index="trade_date", columns="ts_code", values="turnover_rate_f")
return -pivot.rolling(period).mean()
# ... other factor functions as needed (see alpha-evaluate for full list)
def winsorize_mad(df, n=5):
median = df.median(axis=1)
mad = df.sub(median, axis=0).abs().median(axis=1)
return df.clip(median - n*1.4826*mad, median + n*1.4826*mad, axis=0)
def standardize(df):
df = winsorize_mad(df)
return df.sub(df.mean(axis=1), axis=0).div(df.std(axis=1), axis=0)
# Map factor names to computation functions
FACTOR_MAP = {
"momentum_20": lambda: momentum(close_recent, 20),
"reversal_5": lambda: reversal(close_recent, 5),
"reversal_10": lambda: reversal(close_recent, 10),
"volatility_20": lambda: volatility(close_recent, 20),
"pv_diverge": lambda: price_volume_divergence(close_recent, volume_recent, 20),
"turnover_20": lambda: turnover_rate(daily_basic_recent, 20),
# ... AI should map factor names from registry to computation functions
# ... using the expression field from the registry record
}
# Compute all active factors
factor_scores = {}
for f in active_factors:
name = f["name"]
if name in FACTOR_MAP:
try:
vals = standardize(FACTOR_MAP[name]())
factor_scores[name] = vals
except Exception as e:
print(f"Warning: failed to compute {name}: {e}")# Weight by ICIR (from registry)
weights = {}
total_icir = sum(abs(f["icir"] or 0) for f in active_factors if f["name"] in factor_scores)
for f in active_factors:
name = f["name"]
if name in factor_scores and total_icir > 0:
weights[name] = abs(f["icir"] or 0) / total_icir
# Composite score on latest date
latest_date = close_recent.index[-1]
composite = None
for name, w in weights.items():
if latest_date not in factor_scores[name].index:
continue
row = factor_scores[name].loc[latest_date].rank(pct=True).fillna(0.5)
if composite is None:
composite = row * w
else:
common = composite.index.intersection(row.index)
composite = composite.reindex(common) * (1 - w) + row.reindex(common) * w
if composite is None:
print("Error: no factor scores available for latest date")
# Stop here
# Read config for stock count, filters
n_stocks = 15 # default, read from config if available
# Filter: remove NaN, suspended stocks
composite = composite.dropna()
# Filter: market cap and liquidity (if daily_basic available)
# ... apply MIN_MARKET_CAP, MIN_DAILY_AMOUNT from config
# Filter: limit-up stocks cannot be bought (A-share)
# Check market config for price_limit
daily_ret = close_recent.pct_change()
if latest_date in daily_ret.index:
market_config = {} # load from DATA_MODULE if available
price_limit = market_config.get("price_limit", 0.1)
if price_limit is not None:
limit_up = daily_ret.loc[latest_date] > price_limit * 0.95
composite = composite[~composite.index.isin(limit_up[limit_up].index)]
# Select top N
top_stocks = composite.nlargest(n_stocks)
# Normalize weights (ICIR-weighted based on factor scores)
target_weights = top_stocks / top_stocks.sum()signals_dir = os.path.join(PROJECT_DIR, "signals")
os.makedirs(signals_dir, exist_ok=True)
# Load yesterday's signal (if exists)
import glob
prev_files = sorted(glob.glob(os.path.join(signals_dir, "*.csv")))
prev_holdings = {}
if prev_files:
prev_df = pd.read_csv(prev_files[-1])
prev_holdings = dict(zip(prev_df["stock"], prev_df["weight"]))
# Calculate turnover
all_stocks = set(target_weights.index) | set(prev_holdings.keys())
turnover = sum(abs(target_weights.get(s, 0) - prev_holdings.get(s, 0)) for s in all_stocks)
# Identify buys and sells
new_buys = set(target_weights.index) - set(prev_holdings.keys())
sells = set(prev_holdings.keys()) - set(target_weights.index)
holds = set(target_weights.index) & set(prev_holdings.keys())# Save to CSV
date_str = latest_date.strftime("%Y-%m-%d")
signal_df = pd.DataFrame({
"stock": target_weights.index,
"weight": target_weights.values,
"score": top_stocks.values,
})
signal_path = os.path.join(signals_dir, f"{date_str}.csv")
signal_df.to_csv(signal_path, index=False)Output format:
📡 Daily Signal / 每日信号 — {date}
Active Factors 活跃因子 ({n} total):
pv_diverge (ICIR=0.70, weight=40%)
turnover_20 (ICIR=0.52, weight=30%)
volatility_20 (ICIR=0.43, weight=30%)
Target Portfolio 目标持仓 ({n_stocks} stocks):
Stock 股票 Weight 权重 Score 得分 Action 操作
000001.SZ 8.2% 0.92 HOLD 持有
600519.SH 7.5% 0.89 NEW BUY 新买入
300750.SZ 7.1% 0.87 NEW BUY 新买入
...
Summary 摘要:
New Buys 新买入: {n} stocks
Sells 卖出: {n} stocks
Holds 持有: {n} stocks
Turnover 换手率: {turnover:.1%}
Estimated Cost 预估成本: {turnover * cost_rate / 2:.2%}
Signal saved 信号已保存: signals/{date}.csvIf there are previous signals, compute realized performance:
如果有历史信号,计算已实现绩效:
if len(prev_files) >= 5:
# Load last 5 signals, compute daily return of each signal's portfolio
# Compare with benchmark
# Output: "Last 5 signals: avg return X%, benchmark Y%, excess Z%"
...Each daily signal is saved as signals/YYYY-MM-DD.csv:
stock,weight,score
000001.SZ,0.082,0.92
600519.SH,0.075,0.89
300750.SZ,0.071,0.87
...The signal output is a standard CSV. Users can: 信号输出为标准CSV,用户可以:
# Run daily at 8:30 AM before market open
30 8 * * 1-5 cd /project && claude -p "generate today's signals"© VernonOY, 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
Just SKILL.md in skills/alpha-signal of VernonOY/alpha-skills.
Open the folder on GitHubat commit f58f80a
Alpha Signal 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 |
|---|---|---|---|---|---|---|
| Alpha Signal this skillVernonOY/alpha-skills | 117 | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Tushare Datazillionare/zillionare | 322 | 2 repos | ~2.3k | Automated safety check: Pass | None | |
| Tradingview MCPatilaahmettaner/tradingview-mcp | 5k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Digital Oraclekomako-workshop/digital-oracle | 878 | — | ~5.9k | Automated safety check: Pass | MIT | |
| Polyclawchainstacklabs/polyclaw | 359 | 1 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Markdownfacioquo/stock-indicators-dotnet | 1.2k | — | ~812 | Automated safety check: Pass | Apache-2.0 |
zillionare/zillionare
面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。
atilaahmettaner/tradingview-mcp
AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…
komako-workshop/digital-oracle
Answer prediction questions using market trading data, not opinions.
chainstacklabs/polyclaw
Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.
facioquo/stock-indicators-dotnet
Format and lint Markdown in this repository against GitHub Flavored Markdown and its markdownlint-cli2 configuration — headers, lists, code fences, callouts (VitePress containers on docs-site pages…
MobiusQuant/OpenMobius-skill
Provides multi-school trading Q&A, chart/OHLCV analysis, annotation, and fresh-market workflows covering ICT/SMC, ChanLun, Wyckoff, Price Action, Order Flow, VSA, and Elliott Wave.
VernonOY/alpha-skills
Autonomous factor research loop. An agent skill from VernonOY/alpha-skills.
VernonOY/alpha-skills
Strategy backtest. An agent skill from VernonOY/alpha-skills.
VernonOY/alpha-skills
Factor discovery. An agent skill from VernonOY/alpha-skills.
VernonOY/alpha-skills
Factor library management. An agent skill from VernonOY/alpha-skills.
VernonOY/alpha-skills
Automated factor mining. An agent skill from VernonOY/alpha-skills.
VernonOY/alpha-skills
Factor monitoring. An agent skill from VernonOY/alpha-skills.
Categories
Daily trading signal generator. An agent skill from VernonOY/alpha-skills. Alpha Signal is an agent skill from VernonOY/alpha-skills. Daily trading signal generator.
Alpha Signal fits situations like: tasks that involve Trading and backtesting.
Run `npx skills add VernonOY/alpha-skills --skill alpha-signal -a claude-code`. Or copy the skill folder (skills/alpha-signal in VernonOY/alpha-skills) into .claude/skills/alpha-signal in your project. Claude Code loads it when a task matches its description.
Run `npx skills add VernonOY/alpha-skills --skill alpha-signal -a codex`. Or copy the skill folder (skills/alpha-signal in VernonOY/alpha-skills) into .agents/skills/alpha-signal 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 VernonOY/alpha-skills --skill alpha-signal -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/alpha-signal, .gemini/skills/alpha-signal, .github/skills/alpha-signal and .opencode/skills/alpha-signal in your project.
Going by SKILL.md and its folder, Alpha Signal needs the command-line tools its instructions call (claude). Our summary lists: Python 3.
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 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.
Alpha Signal 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.
About 2.5k tokens (SKILL.md is roughly 10k 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 Alpha Signal: Tushare Data (zillionare/zillionare, 322 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Digital Oracle (komako-workshop/digital-oracle, 878 stars) and Polyclaw (chainstacklabs/polyclaw, 359 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
VernonOY (a GitHub user) maintains it in VernonOY/alpha-skills, which has 117 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on April 14, 2026.
Source: VernonOY/alpha-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.