simon-brain-query

simon-brain-query is a skill for Claude Code, Codex from SW-in-beta/simon-skills. It costs 147 tokens per session (1,446 once invoked), scanned A, original, MIT.

A search skill for personal Obsidian knowledge bases, which are folders of linked notes used as a private wiki.

In plain words
What is it for?
Searching relevant notes, indexes, and tags across detected `*-wiki` folders to answer questions from the user’s stored knowledge.
Why use it?
It helps an agent find information the user previously recorded across multiple wiki folders instead of relying only on the current conversation.

Skill for Claude CodeCodex

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

Good fit Searching relevant notes, indexes, and tags across detected *-wiki folders to answer questions from the user’s stored knowledge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sw-in-beta/simon-skills/simon-brain-query
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 SW-in-beta/simon-skills --skill simon-brain-query
Clone the repo
git clone --depth 1 https://github.com/SW-in-beta/simon-skills

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 simon-brain-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/sw-in-beta/simon-skills/simon-brain-query/github.svg)](https://agentmods.dev/skills/sw-in-beta/simon-skills/simon-brain-query)
Your own site
<a href="https://agentmods.dev/skills/sw-in-beta/simon-skills/simon-brain-query"><img src="https://agentmods.dev/badge/skills/sw-in-beta/simon-skills/simon-brain-query/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 simon-brain-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/sw-in-beta/simon-skills/simon-brain-query"><img src="https://agentmods.dev/badge/skills/sw-in-beta/simon-skills/simon-brain-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,446 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.00147 $0.01446
Opus 5 $0.00073 $0.00723
Sonnet 5 $0.00029 $0.00289
Haiku 4.5 $0.00015 $0.00145

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

Security

Grade A, and why

simon-brain-query 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.

skills/simon-brain-query/SKILL.md · 141 lines

How it starts

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

simon-brain-query

Obsidian wiki vault들을 통합 검색하여 사전에 축적된 지식으로 질문에 답변한다.

vault 목록은 하드코딩하지 않는다. ~/Obsidian/*-wiki/ 글로브 패턴으로 매번 동적 감지하므로, vault가 추가되거나 삭제되어도 자동 반영된다.

Trigger

  • /simon-brain-query {질문} — 직접 호출
  • /simon-brain-query (질문 없음) — 무엇을 검색할지 질문
  • 다른 스킬에서 사전 지식 조회 시 내부적으로 검색 로직 참조

Instructions

Step 1: Vault 동적 감지

ls -d ~/Obsidian/*-wiki/ 2>/dev/null

감지된 vault 목록을 통보한다:

[Brain] 활성 vault 감지:
- buzzvil-wiki (320 documents)
- ai-wiki (5 documents)
- infra-wiki (0 documents)

문서 수는 각 vault의 wiki/INDEX.md에서 > **N documents** 패턴으로 추출한다.

vault가 0개면: "활성 vault가 없습니다. ~/Obsidian/ 아래에 *-wiki 디렉토리를 생성하세요."

Step 2: 키워드 추출 및 검색

질문에서 핵심 키워드를 추출하고, 두 단계로 검색한다.

2-A: INDEX.md + TAGS.md 스캔 (빠른 매칭)

각 vault의 wiki/INDEX.mdwiki/TAGS.md를 읽고 질문 키워드와 매칭되는 문서를 식별한다. INDEX.md는 테이블 형식이므로 Keywords 컬럼을 중심으로 스캔한다.

이 단계에서 관련 vault와 후보 문서 목록을 파악한다.

2-B: ripgrep 심층 검색 (INDEX에 없는 경우)

INDEX.md 매칭이 불충분하면 ripgrep으로 wiki/ 내부를 직접 검색한다:

# 각 vault에서 키워드 검색
rg -l "keyword1|keyword2" ~/Obsidian/{vault-name}/wiki/ --type md

Grep 도구를 사용하여 검색한다 (bash의 rg 대신).

Step 3: 관련 문서 읽기

후보 문서들을 읽되, 효율을 위해 다음 순서를 따른다:

  1. 가장 관련도 높은 문서 2-3개를 먼저 읽기
  2. 그 문서의 [[wikilinks]]를 따라가며 추가 관련 문서 확인
  3. 필요하면 추가 문서를 더 읽기 (최대 5-7개)

Feature Applicability Extraction (조건부 — 기능/피처에 대한 질문일 때): 질문이 기능의 동작·적용 범위·커버리지에 관한 것이면 문서에서 다음을 명시적으로 추출한다:

  • 적용 대상 (라인아이템 타입/전략/유저 조건 등 entry condition)
  • 전제 조건 (prerequisite)
  • 예외 케이스

문서에서 확인되지 않으면 "확인되지 않음 — 코드/문서 추가 조사 필요"로 표시. 이 정보는 후속 분석(특히 커버리지 모집단 정의)의 정확도를 좌우하므로, 누락 시 단순히 답변하지 말고 "확인되지 않음"을 명시한다.

Step 4: 크로스-vault 연결 감지

여러 vault에서 관련 문서를 찾았으면, vault 간 연결을 명시한다.

예시:

[Cross-vault] buzzvil-wiki의 "ArgoCD 배포 절차"와 
              infra-wiki의 "Kubernetes Deployment 개념"이 연결됩니다.

이 연결 정보는 각 vault의 wiki/GRAPH.md도 참조하여 보강한다.

Step 5: 합성 답변

검색 결과를 바탕으로 질문에 답변한다. 답변에는 반드시 출처를 명시한다:

[답변 내용]

---
출처:
- buzzvil-wiki: adserver/multi-reward-api-architecture.md
- buzzvil-wiki: adserver/cpa-conversion-event-routing.md  
- infra-wiki: kubernetes/deployment-strategies.md

Read the full file on GitHub · 141 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 · 141 lines · 147 tokens per session scan A 62fa1f42dc3e

Subscribe to this mod's changes

simon-brain-query is a skill published in the GitHub repository SW-in-beta/simon-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 147 tokens to every session and 1,446 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

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