重构

代码重组与优化

显示 505-528 / 共 984 个技能
fellipeutaka

clean-code

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.

代码生成 5 8个月前
itzikiusa

Architecture Review

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.

设计 0 4个月前
christian289

implementing-communitytoolkit-mvvm

christian289

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

重构 41 9个月前
marius-townhouse

compiler-performance

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.

性能 6 8个月前
tapania

5d-reflect

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."

代码生成 6 8个月前
marius-townhouse

module-augmentation

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.

重构 6 8个月前
maxvaega

markdown-formatter

maxvaega

Format and clean up markdown documents following best practices

文档生成 148 11个月前
julianromli

test-driven-development

julianromli

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

调试 143 9个月前
xenitV1

performance-profiling

xenitV1

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

代码评审 127 9个月前
sanky369

product-photography

sanky369

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

代码生成 31 9个月前
xenitV1

tdd-workflow

xenitV1

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

重构 127 9个月前
jankneumann

simplify

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.

代码评审 4 2个月前
BenjaminG

applying-solid-principles

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.

重构 4 8个月前
M4n5ter

ask-questions-if-underspecified

M4n5ter

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

Lint 与格式化 4 9个月前
jankneumann

deprecation-and-migration

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.

自动化 4 5个月前
k1lgor

code-polisher

k1lgor

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

性能 4 8个月前
terryyin

dough-post-change-refactor

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 工具 4 1个月前
cdeistopened

anti-ai-writing

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.

重构 29 9个月前
Sounder25

Clean Build Artifacts

Sounder25

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

调试 29 9个月前
Sounder25

Context Window Pruner

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.

智能体 29 9个月前
Aznatkoiny

prompt-optimizer

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.

代码生成 10 8个月前
agusabas

refactordjango

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.

重构 4 9个月前
antonioc-cl

technical-architecture-council

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 8个月前
HJewkes

code-simplify

HJewkes

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

智能体 4 8个月前