Communitygithub.com

austin-starks/Public-Portfolio-Challenge

GATED デプロイ + クリーンアップフロー。NexusTrade のライブブックに対して、ファイナリストのクローン、デルタ調整のプレビュー、UNAPPROVED オーダーのステージング、約定確認を実行します。人間が明示的に「deploy + clean up」と発言し、かつファイナリストを指定した場合にのみ使用します。

Public-Portfolio-Challenge とは?

このスキルは、NexusTrade プラットフォームにおいて、人間の明示的な指示に基づいてライブポートフォリオを特定のファイナリスト戦略に更新するための「GATED デプロイ + クリーンアップフロー」を提供します。主な目的は、既存のポジションを再利用しながら、デルタトレードのみでファイナリストの現在の戦略に合わせることで、無駄な往復取引を避けることです。スキルは 5 つのステップで構成されます。(1) ファイナリストの戦略をライブブックにクローンする、(2) デルタ調整のプレビューを生成する(オーダーは未発行)、(3) 人間にプレビューを提示し承認を得る、(4) UNAPPROVED 状態でオーダーをステージングする(承認は人間のみ)、(5) 約定確認後に差分が空であることを検証する。また、シグナルの鮮度チェック(古いデータ系列の拒否)、未処理の保留中オーダーの事前クリア、単一ティックターゲットの期待値、自動注文承認フラグの取扱いなど、重要なゲートとルールが定義されています。このスキルは、NexusTrade のライブ運用において安全かつ制御されたデプロイを実現するために不可欠であり、人間の明示的な許可なしには一切のオーダーが実行されない仕組みになっています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/austin-starks/Public-Portfolio-Challenge/tree/HEAD/skills/deploy-gate

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

デプロイゲート(ステージ E — GATED)

人間が明示的に "deploy + clean up" と発言し、かつ特定のファイナリストを名前で指定するまで、何もデプロイされず、どのオーダーも発注されません。 このスキルはそのときのみ実行されます。目標は、ライブポジションを選択されたファイナリストを本日新規デプロイした状態に、デルタ トレード(重複部分は往復しない)で一致させることです。

デプロイ前のゲート(厳格)

  1. シグナルの鮮度ゲート。 代替データ系列が現在まで拡張されておらず、かつ正常なリフレッシュパスを持たないファイナリストは、その認定結果がどうであれデプロイしてはなりません — 古いランク系列は死んだブックです。
  2. まず古い保留中オーダーを処理。 ライブブックに保留中/Pending User Approval → Canceled オーダーがないか確認します — これらは新しいステージングをブロックします。それらを表示し、人間が UI でキャンセルします。automaticOrderApproval の状態に注意してください(デフォルト: デプロイ時に変更するよう指示されない限り、そのままにします)。

5 つのステップ

  1. 最初にファイナリストをライブブックにクローン — clone_strategies_to_portfolio(ソース = ファイナリスト、ターゲット = ライブブック)を実行し、その後フィールドを確認してクローンを検証します。これが「デプロイ」です。次のステップで調整の基準とする戦略をライブブックに設定します。reconcile_portfolio_to_strategy には strategy_source 引数がありません — これはライブブックを自身の戦略に対して調整するため、クローンを先に行う必要があります。もしファイナリストがすでにデプロイ済みのライブブックと同一で変更がない場合、クローンは不要です — その旨を伝えてください。
  2. 調整プレビュー — reconcile_portfolio_to_strategy({ portfolio_id: "<live>", mode: "delta" })。プレビューのみ — オーダーは一切発注しません。 target、current、orders(すでに create_orders の形式)、推定コスト、実現損益、そして無駄売買フラグを返します。単一ティックのターゲットを期待します — ライブ戦略は日次リバランスで残りを蓄積します。その旨を伝えてください。バグとして再診断しないでください。
  3. 人間にプレビューを表示し、明示的な承認を得ます。 健全性チェック: オーダーはデルタのみに触れる(重複部分は未操作)、コストが妥当、target が新規デプロイであること、そして — 参加率修正の場合 — ターゲットが複数の銘柄にまたがっており、1 銘柄だけでないこと。
  4. オーダーをステージング — create_orders({ portfolio_id: "<live>", orders: <ステップ 2 の orders 配列> })。UNAPPROVED 状態でステージングされます。このツールはブローカーに送信しません。人間が NexusTrade UI で手動で承認します — 承認ツールはなく、あなたが承認することはできません。オプションは自動的に LIMIT でステージングされます。
  5. 約定後に確認 — 調整プレビューを再実行します。デルタの orders 配列はほぼ空になっているはずです。約定内容、残差、実現損益、無駄売買フラグ、および結果として得られるライブ参加率(保有している個別銘柄数)を報告します。

ルール

  • デフォルトの mode は "delta" です。人間が明示的にコストベースのリセットを要求した場合にのみ "liquidate_all" を使用します。
  • その特定のファイナリストに対する明示的なゴーサインなしにこれを実行しないでください。
  • 実行中にライブターゲットが既に固定されていない場合は、fetch_portfolios を使用してライブターゲットを検出します。フィールドやポスチャで確認していないライブポートフォリオ ID をハードコードしないでください。
  • サインオフ時には、デプロイが想定する任意の週次モニターエージェントを再アタッチします。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

austin-starks/Public-Portfolio-Challenge

Build alternative-data custom indicators on NexusTrade (Reddit/WSB mentions, congressional disclosures, insider filings, news-flow) and wire them into a certified book as a rank/tilt/filter signal. Use when adding alt-data to a strategy, building a CustomIndicator via compute sessions, auditing lookahead safety or per-ticker coverage, or deciding whether a data series is dense enough to drive a rank. Covers the compute-session workflow, the sparse-series rule, and source recipes (see references/). Invoke with the NexusTrade MCP connected.

austin-starks/Public-Portfolio-Challenge

Measure a NexusTrade options book's TRUE participation at a fixed cold-start capital base, defeating the compounded-NAV breadth illusion. Use whenever a book's headline \"holds N/21 names\" needs validating, when a live book collapses to a single name (the OSCR trap), when checking whether a SelectTop / per-name-allocation / total-budget change degraded simultaneous participation, or when a certification needs a breadth gate. Uses audit_backtest_breadth at held-fixed $25k.

austin-starks/Public-Portfolio-Challenge

The \"loudly declare\" protocol for platform, engine, or data bugs during a NexusTrade certification campaign — bugs are a first-class deliverable, not something to route around. Use whenever a NexusTrade tool errors, hangs, or returns numbers that contradict the config; whenever you're tempted to write \"probably an engine quirk\"; or when a discovered bug invalidates prior backtests and results must be quarantined. Includes the bug hand-off doc template (see references/BUG_TEMPLATE.md).

austin-starks/Public-Portfolio-Challenge

The mandatory pre-flight contract checks (Stage S0) that must pass before trusting NexusTrade's certification engine for any strategy work. Use at the start of a bakeoff or certification campaign to prove the walk-forward engine runs end-to-end, windows don't leak, fold winners persist, and the engine doesn't fabricate values for dead/not-yet-listed names. Each check has a STOP-and-report failure mode; these runs do NOT count toward any certification minimum.

austin-starks/Public-Portfolio-Challenge

The single-touch lockbox — a final anti-overfitting holdout run once, after design freeze, on a window held out from every fold, sweep, and search. Use when finalizing a bakeoff winner before deploy, setting up the A/B/C baselines as OOS bars, or running the S1.5 gate-coherence auto-relax. Covers why looking at the lockbox twice burns it, the lockbox pass conditions, and the three baselines. The lockbox is distinct from the walk-forward OOS folds.

austin-starks/Public-Portfolio-Challenge

The hard structural constraints for the Public Portfolio Challenge momentum-LEAP options book — the spread-shape rule, the take-profit convexity-cap footgun, the affordability ladder, and the known losers not to re-test. Use whenever building or auditing an options strategy structure, checking spread-shape compliance before a certification, choosing DTE/strike rungs, or deciding whether a proposed structure change is even allowed. A violation is an automatic certification FAIL.

austin-starks/Public-Portfolio-Challenge

Orchestrate an out-of-sample certification of a NexusTrade trading strategy or live book — the master discipline behind the Public Portfolio Challenge. Use whenever you must decide PASS/FAIL on whether a portfolio holds up out of sample before deploying real money, replaying the Episode 10 runbooks, or running a \"certify my book\" / \"prove it out of sample\" / \"re-certify the fix\" task with the NexusTrade MCP connected. Pulls in walk-forward-oos, breadth-audit, sweep-reoptimization, options-structure-rules, bug-protocol, and deploy-gate.

austin-starks/Public-Portfolio-Challenge

The single entry point that executes a Public Portfolio Challenge episode or addendum runbook end-to-end, delegating each stage to the functional skills. Use when asked to run/execute/replay Episode 10, its bakeoff, or its addendum with the NexusTrade MCP connected. Reads the target runbook, pins its real artifacts (IDs, the incumbent bar), sequences the stages, and stops at the gated deploy. It orchestrates; the functional skills do the work.

austin-starks/Public-Portfolio-Challenge

Run a multi-family strategy bakeoff — the SEARCH→CERTIFY funnel that screens many candidate mechanisms down to a certified deploy winner without letting the cheap search layer issue a verdict. Use when replaying the Episode 10 bakeoff, when exploring several distinct strategy families before certifying, when deciding whether \"no deployable winner\" is even a legal conclusion, or when building the per-family certification ledger. Enforces verdict-integrity: only certification can end a campaign.

austin-starks/Public-Portfolio-Challenge

Re-optimize a NexusTrade strategy with a walk-forward SWEEP and label parameter provenance — the discipline that prevents deploying inherited knobs. Use whenever a structural change (sizing, rung depth, universe membership, DTE family, adding a rank signal) forces a re-sweep, when authoring gene_intents from get_sweep_surface, when choosing sweep over GA for a deploy cert, or when selecting the cross-fold-robust winner instead of the per-fold argmax. Invoke with the NexusTrade MCP connected.

austin-starks/Public-Portfolio-Challenge

Run and read a NexusTrade walk-forward out-of-sample study — the certification engine behind the Public Portfolio Challenge. Use when certifying a fixed portfolio (backtest_only) or re-optimizing one (sweep), when setting fold_count / anchored / validation / embargo params, when monitoring a run_walk_forward_study to completion, when reading per-fold OOS returns/Sortino/drawdown, or when a variant's fold calendar needs calendar-alignment against a base control. Invoke with the NexusTrade MCP connected.

関連スキル