Security v1.0.0

console-log-checker

console-log-checker Description 检查项目中是否存在 console.log 语句,帮助开发者清理调试代码。 When to Use Use this skill when a user wants to: -...

sy724 更新于 2026-03-26 1 浏览
下载 SKILL

技能说明

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) Th

使用场景

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) Th

查看英文原始说明

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) Th

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/console-log-checker
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

5 个文件 · 17 kB
SKILL.md text/markdown
# 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

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。