name: file-inbox description: > Bidirectional file management system for OpenClaw workspaces. Organizes, indexes, and retrieves files exchanged with users via any channel. Use when: a user sends a file (PDF, image, CSV, code, dataset, etc.) and it should be saved; the agent generates a file (report, analysis, chart) to send; user asks to find, list, or search previously received/sent files; user asks "what files do I have?", "find the PDF I sent last week", or any file organization/retrieval request. NOT for: task tracking, calendar events, or non-file content like text messages.
Manage all files exchanged with users in inbox/ with a human-readable INDEX.md.
Inbound = files received from user. Outbound = files generated by agent.
Run once to initialize the directory structure:
bash skills/file-inbox/scripts/init_inbox.sh
Creates inbox/, subdirectories, inbox/INDEX.md, and inbox/.meta.json.
Idempotent — safe to re-run.
小蔥技能7w4.net有更新,你可以訪問看下。
bash
python3 skills/file-inbox/scripts/register_file.py \
--path <filepath> \
--direction in \
--sender "<name or channel>" \
--tags "#tag1 #tag2" \
--notes "Brief context"inbox/inbound/YYYY-MM/ and updates INDEX.md.bash
python3 skills/file-inbox/scripts/register_file.py \
--path <filepath> \
--direction out \
--dest "<recipient name or channel>" \
--tags "#tag1 #tag2" \
--notes "What this file contains"inbox/outbound/YYYY-MM/ and updates INDEX.md.Tags are auto-assigned from file extension before the script runs. You may append additional context tags. See tagging-guide.md.
# Search by tag
python3 skills/file-inbox/scripts/search_inbox.py --tag research
# Search by file type
python3 skills/file-inbox/scripts/search_inbox.py --type pdf
# Search by direction
python3 skills/file-inbox/scripts/search_inbox.py --direction in
# Search by date range
python3 skills/file-inbox/scripts/search_inbox.py --date-from 2026-04-01 --date-to 2026-04-30
# Free-text search (matches ID, filename, notes, tags, sender)
python3 skills/file-inbox/scripts/search_inbox.py --query "논문"
# Combine filters
python3 skills/file-inbox/scripts/search_inbox.py --direction in --type csv --query "실험"
For quick lookups, read inbox/INDEX.md directly — it's a markdown table, grep-friendly.
# File Inbox
> Total: N files | Inbound: N | Outbound: N
> Last updated: YYYY-MM-DD
## Recent Files
| ID | Direction | Filename | Type | Tags | Sender/Dest | Date | Notes |
|----|-----------|----------|------|------|-------------|------|-------|
| F-007 | ⬇️ in | report.pdf | pdf | #research #논문 | Kim | 2026-04-11 | IEEE revision |
| F-006 | ⬆️ out | results.csv | csv | #experiment | → Kim | 2026-04-10 | Phase 2 |
python3 skills/file-inbox/scripts/inbox_stats.py
Shows: total counts, breakdown by type and direction, recent activity, storage size.
inbox/ not listed in INDEX.md are orphans. Register or remove them.register_file.py for each file in inbox/.See integration-guide.md for: - Telegram file handling (document vs. photo messages) - How to extract sender name from channel context - Recommended AGENTS.md additions
--notes with enough context to identify the file months later.這個 Skill 質量很好,設計完善且使用簡單。它能自動整理收到的檔案和生成的檔案,給檔案打標籤,方便以後查詢,還支援按型別、日期、關鍵詞等多種方式搜尋。文件寫得清楚,程式碼執行穩定不容易出錯。主要不足是搜尋範圍限於已登記的檔案,不在索引裡的檔案就搜不到;另外處理很多檔案時沒有批次操作,會比較麻煩。總體來說這是一個可靠實用的檔案管理工具,值得使用。