AGENT SKILL
dry-refactoring
Guided workflow to eliminate copy-paste duplication detected by jscpd.
- License 许可
- MIT
- 最近更新
- 2026-07-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- dry-refactoring
- description
- Guided workflow to eliminate copy-paste duplication detected by jscpd.
03 SKILL.md 正文
dry-refactoring
Eliminate copy-paste duplication using extract function, module, constant, or base class strategies.
Workflow
- Run
npx jscpd@4.0.5 --reporters ai <path>to detect clones - Read both duplicated code fragments
- Design refactoring (extract function/constant/base class/module)
- Apply refactoring to both locations
- Re-run jscpd to confirm elimination
- Repeat for remaining clones
04 同仓库更多 Skills
ui-ux-frontend
Frontend UX, accessibility, responsive layout, and Storybook interaction quality standards.
★ 0
testing-conventions
暂无简介
★ 0
tdd
暂无简介
★ 0
shadcn-ui
shadcn/ui component conventions and composition patterns
★ 0
sdd
暂无简介
★ 0
quality-gate
暂无简介
★ 0