0dte-flow

0dte-flow is a skill for Claude Code from mphinance/alpha-skills. It costs 98 tokens per session (1,085 once invoked), scanned A, original, MIT.

A rule-based playbook for trading same-day options on XSP, a smaller version of the S&P 500 index, using signals from Ghost Alpha and execution through Tradier. 0DTE means an option that expires on the same trading day.

In plain words
What is it for?
Use it to decide whether a 0DTE setup qualifies, size a contract, apply entry conditions, and follow the specified stop-loss, profit-taking, reversal, and end-of-day exits.
Why use it?
It turns a trading signal into explicit entry, position-size, and exit rules, including limits for trade count and losses. It also defines a fallback instrument when XSP cannot be traded.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; mentions AGENTS.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Pull `TRADIER_TOKEN` / `ACCOUNT_ID` from VaultGuard — see [AGENTS.md](../../../AGENTS.md)..

Part of the quant-skills plugin — 20 skills shipped together

Good fit Use it to decide whether a 0DTE setup qualifies, size a contract, apply entry conditions, and follow the specified stop-loss, profit-taking, reversal, and end-of-day exits.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mphinance/alpha-skills
agentmods
npx agentmods add skills/mphinance/alpha-skills/0dte-flow

Made for: Claude Code.

Or install quant-skills, the plugin that ships this one along with the rest of its 20 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 0dte-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/mphinance/alpha-skills/0dte-flow.svg)](https://agentmods.dev/skills/mphinance/alpha-skills/0dte-flow)
Your own site
<a href="https://agentmods.dev/skills/mphinance/alpha-skills/0dte-flow"><img src="https://agentmods.dev/badge/skills/mphinance/alpha-skills/0dte-flow.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01085
Opus 5 $0.00049 $0.00543
Sonnet 5 $0.00020 $0.00217
Haiku 4.5 $0.00010 $0.00109

Measured 7d ago against content hash 294e29e52aea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

0dte-flow scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -H "Authorization: Bearer $TRADIER_TOKEN" \
plugins/quant-skills/skills/0dte-flow/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

0DTE Day-Trading Flow

Ghost Alpha A+/A signals → Tradier XSP 0DTE options → same-day close.

Why XSP

XSP (Mini-SPX) is 1/10th of SPX, cash-settled / European (no assignment risk), with 0DTE M/W/F on Tradier. Cheap enough for a small account. Fallback: if XSP isn't tradeable, use SPY 5+ OTM ($0.10–$0.30).

Position sizing (example: $75 account)

Rule Value
Max per trade $30
Buffer $10
Trades per day 2 sequential (never concurrent)
Strike 2–3 OTM ($0.15–$0.50/contract)
Max daily loss $60 (2 full losers = walk away)

Entry — ALL must hold

Ghost Alpha Grade ≥ B on SPY 5min
AND signal = mega_bull OR mega_bear
AND RVOL > 1.2
AND time 9:30–11:30 AM ET
AND trend_age < 15 bars
AND no open 0DTE position

Exit cascade — first match wins

# Type IF THEN
S1 🔴 Hard stop Loss ≥ -50% SELL (non-negotiable)
S2 🔴 Grade death Grade → D/F SELL (thesis dead)
S3 🔴 Reversal Signal flips bull↔bear SELL (wrong side)
T1 ⏰ EOD Time ≥ 2:30 PM ET SELL (theta cliff)
P1 🟢 Double Gain ≥ +100% SELL (take the W)
P2 🟢 Fading Gain ≥ +30% AND Grade → C SELL (lock it)
P3 🟢 Afternoon Gain ≥ +50% AND time > 1 PM SELL (theta)
T2 ⏰ Dead money Time ≥ 12 PM AND ±10% SELL (free up trade 2)

Re-entry: Trade 2 only if Trade 1 closed, buying power ≥ $20, and a new A+/A signal fires. Two losers → DONE for the day.

Guardrails (NON-NEGOTIABLE)

Max 1 open position · auto-close 2:30 PM ET · no averaging down EVER · Grade floor B · entries 9:30–11:30 AM only · no Friday 0DTE (witching risk).

Tradier order reference

Option symbol format: XSP260310C00675000 = XSP · 2026-03-10 · Call · $675.

# Today's chain
curl -s -H "Authorization: Bearer $TRADIER_TOKEN" \
  "https://api.tradier.com/v1/markets/options/chains?symbol=XSP&expiration=$(date +%Y-%m-%d)"

# Buy to open
curl -s -X POST -H "Authorization: Bearer $TRADIER_TOKEN" \
  "https://api.tradier.com/v1/accounts/$ACCOUNT_ID/orders" \
  -d "class=option&symbol=XSP&option_symbol=XSP260310C00675000&side=buy_to_open&quantity=1&type=limit&price=0.35&duration=day"

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 94 lines · 98 tokens per session scan A 294e29e52aea

Subscribe to this mod's changes

0dte-flow is a skill published in the GitHub repository mphinance/alpha-skills (21 stars, last pushed 9d ago), licensed MIT. It adds 98 tokens to every session and 1,085 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories