ib-find-short-roll

ib-find-short-roll is a skill for Claude Code from staskh/trading_skills. It costs 55 tokens per session (1,215 once invoked), scanned A, original, MIT.

An Interactive Brokers analysis tool for changing existing short option positions to later or different contracts, or for finding short options to open against owned stock. A covered call or put is an option position opened against another position to manage income or risk.

In plain words
What is it for?
Use it to explore rolls for short options, find covered calls or puts against long stock, and compare possible strikes, expirations, or option types.
Why use it?
It helps compare possible adjustments using current broker data instead of searching contracts manually. It supports both managing existing short positions and finding candidates for new covered positions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to explore rolls for short options, find covered calls or puts against long stock, and compare possible strikes, expirations, or option types.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/staskh/trading_skills/ib-find-short-roll
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 staskh/trading_skills --skill ib-find-short-roll
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 ib-find-short-roll

README.md
[![agentmods](https://agentmods.dev/badge/skills/staskh/trading_skills/ib-find-short-roll/github.svg)](https://agentmods.dev/skills/staskh/trading_skills/ib-find-short-roll)
Your own site
<a href="https://agentmods.dev/skills/staskh/trading_skills/ib-find-short-roll"><img src="https://agentmods.dev/badge/skills/staskh/trading_skills/ib-find-short-roll/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 ib-find-short-roll

Your own site · 80×15
<a href="https://agentmods.dev/skills/staskh/trading_skills/ib-find-short-roll"><img src="https://agentmods.dev/badge/skills/staskh/trading_skills/ib-find-short-roll.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.01215
Opus 5.5 $0.00022 $0.00486
Sonnet 5.5 $0.00011 $0.00243
Haiku 4.5 $0.00006 $0.00121

Measured 2mo ago against content hash 974aa7116175, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ib-find-short-roll 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/roll.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.

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/skills/ib-find-short-roll/SKILL.md · 104 lines

How it starts

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

IB Find Short Roll

Analyze roll options for short positions or find best short options to open against long stock using real-time data from Interactive Brokers.

IB Connection

TWS or IB Gateway must be running locally with API enabled:

  • Paper trading — port 7497
  • Live trading — port 7496
  • IB_PORT env var — default port when --port is omitted (e.g. IB_PORT=4001 for a Gateway container). Precedence: --port flag > IB_PORT > built-in default. Set it in the shell or a .env file.

Port fallback: If the configured port fails, automatically retry on the other port. If the retry succeeds, save to memory which account type worked (live/paper) and reuse it for all IB skill calls in this and future sessions — until the user explicitly asks for the other account. If both ports fail, ask the user to verify that TWS or IB Gateway is running with API access enabled.

Instructions

Step 1: Gather Data

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in all commands below.

uv run python scripts/roll.py SYMBOL [--strike STRIKE] [--expiry YYYYMMDD] [--right C|P] [--port PORT] [--account ACCOUNT] [--iv-multiplier N]

The script returns JSON to stdout with all position and candidate data.

Step 2: Format Report

Read templates/markdown-template.md for formatting instructions. Generate a markdown report from the JSON data and save to sandbox/.

Step 3: Report Results

Present key findings to the user: recommended position, credit/debit, and the saved report path.

Behavior

  1. If short option position exists (mode: "roll"): Analyzes roll candidates to different expirations/strikes
  2. If long option position exists (mode: "spread"): Finds best short call/put to create a vertical spread
  3. If long stock exists (mode: "new_short"): Finds best covered call (or protective put) to open
  4. If none of the above: Returns error (use --strike/--expiry to specify manually)

Read the full file on GitHub · 104 lines

Files

What ships with it

2 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. 2mo ago First seen · 104 lines · 55 tokens per session scan A 974aa7116175

Subscribe to this mod's changes

ib-find-short-roll is a skill published in the GitHub repository staskh/trading_skills (404 stars, last pushed 3d ago), licensed MIT. It adds 55 tokens to every session and 1,215 once invoked, about $0.0002 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

ib-find-short-roll compared with skills from other repositories

ib-find-short-roll next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ib-find-short-rollstaskh/trading_skillsSkill4043d agoMITA55Claude Code
find-cpa-firmnostrband/ServiceGraphSkill615mo agoMITA238Claude Code
clawby-dataopenclawby/openclawby-skillsSkill9yesterdayMITC204Claude Code, Codex
fibonacci-tradingBhala-Srinivash/nse-trading-skillsSkill608mo agoMITA101Claude Code, Codex
multi-timeframe-analysisBhala-Srinivash/nse-trading-skillsSkill608mo agoMITA105Claude Code, Codex
nse-trading-toolkitBhala-Srinivash/nse-trading-skillsSkill608mo agoMITA165Claude Code, Codex
rsi-divergenceBhala-Srinivash/nse-trading-skillsSkill608mo agoMITA98Claude Code, Codex