q-kdb-code-review
AI-powered code review for Q/kdb+ — catch bugs in the most terse language in finance
Why use this skill?
Optimize your Q/kdb+ code with an AI-powered code reviewer. Detect performance bottlenecks, type errors, and security vulnerabilities in your finance applications.
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
polymarket-whale-copier
Copy trade winning Polymarket wallets automatically. Track whale wallets, mirror their bets at configurable percentages, with built-in risk management. No API keys needed.
iseclaw-intel
Indonesian Web3 intelligence via Iseclaw ACP agent. Real-time market data, token signals, TGE research, and GameFi analysis from Southeast Asia's first transparent AI agent.
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
trustlog-guard
Financial governance for OpenClaw agents. Tracks API spend, enforces budget limits, detects runaway loops, delivers cost briefings. Reads session .jsonl logs locally. 100% private.
just-fucking-cancel
Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and provides cancel URLs. CSV-based analysis with optional Plaid integration for ClawdBot users.