second-brain-ingest

second-brain-ingest is a skill for Claude Code from philipyaz/cos. It costs 135 tokens per session (3,292 once invoked), scanned A, original, MIT.

A knowledge-ingestion skill that turns supplied text and attached files into pages in a work-and-personal wiki. A wiki is a collection of linked reference pages, and domain splitting keeps work and personal knowledge separate.

In plain words
What is it for?
Use it to file notes and attachments, classify them as work or life, copy the original files, update related people and concept pages, and link names to their canonical wiki pages.
Why use it?
It preserves incoming information as factual source material and updates related pages without mixing knowledge with tasks, reminders, calendar events, or other workflows.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to file notes and attachments, classify them as work or life, copy the original files, update related people and concept pages, and link names to their canonical wiki pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/philipyaz/cos/second-brain-ingest
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add philipyaz/cos --skill second-brain-ingest
Clone the repo
git clone --depth 1 https://github.com/philipyaz/cos

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for second-brain-ingest

README.md
[![agentmods](https://agentmods.dev/badge/skills/philipyaz/cos/second-brain-ingest.svg)](https://agentmods.dev/skills/philipyaz/cos/second-brain-ingest)
Your own site
<a href="https://agentmods.dev/skills/philipyaz/cos/second-brain-ingest"><img src="https://agentmods.dev/badge/skills/philipyaz/cos/second-brain-ingest.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,292 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.03292
Opus 5 $0.00068 $0.01646
Sonnet 5 $0.00027 $0.00658
Haiku 4.5 $0.00014 $0.00329

Measured yesterday against content hash 405f936e8260, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

second-brain-ingest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vault/example-vault/.claude/skills/second-brain-ingest/SKILL.md · 251 lines

How it starts

The opening of the file, as written. The whole thing — 251 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Second Brain — Ingest (knowledge-only)

This skill turns one incoming item into durable knowledge in the domain-split wiki. It does one thing: ingest. It does not route to a board, does not create tasks/reminders/events, does not poll Gmail / OpenWhispr / Calendar, and does not own any watermark. It receives marshalled inputs from the MCP ingest route: the inline text of the item, and zero or more absolute file paths to attached on-device files. Work the inputs you are given; do not go looking for more.

The vault is knowledge-only: a fact / context / who-what-why. Never write task checkboxes (- [ ]) into any page. Open work and to-dos live on the board, which this skill has no access to and must not invent.

Vault layout

The wiki is split by domain. Each domain has its own self-contained wiki tree:

Root When
work/wiki/ Professional knowledge — the venture, the role, advisory, work entities/concepts/sources.
life/wiki/ Personal knowledge — trips, health, admin, personal entities/concepts/sources.
shared/wiki/ Truly-dual entities only — pages referenced by both domains (the user themself, the city they live in). Lives under shared/wiki/entities.

Each domain tree holds:

  • <domain>/wiki/index.md — the strong index (see format below) — the entry point.
  • <domain>/wiki/log.md — the append-only ingest log.
  • <domain>/wiki/entities/ — people / orgs / products / tools.
  • <domain>/wiki/concepts/ — ideas / projects / themes.
  • <domain>/wiki/sources/ — one factual page per real source.

Other shared resources at the vault root:

  • aliases.md — the manual entity-resolution map (surface forms → canonical [[Entity]]).
  • raw/assets/ — preserved copies of attached artifacts. Drop attachments into raw/assets/ inside your vault (the path is relative to the vault root, which is this session's cwd).

CORE LOOP

0. Triage — information vs. bloat (do this FIRST)

Read the full file on GitHub · 251 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +47 lines · +19 tokens per session 405f936e8260
  2. 7d ago First seen · 204 lines · 116 tokens per session scan A 7a2db1231ad6

Subscribe to this mod's changes

second-brain-ingest is a skill published in the GitHub repository philipyaz/cos (4 stars, last pushed yesterday), licensed MIT. It adds 135 tokens to every session and 3,292 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

wiki-lint

Health-check a wiki vault. Finds orphan pages (no inbound links), dead wikilinks (point to non-existent pages), missing frontmatter fields, stale claims, empty sections, and pages absent from catalog.md. Produces a structured report with severity tiers and proposes concrete fixes — but does not auto-apply them unless…

tboome33/obsidian-mcp-router · 119 tokens

save

File the current Claude conversation (or a specific insight from it) as a structured wiki note. Auto-detects the right type (decision, answer, session-log, technique, ADR), writes appropriate frontmatter, places the file in the correct wiki folder, and updates catalog.md, journal.md, hot.md. Use when the user says…

tboome33/obsidian-mcp-router · 112 tokens

wiki-export

Export a vault's wiki either as a single portable file (llms.txt or llms-full.txt per the llmstxt.org standard) or as an OKF knowledge bundle (Google's Open Knowledge Format v0.1 — a shareable directory of markdown files any AI agent can consume). Use when the user says "export my wiki", "make an llms.txt", "share my…

tboome33/obsidian-mcp-router · 129 tokens

wiki-query

Answer a question using ONLY the existing wiki vault as the knowledge base — no web search, no general LLM knowledge. Reads hot.md first (cheap recent context), then catalog.md to navigate, then drills into specific pages, then optionally semantic-searches the wiki, and synthesizes an answer with citations. Use when…

tboome33/obsidian-mcp-router · 129 tokens

wiki-fold

Roll up the wiki's journal.md entries into structured fold pages — like 2^k log compaction. Reads the last 2, 4, 8, 16... entries and writes a fold page that summarizes them by extractive summarization (no invention), with backlinks to children. Idempotent at the structural level — re-running with the same window…

tboome33/obsidian-mcp-router · 125 tokens

wiki

Bootstrap or check a Karpathy-style "LLM wiki" structure inside an Obsidian vault — a self-maintaining knowledge base where pages reference each other and the LLM keeps it tidy. Sets up catalog.md (curated page catalog), journal.md (append-only operation history), hot.md (recent-context cache), and overview.md…

tboome33/obsidian-mcp-router · 134 tokens