feat: skill distribution + liquidation distance risk management - #8
Merged
Conversation
- Fix marketplace.json to point to perp-cli skill (was perp-trading) - Add allowed-tools frontmatter to SKILL.md for cross-agent support - Add risk liquidation-distance command (alias: liq-dist) - Add minLiquidationDistance to risk limits with 20% hard cap - Integrate liquidation distance checks into risk status/assessRisk - Add agent-operations.md reference (setup flows, idempotency guide) - Add strategies.md reference (funding arb, opportunity cost, risk mgmt) - Add template scripts (wallet-setup, open-position, arb-scan) - Update README.md with npx skills add installation method - Add 15 new unit tests for liquidation distance logic (877 total) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
perp-cliskill (wasperp-trading)allowed-toolsfrontmatter to SKILL.md for cross-agent support (Claude, Gemini, Cursor, Codex, etc.)perp risk liquidation-distancecommand — shows % distance from liquidation for all positionsminLiquidationDistanceto risk limits with 20% hard cap (non-negotiable, system-enforced)agent-operations.md,strategies.md(funding arb, opportunity cost, risk mgmt)npx skills addinstallation methodNew Commands
perp risk liquidation-distance(alias:liq-dist) — per-position liquidation distance %perp risk limits --min-liq-distance <pct>— set minimum liq distance (rejects < 20%)Test plan
risk limits,risk liquidation-distance,risk status)--min-liq-distance 15→ rejected)🤖 Generated with Claude Code