ワンクリックで
wiki-fetch-mail
Use when the user asks to fetch mail, sync email inbox, or process emails into the knowledge base.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when the user asks to fetch mail, sync email inbox, or process emails into the knowledge base.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when the user notices a system, concept, person, project, decision, competitor, or problem is missing from the Wiki and wants to create a page for it.
Use when the user asks any question, requests research, or wants information from the knowledge base. This is the default action in this repository — when in doubt, search the Wiki. Use for "find me...", "what do we know about...", "tell me about...", "who is...", "what is...", or any general research question.
Use when the user asks to ground this conversation in the knowledge base, says "wiki-ground", asks to treat the KB as source of truth, or wants domain answers backed by the Wiki. Optional topic front-loads relevant knowledge base pages.
Use when the user asks for a health check, lint, audit, or wants to check for orphan pages, contradictions, or data gaps in the Wiki.
Use when the user asks to finalize an ingest, merge batch logs, or rebuild Wiki indexes after a batch import.
Use when about to process individual notes during Wiki ingestion — loaded as a required background skill by wiki-ingest and wiki-ingest-next-batch. Contains file conversion rules, topic assignment rules, WikiLink rules, and the session log format.
| name | wiki-fetch-mail |
| description | Use when the user asks to fetch mail, sync email inbox, or process emails into the knowledge base. |
Fetch email files from the configured OneDrive inbox and copy them to raw/emails/ for ingestion.
Read config/personal_info.md. Find the # Email section and parse the Markdown table:
| Setting | Value |
|---|---|
| Inbox | /path/to/inbox |
Extract the Inbox value. If the # Email section is missing or the Inbox row cannot be found, report:
"No email inbox configured. Add an
Inboxrow toconfig/personal_info.md."
Then stop.
Check that the inbox path exists and is accessible:
ls "<inbox_path>"
If the path does not exist or is inaccessible, report:
"Email inbox not found or not accessible: "
Then stop.
List all .html and .eml files in the inbox (flat directory, no recursion):
find "<inbox_path>" -maxdepth 1 \( -name "*.html" -o -name "*.eml" \) | sort
If no files are found, report:
"Nothing to fetch — inbox is empty."
Then stop.
For each file in the list:
raw/emails/, skip the copy (count as skipped) but still delete the original from the inbox — it is already safe in raw/emails/.raw/emails/ first, then delete the original:cp "<inbox_path>/<filename>" "raw/emails/<filename>" && rm "<inbox_path>/<filename>"
If the copy fails, warn ("Could not copy — skipping") and leave the original in the inbox. Do not delete a file whose copy failed.
In all cases where the file ends up in raw/emails/ (whether copied now or already present), delete it from the inbox.
Append one line to wiki/log.jsonl (replace N with actual counts and use local time):
{"date": "YYYY-MM-DD HH:mm:ss", "type": "email-fetch", "inbox": "<path>", "files_copied": N, "files_skipped": N}
Report a summary:
Mail fetch complete:
N files copied to raw/emails/
N files skipped (already present)
Then tell the user:
"Email files written to
raw/emails/. Use thewiki-ingestskill (or sayingest new notes) to ingest them — or runscripts/wiki-ingest.shfor unattended bulk ingestion."