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 Senpi-ai/senpi-skills --skill senpi-trading-runtimegit clone --depth 1 https://github.com/Senpi-ai/senpi-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/senpi-ai/senpi-skills/senpi-trading-runtime)<a href="https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-trading-runtime"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-trading-runtime/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/senpi-ai/senpi-skills/senpi-trading-runtime"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-trading-runtime.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.00182 | $0.03242 |
| Opus 5.5 | $0.00073 | $0.01297 |
| Sonnet 5.5 | $0.00036 | $0.00648 |
| Haiku 4.5 | $0.00018 | $0.00324 |
Grade A, and why
senpi-trading-runtime 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 today.
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 — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Senpi Trading Runtime — the runtime contract
This skill is infrastructure: the canonical knowledge of how the Senpi runtime
(@senpi-ai/runtime) behaves and how a strategy interacts with it. The lifecycle skills —
author (build), ops (install/monitor), discover (recommend) — reference this one for the contract.
The runtime model
A strategy runs from a runtime.yaml that points at an in-repo Python module. The runtime spawns and
supervises that module and calls a frozen scan(inputs, ctx) every interval_seconds. The
division of labor is fixed:
- Your code produces signals — nothing else.
scan(inputs, ctx)reads market and account data and returns alist[dict]of candidate signals. It does not open, close, size, schedule, or execute anything. - Zero model cost, and the only loop there is. The runtime ticks every
interval_secondswithout a model call. Never put an agent-turn cron beside it — a producer, a re-check, a watcher — each firing is a full model call. There is no paper-trading mode: a strategy is tested withsenpi validate(one real tick, no wallet) and then run live at the $10 floor. - The runtime owns everything downstream: scheduling (
interval_seconds), spawning + supervising + restarting the scanner, validating (signal_data_schema) + de-duplicating the signals you return, sizing & order execution (FEE_OPTIMIZED_LIMIT), slot accounting,risk.guard_rails, the two-phase DSL trailing-stop exits, and crash-safe position reconcile on restart. - What it does NOT own: partial exits. Every exit the runtime can make (DSL,
CLOSE_POSITION) closes the WHOLE position, andedit_position— the only reduce — is blocked to scanners. A rule like "take 25% off at +10% ROE and let the rest run" cannot be authored in a runtime package at all; a scanner that tries raisesPermissionErrorevery tick while the log reads as if the rule is working. Details:references/runtime-concepts.md→ DSL Exit Engine.
What ships with it
14 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.
- references/dsl-protection-check.md 5.0 KB
- references/runtime-cli.md 15 KB
- references/runtime-concepts.md 16 KB
- references/runtime-yaml.md 18 KB
- references/scan-contract.md 16 KB
- scripts/behaviour_hash.py 11 KB runs code
- scripts/gen_catalog.py 13 KB runs code
- scripts/min_budget.py 9.8 KB runs code
- tests/fixtures/min_budget_golden.json 2.4 KB
- tests/test_edit_is_live_only_after_apply.py 3.3 KB runs code
- tests/test_min_budget_golden.py 2.6 KB runs code
- tests/test_min_budget_tier_shapes.py 2.6 KB runs code
- tests/test_reference_candle_time_units.py 711 B runs code
- tests/test_reference_time_cuts_either_phase.py 773 B runs code
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.
- today Changed · +17 lines 743eb594de7d
- 9d ago Changed f99e6183c0e8
- 10d ago Changed 6924b671340f
- 15d ago Changed · +3 lines · +25 tokens per session 266222815084
- 20d ago Changed · +5 lines 0ec2c92403e1
- 1mo ago Changed · +1 lines d3f427250b3f
- 1mo ago Changed db7cab889ede
- 1mo ago Changed · +17 lines 4bba8a960438
- 1mo ago Changed 9ed988d0dcec
- 1mo ago First seen · 142 lines · 157 tokens per session scan A dbf7d60bbd43
senpi-trading-runtime is a skill published in the GitHub repository Senpi-ai/senpi-skills (144 stars, last pushed yesterday), licensed MIT. It adds 182 tokens to every session and 3,242 once invoked, about $0.0007 per session on Opus 5.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.
senpi-trading-runtime compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| senpi-trading-runtimeSenpi-ai/senpi-skills | Skill | 144 | yesterday | MIT | A | 182 | Claude Code, Codex |
| agentic-streetLeoYeAI/openclaw-master-skills | Skill | 2.2k | 5d ago | MIT | A | 91 | Claude Code, Codex |
| token-pickaeonfun/aeon | Skill | 788 | yesterday | MIT | A | 25 | Claude Code, Codex |
| bridgealsk1992/CloddsBot | Skill | 3.1k | 1mo ago | MIT | A | 13 | Claude Code, Codex |
| hyperliquidalsk1992/CloddsBot | Skill | 3.1k | 1mo ago | MIT | A | 19 | Claude Code, Codex |
| marginfialsk1992/CloddsBot | Skill | 3.1k | 1mo ago | MIT | A | 11 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |