/shipwright:duplication-scan --repo org/repo [--summary] [--dry-run]from shipwright
Scans a repo for duplicate/similar code patterns using judgment-driven comparison, tracks findings across runs, and writes a report to docs/patrols/duplication.md. Requires --repo flag.
Ships in shipwright. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
duplicate-code, code-similarity, code-quality, repo-scanning
Survey one repo for emerging, unnamed duplicate logic — the same responsibility
implemented independently in two or more places — weight candidates by churn, and
track them in the task store's PatrolFinding ledger across multiple runs. Only
patterns that have recurred with a stable shape (occurrence_count >= 3,
consecutive_stable_runs >= 2) are listed in docs/patrols/duplication.md. Report
only — no code changes.
--repo org/repo is required; without it, print the usage error and stop.
Flags:
--repo org/repo — the repo to scan (required)--summary — print counts to stdout without writing the docs file (findings and the run record are still written)--dry-run — run the full scan but write nothing (no findings, run record, docs file, or PR)Invoke the duplication-scan skill.
7-day visitors to each command page
npx claudepluginhub app-vitals/shipwright --plugin shipwright33 commands in this plugin
/agent-readinessScore one repo against the agent-readiness catalogue with the deterministic scorer, post a ReadinessSnapshot and record the run. Requires --repo org/repo. No model judgment, no tasks, no repo files./brainstorm[DEPRECATED] Renamed to /prd. This stub forwards invocations for backward compatibility./dev-taskDev TaskExecute a specific task from the task store by id — build feature, simplify, verify, ship PR/duplication-fixRead a repo's ready_to_propose duplication patterns from the task store and queue them as routed tasks (auto, review, or plan), each with a strangler-fig execution plan. Requires --repo org/repo and a prior /duplication-scan. Flags: --dry-run (preview tasks without queueing them), --pattern {fingerprint} (queue one specific candidate only)./entropy-fixRoute a repo's PR-worthy entropy violations as task-store tasks (auto / review / plan), one task per golden principle, and record the patrol run. Requires --repo org/repo and /entropy-scan first. Flags: --dry-run (preview without queueing or recording), --rule {id} (queue one specific rule only)./entropy-scanScan one repo for golden principle violations and write docs/patrols/entropy.md (docs PR on material change). Requires --repo org/repo. Report only — no code changes. Flags: --init (create starter config), --summary (print summary only, write nothing), --trend (print trend from recorded runs, skip scan), --dry-run (no PR, no run record).Other plugins' commands for the same job