agentleFS
AbilityaiAbilityai/cornelius/.claude/skills/intake/SKILL.md

intake

Skill121 starsChanged 5 days agoMITView on GitHub

Take in one document or link (or everything waiting in the inbox) with no questions asked - work out what it is, convert it if needed, run the playbook that fits (source ingestion, own-words extraction, or just keep it), and end with the same short summary every time. The one-step entry point for "here is a file, deal with it".

  • Reads credentials

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use triage, plan and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 5 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    build

    Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.

    Also in 3 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 4 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 5 projects that use this

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Already taken in?: If the ledger has a row with the same fingerprint and a result other than failed, do not run it again: print the summary …

    line 72
  2. Distinctive:

    Look before deciding. Read the first pages (for a long file: the first 200 lines of text and the table of contents if there is one).

    line 78
  3. Very specific:

    When it is honestly unclear whether the words are the person's own, choose source: a note marked as *encountered* can be promoted by a …

    line 93
  4. Very specific:

    Every converter lives in the search venv that /first-run (and, on Trinity, the boot-time bootstrap) builds - no uv, no second toolchain.

    line 101
  5. Distinctive:

    Run exactly one, with the Skill tool, and let it finish:

    line 124
  6. Very specific:

    If the called playbook rejects the source at its own gate (a content farm, machine-written filler), that is a result, not a failure: report …

    line 130
  7. Very specific:

    If it fails partway, do not retry here and do not clean up its checkpoint: record failed with the step it reached.

    line 132
  8. Distinctive:

    Before the ledger and the summary, check for yourself that what was written can be found - do not take the called playbook's word for it:

    line 136
  9. Distinctive:

    Stop starting new documents once 40 minutes have passed.

    line 177
  10. Distinctive:

    Never run two documents at once: each one is extracted against the index the previous one just refreshed.

    line 180
  11. Distinctive:

    Ask a question, or wait for an answer.

    line 184
  12. Distinctive:

    Write a note itself, or edit one the called playbook wrote.

    line 185
  13. Distinctive:

    Delete, move or rename the document it was given.

    line 186
  14. Distinctive:

    After completing this skill's primary task, consider tactical improvements:

    line 214

“Common” is measured: kept by at least 6 in 10 of the 39 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Intake

One document in, a short summary out. This playbook is a router: it does no extraction of its own. It works out what was handed over, turns it into something the extraction playbooks can read, runs the one that fits, and reports in a fixed shape.

Purpose

A person who hands Cornelius a document should not need to know which playbook fits it, and should not be asked anything on the way. They drop a file or paste a link, and come back to a summary of what was written.

It serves three callers the same way:

  • a person in a chat ("process this", with a file in the inbox or a path),
  • a surface that offers a choice at drop time (it passes --as),
  • a scheduled or batch run (--all).

The rule that makes it unattended

Never ask a question. Nobody may be there to answer. Where a playbook this one calls would stop to ask or offer an interview, skip that part and say so in the summary. Where a decision cannot be made safely without a person, do not guess: hold the document (write nothing) and say what it is waiting for.

State Dependencies

SourceLocationReadWriteDescription
The documentargument path or link✓Never modified, never deleted
Inbox~/inbox/<person>/✓Where a hosted agent receives dropped files; one folder per person
Working markdownresources/ingest-workspace/<slug>/✓✓Converted markdown, when a conversion was needed
Intake ledgerresources/ingest-workspace/INTAKE-LEDGER.md✓✓One row per document: what it was, what ran, the result
Knowledge baseBrain/via the called playbookThis playbook never writes notes itself

Arguments

  • <file path> or <link> — the one document to take in.
  • no argument — the newest file in ~/inbox/*/ that has no ledger row. If the inbox is empty, say so and end.
  • --all — every inbox file with no ledger row, oldest first, one at a time (see Clearing the inbox).
  • --as auto|source|own|keep — the treatment. Default auto: Cornelius decides.
    • source — someone else's material: a book, paper, article, report, video, somebody else's talk.
    • own — the person's own words: their notes, their conversations, their voice transcripts.
    • keep — keep the file for the conversation; run nothing.
  • --from <person> — whose document this is. Default: the inbox folder name the file sits in, otherwise the vault's owner. When another agent dispatches the run on a person's word, record <person> (via <agent>).

Process

Step 1: Resolve the document

date '+%Y-%m-%d'
LEDGER=resources/ingest-workspace/INTAKE-LEDGER.md
mkdir -p resources/ingest-workspace
test -f "$LEDGER" || printf '| date | from | document | sha | treatment | playbook | result |\n|---|---|---|---|---|---|---|\n' > "$LEDGER"

For a file: confirm it exists and is readable, then take its fingerprint with { shasum -a 256 "<file>" 2>/dev/null || sha256sum "<file>"; } | cut -c1-12 (shasum is a Perl tool that minimal Linux images lack). For a link: the fingerprint is the link itself.

Already taken in? If the ledger has a row with the same fingerprint and a result other than failed, do not run it again: print the summary with Treatment: already taken in on <date> and end. The same file dropped twice costs nothing.

Derive <slug> from the file name or the page title (lowercase, hyphens, 60 characters at most).

Step 2: Work out what it is

Look before deciding. Read the first pages (for a long file: the first 200 lines of text and the table of contents if there is one). Establish:

  1. Format — by extension, and by content when the extension lies or is missing.
  2. Kind — a book; a paper, article, report or other document; a video or talk; a transcript or notes; reference data about a person, an organisation, a product or a deal; something else.
  3. Whose words — the person's own (--from), or somebody else's.

Then choose the treatment. An explicit --as wins. With auto:

What it isTreatmentPlaybook
Somebody else's book, paper, article, report, video, talk or transcriptsource/ingest-source
The person's own notes, conversations or voice transcriptsown/extract-insights
Reference data about a person, organisation, product or dealholdnone — it belongs in /ref-ingest, which needs a person present
Unreadable, empty, a format with no path in, or not knowledge at all (an installer, a photo with no text)keepnone

When it is honestly unclear whether the words are the person's own, choose source: a note marked as encountered can be promoted by a person later, and a note wrongly written in the person's voice is the worse mistake.

A PDF is a book only when it is one. /ingest-source files every .pdf as a book by its extension. Decide here instead: it is a book when it has chapters and a table of contents, or an ISBN, or runs past about 80 pages of continuous prose. A paper, a contract, a slide export or a ten-page report is not. A non-book PDF is converted to markdown in Step 3 and handed on as markdown, so it lands with the other documents and not on the book shelf.

Step 3: Convert what the next playbook cannot read

/ingest-source reads .epub, .mobi, .azw3, book PDFs, YouTube links, .md and .txt by itself. /extract-insights reads text. Everything else is turned into markdown first, into resources/ingest-workspace/<slug>/<name>.md.

Every converter lives in the search venv that /first-run (and, on Trinity, the boot-time bootstrap) builds - no uv, no second toolchain. Check first; the script names exactly what is missing:

python3 -I resources/local-brain-search/intake_check.py      # "intake tools: ok", or one "missing: ..." line per gap
ROOT="$(git rev-parse --show-toplevel)"
VENV="$ROOT/resources/local-brain-search/venv/bin"
OUT="resources/ingest-workspace/<slug>"; mkdir -p "$OUT"
InputConversion
.docx .pptx .xlsx .html .htm"$VENV/markitdown" "<file>" -o "$OUT/<name>.md"
a PDF that is not a book(cd "$ROOT/.claude/skills/multi-format-book-extractor" && "$VENV/python" extract_book.py "<absolute path to pdf>" "$ROOT/$OUT") — absolute paths both, because the command runs inside the skill folder ($ROOT/$OUT, never $PWD/$OUT: inside the subshell $PWD is already the skill folder, and the chunks would land there). It writes chapter or 20-page chunk files (01_pages-1-20.md ...): concatenate them in order into one $OUT/<slug>.md (source line first) and delete the chunks, because /ingest-source takes one path. Hand on that markdown, never the PDF
a web link that is not YouTube"$VENV/trafilatura" -u "<link>" --markdown --with-metadata > "$OUT/<name>.md" (without --with-metadata the title, date and URL are lost; the frontmatter it writes counts as the source line); if the result is empty or under 500 characters, read the page with WebFetch and write its main text to the same file
.rtf, .odt, an email exporttry the markitdown line above; if it fails, keep with the reason
a scanned document or an image of textneeds an OCR-capable model key (GEMINI_API_KEY); without one, keep with that reason

After any conversion, check the result before going on: the file exists, has more than 500 characters, and reads as prose, not as markup or an error page. A page that is a login wall, a cookie notice or a "enable JavaScript" stub is a failed conversion: keep, with the reason. Put the source link or the original file name in the first line of the markdown (or in a url: frontmatter field, as trafilatura writes it), so the notes can cite where it came from. markitdown on a saved web page keeps the site's navigation links at the top; that is fine, judge the body, and tell the extractor to ignore the navigation lines.

If the conversion this document needs cannot run, keep, and put the missing: line from intake_check.py in the summary word for word, e.g. Skipped: pymupdf (PDF conversion) not installed in the search venv - run /first-run. Name only what this document needed (a missing PDF converter says nothing about a .docx), and never say "the search engine is not installed" unless the check said the venv, faiss, sentence-transformers or the index is missing. .md and .txt need no converter at all.

Step 4: Run the playbook

Run exactly one, with the Skill tool, and let it finish:

  • source → /ingest-source <prepared path or original file or YouTube link> "<session name>" — add --book only for a book. It is already unattended. Session name: "YYYY-MM-DD <Title> - <Author or organisation>", today's date.
  • own → /extract-insights <prepared path> — it may offer an interview or ask a follow-up at the end: do not take it up and do not wait. Note the offer in the summary's Skipped line.
  • hold / keep → run nothing.

If the called playbook rejects the source at its own gate (a content farm, machine-written filler), that is a result, not a failure: report Treatment: rejected at the door with its reason.

If it fails partway, do not retry here and do not clean up its checkpoint: record failed with the step it reached. Running /intake on the same file again resumes through that playbook's own checkpoint.

Step 4b: Search finds the new notes (for source and own)

Before the ledger and the summary, check for yourself that what was written can be found - do not take the called playbook's word for it:

# source (non-book) / source (book) / own words:
resources/local-brain-search/verify_searchable.sh core,document-insights "Brain/Document Insights/<session>"
resources/local-brain-search/verify_searchable.sh core,Books "Brain/Books/<book-slug>"
resources/local-brain-search/verify_searchable.sh core <each new note path under Brain/AI Extracted Notes/>

Its last line goes into the summary's Search: line as printed (searchable: 4/4, or searchable: 1/4 - index older than 3 of the notes ...). If it is short, run resources/local-brain-search/run_index.sh once and check again; if it is still short, the treatment is failed at indexed and the Search: line says so in the check's words. Never write a summary that claims notes the search cannot find. Do not search with a bare run_search.sh for this: it reads core only and cannot see Document Insights/ or Books/.

Step 5: Ledger

Append one row:

| YYYY-MM-DD | <from> | <file name or link> | <sha> | source / own / keep / hold / rejected | <playbook or -> | <N notes in <dir>> / kept / held: <why> / failed at <step> |

<from> is who handed the document over. It is the only record of whose material fed which notes, so always fill it in. A resumed run (the same document after a failed row) appends a new row and leaves the failed row as history; the newest row for a fingerprint is its state.

Step 6: The summary

End with exactly this block and nothing after it. Seven lines at most; leave a line out only when it has nothing to say (Search: is left out only for keep / hold / rejected, where nothing was written).

INTAKE  <file name or link>
What it is:  <one line: kind, author or origin, length>
Treatment:   <source | own words | kept | held | rejected at the door | already taken in on DATE | failed>
Playbook:    </ingest-source | /extract-insights | none>
Written:     <N notes in <directory> — up to three titles> | nothing
Search:      <the verify_searchable.sh line as printed, e.g. searchable: 4/4>
Skipped:     <what was not done and why, or what it is waiting for> 

Examples of a good Skipped line: interview offer not taken (unattended run) · scanned PDF, no OCR key · reference data about a client — run /ref-ingest with a person present · after the last source of a batch: /detect-tensions, /coherence-sweep, /graduate-insights.

Clearing the inbox (--all)

  1. List every file under ~/inbox/*/ with no ledger row, oldest first. Print the count.
  2. Take them one at a time, Steps 1–6 each, with --from set from the inbox folder. Each document gets its own summary block.
  3. Stop starting new documents once 40 minutes have passed. What is left stays for the next run; nothing is half-done, because the ledger row is written per document.
  4. End with one line after the last block: INBOX <done> taken in, <left> left, <failed> failed.

Never run two documents at once: each one is extracted against the index the previous one just refreshed.

What this playbook never does

  • Ask a question, or wait for an answer.
  • Write a note itself, or edit one the called playbook wrote.
  • Delete, move or rename the document it was given.
  • Promote anything to permanent notes. That stays a person's act (/graduate-insights).
  • Take in reference data about people, organisations or deals without a person present.

Error Recovery

SituationDo
File not found, or the link does not answerTreatment: failed, Skipped: <the error in plain words>, ledger row failed at resolve
Conversion produced nothing usablekeep, with the reason; the original stays where it is
The called playbook reports an import error or an empty indexrun python3 -I resources/local-brain-search/intake_check.py; failed, Skipped: <its missing: line, word for word>. If the check says intake tools: ok, the engine is there: report the playbook's own error in plain words instead, never "not installed"
The called playbook stopped at its time limitfailed at <its checkpoint phase>; the next /intake of the same file resumes
The index rebuild was killed (run_index.sh: ... Killed, out of memory - often another execution running at the same time)failed at indexed: the notes are written and the vector index saved, but the graph is not, so nothing is linked. Do not retry in this run; the next /intake of the same document resumes at the index step
The inbox folder does not existnot an error on a local machine: say no inbox here — pass a path or a link

Completion Checklist

  • No question was asked
  • Exactly one playbook ran, or none for keep / hold
  • A PDF went to the book shelf only if it is a book
  • The original document is untouched
  • Every note written was found by verify_searchable.sh in its own mount, or the summary's Search: line says how many were not
  • One ledger row was appended, with <from> filled in
  • Any Skipped line about a missing tool names the thing intake_check.py named
  • The closing block is the last thing printed, in the fixed shape

Self-Improvement

After completing this skill's primary task, consider tactical improvements:

  • Review execution: was a format refused that should have a path in? Did a conversion command fail as written?
  • Scope check: only tactical changes — a new row in the conversion table, a clearer rule in Step 2 — never a change to "never ask"
  • Apply improvement (if identified): edit this SKILL.md, bump metadata.version, prepend the changelog entry
  • Version control: stage .claude/skills/intake/ by path and commit

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.