refactor-to-standards

Refactor staged or provided code files to comply with Sticker Manager API project standards.

2|Updated May 2, 2026
One-click install
npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill refactor-to-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-to-standards
Source: https://github.com/andrecini/dotnet-squad-copilot-agent/tree/main/.claude/skills/refactor-to-standards
Command: npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill refactor-to-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams quickly bring existing code into alignment with the project’s established engineering standards, reducing inconsistencies and improving maintainability without changing business logic.

Core Features & Use Cases

  • Standard-focused refactoring: Diagnoses deviations against project patterns such as constructors, mapping, result patterns, endpoint conventions, logging style, SOLID boundaries, DI registration, and safety checks.
  • Guardrailed changes: Enforces rules like no new artifacts, no business-logic changes, and no production test changes without explicit notice.
  • Staged or provided input: Refactors either user-supplied code files or files detected as modified in staging, with per-file control.
  • Keep/undo workflow: Applies refactors only after confirmation, offering an undo option per file to prevent unwanted edits.

Quick Start

Ask the agent to refactor the files you provide (or the staging changes) to follow the project standards with a file-by-file keep/undo confirmation.

Frequently Asked Questions about refactor-to-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor existing code to match project conventions without changing business logic?

Refactoring code to match project conventions requires diagnosing deviations against established patterns like constructors, mapping, and DI registration. The skill enforces strict guardrails to prevent business-logic changes, applying updates only after per-file confirmation.

What is the best way to standardize dotnet minimal APIs and application services?

Standardizing dotnet minimal APIs and application services involves checking endpoint conventions, dependency injection registration, and SOLID boundaries. The skill diagnoses these areas per-file and applies refactors through a keep/undo workflow to ensure compliance.

Can I use staged files to apply code standards refactoring?

Yes, you can use staged files to apply code standards refactoring. The skill detects files modified in staging or accepts user-provided files, generating per-file diagnostic reports before requesting confirmation to write any changes.

How do I ensure logging style and clean architecture boundaries are maintained during refactoring?

Ensuring logging style and clean architecture boundaries during refactoring requires diagnosing code against project patterns and SOLID principles. The skill checks logging conventions and architectural boundaries, offering an undo option per file to prevent unwanted edits.

What are the limitations of automated code refactoring for dependency injection and validators?

Automated code refactoring for dependency injection and validators is limited by strict guardrails: it avoids creating new artifacts, blocks sensitive config access, and prevents unrequested test changes. It focuses solely on standardization rather than adding new features or fixing bugs.