datacosmos-br/agents/dry-refactoring
Claude Code and agent skill by datacosmos-br/agents
- community
Checking that the SKILL.md file is still in the repository.
jscpd clones, copy-paste duplication, extract function, refactoring workflow
Install
npx vskill@latest install datacosmos-br/agents/dry-refactoringSKILL.md
The same SKILL.md was published earlier as datacosmos-br/agents/dry-refactoring.
dry-refactoring
Guided workflow to eliminate copy-paste duplication detected by jscpd.
Detect clones
Eight lines is the comparison floor. A project may change flags only through its canonical gate and selected executable. Zero reported clones is mandatory; there is no baseline suppression contract.
Workflow
- Resolve the writable worktree, integration base, and gate owner.
- Parse each clone line into its two locations (file + line range).
- Read both fragments; classify semantic duplication, canonical projection,
generated/historical evidence, distinct fixture, or tokenizer false positive. Textual similarity alone authorizes no edit.
- Remediate only confirmed semantic duplication (
references/procedure.md). - Require zero clones, then prove the merged integration commit, command, working
directory, exit code, before/after counts, and runtime.
Cross-format clones usually mean a port kept both implementations; consolidate at one owner. Test clones often need a helper; unrelated-module clones often need a shared utility.
Never infer flags from another version: correct and execute the selector-free root Make owner when its contract is under change.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tool/dry-refactoring/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/datacosmos-br/agents/dry-refactoring)