AgentSkillsCN

inbox-file

处理收件箱中的各项事务——预览邮件内容,为每封邮件拟定合适的归档目的地,并以极简的前言信息完成归档。

SKILL.md
--- frontmatter
name: inbox-file
description: "Process items in the Inbox folder - preview, suggest destinations, and file with minimal frontmatter"
last_updated: 2026-02-02
tools_required: [Glob, Read, Bash, AskUserQuestion]
agent_type: main_agent

Inbox File

Process items dropped in the Inbox folder, suggesting destinations and filing with user's approval.

[GOAL]

Interactively process each item in Inbox/, showing content previews, suggesting destinations, and moving files with minimal frontmatter added.

[PROCESS]

1. List inbox items

bash
ls -la {VAULT_PATH}/Inbox/ | grep -v README.md | grep -v ".DS_Store"

If empty, report "Inbox empty - nothing to file" and exit.

2. For each item

Show preview:

  • First 20 lines of content (or full file if short)
  • Any hashtags on first line
  • File size and modification date

Suggest destination based on hints:

Hint/PatternSuggested Destination
#project or project nameProjects/{name}/
#meetingProjects/{project}/meetings/ or Clients/{client}/meetings/
#ideaPersonal/Ideas/
#client or client nameClients/{name}/
#reference or #clipKnowledge/Clippings/
#journalJournal/
PDF financial docPersonal/Finances/
No clear hintAsk user

3. Get user approval

Use AskUserQuestion:

  • Show suggested destination
  • Options: Accept / Different location / Skip / Delete

4. Execute move

If approved:

bash
mv "{VAULT_PATH}/Inbox/{filename}" "{VAULT_PATH}/{destination}/"

If file is .md, optionally add minimal frontmatter:

yaml
---
type: note
date: YYYY-MM-DD
source: inbox
---

5. Report summary

After processing all items:

  • X items filed
  • X items skipped
  • X items deleted

[IMPORTANT]

  • Always preview before suggesting - don't guess from filename alone
  • Ask, don't assume - user confirms each move
  • Minimal frontmatter - only type and date, nothing more
  • Preserve content - never modify file content, only add frontmatter
  • Handle PDFs - can't add frontmatter, just move to destination

[DESTINATION REFERENCE]

TypePath
Project workProjects/{project-name}/
Client workClients/{client-name}/
IdeasPersonal/Ideas/
Financial docsPersonal/Finances/
Reference materialKnowledge/Clippings/
Daily reflectionJournal/
Meeting notes{project-or-client}/meetings/
Family mattersPersonal/Family/

[FALLBACK]

If destination folder doesn't exist, ask user:

  • Create folder and proceed?
  • Choose different destination?