ai-skills-conventions-java
Apply the default Java conventions by orchestrating the Java-specific leaf skills and the remaining Java baseline rules.
Skill by fabian-barney
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fabian-barney-ai-skills-conventions-java
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ai-skills-conventions-java
What's inside
- Skill name
ai-skills-conventions-java- Description
- Apply the default Java conventions by orchestrating the Java-specific leaf skills and the remaining Java baseline rules.
- License
- Apache-2.0
- Instructions
- 92 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- java-string-format.md · examples/
- java-convention-defaults.md · references/
SKILL.md (first lines)
<!-- markdownlint-disable MD025 --> # Purpose Apply the default Java conventions for a bounded Java change by orchestrating the existing Java convention skills and the remaining Java-only defaults that are still kept in this bundle. # When to Use - use when implementing or reviewing Java code and a single umbrella skill is preferred over invoking multiple Java convention skills manually - use when the bounded Java change touches null contracts, control flow, boilerplate, or string construction - use skill `ai-skills-conventions-null` when null contracts and collection semantics need focused enforcement - use skill `ai-skills-conventions-lombok` when Java boilerplate can be removed safely with Lombok - use skill `ai-skills-conventions-early-return` and skill `ai-skills-conventions-ternary` when Java control flow or expression-shaped branching should be simplified - use `references/java-convention-defaults.md` for the remaining Java defaults that are not split into separate leaf skills - use `examples/java-string-format.md` when showing the expected string-format refactor shape # Inputs - the bounded Java files, tests, and build configuration in scope - whether Lombok is already available, would need to be added, or is forbidden - whether public APIs, collection semantics, or nullness tooling are in scope - whether control-flow blocks or ternary candidates need simplification - whether string construction uses literal templates with variable data - `references/java-convention-defaults.md` # Workflow 1. Confirm that the bounded change is primarily Java and identify which Java convention areas are relevant. 2. When null contracts, collections, or Java nullness tooling are in scope, apply skill `ai-skills-conventions-null`. 3. When the change contains Java boilerplate that Lombok would remove safely, apply skill `ai-skills-conventions-lombok`; only add Lombok when it materially improves the bounded change and there is no explicit instruction or project rule against it. 4. When Java control flow is overly nested, apply skill `ai-skills-conventions-early-return` and skill `ai-skills-conventions-ternary` as appropriate. 5. Apply the remaining Java defaults from `references/java-convention-defaults.md`, especially: prefer `String.format(...)` over literal-template `+` concatenation, prefer `StringBuilder` in hot loops or append-heavy paths, and keep `Optional` restricted to meaningful Java return-value absence. 6. Aggregate the resulting refactors or findings into one Java-convention result without duplicating the child-skill guardrails. 7. Use `examples/java-string-format.md` when communicating the expected Java-specific string-format refactor. # Outputs - a bounded Java convention result covering the relevant Java convention areas - child-skill findings or refactors for null, Lombok, early-return, and ternary usage when applicable - Java-specific findings or refactors for string construction and `Optional` usage that are not already covered by the child skills # Guardrails - do not weaken or override the guardrails of skill `ai-skills-conventions-null`, skill `ai-skills-conventions-lombok`, skill `ai-skills-conventions-early-return`, or skill `ai-skills-conventions-ternary` - do not add Lombok when the user or project explicitly forbids it, or when the bounded Java change does not materially benefit from it - do not use `Optional` for Java fields, method parameters, or serialization models unless there is a strong documented reason - do not keep literal-template string concatenation with `+` when `String.format(...)` is the clearer Java default - do not replace hot-loop or append-heavy string construction with `String.format(...)` when `StringBuilder` is the better Java choice # Exit Checks - every relevant Java convention area was either handled through a child skill or explicitly skipped as not applicable - any Lombok addition or omission is explicitly justified for the bounded Java change - Java literal-template strings use `String.format(...)` unless a hot-loop or append-heavy exception justifies `StringBuilder` - `Optional` usage stays limited to meaningful Java return-value absence unless a strong documented reason justifies a bounded exception - the final result preserves the child-skill guardrails rather than replacing them
From fabian-barney/ai-skills, Apache-2.0.
More from fabian-barney/ai-skills
- 0.502score
ai-skills-compliance-dependency
fabian-barney
Evaluate dependency additions and upgrades for compliance and governance risk.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-bootstrap-ci-pipeline
fabian-barney
Establish the initial CI pipeline for a project so build, lint, test, and policy checks run consistently from the start.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-bootstrap-ai-instructions
fabian-barney
Bootstrap the downstream ai-instructions layer for a repository by following the authoritative upstream setup source instead of copying or reinventing it…
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-conventions-ternary
fabian-barney
Prefer simple ternary expressions over verbose if-else blocks when the choice is expression-shaped and side-effect-free.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-bootstrap-project
fabian-barney
Orchestrate the initial project bootstrap by sequencing repository, instruction-layer, framework, CI, and documentation setup in dependency order.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-conventions-prompt-caching
fabian-barney
Structure prompts and skill bundles so the static prefix stays stable across invocations and Anthropic prompt-prefix caching can hit instead of rebuild.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-code-refactoring
fabian-barney
Refactor code while preserving behavior through scoped coverage, duplication, complexity, CRAP-score, and convention gates.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
ai-skills-correctness-equals-hashcode
fabian-barney
Verify the equals/hashCode contract for touched Java equality code and check Comparable consistency when applicable.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
ai-skills-conventions-early-return
fabian-barney
Prefer early returns and guard clauses to keep exceptional paths explicit and the happy path linear.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
ai-skills-conventions-lombok
fabian-barney
Prefer Lombok for applicable Java boilerplate while keeping risky annotations and config choices explicit.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
ai-skills-conventions-null
fabian-barney
Enforce explicit null contracts, non-null collections by default, and fail-fast handling for illegal nulls.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
ai-skills-correctness-jpa
fabian-barney
Verify JPA entity equality and hashCode behavior, especially for unsaved entities with null primary keys.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 2
- Last commit (this folder)
- May 17, 2026 (5 months ago)
- Last release
- Jun 2, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/fabian-barney/ai-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from fabian-barney
- 0.502score
ai-skills-compliance-dependency
fabian-barney
Evaluate dependency additions and upgrades for compliance and governance risk.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-bootstrap-ai-instructions
fabian-barney
Bootstrap the downstream ai-instructions layer for a repository by following the authoritative upstream setup source instead of copying or reinventing it…
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-bootstrap-ci-pipeline
fabian-barney
Establish the initial CI pipeline for a project so build, lint, test, and policy checks run consistently from the start.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-bootstrap-project
fabian-barney
Orchestrate the initial project bootstrap by sequencing repository, instruction-layer, framework, CI, and documentation setup in dependency order.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-code-refactoring
fabian-barney
Refactor code while preserving behavior through scoped coverage, duplication, complexity, CRAP-score, and convention gates.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ai-skills-conventions-prompt-caching
fabian-barney
Structure prompts and skill bundles so the static prefix stays stable across invocations and Anthropic prompt-prefix caching can hit instead of rebuild.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
ai-skills-conventions-java. Agent Mart. https://agentmart.dev/skills/fabian-barney-ai-skills-conventions-java (last updated 2026-10-24)