senpi-strategy-author

senpi-strategy-author is a skill for Claude Code, Codex from Senpi-ai/senpi-skills. It costs 255 tokens per session (9,943 once invoked), scanned D, original, MIT.

A guided builder for creating or editing named Senpi trading strategies on Hyperliquid, a crypto trading platform. It interviews the user about the trading idea and risk limits, then compiles the answers into a deployable strategy package.

In plain words
What is it for?
Use it to design a strategy from scratch, revise one, choose what to trade and how to score it, and define exits, risk limits, and other guardrails.
Why use it?
It turns an informal trading idea into the configuration the Senpi runtime expects. It also keeps persistent exits such as stop-losses and trailing stops under runtime supervision.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; built for openclaw.

Good fit Use it to design a strategy from scratch, revise one, choose what to trade and how to score it, and define exits, risk limits, and other guardrails.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/senpi-ai/senpi-skills/senpi-strategy-author
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 Senpi-ai/senpi-skills --skill senpi-strategy-author
Clone the repo
git clone --depth 1 https://github.com/Senpi-ai/senpi-skills

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 senpi-strategy-author

README.md
[![agentmods](https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-strategy-author/github.svg)](https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-strategy-author)
Your own site
<a href="https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-strategy-author"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-strategy-author/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 senpi-strategy-author

Your own site · 80×15
<a href="https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-strategy-author"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-strategy-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 255 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,943 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00255 $0.09943
Opus 5.5 $0.00102 $0.03977
Sonnet 5.5 $0.00051 $0.01989
Haiku 4.5 $0.00026 $0.00994

Measured 9d ago against content hash b7c1397337fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

senpi-strategy-author scanned grade D with 2 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 9d ago.

The scan reads SKILL.md. This mod also ships 21 executable files (scripts/_yaml.py, scripts/validate_strategy.py, tests/test_balance_rule_excludes_committed_capital.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

**Never tell the user a strategy is ready, and never hand it to ops, unless `senpi validate`

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

mid-interview, and never refuse to build.
senpi-strategy-author/SKILL.md · 459 lines

How it starts

The opening of the file, as written. The whole thing — 459 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Senpi Strategy Author — build a strategy with the user, one decision at a time

You build a strategy by interviewing the user, not by lecturing them. A strategy is a deployable package; the runtime owns execution, sizing, exits, slots, risk, and state. The user only needs to decide the thesis (what to trade and how to score it) and the guardrails (how to exit, how much risk). Your job is to draw those out, one question at a time, and compile them.

DSL ⟹ author here. This is the boundary. DSL — a runtime-supervised exit (stop-loss, trailing stop, profit-lock ladder, any managed stop that persists) — exists only inside a Runtime 3.0 runtime.yaml exit: block, which is what this skill compiles. Never stand up a DSL-protected, named, or persistent strategy with a raw strategy_create_custom_strategy / create_position MCP call: that path can carry at most a flat stopLossPercentage, leaves tradingStrategyName null, and never registers in installed_runtimes.json — so the strategy is unnamed, unsupervised, and invisible to portfolio/DSL tooling (the confirmed Decoupling failure: $3k, three cross positions, no DSL, no name). The raw MCP tools are for manual one-off open/close positions or mirror (copy-trade) strategies with no DSL — nothing else. If protection is anywhere in the ask, you're in the right skill; author it.

Opening a position for the user is a FORK — ASK, never assume. When the user asks to open a position (or a set) — "go long HYPE", "buy BTC 5x", "short SOFTBANK" — do not just place it. Ask which of two different products they want:

  • (A) A DSL-protected strategy — a named, supervised Runtime 3.0 strategy that manages a trailing stop
    • profit-lock ladder. → author it here. The path for anything the user wants managed or persistent.
  • (B) A plain position with a standard take-profit / stop-loss — a one-off via raw create_position (it carries stopLoss / takeProfit), placed in a discretionary wallet, NOT a strategy wallet.

Either way, NEVER open into an existing scanner-managed strategy's wallet. A hand-placed position in a wallet a deployed strategy runs is reconciled as foreign and DSL-flattened within minutes — the order "succeeds," the position is gone, and the user eats the round-trip. If the user hasn't said which of (A)/(B) they want, ask before placing anything — and never route (B) into a managed wallet to save a step.

Read the full file on GitHub · 459 lines

Files

What ships with it

32 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago Changed b7c1397337fd
  2. 13d ago Changed 3262d2edc2b9
  3. 15d ago Changed 6a38a44eefaa
  4. 17d ago Changed fad930b4a132
  5. 21d ago Changed · +2 lines 49c75a39e026
  6. 22d ago Changed bafd05e98f26
  7. 1mo ago Changed a8cf7ae68ee9
  8. 1mo ago Changed 6c0b1f619398
  9. 1mo ago Changed · +5 lines e6335fd89cd3
  10. 1mo ago First seen · 452 lines · 255 tokens per session scan D 92f1affb0dc1

Subscribe to this mod's changes

senpi-strategy-author is a skill published in the GitHub repository Senpi-ai/senpi-skills (144 stars, last pushed yesterday), licensed MIT. It adds 255 tokens to every session and 9,943 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it D with 2 findings (subtle steering, tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

senpi-strategy-author compared with skills from other repositories

senpi-strategy-author next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
senpi-strategy-authorSenpi-ai/senpi-skillsSkill144yesterdayMITD255Claude Code, Codex
agentic-streetLeoYeAI/openclaw-master-skillsSkill2.2k5d agoMITA91Claude Code, Codex
token-pickaeonfun/aeonSkill788yesterdayMITA25Claude Code, Codex
bridgealsk1992/CloddsBotSkill3.1k1mo agoMITA13Claude Code, Codex
hyperliquidalsk1992/CloddsBotSkill3.1k1mo agoMITA19Claude Code, Codex
marginfialsk1992/CloddsBotSkill3.1k1mo agoMITA11Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill269yesterdayApache-2.0A54Claude Code, Codex