# File Inspector

> Identify true file formats, group related sidecar files, and find byte-identical duplicates using local Python tools.

File Inspector is a free AI agent skill on Agensi by snepssen, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [snepssen](https://www.agensi.io/creators/snepssen)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/file-inspector
- Tags: productivity, automation, python, metadata, forensics, filesystem

## About this skill

File confusion leads to broken workflows, accidental deletions, and wasted storage. This skill provides read-only diagnostics to identify what files actually are, which ones belong in a set, and which are byte-for-byte duplicates.

### What it does
- **Format Verification** identifies the true file type by bytes to catch mismatched extensions like a PNG renamed to .docx.
- **Evidence Analysis** extracts creation dates from photo EXIF, document metadata, or filenames, labeling the reliability of each source.
- **Bundle Detection** groups related files such as RAW+JPEG pairs, movie subtitles, multipart archives, and image sequences.
- **Exact Duplicate Finding** performs SHA-256 checksum comparisons to find byte-identical copies while ignoring symlinks and hidden entries.
- **Source Tracing** retrieves download origins and original document headings when recorded by the system.

### How it works
1. **Tool Acquisition** clones or curls the tools-core repository into a temporary directory and verifies the commit hash.
2. **File Identification** runs `identify-file.py` to audit metadata, GPS tags, and camera serials for specific paths.
3. **Relationship Mapping** executes `bundle-list.py` on folders to see which sidecars and sequences must stay together.
4. **Duplicate Analysis** scans one or more directories using `exact-duplicates.py` to list identical file sets by size and hash.

### Frameworks & tools
Built with Python 3.8+ using the standard library. It optionally integrates with `ffprobe`, `exiftool`, and Tesseract OCR for deeper media and document inspection.

### Why this beats prompting it yourself
Standard LLMs guess file types based on names or extensions, which is often wrong. This skill uses specific byte-level analysis and checksums to provide ground-truth data from the local filesystem.

### Use cases
- Troubleshoot files that refuse to open by checking their true internal format.
- Audit a messy downloads folder to find and group RAW photos with their JPEG previews.
- Reclaim disk space by identifying large byte-for-byte duplicate files across different drives.
- Verify the integrity of multipart archives or numbered image sequences before moving them.

### Known limitations
Does not support file modification or deletion. Skips empty files, hidden entries, and app packages. Requires Python 3.8 and external binaries for full metadata extraction.

## Requires

- Python 3.8+
- curl
- Git
- Optional: ffprobe
- Optional: exiftool
- Optional: tesseract (OCR, not needed on macOS)

Runs on macOS, Linux and Windows. The skill downloads the open-source tools-core repository from GitHub at a pinned commit, checks its SHA-256, and runs it locally. Nothing is moved, renamed, deleted or uploaded.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the File Inspector skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this more accurate than just asking an AI to identify my files?

Unlike standard AI models that guess based on filenames, this skill performs byte-level analysis and SHA-256 checksums to provide ground-truth data, ensuring you never misidentify a renamed file or miss an identical duplicate.

### Can this skill accidentally delete my files during the duplicate finding process?

The skill is a read-only diagnostic tool designed to run in any Python 3.8+ environment; it identifies and groups files but does not have the permissions to delete, move, or modify your data.

### Do I need to install any third-party software for this skill to work?

Yes, while the core logic uses the Python standard library, you can optionally integrate ffprobe, exiftool, or Tesseract OCR to unlock advanced media metadata and deep document inspection.

### How does the 'Bundle Detection' feature help with photo and video management?

This skill is ideal for photographers and archivists as it automatically groups RAW+JPEG pairs, sidecar metadata files, and numbered image sequences that should be kept together.

### What is in the package?

Instructions only: a SKILL.md that tells your agent how to fetch the open-source tools-core repository from GitHub at a pinned commit, verify its SHA-256, and run three read-only tools: file-identify, bundle-list and exact-duplicates. Nothing is bundled, and nothing about your files leaves your machine.

### How does the skill make sure the tools it downloads are genuine?

It downloads one fixed commit of tools-core into a temporary folder and checks the archive's SHA-256 (or, with git, the commit hash) against the value written in the skill. If they don't match, it stops without running anything. Because it's pinned, it doesn't pick up later changes until the skill itself is updated.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
