/forge:strip-comments optional path or a scope like "src/ python only"from forge
Removes all comments from a codebase while preserving file headers, pragmas, and license notices. Requires user approval of a diff preview before writing any changes.
Ships in forge. Installing the plugin adds it to Claude Code.
Load first. Read
${CLAUDE_PLUGIN_ROOT}/lib/strip-comments/SKILL.mdin full before anything else - intake, tool calls, or output. That file is the authoritative procedure for this command; every mention of "thestrip-commentsprocedure" below refers to it. It is not auto-loaded, so this read is mandatory.
Run the strip-comments procedure. Remove every comment from a codebase except the header comment at the top of each file, and except the comment-shaped constructs that are actually directives, pragmas, or legal notices.
This command writes to disk. It never does so before a diff preview has been shown and approved.
User input: $ARGUMENTS
Collect the fields below with AskUserQuestion. Ask in one call where possible - four questions is the tool's limit, so DOCSTRINGS and MARKUP go in a second call only when the enumerated files make them relevant.
If $ARGUMENTS is a path to an existing directory or file, treat it as the SCOPE candidate and confirm it inside question 1 rather than skipping the question. If $ARGUMENTS also carries a language hint ("python only", "just the JS"), treat it as the LANGUAGES candidate the same way.
The listed options are starting points - tell the user the "Other" field is the expected path for their real scope.
Current directory, recursively, One subdirectory (give path), Changed files only (git diff), A single file, plus "Other".Everything found, One language only (say which), Source files, skip templates, plus "Other".Batch by directory (recommended over ~50 files), Batch by language, All at once - small codebase, plus "Other".Keep docstrings (default), Remove docstrings too, plus "Other". A docstring is an executable string expression, not a comment; removal keeps any docstring consumed at runtime and replaces a function's only body with pass.Leave markup comments alone (default), Strip HTML/Blade/Jinja/Handlebars comments too, plus "Other".Before enumerating, confirm the working state:
git status --short is clean. A dirty tree makes the diff preview unreadable and the change hard to revert.Do not proceed past a failed check on your own judgment. Say which check failed and stop.
bash ${CLAUDE_PLUGIN_ROOT}/lib/strip-comments/scripts/find-candidates.sh <root> [-- ext ...], passing the collected scope through. Present the file list before touching anything, and carry the script's stderr skips into the report.${CLAUDE_PLUGIN_ROOT}/lib/strip-comments/references/language-notes.md), which comment-like lines must survive (${CLAUDE_PLUGIN_ROOT}/lib/strip-comments/references/preserve-list.md), and which apparent comments sit inside strings, URLs, regexes, or heredocs. Batch by language.git diff --name-only | bash ${CLAUDE_PLUGIN_ROOT}/lib/strip-comments/scripts/syntax-check.sh
git diff --name-only | bash ${CLAUDE_PLUGIN_ROOT}/lib/strip-comments/scripts/audit-remaining.sh
git diff --stat
Resolve every FLAG from the audit. List every SKIP from the syntax check - a skip is not evidence of correctness. Then run the project's test suite if one exists, and its build for languages the syntax check could not cover./*! */ block, language pragma, generated-file marker, or Python comment-form type annotation.README, and CHANGELOG as out of scope.Out of scope: this engine removes comments only. To rewrite docblocks into short plain-English one-liners instead of deleting them use /docblock-rewrite; to strip AI-sounding voice from comments that stay use /unslop.$ARGUMENTS
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub chrismccoy/forge --plugin forge123 commands in this plugin
/accessibility-audit/accessibility-audit - Guided WCAG Audit and FixWCAG accessibility audit via guided intake - mode, scope, standard, fix authority, tech stack./analyze-prompt/analyze-prompt - Prompt SummaryProduce a rigorous, review-ready engineering analysis of any AI prompt./analyze-skill/analyze-skill - Skill AnalysisRigorous, review-ready analysis of any Claude Code skill folder, SKILL.md, or plugin skill - purpose, triggers, every file mapped, security review, compatibility, a scorecard, and the files quoted with secrets redacted - in one of 8 modes (full, security, explain, interview, improve, compat, beginner, quick). Bundled static checks; the target's code never runs./appointment-prep/appointment-prep - Healthcare Appointment PrepPrepare for a doctor, dentist, physio, or specialist appointment - emergency check first, then a doctor summary, five questions, a symptom diary, and checklists./bash-forge/bash-forge - Bash Scripting ExpertBash scripting for Linux, macOS, WSL, Git Bash, and containers - write, review, debug, optimize, or scaffold .sh scripts with Bash 5.3 features, security hardening, ShellCheck, and CI/CD. Analyze, optimize, template, and create workflows; batch ShellCheck, profiler, and parallel-runner scripts./blueprint/blueprint - App Blueprint PipelinePlan a new app from five inputs as a 12-section production blueprint, then harden it - fresh-context review against per-stack fact sheets, a walking-skeleton scaffold, and time-boxed spikes.