---
name: "inbox"
description: "Reviews the Inbox: scans, previews and counts candidates, routes a selected scope through ingest, and deletes processed originals only on an explicit yes after verbatim preservation passed. Use for Inbox review, processing a selection or duplicate sources. Saving new material belongs to capture."
license: MIT
title: inbox
canonical_url: https://skilld.dev/gh/goberomsu/secondbrain-skills/inbox
last_updated: 2026-11-18T15:15:25.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install goberomsu/secondbrain-skills/inbox`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/inbox`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/goberomsu/secondbrain-skills/inbox) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/inbox`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/inbox --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/inbox --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Inbox

Scan `00. Inbox/` for pending candidates, preview them, and route the selected ones through `ingest`. Read Core Context once per session; its §2 reuse axes are the ones offered for purpose. Scanning, previewing and counting write nothing. Ingest owns Raw, Wiki, Maps, and the wiki index and log in [records](../ingest/references/records.md). The only file action this skill performs itself is the Step 6 cleanup, and only after an explicit yes.

Tools: `obsidian-cli` or plain file reads over the vault; `rg` over frontmatter for counts and locators; `qmd` when a locator is missing and you need a likely existing Raw.

## Input

- Blank or `all`: scan every lane.
- A lane or folder name (e.g. `articles`, `papers`): scan only that lane.
- `count` or `status`: show counts without detail, then stop.
- Named notes: preview those.

## Inbox Structure

Read the destination's actual `00. Inbox/` and the lanes it has; never assume a layout. The usual lanes are Articles, Papers, Transcripts, Clippings and AI Research plus the root; a vault may add `{NN Agent}` session lanes (e.g. `01 Chat`, `04 GJC`) or dated subfolders, which are scanned like any lane.

A note in a lane has its kind assigned by where it sits. A note at the Inbox root is uncategorized: say so rather than guessing a lane; `ingest` settles its placement. A note still in the Inbox is pending. A `capture` note (`type: inbox`, `capture_status`, `captureMode`, dated filename) is a normal candidate; read those keys, never rewrite them.

## Process

### Step 1: Scan

Walk the Inbox recursively; skip non-notes such as `.gitkeep`. If empty everywhere, report "Inbox is empty. Nothing to ingest." and stop. A note that cannot be read, or whose frontmatter does not parse, is reported as a problem, not counted as a candidate.

### Step 2: Preview

For each candidate, read the frontmatter and the start of the body (about the first 100 lines of a long note) and settle:

- **source** — title, `source_url`/`source` or `source_locator`, platform, author when stated, `date_clipped`;
- **kind** — from the lane or the Web Clipper `category`; for a root note, suggest one and mark it as a suggestion;
- **fidelity** — `captureMode` and `capture_status` when present (`transcript`, `curated-excerpts`, `manifest-only`, `mixed`; `captured`, `partial`), plus the omissions the note names. A manifest-only note is a list, not text; never present it as full content;
- **collectionPurpose** — the recorded value, or that none is recorded;
- **size** — rough length of Original Content, language, and for a bundle the number of members;
- **topics** — two or three, read from Original Content, not the capture notes alone. A claim found only in Agent Capture Notes is the capturer's reading.

**Duplicates.** Match by source first: canonical `source`/`source_url` or `source_locator`, or a session id; then compare content. Titles and authors never prove sameness. Check within the Inbox (candidates sharing a source form one group; keep every distinct excerpt, since two clips of one page may hold different passages) and against existing Raw (flag the candidate with the Raw's path so `ingest` reuses or extends it). Entries in `referenced` are earlier captures or originals the note cites; they never prove the original was read.

### Step 3: Present

Lead with counts per lane and a total pending. Then one detail table:

| # | Lane | Note | Source | Fidelity | Purpose | Size | Topics | Duplicate |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |

List problems (unreadable notes, missing locators, root-level notes) below it. For `count` or `status`, stop here.

### Step 4: Ask

Ask scope and purpose mode in one turn:

1. **Scope** — all, one lane, or named notes. No answer selects nothing; the whole Inbox is never assumed.
2. **Purpose mode** — a letter to your future self:
   - **Shared** — one `collectionPurpose` for the whole selection, applied to every note;
   - **Per-file** — `ingest` asks its Step 1 question per note;
   - **Auto-infer** — "you decide"/"automatically": `ingest` infers from the source and Core Context §2, recording the inference and its reason in `collectionPurpose`.

A candidate that already carries `collectionPurpose`, or a purpose the task already states, is reused and not asked again; when every selected note has one, ask scope only. Never attach a purpose the owner did not give, approve or delegate.

### Step 5: Ingest

Compose `ingest` once per selected note with its path, its purpose, and the duplicate flags from Step 2. `ingest` owns Raw placement, preserving the candidate's metadata, the 10–15 Wiki pages, Maps, the wiki index update and the wiki log entry, and its Step 6 review including qmd reindex status. Run notes sequentially with progress per note: `[3/7] Ingesting: {note}`; never parallelize writes to the same Raw or Map. A prepared selection is not an executed ingest. Nothing is committed or pushed; a commit happens only when the owner separately asks.

### Step 6: Cleanup

After the batch, check each ingest's report against disk: a Raw exists for each selected candidate, its `## Original Content` passed ingest's verbatim check against the Inbox body, and the wiki index and wiki log were updated. Then ask "Delete the processed files from the Inbox?", listing the candidates that passed.

- Delete only on an explicit yes, and only candidates whose verbatim check passed; a failed or partial ingest stays in place and is reported.
- Before deleting a candidate, read it back once more as its before-image and confirm its Raw carries the full body verbatim and every source, history and metadata value the candidate held except `date_clipped` (`source`/`source_url`, `collectionPurpose`, `referenced`, Source Manifest, Agent Capture Notes, unknown keys); anything missing keeps that candidate in place and is reported.
- No answer, or anything but yes, leaves every original in place, reported as awaiting cleanup. Declining cleanup is not an ingest failure.
- Never delete unselected candidates, binary originals, or anything outside the listed set.

Report pending counts, the selected scope, completed Raw sources, Wiki pages created or updated, files deleted, and files left in the Inbox.

## Notes

- Lane and frontmatter are both category signals; when they disagree, report it and let `ingest` decide placement from the destination's live policy.
- Web Clipper and RSS arrivals carry source metadata but no owner purpose; Step 4 is where one is given.
