Code Clone Assistant Skill for Verifying Shared Parsers
Review clone findings against actual behavior before extracting a shared helper in a local codebase.
中文Install in Claude Code
Use your repository, current tests, and PMD CPD. A project-specific Semgrep rule can complement it.
- Get the complete `plugins/quality-tools/skills/code-clone-assistant` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/code-clone-assistant/SKILL.md`, start Claude Code at the project root, and call `/code-clone-assistant`.
Example task
Give two CSV importers the same count parsing behavior for normal, missing, and invalid values. Capture it with tests, extract shared parsing, and rerun.What to check
Both callers preserve behavior and clone findings decrease. Caller-specific messages can stay with each importer.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should every identical block be consolidated?
Check business ownership and expected changes. Independently evolving code can keep separate implementations with a reason.