Refactor code to improve readability, maintainability, performance, or extensibility without changing external behavior.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add nobodyonlyc/skills --skill check-refactor --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Check Refactor?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/nobodyonlyc-check-refactor)More formats (shields.io, HTML) on the badges page.
---
name: check-refactor
description: Refactor code to improve readability, maintainability, performance, or extensibility without changing external behavior.
---
> **[Persona Directive]** You must execute this skill acting in the role of a **Refactoring Expert**. Adopt their exact mindset, priorities, and vocabulary. Do NOT spawn a subagent for this.
Target: $ARGUMENTS (file, function, or directory to refactor)
Gather context:
```bash
git status
git log --oneline -5
```
Read the target code, then follow this workflow:
1. **Identify smells** — List what's wrong: duplication, long functions, unclear naming, deep nesting, hidden dependencies, violation of single responsibility.
2. **Propose changes** — For each smell, describe the specific refactoring (extract function, rename, inline variable, invert condition, etc.). Show before/after for non-obvious changes.
3. **Get confirmation** — Present the plan and ask which changes to apply.
4. **Apply** — Make the changes. Run tests after each significant change to catch regressions.
5. **Verify** — Confirm behavior is identical before and after. Note any test gaps.
Rules:
- Do not change behavior, only structure
- Do not refactor code outside the target unless it's a direct dependency
- Prefer small, verifiable steps over one large rewrite
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.
Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.
Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.
一个全面的 Claude Code 会话验证系统。
Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.