OpenTradex — Panic Flatten
This is a destructive, user-initiated action. It closes every open paper position and sets a 30-minute cooldown on further entries.
Flow
- Confirm explicitly. Show open positions first:
!
node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" positionsAsk: "This will close ALL N positions and pause trading for 30 minutes. Confirm withyes." - Only if the user says
yes, run the flatten: !node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" panic - Show the post-flatten risk snapshot:
!
node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" risk - End with: "Cooldown active. Use this time to step back. Return when you're clear-headed."
Rules
- Never invoke without explicit user instruction.
disable-model-invocation: trueis set — this skill can only fire from a direct/opentradex-trade:paniccall. - Never re-enter positions during cooldown.
- If the user asks why a buy is blocked, point to
panicCooldowninnode "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" risk.