.ai/skills/audit-refactoring/SKILL.md
A systematic workflow for identifying code pain points, planning refactoring, and creating GitHub issues.
npx skillsauth add sharex/xerahs Refactoring Audit WorkflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill guides the agent through the process of auditing the codebase for refactoring opportunities, validating findings, drafting implementation plans, and creating GitHub issues.
Goal: Identify high-value refactoring targets by looking for specific code smells.
App.axaml.cs handling UI, Startup, and Logic).switch statements or massive configuration classes that require modification for every new feature type (e.g., UploadersConfig).Actions:
list_dir to explore src and subdirectories.view_file to inspect largest files.grep_search to find "Helper" or "Manager" classes.Goal: Ensure the identified "pain point" isn't already solved or constrained by design.
Goal: Create a structured plan for each refactoring before creating issues.
Format: For each identified issue, draft a markdown section with:
[Refactor] <Title>Action:
refactoring_plans.md) or the task.md artifact for user review.Goal: proper tracking of the work.
Action:
gh issue create to submit the vetted plans.--title and --body-file arguments.Example Command:
gh issue create --title "[Refactor] Split GeneralHelpers.cs" --body-file "c:/path/to/body.md"
testing
Reference for writing effective XerahS Improvement Proposals (XIPs), including structure, templates, review checks, and implementation patterns. Use sync-xips for creating, editing, and syncing XIP GitHub issues and local backups.
documentation
Rules and workflows for updating docs/CHANGELOG.md, including version grouping, consolidation, and commit-entry attribution.
testing
Create and maintain XerahS Improvement Proposals (XIPs) with GitHub as source of truth and docs/proposals/xip folder as backup. Use when creating or editing XIPs, syncing XIPs between GitHub issues and the docs/proposals/xip folder, or when the user mentions XIP, GitHub issues for XIP, or local XIP files.
documentation
Repository maintenance preparation for XerahS. Use before release or changelog work to sync repositories, inspect submodule state, identify version/changelog needs, and hand off commit/push/version rules to git-workflow.