agentsclimarketplace

Dfh refactor

Skill dolphin57/dolphin-claude-code/skills/dfh-refactor

Dolphin Flow Harness Refactor - Code refactoring and optimizationFrom its SKILL.md

Install
npx -y skills add dolphin57/dolphin-claude-code --skill dfh-refactor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.4 KB, as published. Nobody here has run it

Dolphin Flow Harness Refactor

[DFH REFACTOR ACTIVATED]

Overview

Dolphin Flow Harness Refactor 是一个代码重构和优化工具,能够自动识别代码问题并提供改进建议。

核心价值: 提高代码质量,减少技术债务,优化性能。

Supported Triggers

  • User says "dfh-refactor", "dfh refactor", "refactor"
  • User wants to improve code quality
  • User needs to reduce technical debt

Execution Steps

  1. Analyze Code: Parse codebase and identify issues
  2. Identify Patterns: Find code smells and anti-patterns
  3. Generate Suggestions: Create refactoring recommendations
  4. Apply Changes: Implement refactoring (with approval)
  5. Verify Improvements: Validate refactoring results

Output Format

## 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]

Configuration

User can configure in .claude/settings.json:

{
  "dfh": {
    "refactor": {
      "autoApply": false,
      "severity": "major",
      "excludePatterns": ["**/*.test.ts", "**/*.spec.ts"]
    }
  }
}

Usage

Basic usage:

dfh-refactor optimize the authentication module

Analyze specific file:

dfh-refactor src/utils/helper.ts

Refactoring Categories

1. Code Quality

  • Remove duplicate code
  • Simplify complex logic
  • Improve naming
  • Add missing documentation

2. Performance

  • Optimize loops
  • Reduce memory usage
  • Improve algorithm efficiency
  • Cache frequently used data

3. Maintainability

  • Extract methods
  • Reduce coupling
  • Improve cohesion
  • Apply design patterns

4. Security

  • Fix vulnerabilities
  • Improve input validation
  • Enhance error handling
  • Secure data handling

Success Criteria

  • Code quality improved
  • No regressions
  • Tests pass
  • Performance maintained or improved
  • Documentation updated

Keep looking

Skills are one crate of 608,475. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.