using-second-brain

using-second-brain is a skill for Claude Code, Codex from tolgakisaogullari/SumelaOS. It costs 51 tokens per session (6,698 once invoked), scanned A, original, MIT.

A structured knowledge system for storing source material, generated plans and specifications, and a linked collection of maintained notes. It is designed to preserve context across coding sessions.

In plain words
What is it for?
Use it when starting work, importing articles or logs, finishing a branch, answering questions about earlier work, or filling an information gap. It supports maintaining linked project knowledge in an Obsidian-style vault.
Why use it?
It reduces the need to rediscover earlier decisions, definitions, and investigation results. Separating original sources from editable summaries helps protect the record and make it recoverable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python .sumela/memory-plugins/qdrant-session-memory/scripts/session-ingest.py docs/second-brain/wiki/session-summaries/YYYY-MM-DD-<topic>.md.

Good fit Use it when starting work, importing articles or logs, finishing a branch, answering questions about earlier work, or filling an information gap. It supports maintaining linked project knowledge in an Obsidian-style vault.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tolgakisaogullari/SumelaOS
agentmods
npx agentmods add skills/tolgakisaogullari/sumelaos/using-second-brain

Made for: Claude Code, Codex.

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 using-second-brain

README.md
[![agentmods](https://agentmods.dev/badge/skills/tolgakisaogullari/sumelaos/using-second-brain/github.svg)](https://agentmods.dev/skills/tolgakisaogullari/sumelaos/using-second-brain)
Your own site
<a href="https://agentmods.dev/skills/tolgakisaogullari/sumelaos/using-second-brain"><img src="https://agentmods.dev/badge/skills/tolgakisaogullari/sumelaos/using-second-brain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for using-second-brain

Your own site · 80×15
<a href="https://agentmods.dev/skills/tolgakisaogullari/sumelaos/using-second-brain"><img src="https://agentmods.dev/badge/skills/tolgakisaogullari/sumelaos/using-second-brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,698 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.00051 $0.06698
Opus 5 $0.00026 $0.03349
Sonnet 5 $0.00010 $0.01340
Haiku 4.5 $0.00005 $0.00670

Measured 9d ago against content hash 4f3a795dec34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

using-second-brain 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 9d ago.

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.

.sumela/skills/using-second-brain/SKILL.md · 255 lines

How it starts

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

<brain_architecture> The Second Brain is stored in docs/second-brain/ (or your chosen Obsidian vault). It has three distinct layers (Karpathy pattern):

  1. raw_sources/: IMMUTABLE. User-provided articles, logs, PDFs, meeting notes. You MUST READ from here but NEVER modify these files.
  2. artifacts/: IMMUTABLE (write-once). LLM-generated plans (artifacts/plans/) and specs (artifacts/specs/). Created by writing-plans and brainstorming skills. Once written, NEVER modified.
  3. wiki/: LIVE SYNTHESIS. A structured, interlinked directory of markdown files. You own this layer entirely. You create, update, and maintain cross-references here. This is where knowledge compounds.

Schema (Configuration): Format rules live in wiki/_SCHEMA.md. Behavioral rules live in .sumela/SKILL_REGISTRY.md and this skill file.

Reliability invariant: For this skill, Second Brain correctness and recoverability are more important than token reduction. Do not remove routing tiers, write gates, parity checks, or memory-sync steps solely to reduce context cost; simplify only when behavior remains at least as safe. </brain_architecture>

<core_indexes> The wiki/ directory has FIVE special files (frontmatter-free, governed by _SCHEMA.md):

  • _INDEX.md: Human-optimized content catalog. Read this FIRST every session for navigation.
  • _SEARCH_INDEX.md: Agent-optimized search index. A table with per-page Type, Tags, Key Terms, and Summary columns. Use this for targeted search: match query terms against Key Terms/Tags → read only matched pages. Scales to hundreds of pages with zero runtime dependencies. Updated during every ingest/code-commit/lint.
  • _LOG.md: Chronological append-only log. Format: ## [YYYY-MM-DD] type | topic (parse-friendly). Type whitelist: ingest | query | lint | code-commit | decision | migration. NEVER rewrite past entries — they are immutable history.
  • _LOG.md note: _SCHEMA.md is the canonical whitelist source; evolve is a valid log type for self-improvement applications.
  • _SCHEMA.md: Canonical format source. Read this BEFORE writing any wiki page. Defines page types, frontmatter schemas, naming, templates, and cross-ref conventions.
  • _improvement-queue/: Self-improvement queue — a directory, one IMP-*.md per signal. Managed by self-improvement-curator skill and reviewed via /evolve. At session start, surface the pending count by globbing IMP-*.md (never scan the whole dir — the README.md example would inflate the count). Do NOT modify as part of normal wiki operations — it has its own workflow. </core_indexes>

<trigger_conditions> Determine which workflow to execute based on these signals (highest specificity wins):

  • Session start → bootstrap reads + parity + queue count are governed by .sumela/sumela-prompt.md (<session_bootstrap>). This skill is invoked LAZILY when an information gap appears or one of the triggers below fires.

  • User says "save", "add to wiki", "ingest", "note this", "remember this" (or the equivalent in any language) → INGEST workflow.

  • User drops multiple sources or says "batch ingest", "process all" (or the equivalent in any language) → BATCH INGEST workflow.

  • User says "clean the wiki", "lint", "health check" (or the equivalent in any language) → LINT workflow.

  • Ad-hoc decision during conversation — User makes or confirms an architectural/technology decision outside of a coding task (e.g., "let's use Redis", "select this pattern") → DECISION CAPTURE workflow.

  • User says "save this", "save this source", "ingest that URL" (or the equivalent in any language), or a lint data-gap suggestion is approved → WEB SOURCE CAPTURE workflow.

  • Threshold trigger (ingest-based): After writing a new ingest entry to _LOG.md, count total ingest entries. If count is a multiple of 5 (5, 10, 15, ...), ASK the user: "After the last 5 ingests, I recommend a full lint — should I run it?" — NEVER auto-run lint.

  • Threshold trigger (time-based): At session start, after reading _LOG.md, check the date of the last lint entry. If 7+ days have passed since the last lint, ASK the user: "It's been 7+ days since the last lint — I recommend a health check. Should I run it?" — NEVER auto-run lint.

  • Ingest with image references → the standard INGEST workflow activates IMAGE READING WORKFLOW (operation 8) as a sub-step when raw_sources/assets/ contains files referenced by the new source. </trigger_conditions>

Read the full file on GitHub · 255 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. 9d ago First seen · 255 lines · 51 tokens per session scan A 4f3a795dec34

Subscribe to this mod's changes

using-second-brain is a skill published in the GitHub repository tolgakisaogullari/SumelaOS (4 stars, last pushed 15d ago), licensed MIT. It adds 51 tokens to every session and 6,698 once invoked, about $0.0003 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

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens