Skip to content
Back to skills

Remove Console Logs

ASecurity

Finds and removes leftover debug logging and prints while keeping the intentional logger calls and CLI output.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsgonode

Works with

  • cli

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill remove-console-logs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove Console Logs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Remove Console Logs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-remove-console-logs/badge)](https://www.skillsdirectory.com/skills/workspace-templates-remove-console-logs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: remove-console-logs
description: Finds and removes leftover debug logging and prints while keeping the intentional logger calls and CLI output.
argument-hint: "[folder, default whole project]"
user-invocable: true
disable-model-invocation: true
---

Remove leftover debug output in: $ARGUMENTS (whole project if empty).

1. Search for debug output by language: console.log, console.debug, debugger, print(, pprint, var_dump, dd(, puts, fmt.Println, System.out.println, println!, dbg!, and commented-out copies. Skip node_modules, vendor and build folders.
2. Classify each hit. **Remove:** bare prints of variables, "here" or "test" markers, dumps of objects, commented-out logging. **Keep:** calls to the project's logger, output in files whose purpose is to print (CLI scripts, build tools), deliberate console.error in a catch, and test helpers.
3. Flag any hit that logs a token, password, email or full request body as a leak, even if you keep it.
4. Do not delete a line that has side effects inside the call, such as `console.log(i++)`; mention it instead.
5. Remove the confirmed ones, tidy now-unused imports and variables, then run the linter and tests.

First show a table of hits with file, line, the decision and the reason. Apply only after I say go. Finish with counts removed, kept and flagged.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.