polymarket-mil-aircraft-tracker
Skill56 starsChanged 10 days agoMITView on GitHub
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.
- Reads credentials
- Installs packages
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- kalshi-weather-traderSkill
- nansen-copytrader-overlaySkill
- polymarket-ai-divergenceSkill
- polymarket-btc-up-down-traderSkill
- polymarket-combo-builderSkill
- polymarket-copytradingSkill
- polymarket-dca-eval-traderSkill
- polymarket-elon-tweetsSkill
- polymarket-fast-loopSkill
- polymarket-fast-scalerSkill
- polymarket-market-makerSkill
- polymarket-mert-sniperSkill
- polymarket-nothing-ever-happensSkill
- polymarket-researchSkill
- polymarket-signal-sniperSkill
- polymarket-soccer-shock-ladderSkill
- polymarket-wallet-xraySkill
- polymarket-weather-traderSkill
- polymarket-worldcup-copytraderSkill
- prediction-trade-journalSkill
- simmer-preflightSkill
- simmer-briefingSkill
- simmer-mcp-setupSkill
- simmer-skill-builderSkill
- simmerSkill
- simmer-wallet-setupSkill
- simmer-x402Skill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If anything above is unclear, stop before passing --live.
- Distinctive: line 37
When a region has at least its configured aircraft threshold and a matching active market is priced below the entry threshold, the skill …
- Very specific: line 39
Test with TRADING_VENUE=sim before running real-money mode.
- Very specific: line 99
Keep the key out of terminal logs, issues, PRs, and prompts.
- Distinctive: line 103
If your agent runtime supports MCP server configs (OpenClaw, Hermes, Claude Code, etc.), you can connect to pref.trade as a Streamable HTTP …
- Very specific: line 183
All trades are tagged with source: "sdk:milaircraft" and skill_slug: "polymarket-mil-aircraft-tracker".
- Very specific: line 187
PREF_API_KEY not set: - create a pref.trade agent key with the autonomous setup command above, export it as …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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")))
PYThen verify the key and quota before any strategy run:
python milaircraft_tracker.py --checkThe 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 pref_client.py HTTP shim works without this config. The MCP server config is for runtimes that manage tool connections natively.
Then install the SDK:
pip install --upgrade simmer-sdkConfiguration
| Setting | Environment Variable | Default | Description |
| Trading venue | TRADING_VENUE | polymarket | Set sim for paper trading |
| Entry threshold | SIMMER_MILACFT_ENTRY_THRESHOLD | 0.15 | Buy YES when price is below this and cluster fires |
| Exit threshold | SIMMER_MILACFT_EXIT_THRESHOLD | 0.45 | Sell open YES position when price is above this |
| Trade size | SIMMER_MILACFT_TRADE_SIZE | 5.00 | Max USD per trade |
| Region cap | SIMMER_MILACFT_CLUSTER_CAP | 25.00 | Max open USD per region |
| Max trades/run | SIMMER_MILACFT_MAX_TRADES_PER_RUN | 3 | Maximum entries per scan |
| Cadence | SIMMER_MILACFT_CADENCE_MIN | 15 | Intended polling cadence in minutes |
| Daily loss kill | SIMMER_MILACFT_DAILY_LOSS_KILL | 25.00 | Stop new entries after daily loss reaches this |
| Daily trade kill | SIMMER_MILACFT_DAILY_TRADE_KILL | 10 | Stop new entries after this many daily trades |
| Slippage max | SIMMER_MILACFT_SLIPPAGE_MAX | 0.15 | Skip trades with estimated slippage above this |
| Order type | SIMMER_MILACFT_ORDER_TYPE | GTC | Simmer order type |
Position sizing also supports the standard Simmer SDK sizing env vars from simmer_sdk.sizing, including SIMMER_POSITION_SIZING, SIMMER_KELLY_MULTIPLIER, and SIMMER_MIN_EV.
Quick Commands
# Dry run, no trades
python milaircraft_tracker.py
# Execute live trades
python milaircraft_tracker.py --live
# Use $SIM paper venue
TRADING_VENUE=sim python milaircraft_tracker.py --live
# Validate pref key and quota
python milaircraft_tracker.py --check
# Show current cluster dashboard
python milaircraft_tracker.py --status
# Show current Simmer positions
python milaircraft_tracker.py --positions
# View config
python milaircraft_tracker.py --configHow It Works
Each cycle the script:
- Loads region bounds from
regions.yaml - Calls pref.trade
aviation.get_adsb_military - Filters aircraft into target regions by bounding box
- Searches Polymarket for strike/action markets using region keywords
- Checks price, source context, slippage, daily kill switches, and exposure caps
- Sizes the position through Simmer SDK
- Buys YES in eligible markets
- Sells open positions when the price exits or the cluster goes stale
- Tags all trades with
sdk:milaircraft
Source Tagging
All trades are tagged with source: "sdk:milaircraft" and skill_slug: "polymarket-mil-aircraft-tracker". This keeps P&L attribution separate from other skills and lets Simmer enforce cross-skill conflict checks.
Troubleshooting
PREF_API_KEY not set - create a pref.trade agent key with the autonomous setup command above, export it as PREF_API_KEY/PREFERENCE_API_KEY, or save it to ~/.config/preference/credentials.json. Run python milaircraft_tracker.py --check before scanning.
SIMMER_API_KEY environment variable not set - get a key from simmer.markets/dashboard.
No clusters fired - military aircraft are visible globally, but may not be inside one of the five configured regions.
No markets found - Polymarket may not have active strike/action markets matching the region keywords.
Safeguard blocked - the Simmer context endpoint flagged a resolved market, high slippage, or flip-flop risk.
Daily kill switch active - reset happens automatically on the next UTC day, or inspect ~/.simmer/milaircraft-tracker/state.json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

