/install console-log-checker
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:
- Use Grep tool to search for
console\.logpatterns in the codebase. - Exclude common directories like node_modules, dist, build by default.
- 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install console-log-checker - 安装完成后,直接呼叫该 Skill 的名称或使用
/console-log-checker触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。