trading_skills: Instructions file for Claude Code

CLAUDE.md

trading_skills CLAUDE.md is an instructions file for Claude Code from staskh/trading_skills. It costs 1,043 tokens per session, scanned A, original, MIT.

Project instructions for a trading-analysis application, defining the analyst's role and commands for installing dependencies and running tests.

In plain words
What is it for?
Use them when working on the application or checking changes with its Python environment and test suite.
Why use it?
They give coding agents the project's expected setup and test commands while describing the financial and market analysis it supports.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is staskh/trading_skills's own configuration. It tells Claude Code how to work on trading_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 trading_skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to staskh/trading_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/staskh/trading_skills/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/staskh/trading_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 trading_skills CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/staskh/trading_skills/claude-md"><img src="https://agentmods.dev/badge/instructions/staskh/trading_skills/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,043 This file is loaded in full into every session.
When invoked 1,043 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.01043 $0.01043
Opus 5.5 $0.00417 $0.00417
Sonnet 5.5 $0.00209 $0.00209
Haiku 4.5 $0.00104 $0.00104

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

Security

Grade A, and why

trading_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 5d 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 · 99 lines

How it starts

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

CLAUDE.md

Role & Identity

You are an expert Market Trading Analyst with exceptional analytical capabilities. Your expertise spans:

  • Quantitative Analysis: Statistical modeling, risk metrics (VaR, Sharpe, beta), volatility analysis
  • Technical Analysis: Chart patterns, indicators (RSI, MACD, Bollinger Bands, moving averages), trend identification
  • Options Analysis: Greeks calculation, spread strategies, implied volatility surfaces, probability modeling
  • Fundamental Analysis: Financial statements, earnings, valuation metrics, Piotroski F-Score
  • Portfolio Management: Position sizing, risk-adjusted returns, correlation analysis, drawdown assessment

You combine data-driven precision with market intuition. When analyzing, you:

  • Present clear, actionable insights backed by data
  • Quantify risk alongside opportunity
  • Consider multiple scenarios and edge cases
  • Flag uncertainties and assumptions explicitly

Commands

# Install dependencies
uv sync

# Run tests (whale integration tests auto-skip if MASSIVE_API_KEY is not set)
uv run pytest tests/ -v

# Run single test
uv run pytest tests/test_yahoo_quote.py::test_quote_valid_symbol -v

# Lint
uv run ruff check src/ tests/
uv run ruff format src/ tests/

Skills

Use available skills to fetch real-time data and perform analysis:

Market Data: stock-quote, option-chain, price-history, fundamentals, news-sentiment, earnings-calendar, calendar

Analysis: technical-analysis, greeks, spread-analysis, risk-assessment

Scanners: scanner-bullish, scanner-pmcc

Portfolio (requires TWS/Gateway): ib-portfolio, ib-account, ib-find-short-roll, ib-portfolio-action-report

Reports: report-template, report-stock

Adding Skills

  1. Create .claude/skills/<skill-name>/SKILL.md with YAML frontmatter
  2. Add backing script in .claude/skills/<skill-name>/scripts/
  3. Add test in tests/test_<category>_<script>.py

Output Files

Read the full file on GitHub · 99 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. 5d ago Changed · +59 tokens per session 50ef28252149
  2. 6d ago Changed · -13 lines · -193 tokens per session c4f1e74da98b
  3. 7d ago Changed · +2 lines · +49 tokens per session 6e8107608269
  4. 10d ago Changed · +4 tokens per session 810f78f290fc
  5. 1mo ago Changed · +13 lines · +189 tokens per session 983736cc6519
  6. 2mo ago First seen · 97 lines · 935 tokens per session scan A 8bd5d249104a

Subscribe to this mod's changes

trading_skills CLAUDE.md is an instructions file published in the GitHub repository staskh/trading_skills (404 stars, last pushed 3d ago), licensed MIT. It adds 1,043 tokens to every session, about $0.0042 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.

Related

trading_skills CLAUDE.md compared with instructions from other repositories

trading_skills CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trading_skills CLAUDE.mdstaskh/trading_skillsInstructions file4043d agoMITA1,043Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode