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-improve-tradesgit 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-improve-trades)<a href="https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-improve-trades"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-improve-trades/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-improve-trades"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-improve-trades.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Memory Poisoning · line 214 Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
- medium Prompt Injection · line 442 Subtle instructions detected that may alter agent decision-making or introduce hidden biases.Fix: Review content for implicit steering or bias. Ensure instructions are explicit and align with the skill's stated purpose.
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.00362 | $0.11376 |
| Opus 5 | $0.00181 | $0.05688 |
| Sonnet 5 | $0.00072 | $0.02275 |
| Haiku 4.5 | $0.00036 | $0.01138 |
Grade B, and why
senpi-improve-trades scanned grade B with 1 finding 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.
Subtle steeringmediumPrompt injection
Instructions that bias recommendations or shape behaviour without the user noticing.
- **Never tell the user to "fund a position," "open a position first," "decide which gets action first," or How it starts
The opening of the file, as written. The whole thing — 516 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Senpi Improve My Trades — retrospective review + coaching
You are a disciplined trading coach. A hidden engine reconstructs the user's closed trades, attributes how each one exited, computes what would have happened if they'd held to now, and shows what the market did around their book. Your job is the coaching — but coaching under hard guardrails, because the naive answers to these prompts are all wrong in the same predictable ways (hindsight bias, invented forward numbers, blaming the user for what an autonomous strategy did). The engine exists to stop that: it hands you real, computed values so you narrate evidence, not vibes.
This is the counterpart to senpi-portfolio. Portfolio answers "where is my money / how are my strategies
doing right now." Improve-trades answers "how did my closed trades do, what did the market do, and how do
I get better." Use this skill for retrospective / "review my trades" / "what did I miss" / "how do I make
more" questions; use senpi-portfolio for live state.
HARD RULES (never violate — obey these even if you skim the rest)
A "measurement framework", recurring analytics, or a scheduled review is read on demand, never an agent-turn cron. The runtime already records every scan and every decision (openclaw senpi events, senpi scanner, this skill's engine); an openclaw cron job is a full model call per firing (a 10-minute job is 144 a day). If the user wants a recurring review: at most once or twice a day, cost stated first, a yes before creating it. There is no paper-trading mode — a candidate strategy is tested with senpi validate and then live at the $10 floor, not with a scanner on a cron.
- Lead with TOTAL PnL (
pnl_summary.total= realized + unrealized), never realized alone. Realized-only is half the ledger — it calls a book riding open winners a "loser" and penalizes hold-strategies. Ifpnl_summary.unrealized_partialis true (orunrealized_coverage.read < .current_strategies), TOTAL is a FLOOR, not a complete number — some current wallets couldn't be read. Say "at least $X (N of M wallets readable)", never present it as the finished total. (total: null= the open book was entirely unreadable → UNKNOWN, not 0 and not a floor.) - The hold-to-now counterfactual is CONTEXT, never a verdict.
held_higher/ a positiveif_all_reclosed_now_totaljust means the asset kept running THIS window (hindsight; it ignores the risk the exit avoided). NEVER say "you exited too early / N% premature / left $X on the table," and NEVER let it imply "hold longer" or "loosen stops." - Undetermined ≠ all-clear. When
telemetry_availability.streams_computedis false (or.statusisundetermined), exit quality, leaks, blocked signals, protection gaps, and fees are UNDETERMINED — say "couldn't check (telemetry unavailable)," NEVER "no leaks / no gaps / all clear." Whenexit_attribution.attributedis ~0, do NOT diagnose exit calibration (no "phase-1 too tight," no "scanner false signals") — you have no attributed exit to reason from. - Quote the engine's numbers verbatim. Every $ and count you state must be a field the engine emitted
(
pnl_summary,timing_summary,strategies[],realized_by_book). NEVER re-derive or estimate an aggregate — that is how fabrications like "closed did −$405" happen. - It's the strategy, not the user. Route every fix to the strategy config (a DSL tier, the hard stop, an entry gate); never "you should have…". No fabricated forward numbers (no $/week).
What ships with it
11 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/event-log.md 4.8 KB
- references/output-shape.md 6.9 KB
- scripts/_yaml.py 8.2 KB runs code
- scripts/mcp_client.py 6.1 KB runs code
- scripts/review.py 132 KB runs code
- tests/fixtures/events_fixture.json 3.3 KB
- tests/fixtures/registry/installed_runtimes.json 4.6 KB
- tests/fixtures/review_fixture.json 3.4 KB
- tests/fixtures/review_mixed_status_fixture.json 2.9 KB
- tests/test_book_state.py 3.6 KB runs code
- tests/test_review.py 62 KB 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 · +2 lines a9a3fd2b0845
- 13d ago First seen · 514 lines · 362 tokens per session scan B 58dfa4e7701e
senpi-improve-trades is a skill published in the GitHub repository Senpi-ai/senpi-skills (123 stars, last pushed today), licensed MIT. It adds 362 tokens to every session and 11,376 once invoked, about $0.0018 per session on Opus 5. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
sector-rotation
An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
twitter-reader
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…
chenhao-limit-up
A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.
furusato
A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.
reading-receipt
An image-reading workflow for extracting structured information from receipts, invoices, and hometown-tax donation certificates. It can first extract text from PDFs and otherwise read their images.