Individual skill
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.
skills/tradermonty__claude-trading-skills/skills/contrarian-setup-gate/SKILL.md
Source commit ef0e1b4c68405c56ca3e2a48f7ca415c4c01dc47
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 45
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- a-share Repository topic
- value-investing Repository topic
- agent-skills Repository topic
- akshare Repository topic
- awesome-list Repository topic
- chinese-stock Repository topic
- claude-code Repository topic
- quantitative-finance Repository topic
- stock-analysis Repository topic
- technical-analysis Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 9,779 bytesSKILL.mdcore · 9,779 bytesreferences/gate-decision-table.mddoc · 21,761 bytesscripts/gate_logic.pyruns · 41,092 bytesscripts/run_contrarian_setup_gate.pyruns · 16,087 bytesscripts/tests/conftest.pyruns · 226 bytesscripts/tests/test_gate_logic.pyruns · 53,627 bytesscripts/tests/test_run_contrarian_setup_gate.pyruns · 42,539 bytes
Read excerpt
# 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 `setup_status`, 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 WATCHING_PRICE or is REJECTED
- After running technical-analyst's contrarian-confirmation mode, to see whether the setup reaches READY_FOR_PLAN