ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

q-kdb-code-review

AI-powered code review for Q/kdb+ — catch bugs in the most terse language in finance

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/beee003/q-kdb-code-review
Or

What This Skill Does

q-kdb-code-review is an specialized AI-powered analysis tool designed specifically for the Q/kdb+ programming language. Because Q is exceptionally terse and relies heavily on implicit typing and vector operations, standard linting tools often miss domain-specific performance bottlenecks and logical pitfalls. This skill acts as a expert-level pair programmer, scanning your codebase for common quantitative finance anti-patterns. It evaluates code against three distinct profiles: standard correctness, performance-oriented strict mode, and a security-focused audit. It identifies issues ranging from rank errors and type mismatches to complex performance killers like N-squared join operations and missing sorted attributes. By utilizing intelligent routing, it ensures that simple queries are handled rapidly while complex algorithmic signals are processed by high-reasoning models.

Installation

  1. Ensure you have the OpenClaw agent installed and configured.
  2. Obtain a free API key from as-trai.com.
  3. Set your environment variables:
    • export ASTRAI_API_KEY="your_key_here"
    • Optionally configure ANTHROPIC_API_KEY or OPENAI_API_KEY for BYOK (Bring Your Own Keys) capabilities.
  4. Run the install command in your terminal: clawhub install openclaw/skills/skills/beee003/q-kdb-code-review.

Use Cases

  • Production Readiness: Use the strict mode before merging pull requests to ensure your high-frequency trading ticker plant is optimized for low latency.
  • Security Auditing: Run the security mode on any gateway or tick-handler that accepts external IPC connections to prevent code injection attacks or unauthorized system access.
  • Refactoring: Use the basic review mode to identify legacy code that uses inefficient loops or outdated syntax that can be vectorized for better performance.

Example Prompts

  1. "/review-q --file historical_data_processor.q"
  2. "/review-q --strict, please check for any missing g# or s# attributes in my table schema definitions."
  3. "/review-q --focus security, scan my .z.pg and .z.ps handlers for potential vulnerabilities."

Tips & Limitations

  • Tip: Always run in strict mode if you are preparing code for a production environment to ensure that peach parallelism is utilized where appropriate.
  • Limitation: The skill provides recommendations based on best practices; always benchmark your code with (time) in the kdb+ console before deploying major refactors to production.
  • Tip: When using the security mode, ensure you review any flagged IPC handlers manually to confirm if the access patterns align with your network security policy.

Metadata

Author@beee003
Stars4473
Views5
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-beee003-q-kdb-code-review": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#q#kdb#kdb-plus#quant#finance#code-review#hft#trading#timeseries
Safety Score: 4/5

Flags: file-read, external-api

Related Skills

vynn-backtester

Run trading strategy backtests with natural language — powered by Vynn

beee003 4473

olo-sec-scanner

SEC EDGAR filing analysis for M&A due diligence — extract financials, detect risks, and track corporate events from 10-K, 10-Q, and 8-K filings

aniebyl 4473

auto-trading-strategy

Professional trading strategy guides for prediction markets and crypto. Risk management, trend analysis, and best practices.

863king 4473

pinescript-mastery

Transforms the AI into an elite Pine Script developer and trading strategy architect — capable of writing production-grade indicators, strategies, and libraries from scratch, debugging complex scripts, designing complete trading systems, and teaching Pine Script at any level. Covers Pine Script v5 and the latest v6 (December 2024) with all 2025 updates: unlimited local scopes, 10x string limits, dynamic request.*() calls, strict boolean logic, and the full modern feature set. Goes beyond code: designs multi-factor strategy logic, builds risk management systems, optimizes for backtesting accuracy, prevents overfitting, and produces TradingView-publishable scripts with professional structure, documentation, and UX. Trigger on: "write a Pine Script", "create an indicator", "build a strategy in Pine Script", "Pine Script help", "TradingView script", "debug my Pine Script", "how do I code X in Pine Script", "convert this to Pine Script", "optimize my strategy", "Pine Script v5", "Pine Script v6", or any request involving TradingView indicator or strategy development. Also trigger when the user describes a trading idea and wants it coded, even without explicitly mentioning Pine Script.

alradyin 4473

web3-weekly-report

自动抓取数据并生成 Web3 行业资本运作周报,涵盖融资事件、监管动态、上市公司 DAT 动态、并购交易与 RWA 项目追踪。当用户提到"写周报"、"生成周报"、"整理本周融资"、"Web3 周报"、"资本运作周报"、"采编周报",或请求整理加密行业本周动态时,立即激活此 skill。即使用户只说"帮我写本周的",只要上下文涉及 Web3、加密、融资、RWA、DAT,也应激活。

baoyangispoor 4473