Detect Duplicate Files

Identify duplicate files by SHA256 hash and generate a DUPLICATE_REPORT.md.

27|8|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/Sounder25/Google-Antigravity-Skills-Library --skill detect-duplicate-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Detect Duplicate Files
Source: https://github.com/Sounder25/Google-Antigravity-Skills-Library/tree/main/14_detect_duplicate_files
Command: npx skills add https://github.com/Sounder25/Google-Antigravity-Skills-Library --skill detect-duplicate-files

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Scans a workspace to identify content-identical copies of files using SHA256 hashes, helping reduce redundancy, confusion, and wasted storage.

Core Features & Use Cases

  • Duplicate detection: Detects groups of files with identical content across the workspace.
  • Reporting: Generates a human-readable DUPLICATE_REPORT.md summarizing groups, sizes, and locations.
  • Use Case: Clean up forks or copy-pasted assets in large repos to reclaim disk space and simplify maintenance.

Quick Start

Run the scan in the current directory to produce a DUPLICATE_REPORT.md in the .forensics folder and review the found duplicates.

Frequently Asked Questions about Detect Duplicate Files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find duplicate files in my codebase?

You can find duplicate files by recursively scanning your workspace and comparing content using SHA256 hashing. This identifies groups of identical files across directories and generates a markdown report summarizing their locations for cleanup.

How does SHA256 hashing identify content-identical copies?

SHA256 hashing identifies content-identical copies by generating a unique cryptographic hash for every file based on its contents. Files with matching hashes are grouped together as exact duplicates, regardless of their file names or directory paths.

Can I scan large repos to clean up copy-pasted assets?

Yes, you can scan large repos to clean up copy-pasted assets. The tool applies to codebases and projects of any size, recursively scanning directories while honoring exclusions to identify redundant files and help reclaim disk space.

What is the best way to report duplicate files for repo hygiene?

The best way to report duplicate files for repo hygiene is to generate a human-readable markdown summary. This approach outputs a deduplication report showing groups of identical files, their sizes, and locations for easy maintenance.

Does duplicate file detection respect exclusion rules during the scan?

Yes, duplicate file detection respects exclusion rules during the scan. It recursively traverses your workspace while honoring configured exclusions, ensuring specified directories or file types are skipped during the SHA256 hashing process.

Where is the deduplication report written after the scan completes?

The deduplication report is written to the configured output directory as a DUPLICATE_REPORT.md file. By default, this report is placed in a .forensics folder within the current workspace directory for easy access.