Communitygithub.com

austin-starks/Public-Portfolio-Challenge

在信任 NexusTrade 的認證引擎進行任何策略工作之前,必須通過的強制性合約檢查(Stage S0)。在 bakeoff 或認證活動開始時使用,以證明 walk-forward 引擎能端到端執行、視窗不洩漏、折疊贏家能持久化,且引擎不會為已下市或尚未上市的股票捏造數值。每個檢查都具有 STOP 並回報故障模式;這些執行不計入任何認證最低要求。

Public-Portfolio-Challenge 是什麼?

此技能是 NexusTrade 認證管線中的強制性 Stage S0(引擎健全性檢查)。它由四個合約檢查組成,旨在驗證底層認證引擎的完整性,然後才允許任何策略設計工作。這些檢查包括端到端 walk-forward 掃描冒煙測試、確認視窗不重疊且結果可重現的視窗保真度檢查、驗證折疊贏家是否能持久化儲存為真實物件的持久化檢查,以及確保引擎不會為歷史範圍內未交易的股票傳回捏造資料的已下市/未上市名稱處理檢查。任何失敗都會觸發立即停止,並需要提交 bug-protocol 文件,因為故障表示引擎本身有缺陷,從而使所有下游結果無效。此技能是跨平台相關性最高的,因為它能確保任何依賴 NexusTrade 認證引擎的系統(如 Claude Code、Cursor、Codex 或自訂工具)在開始認證策略之前,其基礎基礎架構是健全的。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

引擎健全性檢查(Stage S0)

強制性;阻擋所有後續工作。 四個合約檢查,證明認證引擎在進行任何設計工作之前是可信任的。每個檢查都具有 STOP 並回報故障模式——此處的失敗表示引擎本身已損壞(bug-protocol),下游的任何數字都不可信賴。這些 S0 執行(以及 S1 基線評分)明確不計入認證主體的最低要求——它們是合約檢查和基準測試,而非候選認證。

四項檢查

  1. Walk-forward 掃描冒煙測試。 create_portfolio 一個簡單的投資組合(例如 SPY > SMA50)。使用 mode:"validation"、fold_count:2、engine_kind:"sweep"、一個 gene_intent × 3 個值、certification:false 來執行 run_walk_forward_study。它必須啟動並完成,並提供每個折疊的 OOS + 匯總結果。 證明:認證引擎實際能端到端執行。

  2. 視窗保真度(一個折疊)。 在其驗證和 OOS 視窗上回測具體化的折疊贏家;該折疊的 validationStatistics / oosStatistics 必須在四捨五入範圍內與獨立回測結果相符。確認不重疊:訓練∩驗證、訓練∩OOS、驗證∩OOS 皆為空,且 OOS 在驗證結束後開始。 證明:walk-forward 視窗沒有洩漏。

  3. 持久化。 get_walk_forward_study_results 為每個完成的折疊傳回一個真實的 selectedChatPortfolioId。 證明:折疊贏家具體化為你可以檢查/部署的真實物件。

  4. 已下市名稱處理。 在包含當時尚未上市的名稱(例如 SNDK)的完整股票池上,執行一個小小的 2022 年視窗回測。通過: 該名稱不存在,或出現在未上市拒絕清單中,且沒有偽造的價格/指標數值。失敗: 引擎報錯,或為未交易的任何名稱傳回任何非空讀數。 證明:引擎不會為尚未上市的名稱捏造資料。

失敗時該如何處理

任何 S0 檢查失敗 → STOP,歸檔 bug-protocol 交接文件,且不要繼續進行設計工作。損壞的引擎會使下游的一切無效;在其上認證策略是沒有意義的。

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.

相關技能