stoploss-guard

stoploss-guard is a skill for Claude Code, Codex from AlgoChains/algochains-mcp-server. It costs 0 tokens per session (353 once invoked), scanned A, original, MIT.

A trading safety check that counts recent stop-losses for each bot and market, then locks that market after too many losses in a set period.

In plain words
What is it for?
Use it to check whether a market is locked, record a new stop-loss, or view the lock status across bots and markets.
Why use it?
It helps stop repeated trades during a period when a strategy is performing badly. This can limit a chain of further losses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check whether a market is locked, record a new stop-loss, or view the lock status across bots and markets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/algochains/algochains-mcp-server/stoploss-guard
Install

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.

Any agent
npx skills add AlgoChains/algochains-mcp-server --skill stoploss-guard
Clone the repo
git clone --depth 1 https://github.com/AlgoChains/algochains-mcp-server

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for stoploss-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/algochains/algochains-mcp-server/stoploss-guard/github.svg)](https://agentmods.dev/skills/algochains/algochains-mcp-server/stoploss-guard)
Your own site
<a href="https://agentmods.dev/skills/algochains/algochains-mcp-server/stoploss-guard"><img src="https://agentmods.dev/badge/skills/algochains/algochains-mcp-server/stoploss-guard/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.

agentmods 80×15 button for stoploss-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/algochains/algochains-mcp-server/stoploss-guard"><img src="https://agentmods.dev/badge/skills/algochains/algochains-mcp-server/stoploss-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00353
Opus 5 $0.00000 $0.00177
Sonnet 5 $0.00000 $0.00071
Haiku 4.5 $0.00000 $0.00035

Measured 8d ago against content hash 001c3f690231, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

stoploss-guard 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 8d 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.

algoclaw/skills/stoploss-guard/SKILL.md · 42 lines

What it actually says

stoploss-guard

Tier: 0 (safe, read-only check; Tier 1 for lock actions)
Trigger: After every stoploss event; pre-trade check
MCP Tool: run_algoclaw_skill("stoploss-guard", {"bot":"MNQ","symbol":"MNQ","action":"check"})
Source Pattern: freqtrade StoplossGuard

What It Does

Tracks stoploss events per bot/symbol and locks the instrument when N stops occur in X hours. Prevents cascading losses from repeated stop-outs in a bad regime.

Actions

Action Description
check Check if instrument is currently locked by StoplossGuard
record Record a new stoploss event (call after every stop)
status Full StoplossGuard status for all bots/symbols

Default Config

  • 3 stops in 4 hours → lock instrument for 2 hours
  • Configurable via window_hours, stoploss_count, lock_hours params

Output (check)

{
  "symbol": "MNQ", "bot": "MNQ",
  "locked": true,
  "lock_reason": "StoplossGuard: 3 stops in 4h window",
  "locked_until": "2026-04-08T16:30:00Z",
  "stop_events_in_window": 3
}

Alert

When lock triggers: ntfy high + Slack #incident-response:
⚠️ StoplossGuard: MNQ locked 2h — 3 stops in 4h window

Changes

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.

  1. 8d ago First seen · 42 lines · 0 tokens per session scan A 001c3f690231

Subscribe to this mod's changes

stoploss-guard is a skill published in the GitHub repository AlgoChains/algochains-mcp-server (1 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 353 tokens. 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-31.

Related

Other skills, from other repositories