commit
Create git commits with user approval and no Claude attribution
Check for violations of the Reuse Over Recreation principle
$ npx -y skills add dcouple/Pane --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/reuseContext preview
What this command does when you run it.
Check for violations of the Reuse Over Recreation principle
allowed-tools: Bash(git diff:*), Bash(git log:*), Bash(git show:*), Bash(git rev-parse:*), Bash(git branch:*), Read, Grep, Glob, TodoWrite description: Check for violations of the Reuse Over Recreation principle
You are reviewing code changes for violations of the **Reuse Over Recreation** principle.
Minimize lines of code. Reuse existing patterns. Avoid duplicating functionality.
**Why it matters:** More code = larger maintenance surface area.
**Key question:** "Did we implement with the least amount of lines?"
# Get current branch git rev-parse --abbrev-ref HEAD # Get changed files git diff main...HEAD --name-only # Get full diff git diff main...HEAD
Use TodoWrite to track files to analyze.
For each new function, hook, component, or utility in the diff:
1. Extract the function/hook/component name 2. Use Grep to search for similar names in codebase 3. Use Grep to search for similar functionality (key terms from the implementation) 4. Check these locations specifically:
1. Look for blocks of code > 10 lines that appear elsewhere 2. Search for distinctive string literals or patterns from the new code 3. Flag any near-identical implementations
For each new abstraction (class, hook, utility):
# Reuse Over Recreation Report
**Branch:** {branch}
**Status:** {PASS | WARN | FAIL}
## Summary
{One sentence assessment}
## Violations Found
### Critical (Must Fix)
| Location | Issue | Existing Alternative |
|----------|-------|---------------------|
| {file:line} | {description} | {what to use instead} |
### Warnings
| Location | Issue | Recommendation |
|----------|-------|----------------|
| {file:line} | {description} | {suggestion} |
## Existing Patterns That Should Be Used
1. **{pattern name}** at `{path}`
- What it does: {description}
- Should be used for: {use case from this PR}
## Code That Could Be Shared
{List any new code that should move to libs/shared/}
## Recommendations
1. {specific action}
2. {specific action}1. Save report to `tmp/review-reuse-{branch}.md` 2. Present summary:
Run this analysis now on the current branch.
Repo: dcouple/Pane
Create git commits with user approval and no Claude attribution
You are tasked with creating detailed implementation plans through an interactive, iterative process. You should be skeptical, thorough, and work…
Generate comprehensive PR descriptions following repository templates
You are tasked with implementing an approved technical plan from `thoughts/shared/plans/`. These plans contain phases with specific changes and success…
Iterate on existing implementation plans with thorough research and updates
You are tasked with conducting comprehensive research across the codebase to answer user questions. You will spawn one or more parallel sub-agents to perform…