Stats
Actions
Tags
From dolphin-flow-harness
Dolphin Flow Harness Refactor - Code refactoring and optimization
How this skill is triggered — by the user, by Claude, or both
Slash command
/dolphin-flow-harness:dfh-refactorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
[DFH REFACTOR ACTIVATED]
[DFH REFACTOR ACTIVATED]
Dolphin Flow Harness Refactor 是一个代码重构和优化工具,能够自动识别代码问题并提供改进建议。
核心价值: 提高代码质量,减少技术债务,优化性能。
## Refactoring Report
### Code Analysis
- Files analyzed: [number]
- Issues found: [number]
- Severity: [critical/major/minor]
### Identified Issues
1. **[Issue Type]**: [Description]
- Location: [file:line]
- Impact: [description]
- Suggestion: [recommendation]
### Refactoring Plan
1. [Refactoring task 1]
2. [Refactoring task 2]
3. [Refactoring task 3]
### Expected Improvements
- Code quality: [+X%]
- Performance: [+X%]
- Maintainability: [+X%]
- Technical debt: [-X%]
### Applied Changes
- ✅ [Change 1]
- ✅ [Change 2]
- ✅ [Change 3]
User can configure in .claude/settings.json:
{
"dfh": {
"refactor": {
"autoApply": false,
"severity": "major",
"excludePatterns": ["**/*.test.ts", "**/*.spec.ts"]
}
}
}
Basic usage:
dfh-refactor optimize the authentication module
Analyze specific file:
dfh-refactor src/utils/helper.ts
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub dolphin57/dolphin-claude-code --plugin dolphin-flow-harness