Install
openclaw skills install @jlacroix82/smart-filesContent-aware file management for OpenClaw agents. Search files by content (not just names), find duplicates by hash, auto-categorize by type, detect file types, analyze cleanup needs, and rename with context. Zero dependencies.
openclaw skills install @jlacroix82/smart-filesStop guessing where files are. Start finding them by what they contain.
Agent file operations are blind. find . -name "*.js" only matches filenames. grep only searches text. No tool connects what you're looking for to what's actually inside the files.
Smart Files fixes this with one tool, zero dependencies.
node skills/smart-files/smart-files.js --search "database connection"
Searches across all files in the workspace, not just filenames. Returns matches ranked by relevance with snippets.
node skills/smart-files/smart-files.js --dedup
Finds duplicate files by SHA-256 hash. Groups them with file sizes and paths.
node skills/smart-files/smart-files.js --organize /path/to/dir
Categorizes files into: code, data, docs, media, archives, images, other.
node skills/smart-files/smart-files.js --info /path/to/file
Shows size, type, lines, words, modified date, and auto-detected content type.
node skills/smart-files/smart-files.js --cleanup /path/to/dir
Finds temp files, large files (>1MB), and duplicate groups.
node skills/smart-files/smart-files.js --status
Total files, total size, extension breakdown, largest files.
node skills/smart-files/smart-files.js --rename script.js app.js
Rename with context. Dry run by default — shows what would change.
No config needed. Works out of the box.
Override workspace root:
--dir /path/to/workspace
When the agent needs file operations:
--search <query> instead of find or grep--cleanup to identify what to remove--dedup to find duplicates first--info to get metadata and type--organize to categorize a directory| Tool | What it searches | Speed | Setup |
|---|---|---|---|
find | Filenames only | Fast | None |
grep | Text content | Medium | None |
| Smart Files | Content + metadata | Fast | None |
| ripgrep | Text content | Fast | Install |
| fd | Filenames | Fast | Install |
Smart Files gives you content-aware search + dedup + cleanup + metadata in one tool.