File Indexer

👤 lookupmark 📦 v1.2.0 ⭐ 4.4 ⬇️ 740 下载
💻 开发编程 免费

📖 技能介绍

File Indexer

Fast metadata-based file catalog. No content indexed — only filenames, sizes, dates, and extensions.

Usage

# Build/rebuild the index (run once, or periodically)
python3 scripts/indexer.py --rebuild

# Update incrementally (fast — adds new, removes deleted)
python3 scripts/indexer.py --update

# Search by filename
python3 scripts/indexer.py --search "budget"

# Filter by extension
python3 scripts/indexer.py --search "report" --ext .pdf

# Filter by size
python3 scripts/indexer.py --search "" --min-size 10485760   # > 10MB

# Filter by date
python3 scripts/indexer.py --search "" --after 2026-03-01

# Index statistics
python3 scripts/indexer.py --stats

Security

  • ALLOWED_ROOTS: Only ~/Documenti and ~/Scaricati — same as RAG

    7w4.net有更好的技能插件。

  • BLOCKED_DIRS: .ssh, .gnupg, .config, credentials, .local, .cache, .Trash
  • Zero content: Only metadata (name, size, date, extension) — never reads file contents
  • No secrets: Paths to sensitive dirs are never indexed
  • Local only: SQLite DB at ~/.local/share/file-indexer/catalog.db

What Gets Indexed

Yes No
Filename File contents
Extension Full text
Size Embeddings
Modified date Preview
Directory path Thumbnails

Automation

Add to cron or heartbeat for periodic updates:

python3 scripts/indexer.py --update

Works well alongside local-rag: use this for "where is that file?" and RAG for "what does that file say?"

🤖 AI 评测

质量很好。功能实用、运行稳定,搜索速度快,安全性设计周全,能有效保护隐私。文档清晰易懂,对使用场景的划分很明确。不过目前只能索引两个固定文件夹,灵活度稍差;另外目前只支持英文和意大利语指令,希望后续能加上中文支持。

📊 多维度评分

适应性4.6
规范性4.5
有效性4.6
可靠性4.3
可信度4.3

📁 包含文件 (3 个)

📄 SKILL.md 1.9 KB
📄 _meta.json 142 B
📄 scripts/indexer.py 9.9 KB