refactoring-patterns
关于
This skill applies safe refactoring patterns to improve code structure without altering its behavior, ideal for cleaning up code or reducing technical debt. It emphasizes a strict test-first cycle—make one small change, verify tests pass, then commit—to ensure reliability. Key capabilities include providing specific patterns and a repeatable workflow for enhancing maintainability.
快速安装
Claude Code
推荐npx skills add mattnigh/skills_collection -a claude-code/plugin add https://github.com/mattnigh/skills_collectiongit clone https://github.com/mattnigh/skills_collection.git ~/.claude/skills/refactoring-patterns在 Claude Code 中复制并粘贴此命令以安装该技能
GitHub 仓库
Frequently asked questions
What is the refactoring-patterns skill?
refactoring-patterns is a Claude Skill by mattnigh. Skills package instructions and resources that Claude loads on demand, so Claude can perform refactoring-patterns-related tasks without extra prompting.
How do I install refactoring-patterns?
Use the install commands on this page: add refactoring-patterns to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does refactoring-patterns belong to?
refactoring-patterns is in the development-practices category, tagged refactoring, code-quality, technical-debt, maintainability and clean-code.
Is refactoring-patterns free to use?
Yes. refactoring-patterns is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
相关推荐技能
该Skill帮助开发者在实践测试驱动开发时,根据代码类型选择伦敦学派(基于模拟,适合外部依赖多的协作代码)或芝加哥学派(基于状态,适合领域逻辑)。它能指导你遵循红-绿-重构循环,并提供针对性的测试策略。适用于需要为具体上下文选择测试风格或提升TDD实践的开发场景。
该Skill应用安全的代码重构模式来改善代码结构而不改变行为,适用于清理代码、减少技术债务或提升可维护性。它强调在测试保护下进行小步重构,遵循"测试-修改-验证-提交"的循环工作流。关键特性包括提供结构化重构指导、确保变更安全性,并支持持续集成流程。
这个Skill专注于进行上下文驱动的代码审查,特别关注代码质量、可测试性和可维护性。它适用于代码审查、提供反馈或建立审查规范等场景,能按优先级(阻塞/主要/次要/建议)分类问题,并聚焦于错误、安全、可测试性等核心质量维度而非代码风格偏好。
这是一个专注于代码质量、可测试性和可维护性的上下文驱动代码审查技能。它通过多智能体协作(质量、安全、性能、覆盖率分析)提供结构化反馈,并优先处理关键问题而非代码风格。适用于PR审查、提供反馈或建立团队审查规范,帮助开发者提升代码质量。
