/code:code-generationfrom code
Provides formatting rules for Java code generators that build source code via string concatenation. Adds `// @formatter:off` guards to prevent IntelliJ from breaking concatenation chains.
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.
Java code generators that build source via string concatenation need // @formatter:off / // @formatter:on guards. Without them, IntelliJ's formatter splits concatenation chains and breaks the correspondence between Java source lines and generated output lines.
Each \n-terminated line of generated output occupies exactly one Java source line. A Java line break occurs only where the template has a \n.
Bad (auto-formatted):
setterBody = ""
+ " domainObject.get"
+ propNameUpper
+ "().clear();\n"
+ " return;\n";
Good:
// @formatter:off
setterBody = ""
+ " domainObject.get" + propNameUpper + "().clear();\n"
+ " return;\n";
// @formatter:on
Look for concatenation blocks containing \n literals that are not inside // @formatter:off. Typical shapes:
+ chains with template variables split from their surrounding string literals..collect() lambdas whose single-line template was broken across lines.return ( "" + ... ) wrapped in parentheses instead of return "" + ....Wrap the block in // @formatter:off and // @formatter:on, and collapse each \n-terminated segment onto one line with + continuation. A .collect() lambda with a single-line template goes entirely on one line. When the strings contain valid Java source, add // language=JAVA after // @formatter:off for IntelliJ language injection.
Match the indentation of existing @formatter:off blocks in the file. The usual pattern is tabs with aligned +:
// @formatter:off
// language=JAVA
return ""
+ "package " + packageName + ";\n"
+ "\n"
+ "public class " + className + "\n"
+ "{\n"
+ "}\n";
// @formatter:on
// @formatter:off
String fields = properties
.collect((p) -> " public final " + this.getType(p) + " " + p.getName() + ";\n")
.makeString("");
// @formatter:on
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
/build-warningsMake a build quiet by fixing the causes of the warnings it prints, one class at a time, with before and after counts from the same command as evidence. Covers compiler, linter and deprecation warnings, runtime warnings printed during tests, slow-test reports, and stray noise such as debug prints and unsilenced logs. Use when the user asks to clean up build or test warnings, deprecations, or noisy output, or when a caller such as burn runs it unattended./cliCLI guidelines. Use whenever using the Bash tool, which is almost always. Also use when you see "command not found: __zoxide_z" errors./code-qualityCode quality guidelines. ALWAYS use skill for ANY code changes.Other plugins' skills for the same job