株価や損切り・目標価格、取引終了時刻、NYSEの始業を監視して一度だけ知らせ、遅延相場データを価格記録にまとめるスキルです。
- 損切りや目標価格を監視したいとき
- 指定価格への到達を知りたいとき
- 取引終了時刻をリマインドしたいとき
注文を損失上限や取引時間、資金などのルールと照合し、理由付きでPASSまたはBLOCKを記録します。注文がブローカーに進む前の確認に使います。
Risk Manager. Checks every trade against your limits and stops anything over them, before it can reach the broker. For a day trade: a stop is required, the loss at the stop must fit your max loss per trade (measured from the higher of the plan's entry and a fresh price), reward:risk must meet your minimum, the day's total risk must fit your daily loss limit, no more than your trades per day, and no new entries outside your entry window or when the market is closed. It also keeps the basics: blocked tickers, order size, position cap, cash buffer, margin, short sales, options and crypto, malformed or bad bracket orders, duplicates and a daily order limit. Getting out is never blocked by a day limit. Prints PASS or BLOCK with the reason and records the verdicts so trader-broker only shows an order that passed. Use when the user says "check my order", "is this safe", "risk check", "does this break my rules", "can I take this trade", "how much have I risked today", or before /trader-broker, always.
実行スコア 未検証
インストール方法を見る提案された注文を設定済みのルールと照合し、注文ごとにPASSまたはBLOCKと理由を出して記録します。デイトレードでは、損切り設定の有無、損切り時の最大損失、最低リスクリワード、当日の損失上限や取引回数、エントリー可能時間、市場の営業状況などを確認します。注文額、保有上限、現金余力、空売りやオプション等の許可、重複注文、注文形式も検査対象です。注文はファイル内の順に確認され、合計で上限を超えるケースも検出します。記録された判定は、その注文がブローカーに提示できるかを確認するために使われます。
注文が自分の決めた損失上限や取引ルールに合っているか、発注前に確認したいときに使います。どの条件で止められたかを知り、数量やタイミングを見直す手がかりにもなります。保有分を減らす決済注文は、日次上限やエントリー時間を理由にBLOCKされません。
価格確認には15分以内の価格情報を使い、古い価格はリスク計算に使われない旨が示されます。Yahooの価格情報は非公式で遅れる場合があります。PASSはルール上の確認結果であり、注文の推奨や発注承認ではありません。このスキル自体は注文を出さず、設定されたリスクルールも変更しません。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
The Risk Manager is the gate between a proposal and the broker. Every order written by trader-budget or trader-broker's flatten passes through it. A BLOCK is final for that order: it does not go to the user for a yes, and it does not go to the broker. Most people who day trade lose money. These limits keep each loss and each day's losses small. They do not make a trade win.
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).
python3 "${CLAUDE_SKILL_DIR}/check.py" # trader/ files; writes trader/state/risk.json
python3 "${CLAUDE_SKILL_DIR}/check.py" --json
python3 "${CLAUDE_SKILL_DIR}/check.py" --no-write # look without recording
python3 "${CLAUDE_SKILL_DIR}/check.py" --now "2026-10-19 10:15" # pin the clock (New York time)
| file | what |
|---|---|
trader/orders.json | the proposed orders (trader-budget, or trader-broker's flatten) |
trader/config.json | the limits (trader-budget ships config.example.json) |
trader/portfolio.json | cash and holdings; if missing, a fresh account funded with the budget |
trader/prices.json | a fresh price raises the entry it measures risk from; also values holdings |
trader/state/broker.json | what was placed today: duplicates, trades per day, daily loss, day trades |
trader/state/risk.json | the verdicts it writes, with a fingerprint of each exact order |
An entry opens or adds to a position: a buy, or a sell that would go short. An exit only reduces what you already hold. Getting out must always be possible, so an exit is checked for format, asset and short sales only. Every other rule (day limits, entry window, loss, reward:risk, blocked list, size, duplicates) turns into a warning for an exit, never a BLOCK.
Orders are checked in file order, as if each passed order had filled, so a batch that is fine order by order but breaks a limit together is caught.
| check | blocks when |
|---|---|
| format | no symbol, side not buy or sell, both or neither of qty and notional, a notional order that is not market + day (Alpaca's rule), a limit order with no limit price; a bracket that is not whole shares, not day or gtc, or misses its stop-loss or take-profit |
| asset | an option symbol while allow_options is false; crypto or anything that is not a US stock or ETF ticker |
| short | a sell of more than you hold (allow_short false) |
| blocked | (entries) the ticker is on the blocked list |
| size | (entries) under min_order_usd or over max_order_usd |
| position | (entries) the stock would be over max_position_pct of the account |
| cash | (entries) the buy would leave less than the cash buffer, or need margin |
| stop | (entries) no stop while require_stop is true (a bracket stop_loss_stop_price, or the order's plan stop); a stop on the wrong side of the entry |
| loss | (entries) qty x (entry minus stop) over max_loss_per_trade_usd |
| reward:risk | (entries) (target minus entry) / (entry minus stop) under min_reward_risk |
| daily loss | (entries) the max losses at the stops of today's entries, plus this one, over max_daily_loss_usd |
| trades | (entries) max_trades_per_day entries already placed today |
| window | (entries) before no_entries_before or after no_entries_after, or the market is closed |
| pdt | (entries, only with pdt_guard true) 3 day trades already in the last 5 business days |
| duplicate | (entries) the same symbol and side twice in one batch, or already placed today |
| daily limit | (entries) max_orders_per_day orders already placed today |
How the numbers work:
trader/prices.json (under 15 minutes old). A plan written at 10:15 cannot
understate the risk at 10:55 after the price ran up. An older price is not
used, and it says so.no_entries_* to null to switch the window off.pdt_guard on if yours does.Warnings do not block, but say them to the user: a LIVE account, a number sent as a number instead of a string, a stop that lives only in the plan and not at the broker, a price too old to use, an early close today.
alerts.py quote TSLA --write).check.py. Exit code 0 means every order passed, 1 means at least one
was blocked.The TSLA bracket from trader-budget at 10:15 AM on Monday 2026-10-19, on a fresh $5,000 paper account with the example config:
PASS #1 buy TSLA 8 shares, entry
entry 364.18 (the plan's entry), stop 358.32, target 370.04: risk 5.86 a share
max loss $46.88 (limit $50), reward:risk 1.00 (min 1)
today before this: 0 of 3 trades, $0 of $150 daily loss
1 passed, 0 blocked at 2026-10-19 10:15 New York. Cash after the passed orders: $2,086.56 (paper account).
One more share and it is blocked:
BLOCK #1 buy TSLA 9 shares, entry
entry 364.18 (the plan's entry), stop 358.32, target 370.04: risk 5.86 a share
max loss $52.74 (limit $50), reward:risk 1.00 (min 1)
today before this: 0 of 3 trades, $0 of $150 daily loss
- loss: 9 shares x 5.86 risk a share = $52.74 at the stop, over your $50 max loss per trade
The same 8 shares checked at 10:55 with the real 10:52 quote (366.48) in
trader/prices.json are blocked twice: 8 x 8.16 = $65.28 at the stop, and
reward:risk 0.44. At 9:40 they are blocked by the window (no new entries
before 9:45). The 3:55 PM sell that closes the position passes, even though
it is after the 3:30 entry cutoff: it is an exit.
It never places an order, never edits an order to make it pass, never loosens a limit, never blocks a sell that only gets the user out, and never treats a PASS as the user's yes.
"paper": true). Going live is the user's own decision, in their own config.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
株価や損切り・目標価格、取引終了時刻、NYSEの始業を監視して一度だけ知らせ、遅延相場データを価格記録にまとめるスキルです。
SEC提出資料の売上高や利益、利益率、EPSを四半期ごとに前年同期と比べ、決算発表で変わった点や次回発表日を確認するスキルです。
承認済みの注文をチケット形式で確認し、明示的な同意と追加の許可を経てブローカーへ送る手順を扱います。ペーパートレードを初期設定とし、約定も記録します。
売買プランと予算、損失上限などから購入できる株数を計算し、条件に合う場合は損切り・利確付きの注文案を1件作成します。発注は行いません。
Yahoo Financeの分足を監視し、指定した価格帯を終値で上抜けた時刻と価格を知らせます。買い注文は行わず、損切りや目標価格の設定に使う記録も残します。
エントリー価格やオープニングレンジをもとに、損切り価格と目標価格を事前に計算します。リスクや損益比率を確認し、計画を保存して関連ツールへ渡せます。