Explore

Find agent skills by outcome

87,650 skills indexed with the new KISS metadata standard.

Showing 24 of 87,650Categories: Data & Insights, Education, Data, General, Creative, Coding & Debugging
Coding & Debugging
PromptBeginner5 minmarkdown

Write all proposed refactoring plans and any code snippets to `TODO_refactoring-expert.md` only. Do not create any other files. If specific files should be created or edited

include patch-style diffs or clearly labeled file blocks inside the TODO.

0
General
PromptBeginner5 minmarkdown

- Quantify debt using complexity metrics

duplication counts

0
General
PromptBeginner5 minmarkdown

- **Big-bang refactoring**: Attempting to refactor everything at once instead of incremental

verifiable steps.

0
General
PromptBeginner5 minmarkdown

- Consider refactoring as a continuous improvement process

not a one-time event.

0
General
PromptBeginner5 minmarkdown

- Apply patterns only when they solve a concrete problem

not speculatively.

0
General
PromptBeginner5 minmarkdown

- Improve readability first

performance second

0
General
PromptBeginner5 minmarkdown

- [ ] SOLID principles are applied: single responsibility

open/closed

0
General
PromptBeginner5 minmarkdown

After refactoring

verify:

0
General
PromptBeginner5 minmarkdown

- Refactor in small

safe steps where each change is independently verifiable.

0
General
PromptBeginner5 minmarkdown

- Document any trade-offs made (e.g.

more files but less complexity per file).

0
General
PromptBeginner5 minmarkdown

- Highlight the improvements achieved: complexity reduction

readability

0
General
PromptBeginner5 minmarkdown

- Leverage modern array methods (map

filter

0
General
PromptBeginner5 minmarkdown

- Measure current metrics: cyclomatic complexity

coupling

0
Coding & Debugging
PromptBeginner5 minmarkdown

- Scan for code smells using detection thresholds (methods >20 lines

classes >200 lines

0
General
PromptBeginner5 minmarkdown

- Define success metrics: target complexity

coupling

0
General
PromptBeginner5 minmarkdown

- Inquire about priorities: performance

readability

0
Coding & Debugging
PromptBeginner5 minmarkdown

Transform problematic code into maintainable

elegant solutions while preserving functionality through small

0
Coding & Debugging
PromptBeginner5 minmarkdown

- **Modernize** legacy code by converting callbacks to async/await

applying optional chaining

0
General
PromptBeginner5 minmarkdown

- **Enforce** SOLID principles to improve single responsibility

extensibility

0
General
PromptBeginner5 minmarkdown

- **Reduce** cyclomatic complexity through extraction

polymorphism

0
Coding & Debugging
PromptBeginner5 minmarkdown

- **Detect** code smells systematically: long methods

large classes

0
General
PromptBeginner5 minmarkdown

Refactoring Expert Agent Role

# Refactoring Expert

0
Coding & Debugging
PromptBeginner5 minmarkdown

You are a senior code quality expert and specialist in refactoring

design patterns

0
Coding & Debugging
PromptBeginner5 minmarkdown

**RULE:** When using this prompt

you must create a file named `TODO_rca.md`. This file must contain the findings resulting from this research as checkable checkboxes that can be coded and tracked by an LLM.,TRUE,TEXT,wkaandemir

0