Communitygithub.com

austin-starks/Public-Portfolio-Challenge

NexusTradeの認定エンジンを信頼する前に合格しなければならない必須の事前契約チェック(ステージS0)です。ベイクオフや認定キャンペーンの開始時に使用し、ウォークフォワードエンジンがエンドツーエンドで動作すること、ウィンドウがリークしないこと、フォールド勝者が永続化されること、そしてエンジンが未上場銘柄に対して値を捏造しないことを証明します。各チェックには停止して報告する障害モードがあり、これらの実行は認定最小回数にはカウントされません。

Public-Portfolio-Challenge とは?

このスキルは、NexusTradeの認定エンジンの信頼性を検証するための必須の事前契約チェック(ステージS0)を提供します。ベイクオフや認定キャンペーンの開始時に、ウォークフォワードエンジンが正しく動作することを確認するための4つのチェックが含まれています。チェックには、ウォークフォワードスイープスモークテスト、ウィンドウの忠実性テスト、フォールド勝者の永続性テスト、および未上場銘柄のハンドリングテストが含まれます。各チェックは「停止して報告」の障害モードを持ち、失敗した場合はエンジン自体にバグがあることを示すため、下流のすべての作業が無効になります。このスキルは主にNexusTradeプラットフォーム上で使用され、設計作業を開始する前にエンジンの健全性を保証します。

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

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

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

ドキュメント

エンジン健全性チェック(ステージS0)

必須です。すべてをブロックします。 設計作業を開始する前に認定エンジンが信頼できることを証明する4つの契約チェックです。各チェックには「停止して報告」の障害モードがあります。ここで失敗した場合は、エンジン自体が壊れていることを意味し(バグプロトコル)、下流のどの数値も信頼できません。これらのS0実行(およびS1ベースラインスコアリング)は、認定機関の最小回数に明示的にカウントされません。これらは契約チェックおよびベンチマークであり、候補認定ではありません。

4つのチェック

  1. ウォークフォワードスイープスモークテスト。 create_portfolio で簡単なブック(例:SPY > SMA50)を作成します。run_walk_forward_study を mode:"validation"、fold_count:2、engine_kind:"sweep"、1つの gene_intent × 3つの値、certification:false で実行します。フォールドごとのOOS + 集計とともに開始および完了する必要があります。 証明:認定エンジンが実際にエンドツーエンドで実行されること。

  2. ウィンドウの忠実性(1フォールド)。 具体化されたフォールド勝者をそのバリデーションウィンドウとOOSウィンドウでバックテストします。フォールドの validationStatistics / oosStatistics はスタンドアロンのバックテストと丸め誤差範囲内で一致する必要があります。非交差性を確認します。トレーニング∩バリデーション、トレーニング∩OOS、バリデーション∩OOSはすべて空で、OOSはバリデーション終了後に開始する必要があります。 証明:ウォークフォワードウィンドウがリークしていないこと。

  3. 永続性。 get_walk_forward_study_results は、完了したすべてのフォールドに対して実際の selectedChatPortfolioId を返します。 証明:フォールド勝者は検査/デプロイ可能な実際のオブジェクトとして具体化されること。

  4. 未上場銘柄の処理。 当時まだ上場していなかった銘柄(例:SNDK)を含む全ユニバースに対して、小さな2022年ウィンドウのバックテストを実行します。合格: その銘柄が存在しないか、まだ上場していない拒否リストに表示され、捏造された価格/インジケーター値がないこと。不合格: エンジンがエラーになるか、取引されていない銘柄に対してnullでない値を返すこと。 証明:エンジンが未上場銘柄のデータを捏造しないこと。

失敗時

S0のチェックに失敗した場合 → 停止し、バグプロトコルの引継ぎドキュメントを提出し、設計作業に進まないでください。エンジンが壊れていると、下流のすべてが無効になります。そのエンジンで戦略を認定する意味はありません。

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 GATED deploy + cleanup flow for a NexusTrade live book — clone the finalist, preview a delta reconcile, stage UNAPPROVED orders, verify fills. Use ONLY after the human explicitly says \"deploy + clean up\" and names a finalist. Covers the clone-before-reconcile ordering, the single-tick reconcile expectation, stale-pending-order hygiene, the signal-freshness gate, and why you can never approve orders yourself. Nothing here runs during certification.

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.

関連スキル