trading-ops: Command for Claude Code

.claude/commands/scan-flow.md

scan-flow is a command for Claude Code from l3lackcurtains/trading-ops. It costs 52 tokens per session (1,583 once invoked), scanned A, original, MIT.

A partial scan command that refreshes only flow and positioning data for an existing asset report. Flow and positioning describe trading activity and how market participants are placed.

In plain words
What is it for?
It refreshes the relevant stock, crypto, index, foreign-exchange, or commodity flow section of an existing current report.
Why use it?
It updates time-sensitive trading data without rerunning charts, scoring, or earnings analysis.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is l3lackcurtains/trading-ops's own configuration. It tells Claude Code how to work on trading-ops itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything trading-ops configures →

Reuse

Borrowing it

Nothing to install: this file belongs to l3lackcurtains/trading-ops. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/l3lackcurtains/trading-ops/main/.claude/commands/scan-flow.md
Clone the repo
git clone --depth 1 https://github.com/l3lackcurtains/trading-ops

Made for: Claude Code.

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 scan-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/l3lackcurtains/trading-ops/scan-flow.svg)](https://agentmods.dev/commands/l3lackcurtains/trading-ops/scan-flow)
Your own site
<a href="https://agentmods.dev/commands/l3lackcurtains/trading-ops/scan-flow"><img src="https://agentmods.dev/badge/commands/l3lackcurtains/trading-ops/scan-flow.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00052 $0.01583
Opus 5 $0.00026 $0.00792
Sonnet 5 $0.00010 $0.00317
Haiku 4.5 $0.00005 $0.00158

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

Security

Grade A, and why

scan-flow scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/scan-flow.md · 122 lines

How it starts

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

Refresh flow & positioning for: $ARGUMENTS

Use this when fresh flow data dropped (ETF flows post-close, weekly COT release Tuesday afternoon, EIA inventory Wednesday, OPEX gamma rebalance) but the chart hasn't moved enough to warrant a full re-scan.

The protocol lives in guide/scan/. Read these before starting:

Steps

1. Pre-flight

  1. Detect asset class from symbol — stock (scanned/stocks/), crypto (scanned/crypto/), index (scanned/indices/), FX (scanned/fx/), commodity (scanned/commodities/).
  2. Locate <target-folder> (scanned/<asset-class>/<SYMBOL>/).
  3. Verify current.md exists. If not, tell the user to run /scan <SYMBOL> first, and stop.
  4. Read existing current.md — capture header, Action verdict, TL;DR, the existing flow section (so we know what to replace), and everything else.
  5. Read scanned/MACRO/current.md.

2. Pull flow data (asset-class-specific)

Apply EXACTLY ONE flow protocol based on Step 1's detection:

Stock — per data.md:

  • ChartExchange in parallel: dark pool, max pain, short interest, FTD, borrow fee
  • State "as of" dates and lag floors

Crypto — per crypto-flow.md:

  • Tier A WebFetch in parallel: alternative.me F&G, CoinGecko, OKX funding/OI, Deribit options, Bitbo ETF flows, mempool.space
  • Tier B chrome-devtools captures: Coinglass funding dashboard, liquidation heatmap, options max pain

Read the full file on GitHub · 122 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. 8d ago First seen · 122 lines · 52 tokens per session scan A fbf0bca14c5d

Subscribe to this mod's changes

scan-flow is a command published in the GitHub repository l3lackcurtains/trading-ops (56 stars, last pushed 4mo ago), licensed MIT. It adds 52 tokens to every session and 1,583 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.