Communitygithub.com

austin-starks/Public-Portfolio-Challenge

NexusTrade 인증 엔진을 신뢰하기 전에 반드시 통과해야 하는 필수 사전 계약 검사(Stage S0)입니다. 베이크오프 또는 인증 캠페인 시작 시, 워크포워드 엔진이 종단 간 실행되고, 윈도우 누수가 없으며, 폴드 승자가 유지되고, 엔진이 상장 폐지/미상장 종목에 대해 값을 조작하지 않음을 증명하는 데 사용하세요. 각 검사는 중단 및 보고 실패 모드를 가지며, 이러한 실행은 인증 최소 기준에 포함되지 않습니다.

Public-Portfolio-Challenge란 무엇인가요?

이 스킬은 NexusTrade 인증 엔진의 무결성을 보장하기 위한 4가지 필수 사전 검사(Stage S0) 모음입니다. 각 검사는 중단 및 보고(STOP-and-report) 실패 모드를 가지며, 실패 시 엔진 자체에 버그가 있음을 의미하므로 모든 후속 작업이 무효화됩니다. Cursor, Claude Code, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, 베이크오프 또는 인증 캠페인 시작 시 반드시 실행해야 합니다. 검사 대상은 워크포워드 스윕 연기 테스트, 윈도우 누수 확인, 폴드 승자의 지속성 검증, 그리고 미상장 종목에 대한 데이터 조작 방지 등입니다. S0 실행은 인증 최소 기준에 포함되지 않으며, 순수하게 엔진 신뢰성 검증을 위한 계약 검사입니다.

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

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

엔진 무결성 검사 (Stage S0)

필수; 모든 작업을 차단합니다. 설계 작업 전에 인증 엔진이 신뢰할 수 있음을 증명하는 4가지 계약 검사입니다. 각 검사는 중단 및 보고 실패 모드를 가집니다. 실패는 엔진 자체에 결함이 있음을 의미하며(버그 프로토콜), 이후의 모든 수치는 신뢰할 수 없습니다. 이러한 S0 실행(및 S1 기준 점수 매기기)은 명시적으로 인증 기관 최소 기준에 포함되지 않습니다 — 이는 계약 검사 및 벤치마크이며, 후보 인증이 아닙니다.

네 가지 검사

  1. 워크포워드 스윕 연기 테스트. 간단한 장부(예: SPY > SMA50)로 create_portfolio를 실행합니다. mode:"validation", fold_count:2, engine_kind:"sweep", 하나의 gene_intent × 3개 값, certification:false로 run_walk_forward_study를 실행합니다. 폴드별 OOS + 집계와 함께 시작 및 완료되어야 합니다. 증명: 인증 엔진이 종단 간 실제로 실행됩니다.

  2. 윈도우 정확성(단일 폴드). 구체화된 폴드 승자를 검증 및 OOS 윈도우에서 백테스트합니다. 폴드의 validationStatistics / oosStatistics가 독립 백테스트와 반올림 오차 내에서 일치해야 합니다. 분리성 확인: train∩validation, train∩OOS, validation∩OOS 모두 비어 있고, OOS는 validation 종료 후에 시작됩니다. 증명: 워크포워드 윈도우가 누수되지 않습니다.

  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.

관련 스킬