Token导航 LogoToken导航

Agent Skill · 开发规范

trading-best-practices(交易最佳实践)

trading-best-practices 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

trading-best-practices 是开发规范类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描有提醒项,按安装量在开发规范类的 1,265 个 Skill 里排第 245。

总安装 5,880周安装 290GitHub Stars 3下载 2,571核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:trading-best-practices(交易最佳实践)
来源仓库:https://github.com/zuytan/rustrade
仓库路径:skills/trading-best-practices
安装命令:
npx skills add https://github.com/zuytan/rustrade --skill 'Trading Best Practices'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/zuytan/rustrade --skill 'Trading Best Practices'

这个 Skill 是做什么的

开发规范类 Skill 用来统一代码风格、目录结构和评审口径,产出多为检查清单或改写建议。

用于记录任务执行中的错误、用户纠正和经验缺口,帮助 Agent 持续沉淀最佳实践。适用于需要让 AI 在 Codex、Claude、Cursor、Gemini CLI 中不断修正和改进的场景。通过 GitHub 仓库提供技能支持,安装后可用于跟踪问题、优化流程和积累经验。

建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。使用时需结合原始 README 验证具体用法,确保符合实际工作流需求。

来源仓库内路径:skills/trading-best-practices

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zuytan/rustrade --skill 'Trading Best Practice…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

trading-best-practices 怎么安装?

在终端执行 npx skills add https://github.com/zuytan/rustrade --skill 'Trading Best Practices'。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

trading-best-practices 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

trading-best-practices 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

trading-best-practices 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

trading-best-practices 用的人多吗?

公开数据是累计安装 5,880 次,近一周安装 290 次,下载 2,571 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

trading-best-practices 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发规范类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发规范类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
vercel-react-best-practices

Vercel React 最佳实践 · Codex、Claude

8,490,72025,918操作浏览器MIT通过
web-design-guidelines

网页设计指南 · Codex、Claude

6,686,01625,885需要联网MIT有提醒
remotion-best-practices

Remotion 最佳实践 · Codex、Claude

6,505,6323,027操作浏览器MIT有提醒
supabase-postgres-best-practices

Supabase Postgres 最佳实践 · Codex、Claude

3,175,5232,030需要联网MIT通过
next-best-practices

Next.js 最佳实践 · Codex、Claude

1,848,240841操作浏览器MIT通过
trading-best-practices

交易最佳实践 · 本页

5,8803需要联网MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill: Trading Best Practices

When to use this skill

  • Before implementing a new trading strategy
  • When modifying risk management logic
  • Quarterly review of existing strategies
  • Before going live with real capital
  • When performance degrades unexpectedly

Purpose

This skill ensures that trading implementations follow current best practices and avoid common pitfalls in algorithmic trading. It includes mechanisms to stay updated with the latest financial research and market structure changes.

Critical Trading Principles

1. Risk Management (Non-negotiable)

Position Sizing:

  • Never risk more than 1-2% of capital per trade
  • Use Kelly Criterion or fixed fractional sizing
  • Account for correlation between positions

Stop Losses:

  • ALWAYS use stop losses (no exceptions)
  • Place stops based on volatility (ATR) not arbitrary percentages
  • Never move stops against your position

Drawdown Protection:

  • Maximum drawdown threshold: 20% (conservative) to 30% (aggressive)
  • Implement circuit breakers for daily loss limits
  • Use high-water mark tracking

2. Strategy Development

Avoid Overfitting:

  • ❌ Don't optimize on the same data you test on
  • ✅ Use walk-forward analysis
  • ✅ Test on out-of-sample data
  • ✅ Prefer simple strategies with fewer parameters

Backtesting Integrity:

  • Account for transaction costs (commissions + slippage)
  • Use realistic fill assumptions (no perfect fills at close)
  • Avoid look-ahead bias (only use data available at decision time)
  • Include survivorship bias (test on delisted stocks too)

Statistical Validation:

  • Minimum 100+ trades for statistical significance
  • Sharpe Ratio > 1.0 (preferably > 1.5)
  • Profit Factor > 1.5
  • Win rate should match strategy type (trend: 40-50%, mean reversion: 55-65%)

3. Market Microstructure Awareness

Execution Quality:

  • Use limit orders to control slippage
  • Avoid market orders on illiquid assets
  • Be aware of bid-ask spread costs
  • Consider market impact for larger positions

Regime Awareness:

  • Strategies perform differently in bull/bear/sideways markets
  • Adapt position sizing to market volatility (VIX)
  • Reduce exposure during high uncertainty events

4. Common Pitfalls to Avoid

PitfallWhy it's badSolution
Curve fittingStrategy works on past but fails liveWalk-forward testing, simplicity
Ignoring costsProfitable backtest becomes losing liveInclude realistic commissions + slippage
Revenge tradingEmotional decisions after lossesAutomated rules, circuit breakers
Over-leveragingOne bad trade wipes accountFixed fractional position sizing
No stop lossSmall loss becomes catastrophicAlways use stops based on volatility
Ignoring correlationDiversification illusionMonitor sector/asset correlation

Research Workflow

To stay current with financial innovation, perform quarterly reviews:

Step 1: Research Latest Practices

# Use web search to find recent research
# Topics to research:
# - "algorithmic trading best practices 2026"
# - "quantitative finance risk management"
# - "market microstructure changes"
# - "regulatory changes algorithmic trading"

Step 2: Review Current Implementation

Compare findings against:

  • src/domain/risk/ - Risk management logic
  • src/application/strategies/ - Strategy implementations
  • docs/STRATEGIES.md - Strategy documentation

Step 3: Identify Gaps

Document any practices we're missing or doing incorrectly.

Step 4: Update Implementation

If gaps found:

  1. Create issue/task for improvement
  2. Follow /implement workflow
  3. Backtest changes thoroughly
  4. Update this skill with new learnings

Checklist: Strategy Implementation

Before implementing ANY new strategy:

  • Strategy has clear entry/exit rules
  • Risk per trade is defined (max 2%)
  • Stop loss logic is implemented
  • Position sizing accounts for volatility
  • Backtested on 2+ years of data
  • Tested on out-of-sample data
  • Transaction costs included in backtest
  • Sharpe Ratio > 1.0
  • Max Drawdown < 20%
  • No look-ahead bias
  • Strategy logic is simple (fewer parameters = better)
  • Correlation with existing strategies checked

Red Flags in Strategy Design

// ❌ RED FLAG: No stop loss
if signal == Signal::Buy {
    execute_order(symbol, quantity); // Where's the stop?
}

// ❌ RED FLAG: Fixed position size (ignores risk)
let quantity = 100; // Always 100 shares?

// ❌ RED FLAG: No transaction costs
let profit = exit_price - entry_price; // Ignores commissions/slippage

// ❌ RED FLAG: Too many parameters
struct Strategy {
    sma_period_1: usize,
    sma_period_2: usize,
    rsi_period: usize,
    rsi_oversold: f64,
    rsi_overbought: f64,
    macd_fast: usize,
    macd_slow: usize,
    // ... 20 more parameters = overfitting
}

// ✅ GOOD: Risk-based position sizing with stop
let risk_amount = capital * risk_per_trade;
let stop_distance = entry_price * atr_multiplier;
let quantity = risk_amount / stop_distance;
let stop_loss = entry_price - stop_distance;

Resources to Monitor

Academic Research:

  • SSRN (Social Science Research Network)
  • arXiv quantitative finance section
  • Journal of Portfolio Management

Industry Standards:

  • CFA Institute guidelines
  • FIX Protocol updates (market structure)
  • SEC/FINRA regulatory changes

Market Data:

  • VIX (volatility regime)
  • Sector rotation trends
  • Correlation matrices

Update Frequency

  • Monthly: Check VIX and market regime
  • Quarterly: Research latest academic papers
  • Annually: Full strategy review and revalidation
  • Ad-hoc: When performance degrades or market structure changes

Integration with Other Skills

  • Use benchmarking skill to validate strategies
  • Use critical-review skill for code quality
  • Use rust-trading skill for implementation rules
  • Update documentation skill when best practices change

平台分布

OpenCode

24.95%
按下载量换算641

Claude Code

23.82%
按下载量换算612

windsurf

18.01%
按下载量换算463

trae

13.04%
按下载量换算335

Codex

6.71%
按下载量换算173

Antigravity

3.54%
按下载量换算91

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills