Refactoring

Code restructuring and optimization

Showing 433-456 of 984 skills
TechDufus

tdd

by TechDufus

"Systematic TDD methodology for writing tests first. Use when implementing features or fixes with OMC_TDD_MODE enabled, when unsure how to structure tests, or when test-first discipline needs reinforcement. Triggers on: 'tdd', 'test first', 'test driven', 'red green refactor'."

Refactoring 174 8mo ago
TechDufus

worktree

by TechDufus

"Git worktree automation for isolated feature development. Triggers on: '/worktree create', '/worktree list', '/worktree remove'. Creates isolated working directories with automatic setup."

Auth 174 9mo ago
shiqkuangsan

tooyoung:shitcode

by shiqkuangsan

"Write intentionally bad code for teaching or entertainment. Use when asked to 'add some spice', 'make it worse', 'write shitcode', or for demonstrating anti-patterns."

Processing 17 8mo ago
ElliotJLT

split-decision

by ElliotJLT

When facing architectural decisions, technology choices, or strategic trade-offs, present options as a structured comparison and require explicit trade-off acknowledgment before proceeding. Triggers on words like "should we", "which approach", "what's the best way", or when Claude is about to recommend one approach over alternatives. Never present a single recommendation without showing viable alternatives first.

Processing 62 9mo ago
ElliotJLT

stay-in-lane

by ElliotJLT

Before making changes, verifies they match what was actually requested. Activates when about to modify files, add features, or refactor code. Catches scope creep before it happens - no "while I'm here" improvements.

Debugging 62 9mo ago
ElliotJLT

safe-refactor

by ElliotJLT

When refactoring, rewriting, or migrating critical code paths, orchestrate a safe cycle: assess risks → implement → verify → document. Chains pre-mortem and prove-it with built-in implementation phase. Prevents "refactor broke production" disasters. Activates on "refactor", "rewrite", "migrate", or "clean up" for non-trivial code.

Processing 62 9mo ago
steelan9199

skill-optimizer-yashu

by steelan9199

分析并优化其他 Skill 的文档质量问题,包括 frontmatter 格式、渐进式披露结构、文件引用完整性、AI 友好性等检查。何时使用:当用户说"优化这个 skill"、"检查 skill 质量"、"review skill"、"skill 有问题"、"帮我看看这个 skill"、"诊断 skill"时。

Code Review 10 8mo ago
rube-de

git-ops

by rube-de

Git hygiene: clean up merged branches, prune stale remotes, and verify repository state.

CLI Tools 10 8mo ago
dirnbauer

refactor

by dirnbauer

Improve code structure and readability without changing external behavior. Covers common code smells (long methods, duplication, nested conditionals, magic numbers), safe refactoring process, design patterns (Strategy, Chain of Responsibility), type safety improvements, and extract method techniques.

Code Gen 33 8mo ago
dirnbauer

refactor-clean

by dirnbauer

Code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyzes and refactors code to improve quality, maintainability, and performance with incremental steps and stable behavior.

Performance 33 8mo ago
paulund

javascript-developer

by paulund

Use when building JavaScript applications with modern ES2023+ features, frameworks, and best practices.

Performance 3 8mo ago
dgriffin831

text-processor

by dgriffin831

Process and clean text content

Docs Gen 3 8mo ago
olelehmann100kMRR

autoresearch

by olelehmann100kMRR

"Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt, and keeping improvements. Based on Karpathy's autoresearch methodology. Use when: optimize this skill, improve this skill, run autoresearch on, make this skill better, self-improve skill, benchmark skill, eval my skill, run evals on. Outputs: an improved SKILL.md, a results log, and a changelog of every mutation tried."

Code Gen 981 7mo ago
vuralserhat86

docs_code

by vuralserhat86

Code comments, JSDoc/TSDoc ve changelog best practices.

Comments 43 9mo ago
OmidZamani

dspy-output-refinement-constraints

by OmidZamani

This skill should be used when the user asks to "refine DSPy outputs", "enforce constraints", "use dspy.Refine", "select best output", "use dspy.BestOfN", mentions "output validation", "constraint checking", "multi-attempt generation", "reward function", or needs to improve output quality through iterative refinement or best-of-N selection with custom constraints.

Processing 124 9mo ago
anthonylee991

superpowers-tdd

by anthonylee991

Applies tests-first discipline (red/green/refactor) and adds regression tests for bugs. Use when implementing features, fixing bugs, or refactoring.

Code Gen 838 9mo ago
terryyin

dough-test-optimization

by terryyin

Speeds up local test feedback through profiling and measured experiments across related tests. Use to optimize slow tests or test-suite performance. Preserves behavioral coverage and confidence while pursuing fewer redundant cases, less code, and cleaner design. With --resolve, triages recorded candidates without profiling or optimizing.

Performance 4 28d ago
noartem

laravel-dependencies-trim-packages

by noartem

Remove unneeded Composer packages and assets to improve boot time, memory, and security surface

Code Gen 13 9mo ago
noartem

complexity-guardrails

by noartem

Keep cyclomatic complexity low; flatten control flow, extract helpers, and prefer table-driven/strategy patterns over large switches

Refactoring 13 9mo ago
crazynomad

disk-cleaner

by crazynomad

Mac 智能磁盘清理助手,基于 Mole (https://github.com/tw93/Mole) 的用户友好包装器

CLI Tools 27 9mo ago
sebnow

testing

by sebnow

"Use when implementing automated tests. Enforces empirical testing, test pyramid, TDD practices, concurrent testing. Triggers: writing tests, test planning, implementing test cases, TDD, race conditions."

Debugging 8 8mo ago
cuipengfei

improve-prompt

by cuipengfei

优化提示词 - 结构化改写后立即执行,禁止扩展范围

Docs Gen 8 8mo ago
sebnow

red-green-refactor

by sebnow

"Domain-agnostic TDD methodology for iterative improvement. Enforces baseline measurement, minimal changes, and rigorous testing through commitment devices. Use when applying red-green-refactor workflow to any domain: prompts, skills, code, tests. Triggers: TDD methodology, baseline measurement, iterative improvement, red-green-refactor."

Debugging 8 8mo ago
Gentleman-Programming

hexagonal-architecture-layers-java

by Gentleman-Programming

Hexagonal architecture layering for Java services with strict boundaries. Trigger: When structuring Java apps by Domain/Application/Infrastructure, or refactoring toward clean architecture.

Code Gen 659 8mo ago