← 返回
未分类 中文

Console Log Checker

Checks specified directory for console.log statements, excluding common folders, and reports file locations and line previews of occurrences.
检查指定目录中的 console.log 语句,排除常见文件夹,报告文件位置和行预览。
sy724 sy724 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 369
下载
💾 1
安装
1
版本
#latest

概述

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

FileLineContent Preview
-----------------------------
path/to/file.js42console.log("debug...")

Total found: X occurrences

Recommendations

  • Suggest removing or replacing with proper logging
  • Flag any in production-critical files

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 18:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,648
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,973
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 327,832