polymarket-mil-aircraft-tracker
Track military aircraft cluster signals, trade strike/action Polymarket markets, or check pref.trade-powered skill activity. Fires when tracked military…
от SpartanLabsXyz★ 57 звёзд на GitHub
Установить polymarket-mil-aircraft-tracker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Polymarket Military Aircraft Tracker
Trade Polymarket strike/action markets using military aircraft ADS-B positioning via pref.trade.
Framework, not a production trading system. Read DISCLAIMER.md before connecting to a wallet with real funds.
Template skill. Defaults to dry-run mode. The
--liveflag is a deliberate opt-in for real-money execution. Configure tunables via env vars listed below.
Safety Rails
This skill executes real-money trades on Polymarket only when the --live flag is passed and the human's wallet is linked to their Simmer account. Trading is bounded by default:
- Dry-run is the default.
python milaircraft_tracker.pyshows cluster state and opportunities but executes no trades. $SIMpaper sandbox option. SetTRADING_VENUE=simto trade Simmer's virtual currency at real prices.- Real-money trading requires explicit human verification. A wallet must be linked at
simmer.markets/dashboardbefore any real trade lands. - Per-trade cap.
SIMMER_MILACFT_TRADE_SIZEdefaults to$5.00per trade. - Region exposure cap.
SIMMER_MILACFT_CLUSTER_CAPdefaults to$25.00open exposure per region. - Daily kill switches.
SIMMER_MILACFT_DAILY_LOSS_KILLandSIMMER_MILACFT_DAILY_TRADE_KILLstop new entries after the configured limits. - Strategy-side safeguards. The skill checks Simmer market context, slippage, resolved-market warnings, duplicate positions, and cluster state before orders. Disable only with
--no-safeguards. - Reversibility. Open positions exit when price rises above
SIMMER_MILACFT_EXIT_THRESHOLD, or when the regional aircraft cluster drops below its threshold.
If anything above is unclear, stop before passing --live.
Strategy Logic
The strategy watches military-tagged ADS-B aircraft via pref.trade's aviation.get_adsb_military MCP tool. Each scan fetches visible military aircraft once, filters them client-side into five target regions, then searches Polymarket for strike/action markets matching the fired region's keywords.
When a region has at least its configured aircraft threshold and a matching active market is priced below the entry threshold, the skill may buy YES. Position sizing is handled by simmer_sdk.sizing.size_position() using a conservative active-cluster prior and the SDK's minimum expected-value gate.
Test with TRADING_VENUE=sim before running real-money mode.
Setup
Required environment:
SIMMER_API_KEY- get fromsimmer.markets/dashboardPREF_API_KEY,PREFERENCE_API_KEY, or~/.config/preference/credentials.json- a pref.tradepref_agent_*key for the aircraft data source
Autonomous pref.trade key setup
Agents do not need to use the human browser sign-up flow. If no pref key exists, register an agent key directly and save it to the standard credentials file:
mkdir -p ~/.config/preference
python - <<'PY'
import json
import os
import stat
import urllib.request
from pathlib import Path
cred = Path.home() / ".config" / "preference" / "credentials.json"
if cred.exists():
raise SystemExit(f"credentials already exist: {cred}")
payload = json.dumps({
"name": "Military Aircraft Tracker Agent",
"description": "Agent using pref.trade aviation data through the Simmer mil-aircraft tracker skill",
}).encode()
req = urllib.request.Request(
"https://pref.trade/v1/agents/register",
data=payload,
headers={"Content-Type": "application/json"},
method="POST",
)
with urllib.request.urlopen(req, timeout=30) as resp:
data = json.loads(resp.read().decode())
# The api_key is shown once. Save it without printing it.
cred.write_text(json.dumps({"api_key": data["api_key"]}, indent=2))
os.chmod(cred, stat.S_IRUSR | stat.S_IWUSR)
print(f"saved pref credentials to {cred}")
print("claim_url available:", bool(data.get("claim_url")))
PY
Then verify the key and quota before any strategy run:
python milaircraft_tracker.py --check
The skill reads pref credentials in this order:
PREF_API_KEYPREFERENCE_API_KEY~/.config/preference/credentials.jsonwith shape{"api_key":"pref_agent_*"}
Keep the key out of terminal logs, issues, PRs, and prompts. If --check reports an anonymous identity or missing key, stop and fix the credential path before scanning.
MCP server config (alternative to env var)
If your agent runtime supports MCP server configs (OpenClaw, Hermes, Claude Code, etc.), you can connect to pref.trade as a Streamable HTTP MCP server instead of setting the env var:
mcpServers:
pref:
url: "https://pref.trade/mcp"
transport: "streamable-http"
headers:
Authorization: "Bearer ${PREFERENCE_API_KEY}"
transport: "streamable-http" is required for OpenClaw (otherwise it defaults to legacy SSE and sends GET /mcp, which returns 400). Hermes uses Streamable HTTP by default for url-based servers, but the explicit line is compatible.
The skill's built-in `
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- DISCLAIMER.md
- clawhub.json
- milaircraft_tracker.py
- pref_client.py
- regions.py
- regions.yaml
- scripts/status.py
FAQ
Что делает скилл polymarket-mil-aircraft-tracker?
Track military aircraft cluster signals, trade strike/action Polymarket markets, or check pref.trade-powered skill activity. Fires when tracked military aircraft cluster in a target region.
Как установить скилл polymarket-mil-aircraft-tracker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл polymarket-mil-aircraft-tracker запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…