← 返回 Skills 市场
balkanblbn

Code Quality Guard

作者 balkanblbn · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
618
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install code-quality-guard
功能描述
Professional pre-deployment code review and quality enforcement. Ensures imports are valid, tags are closed, and logic follows best practices before announci...
使用说明 (SKILL.md)

Code Quality Guard

Ship cleaner code, faster. Never let a missing import break your production again.

Checklist

  1. Import Sweep: Check every component used against the import block.
  2. Tag Verification: Ensure all JSX/HTML tags are balanced.
  3. Environment Audit: Verify required env vars and ports.
  4. Log Review: Scan for debug prints and secrets.

Usage

Run as a pre-build hook to catch "ReferenceErrors" before the human sees them.

Installation

clawhub install code-quality-guard
安全使用建议
This skill aims to perform pre-deploy code checks, which is reasonable, but its instructions are vague about scope and implicitly encourage reading environment variables, ports, and logs — potentially exposing secrets. Before installing: (1) Ask the author to list exactly which env vars, files, and ports the skill will check and to limit scope to the repository or specific paths. (2) Run it in an isolated/staging environment first, not on production systems. (3) Prefer a variant that invokes specific static-analysis tools or scripts (with reviewed code) rather than open-ended agent instructions. (4) If you allow autonomous invocation, restrict the agent's access rights (filesystem and environment) so the skill cannot read unrelated secrets. If the author cannot clarify the exact scope, treat the skill with caution and consider rejecting it until it declares precise required inputs and allowed paths.
功能分析
Type: OpenClaw Skill Name: code-quality-guard Version: 1.0.0 The skill's stated purpose is benign (code quality). However, the instruction 'Environment Audit: Verify required env vars and ports' in SKILL.md is vaguely worded and could be interpreted by an AI agent as a prompt injection to enumerate or access environment variables from the agent's host system, rather than just those relevant to the code being reviewed. This presents a vulnerability for unintended information disclosure, classifying it as suspicious due to the potential for exploitation.
能力评估
Purpose & Capability
Name and description match the checklist items in SKILL.md (import checks, tag verification, env audit, log/secret scanning). It's reasonable for a pre-build code-review helper to perform those checks, but the skill declares no required environment variables, config paths, or binaries while its instructions imply access to environment and runtime context.
Instruction Scope
SKILL.md instructs the agent to 'Verify required env vars and ports' and to 'Scan for debug prints and secrets' but does not define which env vars, which files/paths to scan, or any limits. This open-ended guidance grants broad discretion to read environment variables, inspect repository or system files, and potentially surface or transmit secrets. The instructions are high-level and ambiguous about scope and allowed targets.
Install Mechanism
No install spec and no code files are present (instruction-only). That minimizes on-disk installation risk; there is nothing downloaded or executed by an installer.
Credentials
Declared requirements list no credentials or config paths, yet the instructions explicitly call for an 'Environment Audit' and 'Log Review' that would typically require reading environment variables and log/config files. Requesting access to environment/state without declaring which variables or why is disproportionate and may lead to unnecessary exposure of sensitive values.
Persistence & Privilege
Skill is not marked always:true and does not request persistent system-wide changes in the manifest. Default autonomous invocation is allowed (platform default) but is not by itself a new concern.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install code-quality-guard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /code-quality-guard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug code-quality-guard
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Code Quality Guard 是什么?

Professional pre-deployment code review and quality enforcement. Ensures imports are valid, tags are closed, and logic follows best practices before announci... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 618 次。

如何安装 Code Quality Guard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-quality-guard」即可一键安装,无需额外配置。

Code Quality Guard 是免费的吗?

是的,Code Quality Guard 完全免费(开源免费),可自由下载、安装和使用。

Code Quality Guard 支持哪些平台?

Code Quality Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Code Quality Guard?

由 balkanblbn(@balkanblbn)开发并维护,当前版本 v1.0.0。

💬 留言讨论