agentleFS
nutdnuynutdnuy/quantcoder-plugin/skills/quantcoder-research/SKILL.md

quantcoder-research

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Use Claude Code or Codex Agent with QuantCoder utilities for quantitative research-paper to QuantConnect LEAN algorithm workflows, including arXiv/deep search, PDF download, agent-native summarization, agent-native code generation, local QC linting, QuantConnect validation, and backtesting. Use when the user mentions QuantCoder, QuantConnect code generation, LEAN algorithms from papers, Claude/Codex agent quant research, alpha research, or asks to lint/validate/backtest QuantConnect Python code.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the PDF/text or user-provided paper summary.

    line 56
  2. Distinctive:

    Write LEAN Python code directly in the workspace.

    line 64
  3. Distinctive:

    Prefer simple, auditable implementation over clever abstraction.

    line 65
  4. Distinctive:

    Add only comments that clarify non-obvious paper-to-code translation choices.

    line 66
  5. Distinctive:

    Verify before interpreting results:

    line 68
  6. Distinctive:

    When MCP is available, prefer tools for focused verification:

    line 78
  7. Distinctive:

    Do not use MCP for live deployment.

    line 85
  8. Distinctive:

    Never imply price or return certainty.

    line 91
  9. Distinctive:

    Check for data leakage, look-ahead bias, survivorship bias, transaction costs, universe construction assumptions, and overfitting.

    line 93
  10. Distinctive:

    Treat high Sharpe or strong backtest output as a hypothesis requiring out-of-sample validation and risk review.

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

QuantCoder Research

QuantCoder plugin is an agent-native research workflow for turning quantitative papers into draft QuantConnect LEAN algorithms. Claude Code or Codex Agent does the summarization, reasoning, and code drafting; QuantCoder utilities provide paper search/download, local QC linting, and optional QuantConnect validation/backtesting. Treat it as a research scaffold, not a source of guaranteed trading performance.

Preconditions

  • Python 3.10+.
  • Install the package from this plugin root when CLI utilities are needed:
cd "${CLAUDE_PLUGIN_ROOT:-.}"
uv run quantcoder --help
  • Claude Code or Codex is the LLM layer. Do not require a separate local model server for the default plugin workflow.
  • QuantConnect validation/backtesting needs environment variables or ~/.quantcoder/.env:
QUANTCONNECT_API_KEY=...
QUANTCONNECT_USER_ID=...
  • Optional deep search and publishing: TAVILY_API_KEY, NOTION_API_KEY, NOTION_DATABASE_ID.

Core Workflow

  1. Search for papers:
quantcoder search "momentum trading" --num 5
quantcoder search "mean reversion" --deep --num 10
  1. Download source material:
quantcoder download 1
  1. Summarize with the active agent:
  • Read the PDF/text or user-provided paper summary.
  • Extract: strategy hypothesis, asset universe, signal formula, rebalance rule, risk controls, data needs, lookback windows, portfolio construction, and expected failure modes.
  • Separate facts from assumptions and interpretations.
  1. Generate a QuantConnect draft with the active agent:
  • Write LEAN Python code directly in the workspace.
  • Prefer simple, auditable implementation over clever abstraction.
  • Add only comments that clarify non-obvious paper-to-code translation choices.
  1. Verify before interpreting results:
quantcoder validate generated_code/algorithm_1.py --local-only
quantcoder validate generated_code/algorithm_1.py
quantcoder backtest generated_code/algorithm_1.py --start 2020-01-01 --end 2024-01-01

MCP Tools

When MCP is available, prefer tools for focused verification:

  • quantcoder_lint_qc_code: local static fixes and warnings, no credentials.
  • quantcoder_get_api_docs: QuantConnect documentation lookup.
  • quantcoder_validate_code: uploads to QuantConnect and compiles.
  • quantcoder_backtest: compiles and runs a QuantConnect backtest.

Do not use MCP for live deployment. This plugin intentionally does not expose a live-trading deployment tool.

Quality Rules

  • Separate facts, assumptions, interpretations, and recommendations.
  • Never imply price or return certainty.
  • Inspect generated code before backtesting.
  • Check for data leakage, look-ahead bias, survivorship bias, transaction costs, universe construction assumptions, and overfitting.
  • Treat high Sharpe or strong backtest output as a hypothesis requiring out-of-sample validation and risk review.
  • For novel mathematical models, manually compare the paper equations to the generated implementation. Do not substitute simpler indicator proxies unless the user explicitly accepts that approximation.

Common Failure Modes

  • QuantConnect credentials are absent or have insufficient permissions.
  • Generated code compiles but does not faithfully implement the paper.
  • Backtest results omit realistic fees, slippage, borrow constraints, or execution limits.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.