/code:build-warningsfrom code
Fixes build and test warnings systematically by grouping them by type (compiler, lint, deprecation, runtime, slow-test, noise) and fixing one class at a time. Useful when asked to clean up noisy build output or deprecation warnings.
Ships in code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A healthy build is quiet. Every warning the build prints trains readers to skim past the next one, and the one that matters, such as a deprecation that becomes a removal in the next upgrade, gets lost in the noise. Fix what the build warns about so that a new warning stands out.
Resolve <plugin-root> first: in Claude Code use ${CLAUDE_PLUGIN_ROOT}; in Codex use the plugin root that contains this skills/build-warnings/SKILL.md file. The script below needs Python 3.9 or later.
git config --get-regexp '^test\.'), justfile recipes, package.json scripts, a Makefile, then build files.unattended: passed by callers such as burn. An unattended run asks the user nothing. Every question it would have asked becomes a queued finding instead (see Report).Run the build once and save the grouped report:
python3 <plugin-root>/scripts/build_warnings.py --root . run --log <scratch>/before.log -- '<command>' > <scratch>/before.json
One quoted argument runs in a shell; several run directly. The report groups warning lines by kind (compiler, lint, deprecation, runtime, slow-test, noise, other) and by what they share: a rule id, a deprecated API, or a file. Each group has a count, the files it names, and thirdParty, which is true when every file lies outside the repository's control (node_modules, site-packages, vendor and the like). --slow <seconds> sets when a test duration counts as slow, 1 second by default.
The baseline must pass: if the build or tests fail, stop and report it, because this skill never fixes a broken build. Read before.log around each group's example as well, since a warning the script files as other may still be fixable. Work through the groups with the highest counts first, fixing one class at a time: one rule, one deprecated API, one source of noise.
Never add suppression comments (# noqa, // eslint-disable, @SuppressWarnings, #[allow]), never lower a log level or a linter's severity, and never pass flags such as -nowarn, -w or --no-warnings to hide output. The only exception is a warning that comes from third-party code outside the repo's control and that no upgrade fixes: queue it instead of fixing it, with the dependency and its version.
Slow-test groups are not fixed here. Hand them to the code:test-speed skill, or queue them for it in an unattended run.
After each class, rerun exactly the same command and compare:
python3 <plugin-root>/scripts/build_warnings.py --root . run --log <scratch>/after.log -- '<command>' > <scratch>/after.json
python3 <plugin-root>/scripts/build_warnings.py compare <scratch>/before.json <scratch>/after.json
compare prints each class's count before and after and exits 1 unless the total fell. Keep a fix only when the build and tests still pass and the class's count fell without another class growing. Otherwise revert it and record the failing output. Do not try a different fix for the same class: move on.
Commit once per class, with a message that names the class and its counts, such as "Replace the deprecated fake_old() call (DeprecationWarning, 4 to 0)". Follow the repository's commit conventions.
Report in the terminal, or return to the caller when unattended:
compare;An unattended run also returns its queued findings as task text the caller can append to .llm/todo.md: third-party warnings no upgrade fixes, major-version upgrades that a deprecation needs, and slow tests for code:test-speed. Each finding names the class, its count, the files, and the report's example line.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub motlin/claude-code-plugins --plugin code12 skills in this plugin
/cliCLI guidelines. Use whenever using the Bash tool, which is almost always. Also use when you see "command not found: __zoxide_z" errors./code-generationFormatting rules for Java code generators that build source code via string concatenation. Use when the user asks to "fix formatter-off", "fix code generation formatting", "fix auto-formatted string concatenation", or "add formatter off", and proactively when writing, reviewing, or modifying a code generation method./code-qualityCode quality guidelines. ALWAYS use skill for ANY code changes.Other plugins' skills for the same job