
Financial Regulation Knowledge Base
Teaches the agent A-share, Hong Kong, US and crypto trading rules for accurate backtests and compliance checks
- Repository
- HKUDS/Vibe-Trading
- Stars
- 37,433
- Licence
- MIT
- Files
- 1 file
What it does
Once installed, the agent knows the trading rules of several markets (China A-shares, Hong Kong stocks, US stocks, and crypto) such as daily price limits, settlement timing, short-selling rules, and basic tax treatment. When you ask it to build or test a trading strategy, it can apply these constraints so backtests don't assume trades that real markets would block. It is reference knowledge written as a guide, not a tool that pulls live data.
Great for
- Quant traders building backtests across A-share, Hong Kong, US or crypto markets
- Developers implementing trading rules like price limits and T+1 settlement in a backtesting engine
- Anyone checking whether a cross-market strategy has hidden costs such as stamp duty or short-borrow fees
Skip it if
- Giving legal or tax advice: the rules are summarised from memory, change often, and the file itself notes they must be checked against the date and the broker, so a professional should confirm anything that affects real money or tax filings
- Live trading decisions: it contains no market data and some figures (fees, margin ratios, policy status 'as of 2026') may be out of date
Try asking
- “Add A-share price-limit and T+1 rules to my backtest so limit-up buys aren't counted as filled”
- “Compare the trading costs and short-selling fees of holding a pair trade across A-shares and Hong Kong”
- “What are the PDT rules for a US margin account with under $25,000?”
- “Check whether my strategy's stop-losses would still work under A-share limit-down conditions”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the MIT licence and an attribution note.
regulatory-knowledge.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip regulatory-knowledge.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip regulatory-knowledge.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- State the market, date, and account type in your request, since rules differ by year and broker
- Ask the agent to flag which figures it is unsure of and to verify them against official exchange or regulator sources before relying on them
- Use the conservative cost and short-fee assumptions the file recommends when stress-testing a strategy
What's inside
- SKILL.md
Redistributed unmodified from HKUDS/Vibe-Trading under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.