Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

q-kdb-code-reviewq kdb 代码审查

Agent Skill

q-kdb-code-review 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

21,527

周安装

906

GitHub Stars

公开资料未说明

下载量

7,538
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:q-kdb-code-review(q kdb 代码审查)
来源仓库:https://github.com/beee003/q-kdb-code-review
安装命令:
openclaw skills install q-kdb-code-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install q-kdb-code-review

简介

q-kdb-code-review 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。

  • 适用于 Q/kdb+ 代码审查和金融领域开发任务。
  • 通过 openclaw skills install q-kdb-code-review 命令安装使用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
q-kdb-code-review
description
AI-powered code review for Q/kdb+ — catch bugs in the most terse language in finance
version
1.0.0
homepage
https://github.com/beee003/astrai-openclaw
metadata
clawdbot
emoji
requires
env
["ASTRAI_API_KEY"]
primaryEnv
ASTRAI_API_KEY
files
["plugin.py", "config.example.toml"]
tags
[q, kdb, kdb-plus, quant, finance, code-review, hft, trading, timeseries]

q-kdb-code-review

AI-powered code review for Q/kdb+ — catch bugs, performance issues, and security vulnerabilities in the most terse language in quantitative finance.

What it does

Reviews Q/kdb+ code with deep understanding of Q idioms, performance patterns, and common pitfalls. Built for quant developers, kdb+ DBAs, and trading infrastructure teams.

Catches:

  • Type errors in implicit casts (e.g., mixing longs and floats in comparisons)
  • Rank errors from wrong argument counts in function calls
  • Unescaped signals in protected evaluation
  • Memory-inefficient queries (selecting all columns when only some are needed)
  • Missing peach parallelism opportunities for embarrassingly parallel operations
  • Unsafe eval/value usage on user-supplied strings (Q injection)
  • Unlocked tables during concurrent inserts
  • Missing ` g# `` grouped attributes on high-cardinality join columns
  • N-squared joins that should be aj (asof joins) or wj (window joins)
  • Race conditions in timer callbacks (.z.ts)
  • Unprotected IPC handlers (.z.pg, .z.ps) and exposed .z.pw

Strictness modes:

ModeWhat it checks
standardBugs, correctness, type errors, join semantics, null handling
strictEverything in standard + performance (attributes, peach, vector ops) + style
securityEverything in standard + injection via string eval, unprotected IPC handlers, exposed .z.pw, port exposure

Intelligent routing via Astrai: Complex algorithmic Q (custom signal generation, real-time CEP) routes to powerful models. Simple table operations (selects, inserts, schema definitions) route to cheaper, faster models. You get the best result at the lowest cost.

BYOK (Bring Your Own Keys): Your provider API keys, your billing. Astrai routes to the best model among your configured providers.

Setup

  1. Get a free API key at as-trai.com
  2. Set your API key:
   export ASTRAI_API_KEY="your_key_here"
  1. Optionally add provider keys for BYOK routing:
   export ANTHROPIC_API_KEY="sk-ant-..."
   export OPENAI_API_KEY="sk-..."
  1. Run /review-q on any .q file

Usage

/review-q                          Review current Q file
/review-q --strict                 Strict mode: bugs + performance + style
/review-q --focus security         Security mode: eval injection, IPC, .z.pw
/review-q --file tick.q            Review a specific file

Example output

Reviewing tick.q (strict mode)...
Model: claude-opus-4-6 via Astrai

Found 3 issues:

[CRITICAL] Line 12: Missing `s# attribute on time column
  `trade` table uses `aj` but `time` column lacks sorted attribute.
  Without `s#`, asof join scans linearly — O(n) instead of O(log n).
  Fix: trade: `trade upsert update `s#time from trade

[WARNING] Line 34: Using `each` where vector operation suffices
  {x*y} each' (price;qty) can be replaced with price*qty
  Vector multiply is ~100x faster than each-both.

[INFO] Line 45: Consider `peach` for independent symbol processing
  Processing each symbol sequentially. Since operations are independent,
  `peach` would utilize all cores.
  Fix: results: func peach syms

Summary: 1 critical, 1 warning, 1 info. Focus on the missing sorted
attribute — it will cause aj performance to degrade from microseconds
to milliseconds at scale.

Environment Variables

VariableRequiredDescription
ASTRAI_API_KEYYesAPI key from as-trai.com
ANTHROPIC_API_KEYNoBYOK: Anthropic provider key
OPENAI_API_KEYNoBYOK: OpenAI provider key
GOOGLE_API_KEYNoBYOK: Google AI provider key
DEEPSEEK_API_KEYNoBYOK: DeepSeek provider key
MISTRAL_API_KEYNoBYOK: Mistral provider key
GROQ_API_KEYNoBYOK: Groq provider key
TOGETHER_API_KEYNoBYOK: Together AI provider key
FIREWORKS_API_KEYNoBYOK: Fireworks AI provider key
COHERE_API_KEYNoBYOK: Cohere provider key
PERPLEXITY_API_KEYNoBYOK: Perplexity provider key
REVIEW_STRICTNESSNoDefault strictness: standard, strict, or security

External Endpoints

EndpointPurpose
as-trai.com/v1/chat/completionsAstrai inference router — routes Q review requests to the optimal model

Security & Privacy

  • No code storage: Your Q code is sent to the selected AI provider for inference and is not stored by Astrai.
  • BYOK: When you provide your own provider keys, requests go directly through Astrai's router to your provider account. Astrai does not store or log your provider keys beyond the request lifecycle.
  • Transport: All communication uses HTTPS/TLS.
  • No telemetry: The skill does not send analytics or telemetry data. Only the review request goes to Astrai.
  • Local processing: File reading and result formatting happen entirely on your machine.

Why Q needs specialized review

Q is unlike any mainstream programming language:

  • Extreme terseness: A single line of Q can express what takes 20 lines in Python. This density makes bugs nearly invisible during manual review.
  • Implicit type coercion: Q silently coerces types in many operations. Comparing a long to a float, or joining on mismatched key types, can produce silently wrong results.
  • 1000x performance gaps: The difference between idiomatic and naive Q is not 2x or 10x — it is often 1000x. Missing a sorted attribute on a time column turns an O(log n) asof join into O(n). Using each instead of vector operations adds interpreter overhead per element.
  • Adverb complexity: Q's adverbs (/, \, ', /:, \:, ':) modify function behavior in powerful but subtle ways. +/ is reduce-add, +\ is scan-add, +' is each-both-add. Confusing these causes wrong results, not errors.
  • Most AI models struggle: Without Q-specific prompting, general-purpose AI models treat Q code as line noise. This skill provides detailed system prompts that teach the model Q semantics, kdb+ internals, and finance-domain patterns.

Pricing

Uses Astrai's inference routing. Your costs depend on the models selected:

PlanRateIncludes
Free$01,000 requests/day
Pro$49/mo50,000 requests/day, priority routing
Business$199/moUnlimited requests, dedicated support

With BYOK, you pay your provider directly at their rates. Astrai's routing is included in the plan price.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.87%
按下载量换算7,302

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills