xiongcp

Stock Skill — AI skill for Claude Code

AI community

AI agent skill (Claude Code / Codex) for deterministic K-line structure analysis of A-shares, HK & US stocks: triple-barrier risk plans, 15-day normal volatility range, no-lookahead backtest, JSON + P.

How to install Stock Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open xiongcp/stock-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Stock Skill does

AI agent skill (Claude Code / Codex) for deterministic K-line structure analysis of A-shares, HK & US stocks: triple-barrier risk plans, 15-day normal volatility range, no-lookahead backtest, JSON + PNG + offline HTML from real market data. A股/港股/美股 K线结构识别与风控研究技能,真实行情、无前视回测。仅供研究,不构成投资建议。

Alternatives in AI

  • Matlab MCP Server — Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks® 1.4k ★
  • Internal Safety Collapse — We built an adversarial codespace setup 1.2k ★
  • Vibe Astock — Vibe AStock:A 股短线复盘与跟踪工作台 · 盯盘异动、情绪复盘(连板天梯、题材轮动、明日验证)、AI 复盘与周报、交易日志、盘前提醒,182 个数据端点 679 ★

README

kline-structure-chart

**A股 / 港股 / 美股 K 线数学结构识别与风控研究技能,给 Claude Code、Codex 等 AI 助手使用**

**中文** | [English](README.en.md) | [项目主页](https://xiongcp.github.io/stock-skill/)

[![CI](https://github.com/xiongcp/stock-skill/actions/workflows/ci.yml/badge.svg)](https://github.com/xiongcp/stock-skill/actions/workflows/ci.yml) ![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-blue) ![Agent Skills](https://img.shields.io/badge/Agent%20Skills-compatible-6f42c1)

**English TL;DR**: An [Agent Skill](https://agentskills.io/specification) for Claude Code, Codex, Cursor, Gemini CLI and other AI agents. Ask in plain language ("analyze NVDA") and the agent runs deterministic Python on real market data (A-shares, Hong Kong, US) to produce K-line structure, a triple-barrier risk plan, a direction-free 15-day normal volatility range and a no-lookahead backtest, as JSON + PNG + offline HTML. For research only, not investment advice. Full English docs: [README.en.md](README.en.md).

`kline-structure-chart` 是一个符合 [Agent Skills 开放规范](https://agentskills.io/specification) 的金融量化与 K 线数学结构分析技能包。装进 Claude Code、Codex、Hermes Agent、Cursor、Gemini CLI、OpenCode 等 AI 助手之后,你只需用自然语言提问(例如:"帮我看看中际旭创的 K 线结构和支撑压力,账户 50 万"),助手就会自动完成从**真实行情拉取 → 确定性数学结构识别 → 三重屏障风控与正常波动范围 → 离线交互看板与高清图生成 → 回复契约校验**的完整投研闭环。

![中际旭创 300308.SZ 离线交互看板演示](site/dashboard-demo-zh.gif)

中际旭创 `300308.SZ` 离线交互看板录屏(数据截至 2026-10-15):拖动时间回放,每个历史截面只用当时数据,白线是之后的真实收盘;再演示图层开关与副图切换。看板是技能原样输出的 HTML,可在[项目主页](https://xiongcp.github.io/stock-skill/#demos)在线打开。


快速了解

它能做什么

  • 三市场覆盖:A 股(沪深北个股、ETF、指数)、港股、美股,自动配对大盘基准(沪深300 / 恒生指数 / SPY),先看大盘、再看个股。
  • K 线数学结构识别:因果拐点、轨道拟合、主+备选 ABC 浪型与推动 5 浪、8 类标准情景、蜡烛 / 双底双顶 / RSI 背离、SMC(FVG / 订单块 / BOS)、成交分布(Volume Profile)。
  • 三重屏障风控计划:入场区、止损、TP1/TP2、移动保本、持仓防守,给了账户净值就按单笔风险比例算股数;大盘极弱时一票否决做多。
  • 15 日正常波动范围:以最新收盘价为中心的 50% / 80% 区间,只描述波动幅度、不判断方向,附样本外覆盖率与独立样本数。
  • 无前视回测:每个历史决策日只用当日及之前的数据重跑线上同一条流水线;成交胜率附 Wilson 95% 区间与样本量。
  • 同源产物:*_result.json(稳定契约)、1920×1160 PNG 结构图、离线