Imperial position management is an AI agent skill from the GitHub repository x402agent/solana-clawd. Inspect, reduce, and close Imperial-routed positions across Phoenix, Flash, Jupiter, and GMTrade, with Phoenix preferred by default.
Claude Code: save it as .claude/skills/imperial-position-management/SKILL.md
Cursor: save it as .cursor/rules/imperial-position-management.md
Codex: save it as .agents/skills/imperial-position-management/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Imperial Position Management
Use for:
listing open positions
checking current exposure before new trades
sending close-side action=1 market orders
reviewing whether residue sync is needed after a close
Rules:
Match profileIndex to the live position.
Prefer explicit user input for symbol, side, venue, and notional when closing.
After non-USDC collateral venues, consider /passthrough/users/{wallet}/profiles/{index}/sync.
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.