← スキル一覧に戻る

detect-duplicate-files
by Sounder25
Operational capabilities for high-leverage AI coding agents. Features deterministic execution, 100% tested safety gates, impasse detection, and adversarial review. Includes 'Gold Standard' meta-skills like Pre-Action Guard and Failure Postmortem to prevent loops and data loss.
⭐ 8🍴 3📅 2026年1月23日
SKILL.md
name: Detect Duplicate Files description: Identify duplicate files across the workspace using SHA256 hashing to reduce redundancy and confusion. version: 1.0.0 author: Antigravity Skills Library created: 2026-01-16 leverage_score: 2/5
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 duplicatescheck for duplicate filesscan redundancy
Inputs
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--workspace-path | string | No | Current directory | Root to scan |
--min-size | int | No | 0 | Minimum file size in bytes to check |
--exclude | string[] | No | node_modules, .git, bin, obj | Directories to ignore |
Outputs
1. DUPLICATE_REPORT.md
Summary of found duplicates:
# 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
- recurses through directory (respecting excludes).
- Calculates SHA256 hash of every file.
- Groups by hash.
- Filters groups with count < 2.
- Generates Markdown report.
Use Cases
- Cleanup: Reducing repo size by removing accidental copies of large assets.
- Refactoring: Finding code that was copy-pasted instead of shared.
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です