Refactoring Audit Workflow

Installation
SKILL.md

Refactoring Audit Workflow

This skill guides the agent through the process of auditing the codebase for refactoring opportunities, validating findings, drafting implementation plans, and creating GitHub issues.

1. Analyze Codebase

Goal: Identify high-value refactoring targets by looking for specific code smells.

  • God Classes: Look for files > 1000 lines or classes with too many responsibilities (e.g., App.axaml.cs handling UI, Startup, and Logic).
  • Low Cohesion: Look for "Utils" or "Helpers" classes that contain unrelated methods (e.g., String manipulation mixed with API calls).
  • OCP Violations: Look for giant switch statements or massive configuration classes that require modification for every new feature type (e.g., UploadersConfig).

Actions:

  • Use list_dir to explore src and subdirectories.
  • Use view_file to inspect largest files.
  • Use grep_search to find "Helper" or "Manager" classes.

2. Verify Findings

Installs
Repository
sharex/xerahs
GitHub Stars
269
First Seen
Refactoring Audit Workflow — sharex/xerahs