Guide for simplifying and refining code after coding sessions. Use when cleaning up complex code, reviewing PRs for readability, or applying consistent refactoring patterns.
A guide for simplifying and refining code while preserving functionality.
Never change what the code does - only how it does it.
Follow established coding standards from project configuration (CLAUDE.md, .editorconfig, ESLint, etc.):
Simplify code structure by:
Critical Rules:
Avoid over-simplification that could:
Only refine code that has been recently modified or touched, unless explicitly instructed to review a broader scope.
1. Identify the recently modified code sections
2. Analyze for opportunities to improve elegance and consistency
3. Apply project-specific best practices and coding standards
4. Ensure all functionality remains unchanged
5. Verify the refined code is simpler and more maintainable
6. Document only significant changes that affect understanding
See references/refactoring-patterns.md for common patterns.
Before submitting refactored code:
Trigger phrases:
Workflow:
下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer