Refactoring

Code restructuring and optimization

Showing 505-528 of 984 skills
fellipeutaka

clean-code

by fellipeutaka

Write clean, readable, and maintainable code following principles from Robert C. Martin's "Clean Code" and Object Calisthenics. Use when writing, reviewing, or refactoring code to improve naming, function design, formatting, error handling, and class structure. Includes code smell detection and refactoring guidance.

Code Gen 5 8mo ago
itzikiusa

Architecture Review

by itzikiusa

A focused, single-lens review of a change's design and structure — not its defects. Judges separation of concerns and SOLID, coupling and cohesion, module/layer boundaries and dependency direction, whether the right abstraction is present (and the wrong/early one is absent), files and functions that have grown too large or do too much, leaky abstractions, intent-hiding names, duplication that wants to be a shared unit, and whether the change fits how this codebase is already built. Every finding cites file/module:line, a severity, the future cost it imposes, and a concrete refactor direction. Constructive and pragmatic — flags structure that will cost future change, never taste.

Design 0 4mo ago
christian289

implementing-communitytoolkit-mvvm

by christian289

"Implements MVVM pattern using CommunityToolkit.Mvvm with ObservableProperty attributes. Use when building ViewModels with source generators or implementing commands in WPF."

Refactoring 41 9mo ago
marius-townhouse

compiler-performance

by marius-townhouse

Use when build times are slow. Use when optimizing TypeScript projects. Use when configuring project references. Use when dealing with large codebases. Use when improving IDE responsiveness.

Performance 6 8mo ago
tapania

5d-reflect

by tapania

"Extract learning from completed work to improve future cycles. Use when: (1) After VERIFY phase shows feature complete, (2) End of development iteration, (3) User asks for 'retrospective,' 'lessons learned,' or 'what went well/wrong,' (4) Before starting next major feature. This phase prevents repeating mistakes and compounds learning."

Code Gen 6 8mo ago
marius-townhouse

module-augmentation

by marius-townhouse

Use when extending third-party types. Use when adding properties to existing interfaces. Use when plugins extend core types. Use when declaration merging is needed. Use when augmenting global types.

Refactoring 6 8mo ago
maxvaega

markdown-formatter

by maxvaega

Format and clean up markdown documents following best practices

Docs Gen 148 11mo ago
julianromli

test-driven-development

by julianromli

Use when implementing any feature or bugfix, before writing implementation code

Debugging 143 9mo ago
xenitV1

performance-profiling

by xenitV1

Performance profiling principles. Measurement, analysis, and optimization techniques.

Code Review 127 9mo ago
sanky369

product-photography

by sanky369

Generate professional product photography and hero shots using AI. Use when creating product images for e-commerce, landing pages, or marketing materials.

Code Gen 31 9mo ago
xenitV1

tdd-workflow

by xenitV1

Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle.

Refactoring 127 9mo ago
jankneumann

simplify

by jankneumann

Review changed code for reuse, quality, and efficiency, then apply low-risk simplifications that preserve behavior exactly. Requires a coverage gate and characterization tests when the surface is unpinned; dual-run verification proves the suite stays green without changing test expectations.

Code Review 4 2mo ago
BenjaminG

applying-solid-principles

by BenjaminG

This skill should be used when implementing code that requires SOLID principles and clean code practices. It provides detailed guidance on Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles with comparison examples in TypeScript.

Refactoring 4 8mo ago
M4n5ter

ask-questions-if-underspecified

by M4n5ter

Clarify requirements before implementing. Do not use automatically, only when invoked explicitly.

Linting 4 9mo ago
jankneumann

deprecation-and-migration

by jankneumann

Manage the lifecycle of removing systems, APIs, features, and dependencies. Use when sunsetting a capability, replacing one implementation with another, consolidating duplicates, killing zombie code, or planning the eventual deprecation of something new at design time. Covers the Churn Rule (owners fund migration cost), the strangler / adapter / feature-flag patterns, the five-question decision matrix, advisory-vs-compulsory deprecation, and how to drive it through an OpenSpec change.

Automation 4 5mo ago
k1lgor

code-polisher

by k1lgor

Use this when the user asks to refactor, clean up, optimize, or improve code quality.

Performance 4 8mo ago
terryyin

dough-post-change-refactor

by terryyin

Refactors concepts implicated by the current uncommitted change before commit. Includes untouched representations and orchestration needed for coherence, stops before unapproved cross-subsystem refactoring or disputed plan behavior, and tests only after edits. Use after a slice, for post-change refactoring, or to clean up the current change.

CLI Tools 4 1mo ago
cdeistopened

anti-ai-writing

by cdeistopened

Transform AI-assisted drafts into authentic, human-sounding content. This skill provides patterns to detect and eliminate AI tells, frameworks for natural writing, and techniques for creating prose that reads as genuinely human. Use when reviewing any AI-generated content or when writing content that must not appear AI-assisted.

Refactoring 29 9mo ago
Sounder25

Clean Build Artifacts

by Sounder25

Removes ignored build artifacts (bin, obj, node_modules) to reclaim space and fix ghost build errors. Safely respects .gitignore.

Debugging 29 9mo ago
Sounder25

Context Window Pruner

by Sounder25

Optimize information density by filtering workspace files based on relevance to the current task. Excludes high-noise files (lockfiles, assets) and prioritizes source code matching semantic queries.

Agents 29 9mo ago
Aznatkoiny

prompt-optimizer

by Aznatkoiny

Optimize prompts for Claude 4.x models using Anthropic's official best practices. Use when users want to improve, refine, or create effective prompts for Claude. Triggers include requests to optimize prompts, make prompts more effective, fix underperforming prompts, create system prompts, improve instruction following, reduce verbosity, control output formatting, or enhance agentic/tool-use behaviors. Also use when users report Claude is being too verbose, not following instructions, not using tools properly, or producing generic outputs.

Code Gen 10 8mo ago
agusabas

refactordjango

by agusabas

Refactor Django/Python code to improve maintainability, readability, and adherence to best practices. Transforms fat views into Clean Architecture with Use Cases and Services. Applies SOLID principles, Clean Code patterns, Python 3.12+ features like type parameter syntax and @override decorator, Django 5+ patterns like GeneratedField and async views. Fixes N+1 queries, extracts business logic from views, separates Read/Write serializers, and converts exception-based error handling to explicit return values. Use when refactoring Django code, applying Clean Architecture, or modernizing legacy Django projects.

Refactoring 4 9mo ago
antonioc-cl

technical-architecture-council

by antonioc-cl

Expert software architecture council with 6 advisors (Fowler, Beck, Uncle Bob, Newman, Hightower, Kim) for code design, architecture patterns, infrastructure, and development practices.

CI/CD 4 8mo ago
HJewkes

code-simplify

by HJewkes

Simplify and refine code for clarity, consistency, and maintainability. Use after writing or modifying code to clean it up while preserving all functionality.

Agents 4 8mo ago