.claude/skills/refactor/SKILL.md
Improve code readability, enforce idiomatic conventions, and enhance documentation quality. Use when asked to clean up code, improve naming, add meaningful comments, or align with Kotlin/project idioms.
npx skillsauth add adobe/s3mock refactorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read AGENTS.md (root + relevant module) before making changes — especially DO/DON'T and Code Style sections. Refactoring must not change behavior — only readability and style.
Remove comments that restate code. Add comments for why a decision was made, edge cases, or non-obvious S3 semantics. Reference AWS S3 API docs or GitHub issues for workarounds. Use KDoc (/** */) for public APIs; inline comments (//) for rationale.
If you need a comment to explain what code does, rename instead. See docs/KOTLIN.md for naming conventions.
See docs/KOTLIN.md for the full list of Kotlin idioms, common anti-patterns and their fixes, and scope function guidance.
Document what, why, and gotchas. Link to AWS API docs where relevant. See docs/KOTLIN.md for KDoc conventions.
2017-<current year> in the header of every file you modifylint skill to fix formatting and verify style gates passdevelopment
Write, update, or fix tests. Use when asked to test code, create test cases, or debug failing tests.
development
Review code changes in PRs or local diffs. Use when asked to review a PR, inspect changes, or provide feedback on code quality.
development
Fix code style issues and ensure linting passes. Use when asked to fix lint errors, formatting issues, or when ktlint or Checkstyle violations are reported.
development
Generate or update project documentation. Use when asked to document code, create docs, explain features, or fix formatting, wording, or style in existing documentation files.