auto_trader: Command for Claude Code

.claude/commands/crypto-alert-triage.md

crypto-alert-triage is a command for Claude Code from mgh3326/auto_trader. It costs 29 tokens per session (976 once invoked), scanned A, original, MIT.

A read-only workflow for reviewing alerts about cryptocurrency market conditions.

In plain words
What is it for?
Use it to inspect crypto alerts, compare current values with thresholds, review portfolio constraints, and preview possible trades without placing them.
Why use it?
It checks whether an alert is still valid and reconstructs the reasoning behind it before suggesting any action.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

This is mgh3326/auto_trader's own configuration. It tells Claude Code how to work on auto_trader 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 auto_trader configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mgh3326/auto_trader. 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/mgh3326/auto_trader/main/.claude/commands/crypto-alert-triage.md
Clone the repo
git clone --depth 1 https://github.com/mgh3326/auto_trader

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 crypto-alert-triage

README.md
[![agentmods](https://agentmods.dev/badge/commands/mgh3326/auto_trader/crypto-alert-triage/github.svg)](https://agentmods.dev/commands/mgh3326/auto_trader/crypto-alert-triage)
Your own site
<a href="https://agentmods.dev/commands/mgh3326/auto_trader/crypto-alert-triage"><img src="https://agentmods.dev/badge/commands/mgh3326/auto_trader/crypto-alert-triage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for crypto-alert-triage

Your own site · 80×15
<a href="https://agentmods.dev/commands/mgh3326/auto_trader/crypto-alert-triage"><img src="https://agentmods.dev/badge/commands/mgh3326/auto_trader/crypto-alert-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 976 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.00029 $0.00976
Opus 5 $0.00015 $0.00488
Sonnet 5 $0.00006 $0.00195
Haiku 4.5 $0.00003 $0.00098

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

Security

Grade A, and why

crypto-alert-triage 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/crypto-alert-triage.md · 53 lines

How it starts

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

crypto-alert-triage

watch 알림이 발화해 너를 깨웠다. 너는 신선한 세션이지만, 매매 맥락은 지속 아티팩트에 산다. 아래 순서로 맥락을 복원하고, 발화를 분석하고, dry_run 제안까지만 낸다. 실주문 금지.

입력

$ARGUMENTS 에 공백구분 key=value 로 이벤트 요약이 온다: event_uuid=... symbol=... market=... source_report_uuid=... metric=... operator=... threshold=... current_value=... 먼저 이를 파싱한다. market이 비면 crypto로 간주.

1. 맥락 복원 (반드시 이 순서)

  1. get_operating_briefing(market=<market>) — 현재 보유 / 미체결 주문(만료시각) / 활성 watch / 최신 리포트 / 최근 session_context.
  2. investment_report_get(report_uuid=<source_report_uuid>) — 발화 item의 rationale / evidence_snapshot / trigger_checklist / max_action / watch_condition. "왜 이 watch를 걸었나"를 복원.
  3. session_context_get_recent(market=<market>, limit=10) — 직전 트리아지·결정 핸드오프(decision/next_action/open_question). "지난번에 뭘 보고 뭘 미뤘나".

2. 분석

  • 트리거가 여전히 유효한가? (현재가 vs threshold, 노이즈 여부)
  • trigger_checklist 항목을 하나씩 점검.
  • max_action(side/qty·notional/limit/ladder_level)이 지금도 타당한가? 포트폴리오 제약(미체결/현금/중복 반대주문) 반영.
  • 손실매도 가드·현금 정책 등 memory/CLAUDE.md 정책과 충돌 없는가.

3. dry_run 미리보기 (read-only)

  • 필요하면 buy_ladder_fill_preview / sell_ladder_fill_previewread-only preview로 실행안을 시뮬레이션.
  • 실주문 절대 금지: place/modify/cancel/reconcile 도구는 권한으로 차단되어 있고, 호출해서도 안 된다. 너는 제안만 한다.

4. 출력 (둘 다 수행)

  1. session_context_append(entries=[{ "market": "<market>", "entry_type": "decision", "title": "<symbol> watch 트리아지", "body": "<핵심 판단 + 제안 dry_run + 다음 액션>", "refs": { "report_uuid": "<source_report_uuid>", "event_uuid": "<event_uuid>", "symbols": ["<symbol>"] }, "created_by": "crypto-alert-triage", "session_label": "alert-triage" }]) — 다음 신선 런이 읽을 핸드오프.
  2. 마지막 assistant 메시지로 Discord와 Telegram 양쪽에 그대로 전달 가능한 간결 요약을 낸다(이게 --output-format json.result로 회신된다). 아래 섹션 제목을 유지한다:
    • ## 알림 요약
      • 발화 symbol/market/조건/current_value를 한 줄로 요약.
      • 트리거가 여전히 유효한지 한 줄로 요약.
    • ## 제안 verdict
      • approve_dry_run, wait, reject, needs_human_review 중 하나.
      • 핵심 근거 2~3개.
      • 제안 dry_run 실행안(side/수량/지정가)이 있으면 적고, 없으면 dry_run 제안 없음으로 적는다.
    • ## 결정 필요
      • 운영자 확인이 필요한 경우에만 이 섹션을 포함한다.
      • 섹션을 포함할 때 마지막 줄은 다음 문장 그대로 쓴다: operator 세션에서: session_context 최근 제안 승인 검토

Read the full file on GitHub · 53 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 · 53 lines · 29 tokens per session scan A 6e0374bd31a8

Subscribe to this mod's changes

crypto-alert-triage is a command published in the GitHub repository mgh3326/auto_trader (6 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 976 once invoked, about $0.0001 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-31.