Communitygithub.com

austin-starks/Public-Portfolio-Challenge

Ejecuta una competencia entre estrategias multi-familia: el proceso SEARCH→CERTIFY que evalúa múltiples mecanismos candidatos hasta certificar un ganador desplegable, sin permitir que la capa de búsqueda barata emita un veredicto. Útil para reproducir la competencia del Episodio 10, explorar varias familias de estrategias distintas antes de certificar, decidir si 'no hay ganador desplegable' es una conclusión legal, o construir el libro de certificación por familia.

¿Qué es Public-Portfolio-Challenge?

Este skill implementa un proceso de evaluación de estrategias de dos capas (SEARCH→CERTIFY) para el desarrollo de carteras de opciones. La capa SEARCH, más barata, utiliza herramientas como backtest_portfolio, create_portfolio_variant, optimize_portfolio y systematic_sweep para matar o promover ideas, pero nunca puede emitir un veredicto final. La capa CERTIFY, más robusta, realiza certificaciones walk-forward sobre las semillas promovidas y es la única que puede concluir PASS/FAIL o 'sin ganador desplegable'. El skill impone un mínimo de 3 familias de mecanismos distintos certificados antes de un veredicto de 'sin ganador', con hasta 3 intentos de certificación por familia. Además, incluye reglas de integridad del veredicto para evitar conclusiones inválidas o generalizaciones incorrectas, asegurando que cada decisión esté respaldada por evidencia de estudio y atribución clara de restricciones vinculantes. Está diseñado para plataformas como Claude Code que permiten ejecutar sweeps sistemáticos y certificaciones walk-forward, y su documentación detalla el proceso completo, incluyendo tablas de registro y criterios de aprobación.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/austin-starks/Public-Portfolio-Challenge/tree/HEAD/skills/strategy-bakeoff

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Competencia de Estrategias Multi-Familia

Un proceso de dos capas SEARCH → CERTIFY con un mínimo obligatorio de trabajo. La regla central: un veredicto está PROHIBIDO desde la capa de búsqueda. Solo la certificación walk-forward (walk-forward-oos) puede finalizar la campaña.

Dos herramientas, dos trabajos

  • Capa SEARCH (barata): backtest_portfolio, create_portfolio_variant, optimize_portfolio, systematic_sweep. Solo puede MATAR o PROMOVER una idea hacia la certificación. Genera "un conjunto clasificado de SEMILLAS" y nunca puede emitir un veredicto.
  • Capa CERTIFY (trabajo pesado): certificación walk-forward sweep sobre las semillas promovidas. Solo esta capa puede concluir PASAR / FALLAR o "sin ganador desplegable."

systematic_sweep sobre la cuadrícula despliegue × estructura × DTE × delta es obligatorio en la capa de búsqueda antes de que cualquier vecindario sea declarado muerto.

El cuerpo mínimo obligatorio

  • ≥ 3 familias de mecanismos distintos certificadas antes de cualquier veredicto de "sin ganador". Mecanismos genuinamente diferentes, no tres ajustes de una misma familia. Menú de familias (elige ≥3): (a) llamadas largas/verticales de impulso; (b) cambio de régimen largo/plano; (c) crédito definido/prima corta (gana en mercado plano/bajista); (d) calendario/diagonal diferencial de tiempo; (e) collar protector o diferencial de venta financiado para largos.
  • Hasta 3 intentos de certificación por familia (re-sweep desde una SEMILLA limpia con gene_intents refinados, cuadrícula más profunda o validación más amplia) antes de que una familia sea "agotada."
  • Total realista: ~3–9 sweeps de certificación, más la certificada incumbente como semilla.
  • Cada sweep no trivial: ≥3 ejes de gene_intents × ≥3 valores cada uno (consulta sweep-reoptimization para las asignaciones de campo exactas). Un sweep de 1 eje o 2 valores NO califica.

Libro de certificación por familia (obligatorio)

Registra esta tabla en el registro de ejecución — una familia sin fila en el libro NO fue explorada:

| Familia | ID de semilla | get_sweep_surface ✓ | ejes de gene_intents | ID de estudio | clave crossFoldRobustSelection | ID del libro ensamblado | Resultado de puerta OOS por pliegue | PROMOVER / MATAR (razón) |

Bucle de certificación por semilla

get_sweep_surface → run_walk_forward_study (preview_only primero) → leer aggregate.crossFoldRobustSelection → ensamblar el libro en forma de despliegue → evaluar en el objeto ensamblado → escribir la fila del libro. Umbrales de certificación (certification:true): participación ≥ 0.35, nombres distintos ≥ 9, rendimiento de validación ≥ 0, ratio Sortino de validación ≥ 0.5.

Reglas de integridad del veredicto (la disciplina central de la campaña)

  • Cero certificaciones optimizadas = INVÁLIDO, no "un honesto sin despliegue." Emitir cualquier veredicto — especialmente "sin ganador desplegable" / "inviabilidad estructural" — sin que las certificaciones optimizadas se hayan ejecutado en semillas candidatas hace que la campaña sea INVÁLIDA. (Una ejecución previa declaró inviabilidad habiendo ejecutado CERO certificaciones optimizadas.)
  • Sin afirmación de inviabilidad desde N puntos construidos manualmente — debe citar systematic_sweep + el cuerpo de ≥3 familias y nombrar la ÚNICA puerta vinculante por familia con evidencia de ID de estudio.
  • Un contraejemplo en tus propios datos prohíbe una afirmación general de inviabilidad — localiza la restricción vinculante, no generalices.
  • Atribución de restricción vinculante: cada muerte nombra la única puerta fallida + evidencia certificada. "Generalmente tuvo un rendimiento inferior" no es una razón de muerte.
  • Un cambio de mecanismo por candidato — para que una muerte/promoción se atribuya limpiamente.
  • Coherencia de remedio: un remedio propuesto no debe contradecir el estado medido del candidato muerto (no propongas "aumentar el despliegue" para un libro que falló bajo el límite de postura; no propongas "agregar convexidad" para uno que falló por reducción máxima).

Consulta reglas-de-estructura-de-opciones para la ruta de muerte de la escalera de asequibilidad y los perdedores conocidos, y caja-fuerte-holdout para las líneas base (A/B/C) y la confirmación final de un solo toque.

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 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

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.

Skills relacionados