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.zipInstalls 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.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
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
| Error | Cause | Fix |
|---|---|---|
illegal start of expression | Missing closing } | Count braces, add missing ones |
unreported exception IOException | Checked exception in super() | Use factory method pattern |
String index out of range | Wrong substring indices | Use substring(start, start+length) |
NumberFormatException | Invalid numeric string | Wrap in try-catch with default |
class, interface, enum expected | Unicode in comments or corrupted file | Use 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-checklist (this skill) | 0 | 4mo | Review | Beginner |
| unit-testing | 3 | 3mo | No flags | Beginner |
| springboot-verification | 4 | 4mo | Review | Intermediate |
| mocking | 0 | 5mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by comeredon
View all by comeredon →You might also like
unit-testing
TencentBlueKing
单元测试编写指南,涵盖 JUnit5/MockK 使用、测试命名规范、Mock 技巧、测试覆盖率要求、TDD 实践。当用户编写单元测试、Mock 依赖、提高测试覆盖率或进行测试驱动开发时使用。
springboot-verification
affaan-m
Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.
mocking
comeredon
Mockito mocking patterns for isolating units under test. Use when testing classes with external dependencies like databases, files, or APIs.
ci-loop
hyodotdev
Run the full CI pipeline locally and iterate until all tests pass.
migration-unit-testing
RobertoBorges
|
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.