deploy-gate
Skill82 starsChanged 3 months agoMITView on GitHub
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.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dkpapadopoulos/auto-claude-skillstheir own version, first seen Sep 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dkpapadopoulos/auto-claude-skills★ 6same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- skills/alt-data-indicators/AGENTS.mdAGENTS.md
- skills/breadth-audit/AGENTS.mdAGENTS.md
- skills/bug-protocol/AGENTS.mdAGENTS.md
- skills/deploy-gate/AGENTS.mdAGENTS.md
- skills/engine-sanity/AGENTS.mdAGENTS.md
- skills/lockbox-holdout/AGENTS.mdAGENTS.md
- skills/options-structure-rules/AGENTS.mdAGENTS.md
- skills/portfolio-certification/AGENTS.mdAGENTS.md
- skills/run-episode/AGENTS.mdAGENTS.md
- skills/strategy-bakeoff/AGENTS.mdAGENTS.md
- skills/sweep-reoptimization/AGENTS.mdAGENTS.md
- skills/walk-forward-oos/AGENTS.mdAGENTS.md
- alt-data-indicatorsSkill
- breadth-auditSkill
- bug-protocolSkill
- engine-sanitySkill
- lockbox-holdoutSkill
- options-structure-rulesSkill
- portfolio-certificationSkill
- run-episodeSkill
- strategy-bakeoffSkill
- sweep-reoptimizationSkill
- walk-forward-oosSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Stale pending orders FIRST: Check the live book for pending/Pending User Approval → Canceled orders — they block new staging.
- Very specific: line 57
Default mode: "delta". Only use "liquidate_all" if the human explicitly asks for a clean cost-basis reset.
- Distinctive: line 59
Never run this without an explicit go for that specific finalist.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy Gate (Stage E — GATED)
Nothing deploys and no orders are placed until the human explicitly says "deploy + clean up" and names the specific finalist. This skill only runs then. Goal: make the live positions equal a fresh deploy of the chosen finalist today via delta trades (don't round-trip overlaps).
Pre-deploy gates (hard)
- Signal-freshness gate. A finalist whose alt-data series does not extend to the present with a working refresh path may NOT deploy, whatever its cert says — a stale rank series is a dead book.
- Stale pending orders FIRST. Check the live book for pending/
Pending User Approval → Canceledorders — they block new staging. Surface them; the human cancels in the UI. NoteautomaticOrderApprovalstate (default: leave as-is unless told to flip it at deploy).
The five steps
- Clone the finalist onto the live book FIRST —
clone_strategies_to_portfolio(source = finalist, target = live book), then field-verify the clone. This IS the "deploy": it sets the live book's strategies that the next step reconciles against.reconcile_portfolio_to_strategyhas nostrategy_sourcearg — it reconciles the live book against its own strategies, so the clone must happen first. If the finalist is the already-deployed live book unchanged, no clone is needed — say so. - Reconcile preview —
reconcile_portfolio_to_strategy({ portfolio_id: "<live>", mode: "delta" }). Preview-only — it never places orders. Returnstarget,current,orders(already increate_ordersshape), estimated cost, realized P&L, and wash-sale flags. Expect a single-tick target — the live strategy accretes the rest over daily rebalances. Say so; don't re-diagnose it as a bug. - Show the human the preview and get explicit approval. Sanity-check: orders touch only the delta
(overlaps untouched), costs sane,
target== a fresh deploy, and — for a participation fix — the target spans multiple names, not just one. - Stage the orders —
create_orders({ portfolio_id: "<live>", orders: <the orders array from step 2> }). Staged UNAPPROVED; the tool never submits to the broker. The human approves them manually in the NexusTrade UI — there is no approval tool and you cannot approve them. Options auto-stage as LIMIT. - Verify after fills — re-run the reconcile preview; the delta
ordersarray should be ~empty. Report fills, any remainder, realized P&L, wash-sale flags, and the resulting live participation (distinct names held).
Rules
- Default
mode: "delta". Only use"liquidate_all"if the human explicitly asks for a clean cost-basis reset. - Never run this without an explicit go for that specific finalist.
- Discover the live target via
fetch_portfolioswhen it isn't already pinned in the run — never hardcode a live portfolio id you haven't confirmed by field/posture. - On sign-off, re-attach any weekly monitor agent the deploy expects.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

