q-kdb-code-review
AI-powered code review for Q/kdb+ — catch bugs in the most terse language in finance
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/beee003/q-kdb-code-reviewWhat 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
- Ensure you have the OpenClaw agent installed and configured.
- Obtain a free API key from as-trai.com.
- Set your environment variables:
export ASTRAI_API_KEY="your_key_here"- Optionally configure
ANTHROPIC_API_KEYorOPENAI_API_KEYfor BYOK (Bring Your Own Keys) capabilities.
- Run the install command in your terminal:
clawhub install openclaw/skills/skills/beee003/q-kdb-code-review.
Use Cases
- Production Readiness: Use the
strictmode before merging pull requests to ensure your high-frequency trading ticker plant is optimized for low latency. - Security Auditing: Run the
securitymode 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
- "/review-q --file historical_data_processor.q"
- "/review-q --strict, please check for any missing
g# ors# attributes in my table schema definitions." - "/review-q --focus security, scan my .z.pg and .z.ps handlers for potential vulnerabilities."
Tips & Limitations
- Tip: Always run in
strictmode if you are preparing code for a production environment to ensure thatpeachparallelism 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
securitymode, ensure you review any flagged IPC handlers manually to confirm if the access patterns align with your network security policy.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-beee003-q-kdb-code-review": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-read, external-api
Related Skills
vynn-backtester
Run trading strategy backtests with natural language — powered by Vynn
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
auto-trading-strategy
Professional trading strategy guides for prediction markets and crypto. Risk management, trend analysis, and best practices.
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.
web3-weekly-report
自动抓取数据并生成 Web3 行业资本运作周报,涵盖融资事件、监管动态、上市公司 DAT 动态、并购交易与 RWA 项目追踪。当用户提到"写周报"、"生成周报"、"整理本周融资"、"Web3 周报"、"资本运作周报"、"采编周报",或请求整理加密行业本周动态时,立即激活此 skill。即使用户只说"帮我写本周的",只要上下文涉及 Web3、加密、融资、RWA、DAT,也应激活。