sounder25/foundational-agent-skills/14-detect-duplicate-files

Claude Code and agent skill by sounder25/foundational-agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Identify duplicate files across the workspace using SHA256 hashing to reduce redundancy and confusion.

Install

npx vskill@latest install sounder25/foundational-agent-skills/14-detect-duplicate-files

SKILL.md

SKILL-014: Detect Duplicate Files

Overview

Scans the workspace for identical files (by content, not name) to detect redundancy, copy-paste errors, or accidental forks. Generates a report suggesting deduplication actions.

Trigger Phrases

  • find duplicates
  • check for duplicate files
  • scan redundancy

Inputs

ParameterTypeRequiredDefaultDescription
--workspace-pathstringNoCurrent directoryRoot to scan
--min-sizeintNo0Minimum file size in bytes to check
--excludestring[]Nonode_modules, .git, bin, objDirectories to ignore

Outputs

1. DUPLICATE_REPORT.md

Summary of found duplicates:

markdown
# Duplicate File Report
**Total Duplicates:** 12
**Wasted Space:** 4.5 MB
## Group 1 (Hash: a1b2...)
-`src/utils/math.ts` (Original?)
-`src/legacy/math_copy.ts`
## Group 2 (Hash: c3d4...)
-`config/settings.json`
-`deploy/settings.prod.json`

Implementation

Script: find_duplicates.ps1
  1. recurses through directory (respecting excludes).
  2. Calculates SHA256 hash of every file.
  3. Groups by hash.
  4. Filters groups with count < 2.
  5. Generates Markdown report.

Use Cases

  1. Cleanup: Reducing repo size by removing accidental copies of large assets.
  2. Refactoring: Finding code that was copy-pasted instead of shared.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sounder25/foundational-agent-skills/14-detect-duplicate-files/badge)](https://verified-skill.com/skills/sounder25/foundational-agent-skills/14-detect-duplicate-files)

Something wrong with this skill or its page? Tell us.