Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

gmail-wiki-ingest

БесплатноЗапускает вложенные скриптыНе проверен

Triage a batch of the user's email against their personal knowledge wiki and hand the verdicts back to javis-server, which bands them into auto-ingest /…

samuel-weiот samuel-wei930 установок в других каталогах

Об этом скилле

Gmail → Wiki Ingest

Judge a day of the user's mail against their wiki. You see thread metadata — subject, sender, date, thread size — plus the user's knowledge model, their own recent Confirm/Discard decisions, and a trusted flag per sender; and you may pull the full text of up to 12 threads the server already offered, to judge the ones metadata cannot settle. You return one verdict per candidate. The server decides what happens to each verdict: banding, sender trust, ref validation, the review card, the wiki write and the decision ledger are all Python, and none of them is yours to move.

rubric.md is the judgment. How to score, what to cite, and which threads are worth reading in full all live there. This file is the flow: what to call, in what order, and what each answer means.

When to act

  • The daily run fires (see "The trigger"). This is the normal path — the review cards in HiJavis are the outcome, and the report digest is how the user learns the run happened at all.
  • The user asks on demand: "ingest my email", "gmail ingest", "sync my inbox to the wiki", "整理邮件", "邮件入库".
  • Never on your own initiative inside some other turn. This skill reads the user's mailbox; it runs when it is asked to run.

There is deliberately no metadata.routes block in this file. Routes are what make the javis-server dispatcher auto-run a skill after every completed voice/keyboard unit — correct for calendar-extractor, wrong here: this skill has nothing to do with a transcript, and firing it per recording would poll Gmail dozens of times a day. The daily trigger is the whole trigger story.

The four-call flow

node scripts/gmail-wiki-ingest.js fetch   ──►  metadata + knowledge model
        │                                       + recent decisions + trust
        ▼
   you SELECT, per rubric.md §6 — which threads a body would actually change
        │
        ▼
echo '["<thread_id>",…]' | node scripts/gmail-wiki-ingest.js content
        │                                  ──►  full text, ≤ 12, staged keys only
        ▼
   you JUDGE, per rubric.md — one verdict per item, bodies or not, no omissions
        │
        ▼
echo '<verdicts>' | node scripts/gmail-wiki-ingest.js submit
        │
        ▼
   server validates → resolve_band → HIGH / MIDDLE / LOW
        │
        ▼
echo '{"headline":"…"}' | node scripts/gmail-wiki-ingest.js report
        │
        ▼
   one markdown digest into the user's Agent Chat — every run, no exceptions

All four commands are thin HTTP calls to javis-server, authenticated with the container's OPENCLAW_GATEWAY_TOKEN. The script does the I/O; you do the selecting and the judging. It holds no logic you need to know beyond the shapes below.

content is optional and submit is not. A run that reads no bodies is a normal run — a batch of newsletters needs none. A run that reads bodies and then does not cover every offered item in submit holds the watermark for the whole batch.

Run them from the skill directory. If fetch returns {"status":"error","error":"network_error"} the server is unreachable — stop and say so; do not improvise another route to the mailbox.

1. fetch

node scripts/gmail-wiki-ingest.js fetch [--limit N] — defaults to 25, capped at 50 by the server. There is no paging. One fetch, one batch, one submit, one turn. If more mail is waiting, the next run gets it; the watermark makes a late run cover a longer window rather than lose one.

Returns:

{
  "status": "ok",
  "items": [
    { "thread_id": "...", "subject": "...", "from": "Ada <[email protected]>",
      "date": "...", "rfc822_msgid": "...", "message_count": 4,
      "trusted": false }
  ],
  "context":  { "knowledge_model": {
                  "version": "…", "built_at": "…", "truncated": false,
                  "fields": ["page_type", "slug", "title", "degree"],
                  "nodes": [ ["concept", "Agent-Builder", "", 41],
                             ["topic", "Q3-Pricing", "Pricing, Q3", 6] ] } },
  "recent_decisions": [ { "title": "...", "actor": "...",
                          "category": "correspondence", "decision": "discarded" } ],
  "filtered": { "machine_mail": 12, "already_distilled": 3, "already_decided": 1 }
}

items carries no body and no snippet. Metadata is what the batch is made of, and for most of it that is enough — a receipt is a receipt from the outside. Where it is not enough, content is the way to look, and it is the only way: gmail_search and gmail_get_message exist on every other turn and are removed from this one, at advertisement and at execution. Calling one anyway returns {"error": "tool_not_available_for_this_skill"} and reads nothing, and that gate stays exactly where it is. The difference between it and content is the bound: an arbitrary mailbox search is unbounded, and content can only ever answer for threads this run's own fetch already chose to offer

Полный SKILL.md на ClawHub

Установить gmail-wiki-ingest в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл gmail-wiki-ingest?

Triage a batch of the user's email against their personal knowledge wiki and hand the verdicts back to javis-server, which bands them into auto-ingest / review card / auto-discard. Runs daily on an in-container openclaw cron agent turn, and on demand when the user asks to "ingest my email" / "gmail ingest" / "整理邮件". Four script commands do all the I/O over the gateway token — `fetch` returns thread metadata plus the user's knowledge model, their recent decisions and a per-sender trusted flag; `content` returns the full text of a shortlist of up to 12 threads, and only ones this run's `fetch` already offered; `submit` takes one verdict per candidate; `report` pushes the run digest to the user's chat. `rubric.md` owns the judgment — the category enum, the 0-1 relevance score, the citation rule and the policy for which threads earn a body read. Neither file owns the outcome — bands, sender trust, ref validation and every write stay server-side. Every run ends in a `report`, including a run that fetched nothing. Triggers — 'ingest my email', 'gmail ingest', 'sync my inbox to the wiki', '整理邮件', '邮件入库'.

Как установить скилл gmail-wiki-ingest?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл gmail-wiki-ingest запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить gmail-wiki-ingest с