← 返回 Skills 市场
704
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install q-kdb-code-review
功能描述
AI-powered code review for Q/kdb+ — catch bugs in the most terse language in finance
安全使用建议
This skill appears to do what it says (send Q code to an external service for review), but be aware of two actionable risks before installing:
1) External submission of code and keys: The plugin sends your Q code to an external server (Astrai) for analysis. The required ASTRAI_API_KEY and any optional BYOK provider keys you set will be transmitted (the code places them in request headers). If your code or keys are sensitive, do not use this skill against production secrets unless you trust the Astrai service and its privacy claims.
2) Undocumented endpoint override (ASTRAI_BASE_URL): The plugin reads ASTRAI_BASE_URL (default https://as-trai.com/v1) but this env var is not documented in SKILL.md or config.example.toml. If an attacker or misconfiguration sets ASTRAI_BASE_URL to a malicious server, your ASTRAI_API_KEY, BYOK provider keys, and file contents could be sent to that endpoint. Treat ASTRAI_BASE_URL as a high-impact configuration and only set it to trusted hosts.
Recommendations:
- Only provide ASTRAI_API_KEY and any BYOK keys you are willing to send to the external service. Consider creating scoped/ephemeral keys for testing.
- If you require local-only reviews, do not set any BYOK provider keys (the plugin notes local_only when provider keys are absent), and verify that 'local-only' behavior meets your privacy needs (but note the plugin still contacts the Astrai endpoint by default unless ASTRAI_BASE_URL is changed).
- Verify the skill source (the homepage link exists, but owner is unknown). Review plugin.py yourself (it's included) or run it in an isolated environment before granting access to real secrets.
- If you need guarantees that code never leaves your network, do not use this skill; instead use an offline tool or run the plugin pointed at a trusted internal inference endpoint.
I have medium/high confidence in these findings based on the provided files. If you want, I can scan plugin.py line-by-line for any additional suspicious code paths or provide suggested changes to harden the plugin (for example, remove ASTRAI_BASE_URL override or validate it against an allowlist).
功能分析
Type: OpenClaw Skill
Name: q-kdb-code-review
Version: 1.0.0
The skill's primary function is benign: AI-powered Q/kdb+ code review. However, it is classified as suspicious due to its 'Bring Your Own Keys' (BYOK) feature. The `plugin.py` code collects all configured AI provider API keys (e.g., ANTHROPIC_API_KEY, OPENAI_API_KEY) from environment variables and transmits them to the `as-trai.com` endpoint via HTTP headers (`X-Astrai-Provider-Keys`). While this behavior is explicitly documented in `SKILL.md` as part of the inference routing mechanism, centralizing the transmission of multiple sensitive API keys to a single third-party service, even for a stated purpose, introduces a significant trust assumption and a potential single point of compromise for these credentials.
能力评估
Purpose & Capability
Name/description match the implementation: the plugin collects an ASTRAI API key and optional provider keys and sends Q code to an Astrai router for analysis. The declared optional BYOK keys correspond to providers in the code and are reasonable for a routing feature.
Instruction Scope
The SKILL.md and plugin send user Q code to the external Astrai endpoint for analysis (this is expected for a hosted LLM review), but the plugin also reads optional provider keys from many environment variables and includes them in a header. SKILL.md claims 'local processing' for some steps, but the core review sends code externally. Additionally the plugin uses an override env var ASTRAI_BASE_URL (defaults to https://as-trai.com/v1) which is not documented in SKILL.md or config.example.toml; that allows redirecting where code and keys are sent.
Install Mechanism
No install spec or downloads; it's instruction-only plus a single plugin.py file. Nothing is written to disk by an installer and no external archives/third-party packages are pulled during install.
Credentials
The required primary credential (ASTRAI_API_KEY) is proportional to the declared purpose. Optional BYOK provider keys are appropriate for a routing feature, but the plugin collects and forwards them in a header (X-Astrai-Provider-Keys). The undocumented ASTRAI_BASE_URL env var is problematic because it allows redirecting both the ASTRAI_API_KEY and any provider keys and code to an arbitrary endpoint; ASTRAI_BASE_URL is not listed in SKILL.md's Environment Variables table or config.example.toml.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system configs, and runs only when invoked. It does not install persistent agents or escalate privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install q-kdb-code-review - 安装完成后,直接呼叫该 Skill 的名称或使用
/q-kdb-code-review触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: AI-powered Q/kdb+ code review — catch type errors, rank errors, performance issues, and security vulnerabilities in the most terse language in finance
元数据
常见问题
Q Kdb Code Review 是什么?
AI-powered code review for Q/kdb+ — catch bugs in the most terse language in finance. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 704 次。
如何安装 Q Kdb Code Review?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install q-kdb-code-review」即可一键安装,无需额外配置。
Q Kdb Code Review 是免费的吗?
是的,Q Kdb Code Review 完全免费(开源免费),可自由下载、安装和使用。
Q Kdb Code Review 支持哪些平台?
Q Kdb Code Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Q Kdb Code Review?
由 beee003(@beee003)开发并维护,当前版本 v1.0.0。
推荐 Skills