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 staskh/trading_skills --skill ib-create-consolidated-reportgit clone --depth 1 https://github.com/staskh/trading_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/staskh/trading_skills/ib-create-consolidated-report)<a href="https://agentmods.dev/skills/staskh/trading_skills/ib-create-consolidated-report"><img src="https://agentmods.dev/badge/skills/staskh/trading_skills/ib-create-consolidated-report/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/staskh/trading_skills/ib-create-consolidated-report"><img src="https://agentmods.dev/badge/skills/staskh/trading_skills/ib-create-consolidated-report.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.00050 | $0.00618 |
| Opus 5.5 | $0.00020 | $0.00247 |
| Sonnet 5.5 | $0.00010 | $0.00124 |
| Haiku 4.5 | $0.00005 | $0.00062 |
Grade A, and why
ib-create-consolidated-report 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 yesterday.
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.
What it actually says
IB Create Consolidated Report
Reads all CSV files from a given directory (excluding subdirectories), consolidates trade data by key fields, and generates both markdown and CSV reports.
Instructions
uv run python scripts/consolidate.py <directory> [--port PORT] [--output-dir OUTPUT_DIR]
Arguments
directory- Path to directory containing IBRK trade CSV files--port- IB port to fetch unrealized P&L (7497=paper, 7496=live). If not specified, auto-probes both ports (tries 7496 first, then 7497). Defaults to theIB_PORTenv var when set (--portstill overrides).--output-dir- Output directory for reports (default: sandbox/)
Consolidation Logic
Groups trades by:
- UnderlyingSymbol - The underlying ticker (e.g., GOOG, CAT)
- Symbol - Full option symbol
- TradeDate - Date of the trade
- Strike - Strike price
- Put/Call - Option type (C or P)
- Buy/Sell - Trade direction
- Open/CloseIndicator - Whether opening or closing
Aggregates:
- Quantity - Sum of quantities
- Proceeds - Sum of proceeds
- NetCash - Sum of net cash
- IBCommission - Sum of commissions
- FifoPnlRealized - Sum of realized P&L
Adds column:
- Position - SHORT (Sell+Open), LONG (Buy+Open), CLOSE_SHORT (Buy+Close), CLOSE_LONG (Sell+Close)
Output
Generates two files in the output directory:
YYYY-MM-DD_HHmm_[ACCOUNT_]consolidated_trades.md- Markdown report with summary tablesYYYY-MM-DD_HHmm_[ACCOUNT_]consolidated_trades.csv- CSV with all consolidated data
The IB account ID is included when the IB connection reports one.
Example Usage
# Consolidate trades from IBRK reports directory
uv run python scripts/consolidate.py "C:\Users\avrah\OneDrive\Business\Trading\IBRK reports\2stastrading2025"
# Specify custom output directory
uv run python scripts/consolidate.py "C:\path\to\reports" --output-dir "C:\output"
Timezone
All timestamps and time-based calculations must use the America/New_York timezone. All JSON output must include generated_at (NY time string) and data_delay fields.
What ships with it
1 file 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.
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.
- yesterday Changed · +2 lines 1deaa5fb544f
- 3mo ago First seen · 63 lines · 50 tokens per session scan A 40edac17ec61
ib-create-consolidated-report is a skill published in the GitHub repository staskh/trading_skills (427 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 618 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.
ib-create-consolidated-report compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ib-create-consolidated-reportstaskh/trading_skills | Skill | 427 | today | MIT | A | 50 | Claude Code |
| find-cpa-firmnostrband/ServiceGraph | Skill | 58 | 6mo ago | MIT | A | 238 | Claude Code |
| nse-trading-toolkitBhala-Srinivash/nse-trading-skills | Skill | 74 | 9mo ago | MIT | A | 165 | Claude Code, Codex |
| clawby-dataopenclawby/openclawby-skills | Skill | 9 | 25d ago | MIT | C | 204 | Claude Code, Codex |
| fibonacci-tradingBhala-Srinivash/nse-trading-skills | Skill | 74 | 9mo ago | MIT | A | 101 | Claude Code, Codex |
| multi-timeframe-analysisBhala-Srinivash/nse-trading-skills | Skill | 74 | 9mo ago | MIT | A | 105 | Claude Code, Codex |
| position-sizingBhala-Srinivash/nse-trading-skills | Skill | 74 | 9mo ago | MIT | A | 96 | Claude Code, Codex |