Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计提醒

mambamamba 命令行

Agent Skill

mamba 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

494

周安装

20

GitHub Stars

75

下载量

155
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mamba(mamba 命令行)
来源仓库:https://github.com/senpi-ai/senpi-skills
仓库路径:skills/mamba
安装命令:
npx skills add https://github.com/senpi-ai/senpi-skills --skill mamba
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/senpi-ai/senpi-skills --skill mamba

简介

mamba 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 当前分类为待分类,暂无更详细说明可供参考。

SKILL.md

🐍 MAMBA v2.0 — Range-Bound High Water + Regime Protection

A trading strategy (config override) based on the VIPER skill. Same scanner, same range detection, same support/resistance entries. Three new protective gates from v1.0 live data (37 trades, -31.4% ROI, $136 in fees).

Base skill: VIPER v2.1

What v2.0 Fixes

MAMBA v1.0 lost -$313 on $1,000. The post-mortem revealed three distinct failure modes:

FailureTradesLossFix
Longs in a downtrend (GOLD, PAXG, XYZ100, COPPER)14-$70+BTC regime gate
Same asset re-entered after losses (GOLD 5x, PAXG 4x, XYZ100 5x)~14-$80+4-hour per-asset cooldown
15x desperation bets (BTC, XRP)2-$12610x leverage hard cap

The 9 winning trades (+$143) proved the mean-reversion signal works. The losses came from entering that signal in conditions where mean reversion can't work (trending market, same broken setup, excessive leverage).

v2.0 Changes — Three Protective Gates

Gate 1: BTC Regime Filter (NEW — hard block)

Before any entry, check BTC 4H trend structure:

  • BTC 4H BEARISH → block all LONG entries. Mean reversion longs in a bear market = buying a dip that keeps dipping. This was trades #21-34.
  • BTC 4H BULLISH → block all SHORT entries. Mean reversion shorts in a bull market = shorting a rip that keeps ripping.
  • BTC 4H NEUTRAL → both directions allowed. Range-bound macro = range-bound entries work.

Implementation: The agent must call market_get_asset_data for BTC with candle_intervals: ["4h"] before executing any Mamba entry. Check the last 6 candles for higher lows (bullish) or lower highs (bearish). If the regime opposes the signal direction, skip the entry entirely.

This is the single highest-impact change. It would have prevented 14+ losing trades.

Gate 2: Per-Asset Cooldown After Losses (NEW — 4 hours)

After any losing exit on an asset, that specific asset is blocked for 4 hours.

  • GOLD exits at a loss → no GOLD entries for 4 hours
  • Other assets unaffected
  • After 4 hours, if the setup appears again with the regime gate passing, it's a valid fresh entry

Why 4 hours (not 2 like Vixen): Mean-reversion setups take longer to reset than momentum setups. The range needs to re-establish after a breakdown. 4 hours gives enough time for the failed level to either confirm as broken (asset keeps trending) or rebuild (new range forms).

Implementation: The agent tracks {asset: exitTimestamp} in state. Before executing, check if the asset has a losing exit within the last 4 hours.

Gate 3: Hard Leverage Cap at 10x (NEW)

  • Maximum leverage: 10x. No exceptions.
  • Default leverage: 8x. This is what v1.0 used on most trades and it's appropriate for mean-reversion.
  • Never exceed 10x. The 15x BTC/XRP shorts lost -$126 combined. Mean reversion captures small moves back to the mean — it doesn't need high leverage.

Implementation: If the agent computes leverage > 10x for any reason, cap it at 10.

MANDATORY: DSL High Water Mode

MAMBA MUST use DSL High Water Mode. This is not optional.

Spec: https://github.com/Senpi-ai/senpi-skills/blob/main/dsl-dynamic-stop-loss/dsl-high-water-spec%201.0.md

{
  "lockMode": "pct_of_high_water",
  "phase2TriggerRoe": 5,
  "tiers": [
    {"triggerPct": 5,  "lockHwPct": 30, "consecutiveBreachesRequired": 3},
    {"triggerPct": 10, "lockHwPct": 50, "consecutiveBreachesRequired": 2},
    {"triggerPct": 15, "lockHwPct": 70, "consecutiveBreachesRequired": 2},
    {"triggerPct": 20, "lockHwPct": 85, "consecutiveBreachesRequired": 1}
  ]
}

Config Override File (v2.0)

{
  "basedOn": "viper-2.1",
  "version": "2.0",
  "name": "Mamba",
  "description": "Range-bound entries + High Water trailing + regime protection + per-asset cooldown",

  "entry": {
    "maxBbWidthPct": 4.0,
    "maxAtrPct": 1.5,
    "rsiOversold": 35,
    "rsiOverbought": 65,
    "minScore": 5,
    "marginPct": 0.28,
    "minOiUsd": 5000000,
    "regimeFilter": {
      "enabled": true,
      "asset": "BTC",
      "interval": "4h",
      "lookback": 6,
      "blockLongsInBearish": true,
      "blockShortsInBullish": true,
      "_note": "Check BTC 4H trend before every entry. Block counter-trend mean reversion."
    },
    "assetCooldown": {
      "enabled": true,
      "cooldownMinutesAfterLoss": 240,
      "_note": "4-hour cooldown per asset after a losing exit. Mean reversion needs time to reset."
    },
    "bannedPrefixes": ["xyz:"],
    "_note_banned": "XYZ equities (GOLD, PAXG, NVDA, etc.) accounted for -$80+ in v1.0 losses. SM data is weak for equities on Hyperliquid. Ban until proven otherwise."
  },

  "leverage": {
    "default": 8,
    "min": 5,
    "max": 10,
    "_note": "Hard cap at 10x. Mean reversion captures small moves — doesn't need 15x. The 15x BTC/XRP shorts lost -$126."
  },

  "dsl": {
    "_spec": "https://github.com/Senpi-ai/senpi-skills/blob/main/dsl-dynamic-stop-loss/dsl-high-water-spec%201.0.md",
    "lockMode": "pct_of_high_water",
    "phase2TriggerRoe": 5,
    "phase1RetraceRoe": 10,
    "phase1HardTimeoutMin": 0,
    "phase1WeakPeakMin": 0,
    "phase1DeadWeightMin": 0,
    "convictionTiers": [
      {"minScore": 5, "absoluteFloorRoe": -15, "hardTimeoutMin": 0, "weakPeakCutMin": 0, "deadWeightCutMin": 0},
      {"minScore": 7, "absoluteFloorRoe": -20, "hardTimeoutMin": 0, "weakPeakCutMin": 0, "deadWeightCutMin": 0},
      {"minScore": 9, "absoluteFloorRoe": 0,   "hardTimeoutMin": 0, "weakPeakCutMin": 0, "deadWeightCutMin": 0}
    ],
    "tiers": [
      {"triggerPct": 5,  "lockHwPct": 30, "consecutiveBreachesRequired": 3},
      {"triggerPct": 10, "lockHwPct": 50, "consecutiveBreachesRequired": 2},
      {"triggerPct": 15, "lockHwPct": 70, "consecutiveBreachesRequired": 2},
      {"triggerPct": 20, "lockHwPct": 85, "consecutiveBreachesRequired": 1}
    ],
    "stagnationTp": {
      "enabled": true,
      "roeMin": 8,
      "hwStaleMin": 45
    }
  },

  "risk": {
    "maxEntriesPerDay": 6,
    "maxDailyLossPct": 8,
    "maxDrawdownPct": 18,
    "maxSingleLossPct": 5,
    "maxConsecutiveLosses": 3,
    "cooldownMinutes": 30
  },

  "execution": {
    "entryOrderType": "FEE_OPTIMIZED_LIMIT",
    "entryEnsureTaker": true,
    "exitOrderType": "MARKET",
    "slOrderType": "MARKET",
    "takeProfitOrderType": "FEE_OPTIMIZED_LIMIT"
  }
}

Key Changes from v1.0

Settingv1.0v2.0Impact
BTC regime gateNoneHard blockPrevents longs in bear, shorts in bull
Per-asset cooldownNone4 hours after lossPrevents re-entering failed setups
Leverage capUncapped (agent went to 15x)Hard cap 10x, default 8xEliminates desperation bets
XYZ equitiesAllowedBannedRemoves -$80+ in weak-SM-data losses
Max entries/day86Fewer trades, less fee drag
Max consecutive losses43Faster cooldown trigger
Cooldown after consecutive losses20 min30 minMore recovery time

v1.0 → v2.0 Simulated Impact

Applying v2.0 rules retroactively to v1.0's 37 trades:

v1.0 (actual)v2.0 (simulated)
Trades taken37~15-18 (regime gate + cooldown blocks ~20 trades)
Fees$136~$55-65
Worst lossesBTC 15x (-$65), XRP 15x (-$61)Blocked (leverage cap + regime gate)
GOLD/PAXG/XYZ100 repeat losses-$80+Blocked after first loss (cooldown)
Winners preserved9 wins (+$143)7-8 wins preserved ($120-130)
Estimated net-$313~+$30 to +$60

The 9 winning trades were mostly early-session shorts during neutral/bearish conditions — they'd pass the regime gate. Most of the 28 losers were longs during bearish conditions or repeat entries on the same failing asset — they'd be blocked.

Agent Instructions (v2.0 Entry Checklist)

Before executing any Mamba entry, the agent MUST check ALL of these in order:

  1. Leverage ≤ 10x? If not, cap at 10x. If exchange max is below 5x, skip entirely.
  2. Asset banned? If it starts with xyz:, skip.
  3. Asset in cooldown? Check state for losing exit within last 4 hours. If yes, skip.
  4. BTC regime allows this direction? Fetch BTC 4H candles, check trend. Bearish = no longs. Bullish = no shorts. Neutral = both OK.
  5. All standard Viper entry gates pass? BB width, ATR, RSI, volume, score.
  6. Slot available? Max 3 positions.
  7. Daily entry limit? Max 6/day.

If ALL pass → enter. If any fails → skip, NO_REPLY.

Notification Policy

ONLY alert: Position OPENED or CLOSED, risk guardian triggered, critical error. NEVER alert: Scanner found nothing, regime gate blocked, cooldown blocked, DSL routine check, any reasoning.

Expected Behavior (v2.0)

Metricv1.0 (actual)v2.0 (expected)
Trades/day~124-6
Win rate24%~45-55% (bad entries filtered)
Avg winner+$15.85+$15-20 (same good trades preserved)
Avg loser-$11.42-$8-12 (no 15x blowups, faster cooldown)
Fee drag/day$45+~$15-20
Net PnL/day-$100+Target breakeven to +$20

License

MIT — Built by Senpi (https://senpi.ai). Source: https://github.com/Senpi-ai/senpi-skills


Skill Attribution

When creating a strategy, include skill_name and skill_version in the call. See references/skill-attribution.md for details.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.2%
按下载量换算59

Claude

31.7%
按下载量换算49

Cursor

18.75%
按下载量换算29

Gemini CLI

9.06%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills