Communitygithub.com

austin-starks/Public-Portfolio-Challenge

Fluxo GATED de deploy + limpeza para um livro ativo do NexusTrade — clone o finalista, visualize uma reconciliação delta, prepare ordens NÃO APROVADAS, verifique execuções. Use APENAS após o humano dizer explicitamente "deploy + clean up" e nomear um finalista. Abrange a ordenação clone-antes-reconciliação, a expectativa de reconciliação de um único tick, a higiene de ordens pendentes obsoletas, a verificação de frescor do sinal e por que você nunca pode aprovar ordens por conta própria. Nada aqui é executado durante a certificação.

O que é Public-Portfolio-Challenge?

Este skill define o estágio final e rigorosamente controlado (Estágio E — GATED) do fluxo de deploy da NexusTrade. Ele só pode ser acionado após uma instrução verbal explícita do humano, como "deploy + clean up" seguido do nome do finalista. O objetivo é alinhar as posições do livro ativo a uma implantação fresca do finalista escolhido, usando apenas trades delta para evitar idas e vindas desnecessárias. O skill impõe pré-requisitos críticos, como a verificação de frescor do sinal (série de dados alternativos atualizada) e a limpeza de ordens pendentes que bloqueiam o preparo de novas ordens. O fluxo de cinco etapas inclui: clonar as estratégias do finalista no livro ativo, gerar uma prévia de reconciliação delta (que nunca coloca ordens), apresentar a prévia ao humano para aprovação explícita, preparar as ordens como NÃO APROVADAS (para que o humano as aprove manualmente na interface da NexusTrade) e, por fim, verificar as execuções. É um skill de plataforma única, específico para a NexusTrade, que garante segurança e controle humano total sobre as operações do livro ativo.

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

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Portão de Deploy (Estágio E — GATED)

Nada é implantado e nenhuma ordem é colocada até que o humano diga explicitamente "deploy + clean up" e nomeie o finalista específico. Este skill só é executado nesse momento. Objetivo: tornar as posições do livro ativo iguais a uma implantação fresca do finalista escolhido hoje por meio de trades delta (não refaça caminhos já cobertos).

Portões de pré-deploy (rígidos)

  1. Portão de frescor do sinal. Um finalista cuja série de dados alternativos não se estende até o presente com um caminho de atualização funcional NÃO pode ser implantado, independentemente do que sua certificação diga — uma série de classificação desatualizada é um livro morto.
  2. Ordens pendentes obsoletas PRIMEIRO. Verifique o livro ativo em busca de ordens pendentes/Pending User Approval → Canceled — elas bloqueiam o novo preparo. Exiba-as; o humano as cancela na interface. Anote o estado de automaticOrderApproval (padrão: deixe como está, a menos que seja instruído a alterá-lo no deploy).

As cinco etapas

  1. Clone o finalista no livro ativo PRIMEIRO — clone_strategies_to_portfolio (origem = finalista, destino = livro ativo), em seguida, verifique o clone em campo. Este É o "deploy": ele define as estratégias do livro ativo contra as quais a próxima etapa faz a reconciliação. reconcile_portfolio_to_strategy não tem um argumento strategy_source — ela reconcilia o livro ativo contra suas próprias estratégias, portanto o clone deve acontecer primeiro. Se o finalista for o livro ativo já implantado sem alterações, nenhum clone é necessário — diga isso.
  2. Prévia de reconciliação — reconcile_portfolio_to_strategy({ portfolio_id: "<live>", mode: "delta" }). Apenas prévia — ela nunca coloca ordens. Retorna target, current, orders (já no formato de create_orders), custo estimado, P&L realizado e flags de wash-sale. Espere um alvo de um único tick — a estratégia ativa acumula o restante ao longo dos rebalanceamentos diários. Diga isso; não rediagnostique como um bug.
  3. Mostre a prévia ao humano e obtenha aprovação explícita. Verificação de sanidade: as ordens tocam apenas o delta (sobreposições intactas), custos dentro do esperado, target == uma implantação fresca e — para uma correção de participação — o alvo abrange vários nomes, não apenas um.
  4. Prepare as ordens — create_orders({ portfolio_id: "<live>", orders: <o array de ordens da etapa 2> }). Preparadas como NÃO APROVADAS; a ferramenta nunca as submete à corretora. O humano as aprova manualmente na interface da NexusTrade — não há ferramenta de aprovação e você não pode aprová-las. Opções são preparadas automaticamente como LIMIT.
  5. Verifique após as execuções — execute novamente a prévia de reconciliação; o array de ordens orders delta deve estar ~vazio. Relate execuções, eventuais remanescentes, P&L realizado, flags de wash-sale e a participação ativa resultante (nomes distintos mantidos).

Regras

  • Padrão mode: "delta". Use "liquidate_all" apenas se o humano pedir explicitamente uma reinicialização limpa da base de custo.
  • Nunca execute isso sem uma autorização explícita para aquele finalista específico.
  • Descubra o alvo ativo via fetch_portfolios quando ele ainda não estiver fixado na execução — nunca codifique um ID de portfólio ativo que você não tenha confirmado por campo/postura.
  • Ao finalizar, reconecte qualquer agente de monitoramento semanal que o deploy espera.

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.

Habilidades Relacionadas