regulatory-knowledge SKILL.md skillA
regulatory-knowledge from hkuds/vibe-trading is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add hkuds/vibe-trading/regulatory-knowledge@git:20260409.27354ebPins git:20260409.27354eb in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- hkuds/vibe-trading
- Path
agent/src/skills/regulatory-knowledge/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260409.27354eb, committed Apr 9, 2026
- First version recorded
- Apr 1, 2026
- Size
- 9,946 bytes
- Repository stars
- 38,485
- License
- MIT
金融监管知识库:A股涨跌停/ST退市新规/融券、港股T+0/做空机制、美股PDT/熔断、加密监管政策、跨境税务基础.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 金融监管知识库
## 概述
量化交易必须理解的各市场监管规则。错误的交易规则假设会导致回测失真(如A股回测不考虑涨跌停限制)、实盘违规(如美股PDT限制)或税务损失。
适用场景:
- 回测引擎中正确实现交易规则约束
- 跨市场策略的规则差异处理
- 合规风控参数设置
- 税务影响纳入策略收益计算
## 核心概念
### A股交易规则
**涨跌停制度**:
| 板块 | 涨跌停 | 新股首日 | ST涨跌停 |
|------|--------|----------|----------|
| 主板(沪深) | ±10% | +44%/-36% | ±5% |
| 创业板 | ±20% | 前5日无限制 | ±20% |
| 科创板 | ±20% | 前5日无限制 | ±20% |
| 北交所 | ±30% | 前5日无限制 | ±30% |
```
回测影响:
涨停时买入可能无法成交(封板)→ 信号延迟
跌停时卖出可能无法成交(封板)→ 止损失效
回测实现:
if daily_return >= limit_up:
buy_signal无法执行, 推迟到次日
if daily_return <= limit_down:
sell_signal可能无法执行, 用跌停价模拟成交
```
**T+1制度**:
```
A股: T日买入 → T+1日才能卖出
回测影响: 信号在T日产生 → T+1日开盘执行买入 → T+2日最早可卖出
常见错误: 回测中T日信号T日就平仓 → 虚增收益
例外:
- 融券做空: 可T+0(融券卖出当日买券还券)
- ETF套利: 一级市场申赎可实现T+0变相交易
- 可转债: 实行T+0交易
```
**融资融券/转融通**:
```
融资(杠杆做多):
保证金比例: ≥100% (即最大杠杆2倍)
维持担保比例: ≥130% (低于则追保; <110%强平)
标的范围: 约1600只(流动性好的主板/创业板股票)
融券(做空):
券源: 证券公司自有+转融通借入
费率: 年化8-10%(远高于美股的1-2%)
限制: 2023年后限制融券T+0, 券源大幅收紧
回测影响:
做空策略在A股成本极高, 需扣除8-10%/年的融券费用
实际可融券标的 < 理论标的 (券源有限)
```
**集合竞价与连续竞价**:
```
早盘集合竞价: 9:15-9:25 (9:15-9:20可撤单, 9:20-9:25不可撤单)
9:25 产生开盘价
连续竞价: 9:30-11:30, 13:00-14:57
尾盘集合竞价: 14:57-15:00 (不可撤单)
回测影响:
- 日线回测默认用T+1开盘价成交
…Read the whole file at its exact version.
How to install
claude plugin marketplace add https://markdownregistry.com/mp/a/art_mwznjkt6jag5qsjy/f202414dfb07a8dd6acc9668b291e57b61841c0049a18ca353eaf2ac50581548.json
Then /plugin install regulatory-knowledge@markdownregistry-mwznjkt6jag5qsjy in Claude Code. It installs git:20260409.27354eb, the one graded A here, pinned to the commit it was graded at, and leaves it there.
mdr add hkuds/vibe-trading/regulatory-knowledge@sha256:f202414dfb07a8ddThe line at the top of this page pins the label git:20260409.27354eb, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_mwznjkt6jag5qsjy)
2 badge image fetches in 30 days. What the badge shows.
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry
Then ask it: what changed in hkuds/vibe-trading/regulatory-knowledge since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.
Got a copy of regulatory-knowledge from somewhere else? Ask it: where did my regulatory-knowledge come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.
Versions
The registry has recorded 2 versions of this file, between Apr 1, 2026 and Apr 9, 2026, about one every 8 days.
Watch this file (sign in, one email per new version)
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260409.27354eb latest | 2026-04-09 | 27354eb | 9,946 B | A | view · diff |
| git:20260401.34eae37 | 2026-04-01 | 34eae37 | 9,931 B | A | view |
Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.
It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.
Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.
mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml
It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.
Installed this file, say at .claude/skills/regulatory-knowledge/SKILL.md? Drop it here to learn which saved version you have and what changed since. Your browser works out its SHA-256 fingerprint and sends only that; the file itself never leaves your computer.
Or paste its contents
Your agent can run this same check on the agent markdown files you have installed, up to 50 in one ask. Add the registry once:
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry
Then ask it to check the files you have installed. No key and no account.
From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.
sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies
In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.
sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies
No sha256sum on your machine? shasum -a 256 prints the same lines.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9946 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
hkuds/vibe-trading · 38,485 stars · license MIT · pushed 2026-11-18 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_mwznjkt6jag5qsjy GET https://markdownregistry.com/api/v1/resolve?ref=hkuds/vibe-trading/regulatory-knowledge GET https://markdownregistry.com/api/v1/blob/f202414dfb07a8dd6acc9668b291e57b61841c0049a18ca353eaf2ac50581548
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.