senpi-skills: Instructions file for Claude Code

CLAUDE.md

senpi-skills CLAUDE.md is an instructions file for Claude Code from Senpi-ai/senpi-skills. It costs 3,216 tokens per session, scanned A, original, MIT.

Repository instructions for Senpi Skills, a codebase containing deployable trading-strategy packages. They explain where strategies, settings, scanners, actions, exits, and editing rules belong.

In plain words
What is it for?
Creating or editing trading-strategy packages, changing strategy settings and scanners, and maintaining the repository's required structure and rules.
Why use it?
They prevent agents from putting strategy logic in the wrong files or treating a deployable strategy as an agent skill.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: built for openclaw.

This is Senpi-ai/senpi-skills's own configuration. It tells Claude Code how to work on senpi-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything senpi-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Senpi-ai/senpi-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Senpi-ai/senpi-skills

Made for: Claude Code.

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-skills CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/senpi-ai/senpi-skills/claude-md"><img src="https://agentmods.dev/badge/instructions/senpi-ai/senpi-skills/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,216 This file is loaded in full into every session.
When invoked 3,216 The same file — it is already loaded in full.
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.03216 $0.03216
Opus 5 $0.01608 $0.01608
Sonnet 5 $0.00643 $0.00643
Haiku 4.5 $0.00322 $0.00322

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

Security

Grade A, and why

senpi-skills CLAUDE.md 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 10d 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.

CLAUDE.md · 196 lines

How it starts

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

Senpi Skills — Repo Conventions for AI Editors

This repo is almost entirely AI-generated. The rules below exist because they have been forgotten or stripped during past rewrites. Preserve them on every edit.


▶▶ Architecture — strategies are PACKAGES, not skills

A trading strategy is a deployable package, not an agent skill. All packages live under strategies/:

strategies/<id>/                   # a strategy package (e.g. strategies/spider/)
  strategy.yaml                    # THIN deploy manifest & single source of truth for
                                   #   id, version, catalog facets, instances[] — tunables do
                                   #   NOT live here (no `params`; that design is retired)
  <instance>/                      # one dir per instance (`main`, or e.g. `swing`/`scalp`)
    runtime.yaml                   # the self-contained runtime spec for this instance —
                                   #   scanners+inputs (the tunables), actions, exit (DSL), risk
    scanners/
      scan.py                      # exports scan(inputs, ctx) -> list[dict]; read-only, pure,
                                   #   single-pass; the runtime spawns + supervises it
      scoring.py                   # optional pure math (no I/O) so the edge unit-tests
  • A strategy package has no SKILL.md and no attribution file. strategy.yaml is the single source of truth for id/version.
  • Skills are the agent's lifecycle capability: senpi-strategy-discover (find/recommend), senpi-strategy-author (build/edit), senpi-strategy-ops (install/monitor/close). senpi-trading-runtime is the infra-contract skill — how @senpi-ai/runtime behaves (scan(inputs, ctx), runtime.yaml schema, DSL engine, openclaw senpi … CLI). The remaining skills (portfolio, improve-trades, market-pulse, smart-money, trader-research, account-status, deposit-withdraw-transfer, why) are analysis/guidance utilities.
  • Install/teardown is senpi-strategy-ops, always: deploy.py create <id> --budget <usd> starts the runtime's detached openclaw senpi deploy job — reconcile → funds preflight → one named wallet per instance via strategy_create_custom_strategy (budget split by funding_share, min $10/wallet) → install → one observed scanner tick — then polls openclaw senpi deploy status until it is terminal and relays that report verbatim. deploy.py create|runtime <id> drive the same idempotent verb: re-running either resumes and adopts whatever exists, so they are not separate steps. deploy.py verify <id> is NOT one of them — it is the read-only check (strategy_list + runtime list + senpi status --json, quoting what it read; exits 0 verified / 3 not verified / 1 could-not-check) and it never starts a deploy, funds a wallet, installs a runtime or fetches a package (it resolves on disk only — downloading and writing one is a side effect too). It NAMES the resume when one is needed — but only for a wallet the backend reads as ACTIVE, and only when no deploy job for that package is already running; the resume itself is always create/runtime. Install is the verb's own in-process step — never hand-run openclaw senpi runtime create (it skips the funds preflight, the attribution and the verified tick). Teardown is close.py <id> (or --all) — never a raw strategy_close (it strands the runtime). Attribution is automatic: the deploy path stamps skillName/skillVersion from strategy.yaml id/version on every wallet-creation call.
  • strategies/catalog.json is GENERATED from strategies/*/strategy.yaml via senpi-trading-runtime/scripts/gen_catalog.py — never hand-edit it. It is written to two places: repo strategies/catalog.json (source of truth) AND senpi-strategy-discover/catalog.json (bundled so the catalog travels with the discover skill when installed standalone). Keep both in sync by re-running gen_catalog.py.
  • Validate a package with senpi-strategy-author/scripts/validate_strategy.py <dir> and senpi-strategy-ops/scripts/validate_universe.py <dir> (every hardcoded ticker the strategy TRADES must be a live HL instrument — a dead name silently no-trades; an exclusion list (excludeAssets, deny*/skip*) is exempt on both sides, since it names what is NOT traded). The universe gate lives in the RUNTIME verb: openclaw senpi deploy refuses [E_UNIVERSE_NOT_LIVE] pre-money (fail-closed when the live list is unreadable) and deploy.py only relays that refusal. validate_universe.py stays the standalone read-only check, and deploy.py validate <id> reports it from the same predicates.

Read the full file on GitHub · 196 lines

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. 10d ago First seen · 196 lines · 3,216 tokens per session scan A 0525de07ee35

Subscribe to this mod's changes

senpi-skills CLAUDE.md is an instructions file published in the GitHub repository Senpi-ai/senpi-skills (122 stars, last pushed today), licensed MIT. It adds 3,216 tokens to every session, about $0.0161 per session on Opus 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.

Related

Other instructions, from other repositories

vibetags com-example-service-EvidenceBasedShowcase.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for evidencebasedshowcase, generated — edit the source, rules for field settledorderids, rules for method totalwithtax and rules for method refreshcartbadge.

PIsberg/vibetags · 443 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens