Sandbox
@Superior-Trade/superior-skills

Trading skills pack for Claude Code and agents

Superior Skills is a bundle of trading strategy skills and tool schemas for Superior Trade. The entry skill walks an agent through account setup, funding, strategy selection, backtesting, and live deployment, then hands off to venue-specific skills like Hyperliquid or Polymarket. The repo also includes reusable strategy templates, regime filters, exit logic, and validation scripts that keep the skills aligned with the Unified API.

209 stars9 forksJavaScriptUpdated 7d ago
Who it's for

Builders who want an agent to author, test, and run trading strategies with reusable skills instead of one-off prompts.

What it delivers

You can move from a new account to a running strategy with less manual prompting and more reusable structure.

What it does

Entry skill for the full trading flow

`skills/superior-trade/SKILL.md` covers the path from API key and funding to strategy choice, backtest, deployment, and monitoring.

Strategy skills library

`skills/` includes templates and focused skills such as `backtesting`, `trade-thesis`, `regime-overlay`, `dsl-exit-engine`, and venue skills like `hyperliquid` and `polymarket`.

Unified API references

`references/unified-runtime.md` and the API comparison table define the current request and resource model the skills should use.

Validation and sync scripts

`scripts/validate.mjs`, `scripts/validate-skills.mjs`, and related checks help keep skill files and endpoint claims consistent.

Plugin packaging

`.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` package the repo as an installable Claude-style plugin.

README

Superior Skills

Trading strategies and intelligence tools for Superior Trade — natural-language strategy authoring, backtesting, and autonomous deployment on Hyperliquid, Lighter, and Polymarket.

Designed for OpenClaw users adding trading capabilities to their agent, and for traders who want validated templates rather than rolling their own.

Website · Discord · Twitter


Start here

superior-trade is the entry skill. It carries the whole path — API key, trading account, funding, strategy selection, backtest, live deployment, monitoring — and hands off to the venue skill once the user has picked one. Point an agent at this skill and it can take someone from no account to a running strategy without further instruction.

Everything below is what it routes to.

Unified API migration

All Superior Trade operations in this package use the unversioned Unified API. The committed OpenAPI snapshot and endpoint audit reject versioned API guidance. Read references/unified-runtime.md for the shared lifecycle.

Use this single prompt to migrate another skill:

Migrate this Superior Trade skill to the Unified API. In the Superior skills package, read references/unified-runtime.md and scripts/api-contract/unified.json first. Replace every versioned Superior Trade endpoint, method, payload, polling step, and response assumption with the functionally equivalent Unified API operation. Do not keep compatibility fallbacks. When Unified API has no equivalent, state that the operation is unavailable instead of inventing a route. Preserve the skill's domain strategy and safety rules, update examples and linked references, then run pnpm run validate and fix every endpoint-audit error.

Operation comparison

Equivalent operations across the previous API surfaces are grouped together. "Unavailable" means the skill must report the limitation instead of falling back to a versioned route. See the full migration guide for the product-level lifecycle.

OperationPrevious APIUnified APIChange
Health checkGET /healthGET /healthDirect
Request API accessPOST /auth/sign-in/magic-linkPOST /account/register, then POST /account/verifyReplaced by an OTP flow
List API keysGET /auth/api-keyGET /account/keysDirect
Create API keyPOST /auth/api-keyPOST /account/keysDirect
Delete API keyDELETE /auth/api-key/{id}DELETE /account/keys/{id}Direct
Rename API keyPATCH /auth/api-key/{id}Unavailable
Read account identityNo dedicated equivalentGET /accountNew account, plan, limits, and usage view
Read account usageNo dedicated equivalentGET /account/usageNew
Read trading account / managed walletGET /v2/account, GET /v3/account, venue balance readsGET /walletSame managed-wallet domain; the collection becomes the authenticated wallet summary
Create managed trading walletPOST /v2/account, POST /v3/accountImplicit on first useNo explicit Unified creation call
Rename trading accountPATCH /v2/account/{address}, PATCH /v3/account/{address}Unavailable
Read venue availabilityGET /v2/account/{address}/status/{exchange}, GET /v3/account/{address}/status/{exchange}GET /context/venues, GET /walletConsolidated capability and wallet-readiness checks
Bootstrap a venue accountPOST /v3/account/{address}/hyperliquid, /polymarket, or /lighterImplicit for the managed path when a deployment startsNo public bootstrap mutation
List backtestsGET /v1/backtesting, GET /v2/backtestingGET /runtime/backtestsDirect
Create backtestPOST /v1/backtesting, POST /v2/backtesting, POST /v3/backtestPOST /runtime/backtestsCreation automatically queues the run
Get backtestVersioned GET by IDGET /runtime/backtests/{id}Direct
Read backtest status/resultVersioned /status and /result readsGET /runtime/backtests/{id}Embedded in the resource
Start backtestVersioned status updateRemoved; creation queues the run
Update backtestPATCH /v2/backtesting/{id}Unavailable
Delete or cancel backtestVersioned DELETE by IDDELETE /runtime/backtests/{id}Direct
Read backtest logsVersioned GET logs by IDGET /runtime/backtests/{id}/logsDirect
Check dataset availabilityGET /v2/backtesting-data/hyperliquid, /binance, or /aerodromeGET /context/datasets, GET /runtime/backtests/datasetCatalog plus exact-market lookup
Scan intelligenceGET /v2/intelligence/scanGET /context/scanNew parameters and response schema
Read symbol setupGET /v2/intelligence/setup/{pair}GET /context/setup/{symbol}Renamed identifier and response model
Search marketsPOST /v3/markets/searchGET /context/marketsSearch command becomes a context read
Read leaderboardGET /v2/leaderboard-strategiesGET /context/leaderboardDirect
List/read tracked tradersGET /v2/copy-trading/traders, GET /v2/copy-trading/traders/{wallet}GET /context/traders, GET /context/traders/{wallet}Direct
Read candlesNo dedicated equivalentGET /context/candlesNew
Read fundingNo dedicated equivalentGET /context/fundingNew
List runtime frameworksNo dedicated equivalentGET /runtime/frameworksNew
List deploymentsVersioned deployment listsGET /runtime/deploymentsConsolidated
Create deploymentVersioned live and paper creationPOST /runtime/deploymentsframework, venue, and mode are request fields
Get deploymentVersioned GET by IDGET /runtime/deployments/{id}Direct
Update deployment metadataPATCH /v2/deployment/{id}PATCH /runtime/deployments/{id}Direct
Delete deploymentVersioned DELETE by IDDELETE /runtime/deployments/{id}Direct
Read deployment statusVersioned /status readsGET /runtime/deployments/{id}Embedded in the resource
Start or stop deploymentVersioned PATCH or PUT status operationsPUT /runtime/deployments/{id}/statusStandardized lifecycle action
Attach deployment credentialsVersioned POST credentials operationsPUT /runtime/deployments/{id}/credentialsMethod and contract changed
Read deployment credentialsGET /v2/deployment/{id}/credentialsNo standalone credential read; safe metadata may appear on the deployment
Read deployment logsVersioned GET logs by IDGET /runtime/deployments/{id}/logsDirect
Read deployment metricsPaper profit and pod-proxy readsGET /runtime/deployments/{id}/metricsNormalized across frameworks
Paper deployment/v2/paper-deployment resource treePOST /runtime/deployments with mode: "paper"Mode becomes a field, not a separate resource
Deployment historyGET /v2/deployment-historyGET /runtime/deploymentsNo dedicated history resource
Exit all positionsVersioned deployment and portfolio /exit operationsUnavailable
Deposit to a venueVersioned Hyperliquid, Polymarket, and Lighter deposit operationsFund the address from GET /wallet; allocation occurs on managed deployment startRemoved as a public venue mutation
Read deposit historyVenue reconciliation readsGET /wallet/depositsRead-only history, not a transfer action
Withdraw Hyperliquid fundsPOST /v3/portfolio/hyperliquid/withdrawPOST /wallet/withdrawUnified, tracked withdrawal to the verified login wallet
Withdraw Lighter fundsPOST /v3/portfolio/lighter/withdrawUnavailable
Read withdrawal history/statusVenue reconciliation readsGET /wallet/withdrawals, GET /wallet/withdrawals/{id}Unified wallet withdrawals only
Hyperliquid order/cancelPOST /v2/authorize-and-send/hyperliquidPOST /runtime/executionsTyped order and cancel actions only
Polymarket order/cancelPOST /v3/authorize-and-send/polymarketPOST /runtime/executionsTyped placeMarketOrder and cancelOrder actions only
Lighter signed actionPOST /v3/authorize-and-send/lighterUnavailable
List/read execution recordsNo dedicated equivalentGET /runtime/executions, GET /runtime/executions/{id}New durable, sanitized records
Hyperliquid brackets/v2/bracket resource treeNo bracket-resource equivalent
Hyperliquid wallet transferPOST /v2/portfolio/hyperliquid/transferUnavailable
Discover the HTTP contractVersioned OpenAPI documentsGET /openapi.jsonOne authoritative contract
Discover or call MCPNo dedicated equivalentGET /.well-known/mcp.json, POST /mcpNew

Hyperliquid and Aerodrome

These integrations use Unified runtime resources with the Freqtrade framework.

Validated strategies (with backtest evidence)

These strategies have backtest evidence on real Hyperliquid data. Numbers are full-period (162 days, 2025-11-20 → 2026-05-01) unless noted.

StrategyRegimePairs testedTradesWinProfitMax DDFile
Donchian Strong-RegimeStrong directional trendBTC6100%+6.69%0%donchian-strong-regime
Bollinger Reverter 4hRange / chop (ADX<25)BTC/ETH/SOL/DOGE8465.5%+8.77%18.5%bollinger-reverter-4h

Paired together as separate sub-accounts, the two strategies are regime-complementary: the Donchian gate fires zero trades during the chop windows where the Bollinger reverter thrives, and the Bollinger reverter mildly underperforms during the strong-trend windows the Donchian captures.

Template strategies (starting points)

Reference templates for adapting to your own thesis. Backtest before deploying.

Categories covered: trend-following, mean-reversion, carry, arbitrage, scalping.

Reusable primitives

Building blocks that compose across strategies.

  • trade-thesis — Structured pre-trade thesis builder: bull/bear cases, invalidation criteria, and sizing rationale before any live deployment of a new strategy idea. Aliases: pre-trade analysis, conviction check, trade plan, bull/bear case.
  • regime-overlay — Triple-confirmation regime gate (EMA separation + ADX + N-bar return). Turns fragile directional strategies into regime-robust ones. Aliases: regime filter, trend gate, directional confirmation.
  • dsl-exit-engine — Three-phase exit primitive: ROI ladder, hard stop, ratcheting trailing stop. Aliases: ratcheting trailing stop, two-phase exit, take-profit ladder.
  • fees-optimizations — Maker (ALO) vs taker (MARKET) order-type decisioning, builder fees, parameter sweeps. Aliases: fee optimizer, ALO vs MARKET, maker pricing.
  • backtesting — Window selection, walk-forward, parameter sweeps.
  • intelligence — Opportunity scanner / pair-ranking system.

Exchanges

  • [`hy

Files in the repo

Repository payload13 top-level entries
  • .claude-plugin
  • docs
  • references
  • scripts
  • skills
  • .clawhubignore
  • .gitignore
  • .turbo-upstream.json
  • AUTHORING.md
  • LICENSE
  • package.json
  • README.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k