Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill refactor명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| source | ../../../../skills/refactoring-assistant/SKILL.md |
| source_version | 2.0.0 |
| translation_version | 2.0.0 |
| last_synced | "2026-02-10T00:00:00.000Z" |
| status | current |
| description | [UDS] 引導重構決策、推薦策略,並提供逐步執行工作流程 |
| name | refactor |
| allowed-tools | Read, Write, Grep, Glob, Bash(npm test:*), Bash(npx:*) |
| scope | universal |
| argument-hint | [file or module | 檔案或模組] |
語言: English | 繁體中文
引導重構決策、推薦策略,並提供逐步執行工作流程。
| 命令 | 用途 |
|---|---|
/refactor | 啟動互動式重構引導 |
/refactor decide | 執行重構 vs 重寫決策樹 |
/refactor tactical | 建議戰術性(日常)策略 |
/refactor strategic | 引導戰略性/架構重構 |
/refactor legacy | 遺留程式碼安全策略 |
/refactor debt | 技術債評估 |
| 策略 | 使用時機 |
|---|---|
| 準備式重構 | 新增被阻擋的功能之前 |
| 童子軍法則 | 任何維護工作中 |
| 紅-綠-重構 | TDD 開發循環 |
| 策略 | 使用時機 |
|---|---|
| 絞殺者無花果 | 逐步替換整個系統 |
| 防腐層 | 與遺留系統整合 |
| 抽象分支 | 在主幹上重構共享程式碼 |
| 策略 | 使用時機 |
|---|---|
| 特徵化測試 | 任何遺留程式碼重構之前 |
| 草稿式重構 | 理解黑盒程式碼 |
| 尋找接縫 | 在遺留程式碼中注入測試替身 |
/refactor 完成後,AI 助手應建議:
重構完成。建議下一步:
/checkin 通過品質關卡/coverage 確認重構後覆蓋率不下降/commit 提交重構變更[UDS] 以 Claude 原生 Agent tool 编排多任务执行计划(DAG-based,无外部引擎)。 Use when: executing a plan.json file with parallel/sequential task dependencies. Keywords: orchestrate, plan, execute, DAG, task plan, 编排, 执行计划, 并行.
[UDS] 从 Spec 文档、OpenSpec 变更或自由文本需求生成 plan.json。 Use when: converting specifications into executable task plans for /orchestrate. Keywords: plan, spec, task plan, 计划, 规格, 任务, plan.json, DAG.
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.