AgentSkillsCN

ai-strategy

AI战略——从自然语言到交易执行

SKILL.md
--- frontmatter
name: ai-strategy
description: "AI Strategy - natural language to trades"
command: strategy
emoji: "🤖"
gates:
  envs:
    - SOLANA_PRIVATE_KEY

AI Strategy

Convert natural language descriptions into executable trading strategies.

Commands

code
/strategy "<description>"          Create strategy from natural language
/strategies                        List active strategies
/strategy status <id>              Check strategy status
/strategy cancel <id>              Cancel strategy
/strategy cancel all               Cancel all strategies
/strategy templates                List available templates
/strategy template <name>          Use a template
/execute <action>                  Execute trade immediately

Examples

code
/strategy "buy $100 of SOL if it drops 5%"
/strategy "sell half my BONK when it hits $0.00003"
/strategy "DCA $50 into JUP every hour for 12 hours"
/strategy "set stop loss at 20% for my SOL position"

/execute buy 0.5 SOL of ABC123...
/execute sell all BONK

Strategy Types

Price Triggers

code
/strategy "buy $100 of SOL if price drops 5%"
/strategy "sell all ETH when it hits $4000"
/strategy "buy 0.5 SOL of TOKEN... at price $0.001"

DCA (Dollar Cost Average)

code
/strategy "DCA $50 into SOL every 1 hour for 24 hours"
/strategy "DCA 0.1 SOL into JUP every 30 minutes, 10 times"

Take Profit / Stop Loss

code
/strategy "sell half at 2x, rest at 3x"
/strategy "set stop loss at 20%"
/strategy "take profit at 50% for TOKEN..."

Scale In / Scale Out

code
/strategy "scale in with 1 SOL over 5 levels, 5% drop each"
/strategy "scale out: sell 25% at 50%, 25% at 100%, 50% at 200%"

Ladder Orders

code
/strategy "ladder buy 1 SOL from $0.01 to $0.005, 5 orders"

Templates

TemplateDescription
dip-buyBuy when price drops X%
take-profitSell at profit target
dca-dailyDaily DCA into token
stop-lossSell if price drops X%
ladder-buyBuy at multiple price levels
scale-outSell in tranches as price rises
code
/strategy template dca-daily

Immediate Execution

Skip conditions and execute immediately:

code
/execute buy 0.5 SOL of ABC123...
/execute sell 100% BONK
/execute swap 1 SOL to USDC

Monitoring

Strategies are monitored every 5 seconds:

  • Price checked via Birdeye/Jupiter
  • Condition evaluated (above/below/change)
  • Trade executed when condition met
  • Status updated in strategy list

Supported Tokens

Any Solana token with liquidity on Jupiter:

  • Major tokens: SOL, USDC, JUP, BONK, WIF, etc.
  • Pump.fun tokens: Use full mint address
  • Any SPL token with Jupiter route