From claude-code-starter
Refactors messy code by fixing duplication, long functions, unclear naming, deep nesting, and mixed responsibilities—without changing functionality. Analyzes issues, proposes plans, executes after confirmation, and verifies with tests.
npx claudepluginhub lighthouse-strategy/claude-code-starterThis skill uses the workspace's default tool permissions.
改善代码质量,但绝不改变现有功能。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
改善代码质量,但绝不改变现有功能。
如果用户指定了文件或函数,直接读取。
如果没有指定,问:
你想重构哪段代码?可以告诉我文件名或函数名。
读取代码后,识别以下问题(按严重程度排序):
用中文简洁说明发现了什么问题,以及打算怎么改:
发现以下可以改进的地方:
1. xxx — 建议 xxx
2. xxx — 建议 xxx
询问用户:
要我执行这些重构吗?可以全部做,也可以选择性做。
用户确认后,逐个执行重构。每次重构后:
重构完成后,简要说明改了什么:
重构完成。主要改动:xxx。功能不变,测试全部通过。