Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add skloxo/TideTrading --skill regulatory-knowledgegit clone --depth 1 https://github.com/skloxo/TideTradingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/skloxo/tidetrading/regulatory-knowledge)<a href="https://agentmods.dev/skills/skloxo/tidetrading/regulatory-knowledge"><img src="https://agentmods.dev/badge/skills/skloxo/tidetrading/regulatory-knowledge/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/skloxo/tidetrading/regulatory-knowledge"><img src="https://agentmods.dev/badge/skills/skloxo/tidetrading/regulatory-knowledge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.03580 |
| Opus 5 | $0.00026 | $0.01790 |
| Sonnet 5 | $0.00010 | $0.00716 |
| Haiku 4.5 | $0.00005 | $0.00358 |
Grade A, and why
regulatory-knowledge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to regulatory-knowledge — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 301 lines — stays where its author put it; the contents beside it link to each section on GitHub.
金融监管知识库
概述
量化交易必须理解的各市场监管规则。错误的交易规则假设会导致回测失真(如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开盘价成交
- 尾盘3分钟集合竞价: 大单集中, VWAP策略需注意
- 集合竞价期间的限价单可能影响开盘价
大宗交易:
时间: 15:00-15:30 (收盘后)
折价: 通常折价3-8% (相对收盘价)
限制: 买入后6个月内不能在二级市场卖出(大股东减持用)
信号意义:
大宗交易频繁 + 折价大 → 可能有减持需求(利空)
大宗交易后6个月解禁 → 关注解禁日卖压
港股交易规则
交易时间:
早盘竞价: 9:00-9:30
连续交易: 9:30-12:00, 13:00-16:00
收市竞价: 16:00-16:10
核心差异(vs A股):
✓ T+0交易 (当日买当日可卖)
✓ 无涨跌停限制 (个股单日可涨跌50%+)
✓ 做空机制完善 (融券成本低, 约1-3%/年)
✓ 暗盘交易 (IPO上市前一晚的灰市交易)
✗ 流动性差 (日成交额仅A股的1/10-1/5)
✗ 仙股多 (大量股价<0.1港元的小票)
做空规则:
- 只能以不低于最佳卖盘价做空 (uptick rule变体)
- 需先借入股份才能做空 (naked short prohibited)
- 做空头寸需每日报告 (达到0.02%阈值时)
交收制度:
T+2交收 (买入T+2日才能提取股份)
但交易可T+0 (预付制度下)
回测影响:
- 无涨跌停 → 极端波动大, 止损更重要
- T+0 → 日内策略可行
- 流动性低 → 小盘股滑点大, 冲击成本需纳入
美股交易规则
交易时间(北京时间):
夏令时: 21:30-04:00
冬令时: 22:30-05:00
盘前: 16:00-21:30 / 17:00-22:30
盘后: 04:00-08:00 / 05:00-09:00
PDT规则(Pattern Day Trader):
条件: 5个交易日内日内交易(当日开平) ≥ 4次
触发后: 账户需维持 ≥ $25,000 余额
低于$25,000: 账户被限制90天只能平仓
规避方法:
- 使用现金账户(Cash Account, T+2交收, 无PDT限制但资金效率低)
- 账户维持 > $25,000
- 控制日内交易频率 < 4次/5日
熔断机制:
Level 1: S&P 500下跌 7% → 暂停15分钟 (15:25后不触发)
Level 2: S&P 500下跌13% → 暂停15分钟 (15:25后不触发)
Level 3: S&P 500下跌20% → 当日停止交易
个股LULD(Limit Up-Limit Down):
涨跌幅超过参考价±5%(大盘股)/±10%(小盘股) → 暂停5分钟
RegSHO(做空规则):
- Locate requirement: 做空前必须确认可借到股份
- Close-out: 连续13天无法交割 → 强制平仓
- Short Sale Circuit Breaker: 个股跌>10% → 当日+次日只能uptick做空
回测影响:
- 美股无日常涨跌停 → 但有LULD暂停
- T+0交易(保证金账户) → 日内策略可行
- 盘前盘后交易量低, 滑点大
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 301 lines · 52 tokens per session scan A f202414dfb07
regulatory-knowledge is a skill published in the GitHub repository skloxo/TideTrading (10 stars, last pushed 3d ago), licensed MIT. It adds 52 tokens to every session and 3,580 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to regulatory-knowledge, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
regulatory-knowledge
A reference guide to trading rules and regulatory constraints across markets including mainland China, Hong Kong, the United States, and crypto markets.
daily-deep-brief
A scheduled, pre-market investment briefing for Hong Kong and United States stocks. A deterministic preparation step gathers data and an agent adds judgment, while a later step validates and publishes the result.
travel-expense-audit
A travel-expense review workflow that checks reimbursement claims against policy handbooks and rate tables. It covers items such as hotel, transport, and daily meal allowances.
hk-stock-analysis
A workspace-aware analysis workflow for Hong Kong-listed stocks. It retrieves prices, technical indicators, market comparisons, and news through a local data pipeline, then adds Hong Kong-specific investment context.
us-stock-analysis
Workspace-aware US stock analysis for kcn. Routes through clawock analyze-us / clawock us-quotes instead of generic web search, then layers fundamental/technical/news analysis on top. Use when user asks to analyze a US ticker (e.g. "analyze AAPL", "look at RKLB", "compare TSLA vs NVDA"), check earnings, run…
invest-analyst
A framework for producing professional investment research, including company reports, industry studies, event analysis, analyst-expectation reviews, comparisons, and market summaries. It connects several investment research workflows into one process.