Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Superior-Trade/superior-skills --skill donchian-strong-regimegit clone --depth 1 https://github.com/Superior-Trade/superior-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/superior-trade/superior-skills/donchian-strong-regime)<a href="https://agentmods.dev/skills/superior-trade/superior-skills/donchian-strong-regime"><img src="https://agentmods.dev/badge/skills/superior-trade/superior-skills/donchian-strong-regime/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/superior-trade/superior-skills/donchian-strong-regime"><img src="https://agentmods.dev/badge/skills/superior-trade/superior-skills/donchian-strong-regime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.01985 |
| Opus 5 | $0.00042 | $0.00992 |
| Sonnet 5 | $0.00017 | $0.00397 |
| Haiku 4.5 | $0.00008 | $0.00198 |
Grade A, and why
donchian-strong-regime scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Donchian Strong-Regime Short
Trend-breakdown short, gated by a triple-confirmed strong-bear regime. Stays out of chop entirely. Validated on BTC/USDC:USDC over 162 days (2025-11-20 → 2026-05-01).
Searchable under: trend follower, breakdown, regime-gated, donchian short, structural break.
Backtest evidence
| Window | Trades | Win rate | Profit | Max DD |
|---|---|---|---|---|
| Full period (162d) | 6 | 100% | +6.69% | 0% |
| First-half / strong bear (82d) | 6 | 100% | +6.69% | 0% |
| Second-half / chop (80d) | 0 | — | 0% | 0% |
The triple-confirmation gate produced zero trades in the rangy second half — exactly the behavior a regime gate should produce. Every fired trade in the first half captured the trailing stop for profit.
Thesis
In a confirmed strong-bear regime (ema separation, ADX, recent momentum all aligned), a close below the 24-bar low (4 days of structure) reliably continues lower. The gate prevents the strategy from firing during sideways/rangy markets where the same signal mean-reverts.
Mechanics
- Pair: validated on BTC/USDC:USDC; expected to behave similarly on other deeply-liquid majors during their own confirmed bear regimes
- Timeframe: 4h (entry signal); 4h trend indicators (regime gate)
- Regime gate (ALL three required):
EMA50 / EMA200 - 1 < -0.06(≥6% separation = deep structural downtrend, not a fresh cross)ADX(14) > 25(trend strength confirmed)close.pct_change(30) < -0.10(last 30 bars = ~5 days, actual downside momentum)
- Entry (short):
close < lowest_24_bar_lowAND regime gate satisfied - Exit (any of):
close > highest_6_bar_high(24h ceiling break — local reversal)- 2 consecutive bars with
RSI > 55(sustained rebound) - Trailing stop fires (Phase 2 — see the
dsl-exit-engineskill)
- Stops: Phase 1 hard stop at -5%; Phase 2 trailing activates at +3%, trails 2% behind peak
Full strategy code
from freqtrade.strategy import IStrategy
import pandas as pd
import talib.abstract as ta
class DonchianStrongRegimeStrategy(IStrategy):
INTERFACE_VERSION = 3
timeframe = "4h"
can_short = True
stoploss = -0.05
trailing_stop = True
trailing_stop_positive = 0.02
trailing_stop_positive_offset = 0.03
trailing_only_offset_is_reached = True
minimal_roi = {"0": 100.0} # disable ROI; trailing + signal exits only
process_only_new_candles = True
startup_candle_count = 220
use_exit_signal = True
def populate_indicators(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
dataframe["lowest_24"] = dataframe["low"].rolling(24).min().shift(1)
dataframe["highest_6"] = dataframe["high"].rolling(6).max().shift(1)
dataframe["ema50"] = ta.EMA(dataframe, timeperiod=50)
dataframe["ema200"] = ta.EMA(dataframe, timeperiod=200)
dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14)
dataframe["adx"] = ta.ADX(dataframe, timeperiod=14)
dataframe["ema_sep"] = (
(dataframe["ema50"] - dataframe["ema200"]) / dataframe["ema200"]
)
dataframe["ret_30"] = dataframe["close"].pct_change(30)
dataframe["regime_strong"] = (
(dataframe["ema_sep"] < -0.06)
& (dataframe["adx"] > 25)
& (dataframe["ret_30"] < -0.10)
)
return dataframe
def populate_entry_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
cond = (
(dataframe["close"] < dataframe["lowest_24"])
& dataframe["regime_strong"]
)
dataframe.loc[cond, "enter_short"] = 1
dataframe.loc[cond, "enter_tag"] = "donchian_strong_bear"
return dataframe
def populate_exit_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
cond = (
(dataframe["close"] > dataframe["highest_6"])
| ((dataframe["rsi"] > 55) & (dataframe["rsi"].shift(1) > 55))
)
dataframe.loc[cond, "exit_short"] = 1
return dataframe
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago First seen · 160 lines · 84 tokens per session scan A f29fe40deb06
donchian-strong-regime is a skill published in the GitHub repository Superior-Trade/superior-skills (209 stars, last pushed 2d ago), licensed MIT. It adds 84 tokens to every session and 1,985 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
defi-yield
DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.
token-unlock-treasury
Token unlock schedule analysis and project treasury tracking — vesting cliffs, linear unlocks, team/investor/ecosystem token releases, treasury diversification, and sell pressure forecasting.
crypto-derivatives
Crypto-derivatives strategies — perpetual funding-rate arbitrage, futures term-structure contango/backwardation trading, and option volatility-smile / Greeks analysis.
onchain-analysis
On-chain data analysis — active addresses / whale tracking / TVL / DEX liquidity, interpretation and signal generation using on-chain valuation metrics such as MVRV / NVT / SOPR.
stablecoin-flow
Stablecoin supply and flow analysis — USDT/USDC mint-burn signals, exchange stablecoin reserves, on-chain stablecoin velocity, and capital rotation indicators for crypto market timing.
ccxt
CCXT unified crypto exchange library (100+ exchanges). Free public market data. Fallback when OKX is unavailable.