Armory
Source
Browse
Hooks

console-log-cleaner

Warns about console.log statements when editing files on production branches (main/master). Helps prevent debug code from reaching production.

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install console-log-cleaner --cli claude

writes the file to.claude/hooks/console-log-cleanerListed as compatible

Configuration
# fetches the hook script into:
.claude/hooks/console-log-cleaner
# then register it in your settings.json "hooks" block.

↳ Add the hook entry to settings.json, then restart the harness.

Needs the armory CLI · not on npm yet, build it from cli/ in the repository

What it is

Warns about console.log statements when editing files on production branches (main/master). Helps prevent debug code from reaching production.

When to use it

Warns about console.log statements when editing files on production branches (main/master). Helps prevent debug code from reaching production.

How to install / invoke

# Wire this hook script into .claude/settings.json
curl -sL https://raw.githubusercontent.com/davila7/claude-code-templates/main/cli-tool/components/hooks/pre-tool/console-log-cleaner.json -o .claude/hooks/console-log-cleaner.json

Notes

Extracted from davila7/claude-code-templates, pre-tool category.