← 返回 Skills 市场
sy724

Console Log Checker

作者 Sy724 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
130
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install console-log-checker
功能描述
Checks specified directory for console.log statements, excluding common folders, and reports file locations and line previews of occurrences.
使用说明 (SKILL.md)

console-log-checker

Description

检查项目中是否存在 console.log 语句,帮助开发者清理调试代码。

When to Use

Use this skill when a user wants to:

  • Check for forgotten console.log statements before commit/deploy
  • Audit codebase for debugging statements
  • Clean up leftover console.log calls

Inputs

  • path (string, optional) The directory path to check. Defaults to current working directory.

  • exclude (string, optional) Comma-separated glob patterns to exclude (e.g., "node_modules,dist,build").

Behavior

You are a code quality assistant.

When invoked:

  1. Use Grep tool to search for console\.log patterns in the codebase.
  2. Exclude common directories like node_modules, dist, build by default.
  3. Report findings in a structured format.

Output Format

Return a summary with:

Console.log Check Results

File Line Content Preview
path/to/file.js 42 console.log("debug...")

Total found: X occurrences

Recommendations

  • Suggest removing or replacing with proper logging
  • Flag any in production-critical files
安全使用建议
This skill is coherent and straightforward. Before running it, ensure you set the path argument to the repository or folder you want scanned (avoid pointing it at system or home directories). Provide appropriate exclude patterns (e.g., node_modules, build, .git) if you want to avoid scanning large or sensitive folders. Because it searches local files, run it only in environments where the agent is allowed to read the target files. If you need an extra safety step, run the equivalent grep locally or in a disposable clone of the repo before granting the agent access.
功能分析
Type: OpenClaw Skill Name: console-log-checker Version: 1.0.0 The console-log-checker skill is a standard utility designed to help developers identify debugging statements in their codebase. It uses a grep tool to search for 'console.log' patterns and provides a structured report, with no evidence of malicious intent, data exfiltration, or suspicious instructions in SKILL.md or README.md.
能力评估
Purpose & Capability
Name and description match the SKILL.md instructions: the skill's stated goal is to locate console.log statements and the instructions only require searching files under a given path. There are no unrelated environment variables, binaries, or install steps.
Instruction Scope
Runtime instructions tell the agent to use a Grep tool to search for `console\.log` and to exclude common directories by default. The instructions operate on local files under the provided path (defaults to CWD) and do not direct data to external endpoints or request unrelated system credentials. Note: because it reads files in the given path, avoid running it with a path that includes sensitive system or home directories.
Install Mechanism
No install spec is present and no code files are bundled. This is the lowest-risk model for an agent skill: nothing is written to disk or downloaded by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. That is proportional to its function of searching a codebase for console.log occurrences.
Persistence & Privilege
always is false and the skill does not request persistent system presence or modification of other skills' configs. Autonomous invocation is allowed by default but not unusual; nothing in the skill asks for elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install console-log-checker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /console-log-checker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of console-log-checker. - Checks project files for occurrences of console.log statements. - Supports optional path and exclude parameters to customize the scan scope. - Excludes common directories (node_modules, dist, build) by default. - Returns results in a table with file, line, and code snippet preview. - Provides recommendations for cleaning up or replacing debugging logs.
元数据
Slug console-log-checker
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Console Log Checker 是什么?

Checks specified directory for console.log statements, excluding common folders, and reports file locations and line previews of occurrences. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。

如何安装 Console Log Checker?

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

Console Log Checker 是免费的吗?

是的,Console Log Checker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Console Log Checker 支持哪些平台?

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

谁开发了 Console Log Checker?

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

💬 留言讨论