trading-ops: Command for Claude Code

.claude/commands/scan.md

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

A command that examines a stock, cryptocurrency, market index, foreign-exchange pair, or commodity using the matching analysis process. It can also rebuild an index of saved scans.

In plain words
What is it for?
It creates or refreshes a scan with charts, market data, flow information, technical measures, and an action verdict when the project supports those inputs.
Why use it?
It routes each asset to the relevant data and analysis rules instead of requiring a separate command for every asset type.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

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.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

README.md
[![agentmods](https://agentmods.dev/badge/commands/l3lackcurtains/trading-ops/scan.svg)](https://agentmods.dev/commands/l3lackcurtains/trading-ops/scan)
Your own site
<a href="https://agentmods.dev/commands/l3lackcurtains/trading-ops/scan"><img src="https://agentmods.dev/badge/commands/l3lackcurtains/trading-ops/scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,374 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.00037 $0.04374
Opus 5 $0.00018 $0.02187
Sonnet 5 $0.00007 $0.00875
Haiku 4.5 $0.00004 $0.00437

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

Security

Grade A, and why

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

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.md · 268 lines

How it starts

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

Run a scan for: $ARGUMENTS

The protocol lives in guide/scan/. Read these before starting if you haven't this session:

Plus the technical-read knowledge base (Step 6 below):

Plus the flow doc that matches the asset class (route via Step 0 below):

If a step here ever conflicts with the guide, the guide wins. Open the fix there.


Step 0 — No-args mode: regenerate INDEX.md

If $ARGUMENTS is empty:

  1. Run python3 scripts/regen_index.py — parses every current.md's **Coverage tier:** line + catalyst date, regenerates the master coverage table + focus blocks + catalyst monitor in scanned/INDEX.md.
  2. Manually verify the Coverage changes log + Performance audit log are still intact (the script doesn't overwrite those — they're append-only).
  3. Report what changed (added rows / tier transitions / new catalysts).

If the script fails, regenerate by hand per structure.md § INDEX.md format — walk every scanned/<asset-class>/<TICKER>/current.md for the Coverage tier line + last-scan date + score + next catalyst, and rebuild the tables.

Stop here when in no-args mode. The remaining steps apply only when scanning a specific symbol.


Read the full file on GitHub · 268 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 · 268 lines · 37 tokens per session scan A a10deaa7b49c

Subscribe to this mod's changes

scan is a command published in the GitHub repository l3lackcurtains/trading-ops (56 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 4,374 once invoked, about $0.0002 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.