CO

code-checklist

Ensure code reliability with a checklist focused on exception handling, comments, and build-time best practices.

Install

mkdir -p .claude/skills/code-checklist && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10515" && unzip -o skill.zip -d .claude/skills/code-checklist && rm skill.zip

Installs to .claude/skills/code-checklist

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Critical code requirements checklist derived from actual build failures. Use before committing code or when troubleshooting compilation errors.
143 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Check exception handling
  • Validate encoding
  • Verify brace matching
  • Compile code

How it works

It provides a checklist of common build pitfalls and coding standards to prevent compilation errors.

Inputs & outputs

You give it
Java source code
You get back
Validated and compiled code

When to use code-checklist

  • Pre-commit code validation
  • Troubleshooting compilation errors
  • Fixing common Java build issues

About this skill

Code Requirements Checklist

Related skills: build/build-validation, development/java-patterns

Exceptions and Constructors

  • NEVER throw checked exceptions from constructors calling super() — use factory methods or composition
  • ALWAYS wrap parseInt/parseLong/new BigDecimal() in try-catch with defaults

Comments and Encoding

  • NEVER use Unicode box-drawing characters (┌ ─ │) in Javadoc — use ASCII (+, -, |)
  • NEVER nest /* */ comments inside Javadoc — use - instead

File Editing

  • ALWAYS include complete method context when doing string replacements
  • ALWAYS compile immediately after edits (mvn clean compile)
  • Count { and } — they must match after every edit

Common Error Solutions

ErrorCauseFix
illegal start of expressionMissing closing }Count braces, add missing ones
unreported exception IOExceptionChecked exception in super()Use factory method pattern
String index out of rangeWrong substring indicesUse substring(start, start+length)
NumberFormatExceptionInvalid numeric stringWrap in try-catch with default
class, interface, enum expectedUnicode in comments or corrupted fileUse ASCII only in comments

Pre-Commit Sequence

mvn clean compile     # Must succeed, zero errors
mvn package           # Must create JAR
# If DataGenerator exists:
java -cp target/classes com.ibm.pl1ref.util.DataGenerator
java -cp target/psam-translation-0.1.0.jar com.ibm.pl1ref.Main

When not to use it

  • Using Unicode box-drawing characters in Javadoc

Prerequisites

mvn

Limitations

  • Requires ASCII only in comments

How it compares

It focuses on preventing specific, recurring build failures rather than general linting.

Compared to similar skills

code-checklist side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
code-checklist (this skill)04moReviewBeginner
unit-testing33moNo flagsBeginner
springboot-verification44moReviewIntermediate
mocking05moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry