Agent skill

Backtrader

by lzwme in lzwme/finance-quant-skills

Backtrader 开源量化回测框架,支持多数据源、多策略、多周期回测与实盘交易,纯Python实现。当用户需要开发量化策略、进行回测分析、编写交易逻辑、回测参数优化,或提及 backtrader、量化回测框架时使用。若用户仅需数据获取而无回测需求,引导使用 baostock/akshare/tushare 等数据 Skill。

No licenceAuto-check passedBusiness, Finance & HR

Install Backtrader

skills CLI
$ npx skills add lzwme/finance-quant-skills --skill backtrader -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lzwme/finance-quant-skills backtrader --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lzwme/finance-quant-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/backtrader .claude/skills/backtrader && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
backtrader
GitHub stars
440
Token cost
~2.8k tokens
SKILL.md length
136 words
Files
2 (incl. references)
Skills in repo
13
Repo updated
First seen
Licence
None found

At a glance

Backtrader 开源量化回测框架,支持多数据源、多策略、多周期回测与实盘交易,纯Python实现。当用户需要开发量化策略、进行回测分析、编写交易逻辑、回测参数优化,或提及 backtrader、量化回测框架时使用。若用户仅需数据获取而无回测需求,引导使用 baostock/akshare/tushare 等数据 Skill。

  • Business, Finance & HR work in your project
  • SKILL.md covers 安装, 最简示例, 数据源 and 策略类详解, plus 9 more sections
  • Calls pip

What it does

Backtrader is an agent skill from lzwme/finance-quant-skills. Backtrader 开源量化回测框架,支持多数据源、多策略、多周期回测与实盘交易,纯Python实现。当用户需要开发量化策略、进行回测分析、编写交易逻辑、回测参数优化,或提及 backtrader、量化回测框架时使用。若用户仅需数据获取而无回测需求,引导使用 baostock/akshare/tushare 等数据 Skill。

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/advanced-strategies.md`).

It sits in Business, Finance & HR. It works with Python. The repository describes itself as: 一个面向金融量化交易领域的 Agent Skills 技能维护仓库,主要聚焦A股量化交易。

When your agent uses it

  • Business, Finance & HR work in your project

Example prompts

  • “/backtrader”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit d973f35. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • backtrader.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Backtrader loads about 2.8k tokens when it runs, and up to ~3.8k if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 136 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 136 words (~2,756 tokens).

“Backtrader 是一个开源 Python 量化回测框架。采用事件驱动架构,核心组件包括:Cerebro(引擎)、Strategy(策略类)、Data Feed(数据源)、Broker(经纪商)、Indicator(内置 100+ 技术指标)、Analyzer(绩效分析)。纯 Python 实现,无外部依赖,适合离线研究。”

— opening of SKILL.md by lzwme
name
backtrader

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in skills/backtrader of lzwme/finance-quant-skills.

  • SKILL.md
  • references/advanced-strategies.md

Open the folder on GitHubat commit d973f35

Compare with similar skills

Backtrader next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Backtrader compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Backtrader this skilllzwme/finance-quant-skills440—~2.8kAutomated safety check: PassNone
Itr Walakaranb192/itr-wala871—~3.6kAutomated safety check: PassMIT
Tushare Datazillionare/zillionare3212 repos~2.3kAutomated safety check: PassNone
Global Stock Datasimonlin1212/global-stock-data1.7k—~19kAutomated safety check: PassApache-2.0
Korean Government Grant Searchdjfksjd/ir-search392—~3.5kAutomated safety check: NotesMIT
Kalshi Traderyanfrigo/kalshi-ai-trading-bot614—~3.4kAutomated safety check: PassMIT

Similar skills

  • Itr Wala

    karanb192/itr-wala

    File Indian income tax returns (ITR) for FY 2025-26 / AY 2026-27.

    871 GitHub stars~3.6k tokensUpdated 5 days ago
    Business, Finance & HRAuto-check passed
  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    321 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Global Stock Data

    simonlin1212/global-stock-data

    美股港股全栈数据工具包(官方源优先)— 十三层架构·30+端点·11数据源·全部零鉴权。在原有行情/K线/技术指标(MA/MACD/RSI/KDJ/布林带)/基本面/资金面/期权/SEC Filing/工具八层之上,新增:CBOE官方期权链(完整希腊字母+IV+0DTE流+异动识别)、FINRA全市场每日空头成交量、SEC…

    1.7k GitHub stars~19k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check passed
  • Surveys open Korean government startup and R&D support programs and sorts them by fit with your project, checking eligibility against the original notices.

    392 GitHub stars~3.5k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check: notes
  • Kalshi Trade

    ryanfrigo/kalshi-ai-trading-bot

    The disciplined process for autonomously and profitably trading the live Kalshi account on each /loop tick, with Claude as the decision-maker.

    614 GitHub stars~3.4k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Stock Analysis Team

    wudengyao/stock-analysis-team

    提供股票多维度分析团队协同研究能力;当用户需要股票分析、投资决策支持、风险评估、市场复盘或回测验证时使用. An agent skill from wudengyao/stock-analysis-team.

    167 GitHub stars~1.1k tokensUpdated 16 days ago
    Business, Finance & HRAuto-check passed

More from lzwme/finance-quant-skills

All 13 skills in this repo
  • Akshare

    lzwme/finance-quant-skills

    AKShare 开源金融数据接口库,提供股票、期货、期权、基金、外汇、债券、指数、加密货币等全品类金融数据;当用户需要获取各类金融市场数据时使用

    440 GitHub stars~1.1k tokensUpdated 16 days ago
    Auto-check passed
  • Baostock

    lzwme/finance-quant-skills

    BaoStock 免费开源 A 股数据平台,无需注册、无需 API Key,支持股票行情、K线、财务数据、行业分类、指数成分股查询。当用户提及 baostock、需要获取A股历史行情、财务报表、交易日历,或需要免费、免注册的A股数据时使用。与 tushare(数据更全但需注册)和 jqdatasdk(聚宽数据)不同,baostock 完全免费无限制,适合快速入门和低成本数据需求。

    440 GitHub stars~1k tokensUpdated 16 days ago
    Auto-check passed
  • Equity Researcher

    lzwme/finance-quant-skills

    机构级投研报告生成技能。覆盖中国A股、港股、美股上市公司。输出模式:1)投资速览:3-5页,含公司概览、核心财务指标、估值倍数、投资逻辑与风险因素;2)深度研报:≥25页,含行业分析、产业链图谱、三表模型、DCF估值、情景分析与敏感性测试。触发条件:1)直接请求:分析/看看/研究/调研/介绍一下 + 公司名或股票;2)投资询问:你怎么看/能不能买/值得投吗/帮我看看/扒一扒 +…

    440 GitHub stars~4.9k tokensUpdated 16 days ago
    Auto-check passed
  • Jqdatasdk

    lzwme/finance-quant-skills

    聚宽(JoinQuant)本地数据 SDK,提供 A 股行情、历史K线、财务数据、指标数据等,与聚宽官网数据同源。当用户提及 jqdatasdk、聚宽数据、需要获取A股数据,或已注册聚宽账号时使用。与 baostock(免费)和 tushare(数据最全)不同,jqdatasdk 需注册聚宽账号获取 Token,适合已在使用聚宽平台的用户。本地数据获取请用本技能,聚宽官网策略开发请用…

    440 GitHub stars~927 tokensUpdated 16 days ago
    Auto-check passed
  • Miniqmt

    lzwme/finance-quant-skills

    MiniQMT 迅投量化交易接口,基于 XtQuant Python 库(xtdata 行情 / xttrader 交易),供外部 Python 程序连接 MiniQMT 客户端,支持 A 股/期货/期权的行情获取(K线、分笔、财务数据等)和交易下单(报单、撤单、查询资产/委托/持仓)。当用户提及 miniqmt、xtquant、获取实时行情、量化交易下单、回测数据获取,或需要用外部…

    440 GitHub stars~1.7k tokensUpdated 16 days ago
    Auto-check passed
  • Tdxquant

    lzwme/finance-quant-skills

    通达信量化数据获取技能。当用户提及 tdxquant、通达信、TdxQuant、tqcenter,并且需要获取A股数据(行情快照、K线、财务、板块、可转债、新股、交易数据等)、查询交易日历、执行通达信公式、订阅行情、交易下单时使用

    440 GitHub stars~1.6k tokensUpdated 16 days ago
    Auto-check passed

Works with

Questions about Backtrader

What does Backtrader do?

Backtrader 开源量化回测框架,支持多数据源、多策略、多周期回测与实盘交易,纯Python实现。当用户需要开发量化策略、进行回测分析、编写交易逻辑、回测参数优化,或提及 backtrader、量化回测框架时使用。若用户仅需数据获取而无回测需求,引导使用 baostock/akshare/tushare 等数据 Skill。. Backtrader is an agent skill from lzwme/finance-quant-skills.

When should I use Backtrader?

Backtrader fits situations like: business, Finance & HR work in your project.

How do I install Backtrader in Claude Code?

Run `npx skills add lzwme/finance-quant-skills --skill backtrader -a claude-code`. Or copy the skill folder (skills/backtrader in lzwme/finance-quant-skills) into .claude/skills/backtrader in your project. Claude Code loads it when a task matches its description.

How do I install Backtrader in Codex?

Run `npx skills add lzwme/finance-quant-skills --skill backtrader -a codex`. Or copy the skill folder (skills/backtrader in lzwme/finance-quant-skills) into .agents/skills/backtrader in your project. Codex loads it when a task matches its description.

Can I use Backtrader in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lzwme/finance-quant-skills --skill backtrader -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/backtrader, .gemini/skills/backtrader, .github/skills/backtrader and .opencode/skills/backtrader in your project.

What does Backtrader need to run?

Going by SKILL.md and its folder, Backtrader needs the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Backtrader access the network?

SKILL.md names 2 domains. As links in the text: github.com and backtrader.com. This is read from the text; nothing was executed.

Is Backtrader safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Backtrader use?

No licence was found for Backtrader or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Backtrader use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.

What are the alternatives to Backtrader?

Skills that share tags, products or a category with Backtrader: Itr Wala (karanb192/itr-wala, 871 stars), Tushare Data (zillionare/zillionare, 321 stars), Global Stock Data (simonlin1212/global-stock-data, 1.7k stars) and Korean Government Grant Search (djfksjd/ir-search, 392 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Backtrader?

lzwme (a GitHub organization) maintains it in lzwme/finance-quant-skills, which has 440 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 23, 2026.

Source: lzwme/finance-quant-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.