/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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install console-log-checker - After installation, invoke the skill by name or use
/console-log-checker - Provide required inputs per the skill's parameter spec and get structured output
What is Console Log Checker?
Checks specified directory for console.log statements, excluding common folders, and reports file locations and line previews of occurrences. It is an AI Agent Skill for Claude Code / OpenClaw, with 130 downloads so far.
How do I install Console Log Checker?
Run "/install console-log-checker" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Console Log Checker free?
Yes, Console Log Checker is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Console Log Checker support?
Console Log Checker is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Console Log Checker?
It is built and maintained by Sy724 (@sy724); the current version is v1.0.0.