setup-dry
Installation
SKILL.md
Setup DRY
One-time guided setup. Adds DRY violation detection at both CI and pre-commit hook level. Defaults to setting up both -- confirms with user before proceeding.
Workflow
Step 1 -- Detect project setup
- Identify primary language(s) from file extensions and config files
- Identify source directories (e.g.
src/,lib/,app/) - Check for existing duplication detection tools (e.g. jscpd, PMD CPD)
- Check if
.github/workflows/already exists
Present findings to user for confirmation before proceeding.
If detection is ambiguous, use AskUserQuestion to clarify:
- If language can't be determined: ask what language(s) the project uses
- If no clear source directories: ask which directories contain production code (vs. config, scripts, etc.)
- If existing duplication tools found: ask if they want to replace or run alongside