Agent skill · data analytics · tradermonty

contrarian-setup-gate

Synthesize the three Jason Shapiro contrarian-pipeline verdicts (COT crowding, news-reaction failure, weekly price-action confirmation) into one actionable setup_status via a fail-closed precedence state machine. Pure, offline synthesis -- no network, no API keys, no computation beyond validation and precedence.

Why this skill is useful

Adds a specialized synthesis mechanism for contrarian trading analysis that combines multiple JSON reports into actionable insights.

What it needs

Requires python installed locally. About 5k tokens when loaded. Last updated 2026-08-06. 2,581 stars on the source repository.

What this skill does

Contrarian Setup Gate Overview Synthesize the outputs of Jason Shapiro's 3-step contrarian process into one actionable state. cot-contrarian-detector (step 1) flags crowded positioning, news-reaction-failure-analyzer (step 2) tests whether the market failed to react to news favorable to the crowd, and technical-analyst's contrarian-confirmation mode (step 3) confirms weekly price-action evidence of a reversal. This gate reads those three report JSONs and applies an explicit, exhaustively-tested precedence rule set to produce one setupstatus, with a fail-closed reason attached to every input that could not be confirmed. The gate does no fetching, no API calls, and no computation beyond validating and combining the three inputs it is given. It is the pipeline's synthesis center, not a data source. When to Use After running cot-contrarian-detector (always required -- this is the pipeline's entry point) Mid-pipeline, with only the detector report, to see the CROWDED state and what steps remain After running news-reaction-failure-analyzer, to see whether the setup advances to WATCHINGPRICE or is REJECTED After running technical-analyst's contrarian-confirmation mode, to see whether the setup reaches READYFORPLAN Before handing a symbol's direction and stop level to a position-sizing skill Prerequisites Python 3.9+ No API keys -- this skill is fully offline A cot-contrarian-detector JSON report for the symbol under evaluation (required) Optionally, a news-reaction-failure-analyzer JSON report for the same symbol (step 2) Optionally, a technical-analyst contrarian-confirmation JSON report for the same symbol (step 3) Workflow Step 1: Run the Gate --symbol and --detector-json are required; --news-json and --price-action-json are optional -- omit either to see the state at that pipeline stage. --as-of is required (no implicit "today"): staleness is always evaluated against an explicit reference date so reruns are deterministic. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills tradermonty/contrarian-setup-gate

View the source on GitHub

Browse the @skills marketplace