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.
git clone --depth 1 https://github.com/tolgakisaogullari/SumelaOSnpx agentmods add skills/tolgakisaogullari/sumelaos/using-second-brainWrote 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.
[](https://agentmods.dev/skills/tolgakisaogullari/sumelaos/using-second-brain)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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):
raw_sources/: IMMUTABLE. User-provided articles, logs, PDFs, meeting notes. You MUST READ from here but NEVER modify these files.artifacts/: IMMUTABLE (write-once). LLM-generated plans (artifacts/plans/) and specs (artifacts/specs/). Created bywriting-plansandbrainstormingskills. Once written, NEVER modified.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.mdnote:_SCHEMA.mdis the canonical whitelist source;evolveis 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, oneIMP-*.mdper signal. Managed byself-improvement-curatorskill and reviewed via/evolve. At session start, surface the pending count by globbingIMP-*.md(never scan the whole dir — theREADME.mdexample 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
ingestentry to_LOG.md, count totalingestentries. 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 lastlintentry. 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>
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.
- 9d ago First seen · 255 lines · 51 tokens per session scan A 4f3a795dec34
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.
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.
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.…
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…
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.
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…
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.