搜索
搜索结果
126 results for "refactor"

java-refactoring-remove-parameter
在Java语言中使用移除参数进行重构
github
java-refactoring-extract-method
在Java语言中使用提取方法进行重构
github
review-and-refactor
根据定义的说明审查和重构项目中的代码
github
refactor-method-complexity-reduce
重构给定方法 `${input:methodName}`,通过提取辅助方法将其认知复杂度降低到 `${input:complexityThreshold}` 或以下。
github
refactor-plan
在开始多文件重构之前制定具体计划。当用户要求规划、排序、界定范围或安全执行跨多个文件的重构时使用;始终先进行调查,输出计划,并在进行代码更改之前等待确认。
github
refactor
精准的代码重构,提升可维护性,不改变行为。涵盖提取函数、重命名变量、分解上帝函数、增强类型安全、消除代码坏味道以及应用设计模式。比 repo-rebuilder 更温和,适用于渐进式改进。
github
swiftui-view-refactor
Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage. Use when cleaning up a SwiftUI view, splitting long bodies, removing inline actions or side effects, reducing computed `some View` helpers, or standardizing `@Observable` and view model initialization patterns.
dimillian
golang-refactoring
Golang refactoring — the safe, at-scale process for restructuring existing Go code: a coverage-adaptive safety net, tool-driven behavior-preserving transforms (gopls Rename/Inline/Extract, `gofmt -r`, `eg`, `gopatch`, `go/analysis` fixers), the Fowler catalog mapped to Go, breaking import cycles, moving types across packages, and a human-in-the-loop workflow of small stacked PRs on a refactoring branch. Apply when code is hard to maintain, a function/type has grown too large, a code smell needs fixing, adding a feature is blocked by the current structure, or the user asks to clean up, refactor, or improve Go code — also for renaming at scale, extracting functions/interfaces, moving code between packages, splitting packages, or planning a multi-step refactor. Target styles owned elsewhere → See `samber/cc-skills-golang@golang-naming` (renames), `@golang-project-layout` (splits), `@golang-modernize` (idioms), `@golang-code-style` (control flow), `@golang-design-patterns` (patterns/DI).
samber
agent-md-refactor
重构臃肿的 AGENTS.md、CLAUDE.md 或类似的智能体指令文件,遵循渐进式披露原则。将单一文件拆分为有组织的、相互链接的文档。
softaworks
refactoring-patterns
应用命名的重构转换来改善代码结构,同时不改变其行为。当用户提到“重构这个”、“代码坏味”、“提取方法”、“替换条件”、“技术债务”、“移动方法”、“内联变量”、“分解条件”或“清理这段混乱的代码”时使用。同样适用于清理遗留代码、通过重构为新增功能做准备,或识别适合特定代码坏味的转换。涵盖坏味驱动的重构、安全转换序列和测试保护。关于代码质量基础,请参见 clean-code。关于管理复杂性,请参见 software-design-philosophy。
wondelai
refactoring-ui
审计并修复网页UI中的视觉层级、间距、色彩和深度。当用户提到“我的UI看起来不对劲”(或业余/不专业)、“修复设计”、“Tailwind样式”、“调色板”、“视觉层级”、“设计系统”、“间距尺度”或“组件样式”时使用。在构建一致的设计令牌、创建深色模式主题、改善数据可视化清晰度或在上线前打磨UI细节时也触发。涵盖灰度优先工作流、约束设计尺度、阴影和组件样式。字体选择请参考web-typography。可用性审计请参考ux-heuristics。
wondelai
refactor-module
将单体式 Terraform 配置转换为可重用、可维护的模块,遵循 HashiCorp 的模块设计原则和社区最佳实践。
hashicorp
indexion-refactor
编写代码后,检测并清理三个层面的重复——复制粘贴块、跨包共享代码、不必要的包装器以及概念层面的单一真实来源(SoT)违规。使用 indexion 检测、修复并验证。
trkbt10
oracle
使用 Oracle CLI 将选中文件打包发送给第二模型(Second-Model)进行代码审查、调试、重构与架构设计,支持 Token 预估 (dry-run),可选用 API 或浏览器引擎。
steipete
hexagonal-architecture
Design, implement, and refactor Ports & Adapters systems with clear domain boundaries, dependency inversion, and testable use-case orchestration across TypeScript, Java, Kotlin, and Go services.
affaan-m
click-path-audit
Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out, produce wrong final state, or leave the UI in an inconsistent state. Use when: systematic debugging found no bugs but users report broken buttons, or after any major refactor touching shared state stores.
affaan-m
prompt-optimizer
Analyze raw prompts, identify intent and gaps, match ECC components (skills/commands/agents/hooks), and output a ready-to-paste optimized prompt. Advisory role only — never executes the task itself. TRIGGER when: user says "optimize prompt", "improve my prompt", "how to write a prompt for", "help me prompt", "rewrite this prompt", or explicitly asks to enhance prompt quality. Also triggers on Chinese equivalents: "优化prompt", "改进prompt", "怎么写prompt", "帮我优化这个指令". DO NOT TRIGGER when: user wants the task executed directly, or says "just do it" / "直接做". DO NOT TRIGGER when user says "优化代码", "优化性能", "optimize performance", "optimize this code" — those are refactoring/performance tasks, not prompt optimization.
affaan-m
cpp-coding-standards
C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.
affaan-m
springboot-tdd
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
affaan-m
quarkus-tdd
基于 JUnit 5、Mockito、REST Assured、Camel 测试套件与 JaCoCo,针对 Quarkus 3.x LTS 实施测试驱动开发(TDD)。适用于新增功能、修复 Bug 或重构事件驱动型服务等场景。
affaan-m
hexagonal-architecture
设计、实现和重构端口与适配器系统,具有清晰的领域边界、依赖反转以及跨 TypeScript、Java、Kotlin 和 Go 服务的可测试用例编排。
affaan-m
click-path-audit
追踪每个面向用户的按钮/触点的完整状态变化序列,以发现那些单独工作正常但相互抵消、产生错误最终状态或使UI处于不一致状态的错误。在以下情况下使用:系统调试未发现错误但用户报告按钮失效,或在对共享状态存储进行重大重构之后。
affaan-m
prompt-optimizer
分析原始提示词,识别意图和缺口,匹配ECC组件(技能/命令/代理/钩子),并输出可直接粘贴的优化提示词。仅提供建议——绝不自行执行任务。触发条件:用户说“优化prompt”、“改进prompt”、“怎么写prompt”、“帮我优化这个指令”或明确要求提升提示词质量。也触发中文等价表述:“优化prompt”、“改进prompt”、“怎么写prompt”、“帮我优化这个指令”。不触发条件:用户希望直接执行任务,或说“直接做”。不触发条件:用户说“优化代码”、“优化性能”、“optimize performance”、“optimize this code”——这些是重构/性能任务,非提示词优化。
affaan-m
cpp-coding-standards
基于 C++ Core Guidelines (isocpp.github.io) 的 C++ 编码标准。在编写、审查或重构 C++ 代码时使用,以强制执行现代、安全和惯用的实践。
affaan-m