Q-agent: Skill for Claude Code

.claude/skills/run-local-research-notebook/SKILL.md

run-local-research-notebook is a skill for Claude Code from WolfpackOfOne/Q-agent. It costs 62 tokens per session (1,435 once invoked), scanned A, original, MIT.

A workflow for running QuantConnect research notebooks inside the local LEAN Docker environment. QuantConnect is a platform for testing trading strategies, and LEAN is its research and backtesting engine.

In plain words
What is it for?
Use it to run, debug, validate, or interpret notebooks stored under a project's research folder.
Why use it?
It avoids relying on the notebook file alone when results depend on a specific local environment. It helps inspect actual notebook output, including charts and tables, when debugging or explaining results.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to WolfpackOfOne/Q-agent. 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/WolfpackOfOne/Q-agent/main/.claude/skills/run-local-research-notebook/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/WolfpackOfOne/Q-agent

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 run-local-research-notebook

README.md
[![agentmods](https://agentmods.dev/badge/skills/wolfpackofone/q-agent/run-local-research-notebook.svg)](https://agentmods.dev/skills/wolfpackofone/q-agent/run-local-research-notebook)
Your own site
<a href="https://agentmods.dev/skills/wolfpackofone/q-agent/run-local-research-notebook"><img src="https://agentmods.dev/badge/skills/wolfpackofone/q-agent/run-local-research-notebook.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,435 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.
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.00062 $0.01435
Opus 5 $0.00031 $0.00718
Sonnet 5 $0.00012 $0.00287
Haiku 4.5 $0.00006 $0.00144

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

Security

Grade A, and why

run-local-research-notebook 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract_first_png.py, scripts/summarize_notebook_outputs.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/run-local-research-notebook/SKILL.md · 175 lines

How it starts

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

Run Local Research Notebook

Use this skill for QuantConnect research notebooks in this workspace. Follow ~/Documents/Q-agent/AGENTS.md first. The key rule is: do not guess from the raw .ipynb file alone when a local LEAN research container already exists.

When To Use

  • The user asks to run a notebook under MyProjects/*/research/*.ipynb
  • The user wants to debug notebook execution in local LEAN research
  • The user wants a plot, table, or notebook output interpreted

Inputs

$ARGUMENTS should be a notebook path such as:

MyProjects/60_40 Test/research/plots.ipynb

If the user gives only a notebook name or a partial path, resolve it before running anything.

Workflow

1. Resolve the notebook and project

  • Confirm the notebook exists in the workspace.
  • Derive:
    • project_name: parent directory above research/
    • notebook_name: basename, for example plots.ipynb
    • notebook_stem: basename without .ipynb

Read any project-level AGENTS.md, claude.md, or docs/ files if they exist. If they do not exist, continue with the workspace-level AGENTS.md.

2. Prefer an existing research container

List active research containers:

docker ps --format 'table {{.ID}}\t{{.Image}}\t{{.Names}}\t{{.Status}}'

Find the container that has the notebook mounted at /LeanCLI/research/<notebook_name>:

docker exec <container_id> sh -lc 'test -f "/LeanCLI/research/<notebook_name>" && echo NOTEBOOK_PRESENT || echo NOTEBOOK_MISSING'

Use the matching container. This matches the notebook-debugging workflow in AGENTS.md.

3. If no matching container exists

Do not run the notebook with plain local Python.

Ask before launching a new research session because lean research is interactive:

cd ~/Documents/Q-agent
source venv/bin/activate
cd MyProjects
lean research "<ProjectName>"

After the session starts, repeat container discovery and continue inside the container.

4. Execute the notebook headlessly in the container

Read the full file on GitHub · 175 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. 8d ago First seen · 175 lines · 62 tokens per session scan A fbd30e7b13d2

Subscribe to this mod's changes

run-local-research-notebook is a skill published in the GitHub repository WolfpackOfOne/Q-agent (5 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 1,435 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

tushare

A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.

HKUDS/Vibe-Trading · 79 tokens

credit-analysis

A guide to analysing bonds and other fixed-income investments, including issuer credit quality, interest payments, default risk, credit spreads, and convertible bonds. It also covers Chinese fixed-income markets and local-government financing bonds.

HKUDS/Vibe-Trading · 36 tokens

geopolitical-risk

Geopolitical risk analysis: quantify crisis signals, identify precursors, and build event-driven strategies for war, sanctions, and supply disruption scenarios.

HKUDS/Vibe-Trading · 34 tokens

social-media-intelligence

Social media intelligence: financial signal extraction from Twitter/X, Telegram, Discord, and Reddit for sentiment-driven trading strategies.

HKUDS/Vibe-Trading · 28 tokens

vibe-trading

Professional finance research toolkit — backtesting (10 engines + benchmark comparison panel), factor analysis, Alpha Zoo (462 pre-built alphas across qlib158/alpha101/gtja191/academic/fundamental), options pricing, 90 finance skills, 30 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract →…

HKUDS/Vibe-Trading · 173 tokens

etf-analysis

A framework for comparing exchange-traded funds (ETFs), which are funds bought and sold on a stock exchange and usually track an index, industry, asset, or strategy. It covers fees, how closely an ETF follows its target, trading activity, and portfolio use.

HKUDS/Vibe-Trading · 39 tokens