Agent skill

Qka

by zsrl in zsrl/qka

使用 QKA(快量化)框架生成 A 股量化回测策略、选股和技术指标代码。当需要基于 qka.Data、qka.Strategy、qka.Backtest、qka.Broker 等 API 编写量化代码时使用此技能。

MITAuto-check passedBusiness, Finance & HR

Install Qka

skills CLI
$ npx skills add zsrl/qka --skill qka -a claude-code

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

GitHub CLI
$ gh skill install zsrl/qka qka --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/zsrl/qka.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/qka .claude/skills/qka && 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
qka
GitHub stars
114
Token cost
~382 tokens
SKILL.md length
94 words
Files
7 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

使用 QKA(快量化)框架生成 A 股量化回测策略、选股和技术指标代码。当需要基于 qka.Data、qka.Strategy、qka.Backtest、qka.Broker 等 API 编写量化代码时使用此技能。

  • Tasks that involve Trading and backtesting
  • SKILL.md covers 参考文档 and 使用指南
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Qka is an agent skill from zsrl/qka. 使用 QKA(快量化)框架生成 A 股量化回测策略、选股和技术指标代码。当需要基于 qka.Data、qka.Strategy、qka.Backtest、qka.Broker 等 API 编写量化代码时使用此技能。

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/analysis.md`, `references/backtest.md` and `references/broker.md`).

It sits in Business, Finance & HR, covering Trading and backtesting. The licence is MIT.

When your agent uses it

  • Tasks that involve Trading and backtesting

Example prompts

  • “/qka”

What it can do on your machine

Read from SKILL.md and the folder at commit 4aca311. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Qka loads about 382 tokens when it runs, and up to ~9.8k if it reads all its reference files. Until then it costs about 28 tokens; SKILL.md has 94 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~382
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.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

The full file from zsrl/qka at commit 4aca311, republished under its MIT licence (© zsrl). 94 words, ~382 tokens.

Download SKILL.mdSave it as .claude/skills/qka/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
qka
description
使用 QKA(快量化)框架生成 A 股量化回测策略、选股和技术指标代码。当需要基于 qka.Data、qka.Strategy、qka.Backtest、qka.Broker 等 API 编写量化代码时使用此技能。

QKA 框架

简洁易用的 A 股量化回测框架,共七个公开类:

类全限定名作用
Dataqka.Data行情数据加载 + 指标预计算
Simulateqka.Simulate模拟标的 — 描述一只由 qka 现场生成的行情
Strategyqka.Strategy策略基类 — 实现 on_bar 做交易决策
Brokerqka.Broker虚拟券商 — 执行买卖,管理资金和持仓
SizingAccessorqka.SizingAccessor仓位计算 — 四种仓位方法
Backtestqka.Backtest回测引擎 — 串联 Data 和 Strategy,注入基础设施
Analysisqka.Analysis分析模块 — 常用的分析方法

参考文档

详细 API 文档按模块拆分在 references/ 目录下,按需查阅对应文件:

模块文件内容
Datareferences/data.md数据加载、指标预计算(ta 库全部指标 + qka 内置指标)、get()
Simulatereferences/data.md模拟标的:Simulate(symbol, drift, reversion, vol),放进 Data(symbols=[...])
Strategyreferences/strategy.md策略基类、on_bar、self.get()、self.history()
Backtestreferences/backtest.mdrun()、bt.metrics、bt.results、bt.trade_history
Brokerreferences/broker.mdbuy()、sell()
SizingAccessorreferences/sizing.md四种仓位方法
Analysisreferences/analysis.mdzigzag()、alpha_beta()、sharpe_ratio()、max_drawdown()、information_ratio()

使用指南

  • 编写回测策略:读 references/strategy.md + references/backtest.md,必要时读 references/data.md
  • 编写选股 / 数据加载:读 references/data.md
  • 使用买卖 / 仓位:读 references/broker.md + references/sizing.md
  • 使用事后分析:读 references/analysis.md

© zsrl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in skills/qka of zsrl/qka.

  • SKILL.md
  • references/analysis.md
  • references/backtest.md
  • references/broker.md
  • references/data.md
  • references/sizing.md
  • references/strategy.md

Open the folder on GitHubat commit 4aca311

Compare with similar skills

Qka 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.

Qka compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Qka this skillzsrl/qka114—~382Automated safety check: PassMIT
Tushare Datazillionare/zillionare3212 repos~2.3kAutomated safety check: PassNone
Tradingview MCPatilaahmettaner/tradingview-mcp5k—~1.3kAutomated safety check: PassMIT
Digital Oraclekomako-workshop/digital-oracle875—~5.9kAutomated safety check: PassMIT
Polyclawchainstacklabs/polyclaw3591 repos~2kAutomated safety check: PassApache-2.0
Markdownfacioquo/stock-indicators-dotnet1.2k—~812Automated safety check: PassApache-2.0

Similar skills

  • Tushare Data

    zillionare/zillionare

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

    321 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    5k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Digital Oracle

    komako-workshop/digital-oracle

    Answer prediction questions using market trading data, not opinions.

    875 GitHub stars~5.9k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Polyclaw

    chainstacklabs/polyclaw

    Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.

    359 GitHub starsUsed in 1 repo~2k tokens
    Business, Finance & HRAuto-check passed
  • Markdown

    facioquo/stock-indicators-dotnet

    Format and lint Markdown in this repository against GitHub Flavored Markdown and its markdownlint-cli2 configuration — headers, lists, code fences, callouts (VitePress containers on docs-site pages…

    1.2k GitHub stars~812 tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Openmobius Skill

    MobiusQuant/OpenMobius-skill

    Provides multi-school trading Q&A, chart/OHLCV analysis, annotation, and fresh-market workflows covering ICT/SMC, ChanLun, Wyckoff, Price Action, Order Flow, VSA, and Elliott Wave.

    695 GitHub stars~7.2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed

Questions about Qka

What does Qka do?

使用 QKA(快量化)框架生成 A 股量化回测策略、选股和技术指标代码。当需要基于 qka.Data、qka.Strategy、qka.Backtest、qka.Broker 等 API 编写量化代码时使用此技能。. Qka is an agent skill from zsrl/qka.

When should I use Qka?

Qka fits situations like: tasks that involve Trading and backtesting.

How do I install Qka in Claude Code?

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

How do I install Qka in Codex?

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

Can I use Qka 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 zsrl/qka --skill qka -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/qka, .gemini/skills/qka, .github/skills/qka and .opencode/skills/qka in your project.

What does Qka need to run?

SKILL.md names no scripts, command-line tools or credentials: Qka is instructions for the agent only.

Does Qka access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Qka 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 Qka use?

Qka is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Qka use?

About 382 tokens (SKILL.md is roughly 1.5k 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 9.4k tokens, read only when the agent opens those files.

What are the alternatives to Qka?

Skills that share tags, products or a category with Qka: Tushare Data (zillionare/zillionare, 321 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Digital Oracle (komako-workshop/digital-oracle, 875 stars) and Polyclaw (chainstacklabs/polyclaw, 359 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Qka?

zsrl (a GitHub user) maintains it in zsrl/qka, which has 114 GitHub stars. The repository was last updated on October 9, 2026.

Source: zsrl/qka on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.