position-management

Manages open Hyperliquid perp positions with stop-losses, leverage adjustments, and reduce-only exits.

1|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/tribes-protocol/trading-harness --skill position-management-tribes-protocol
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: position-management
Source: https://github.com/tribes-protocol/trading-harness/tree/main/skills/position-management
Command: npx skills add https://github.com/tribes-protocol/trading-harness --skill position-management-tribes-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing open perpetual futures positions on Hyperliquid is error-prone: a wrong-side exit order can open an unintended opposite position, stale stops can double-book exits, and thin margin buffers risk liquidation. This Skill enforces a strict risk policy and safe procedures for reviewing, protecting, resizing, and closing positions you already hold. ## Core Features & Use Cases - Portfolio Health Checks: Reviews all open positions and orders across dexes, flags missing stops, thin liquidation buffers, and leverage concerns in a structured report. - Stop-Loss & Take-Profit Management: Adds, moves, or replaces SL/TP orders safely by cancelling old exits first and always using reduce-only orders on the opposite side. - Leverage, Margin & Exits: Adjusts leverage and isolated margin with prechecks, and closes single positions or the entire book with verification after every step. - Use Case: You hold a long ETH position with no stop-loss. Ask the agent to protect it, and it will compute a $15-max-loss stop per the desk risk policy, place a reduce-only stop-market order, and verify the result. ## Quick Start Ask the agent to review my open Hyperliquid positions and add a stop-loss to any position that is missing one.

Frequently Asked Questions about position-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a stop-loss to an existing Hyperliquid position?▼

Adding a stop-loss to an existing Hyperliquid position requires cancelling any old stop order first, then placing a new stop-market order with the side opposite your position and the reduce-only flag. The Skill verifies the new stop via list-open-orders afterward.

How do I close a perp position on Hyperliquid safely?▼

Closing a perp position safely means cancelling its resting exit orders and any running TWAP first, then submitting a market order for the full size with the opposite side and --reduce-only. This guarantees the order can only shrink the position, never open a new one.

What is a reduce-only order and why does it matter?▼

A reduce-only order can only decrease an existing position, never open a new one. It matters because a plain market order on the opposite side can accidentally open an unintended reverse position if the size is off, doubling your exposure instead of closing it.

Can I change leverage or margin on an open Hyperliquid position?▼

Yes, leverage and isolated margin can be changed on open positions, but lowering leverage or removing margin requires a precheck: the required margin at the target leverage must fit within your withdrawable perp balance. Adding margin widens the liquidation buffer.

Why was my stop-loss trigger price rejected on Hyperliquid?▼

A stop trigger is rejected when it sits on the wrong side of the mark price: a stop-loss for a long must be below mark, and for a short above mark, with take-profits reversed. Fix the trigger price and retry once.

When should I not use position management for Hyperliquid trades?▼

Do not use it to open a brand-new position end-to-end, which belongs to trade execution, or for single command syntax and fund transfers, which belong to the base Hyperliquid tooling. It only covers positions you already hold.