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.
npx skills add itechmeat/open-second-brain --skill embeddings-setupgit clone --depth 1 https://github.com/itechmeat/open-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/itechmeat/open-second-brain/embeddings-setup)<a href="https://agentmods.dev/skills/itechmeat/open-second-brain/embeddings-setup"><img src="https://agentmods.dev/badge/skills/itechmeat/open-second-brain/embeddings-setup/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/itechmeat/open-second-brain/embeddings-setup"><img src="https://agentmods.dev/badge/skills/itechmeat/open-second-brain/embeddings-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 41 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Data Exfiltration · line 49 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00000 | $0.02712 |
| Opus 5.5 | $0.00000 | $0.01085 |
| Sonnet 5.5 | $0.00000 | $0.00542 |
| Haiku 4.5 | $0.00000 | $0.00271 |
Grade A, and why
embeddings-setup 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 — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Embeddings setup
Open Second Brain ships with two search paths: keyword-only (always
on, no credentials) and semantic via embedded vectors (opt-in). This
SKILL walks the activation flow for the semantic path. The flow is
proactive — when the user mentions semantic search or o2b search check surfaces missing pieces, take the user through this list
rather than waiting for explicit instruction.
Step 1 — Always start with o2b search check
o2b search check
The output names every missing piece and ends with a
recommendations: block listing the exact commands to fix each.
Read both before suggesting next steps. The recommendations field
is also present in the --json output for headless callers.
Branch on what the report shows:
embedding_key: MISSING→ go to step 2. Thekey_sources_checked:line names where the key was looked for, andkey_present_under:names any other registered provider profile whose env key is set. If the key sits under another profile, the fix may be pointingembedding_providerat that profile rather than adding a key.- A recommendation saying the embedding model has no known price, or that the price pair names another model → see "Declare the model's price" in step 2.
vec_extension: unavailableon macOS → go to step 3.vec_extension: unavailableon Linux → go to step 4.- Everything OK but
semantic_enabled: false(no embeddings yet) → go to step 5.
Step 2 — Provider and API key
Ask the user which provider they want. The default is
text-embedding-3-small from OpenAI (about $0.02 per 1M tokens,
which covers tens of thousands of vault pages). Any OpenAI-compatible
endpoint works — Groq, Together, a local LM Studio server, etc.
Required env vars (write to ~/.config/open-second-brain/env or the
file named by OPEN_SECOND_BRAIN_ENV_FILE, never to a tracked file):
OPEN_SECOND_BRAIN_EMBEDDING_PROVIDER=openai-compat
OPEN_SECOND_BRAIN_EMBEDDING_MODEL=text-embedding-3-small
OPEN_SECOND_BRAIN_EMBEDDING_KEY=<placeholder; user pastes the key>
# Optional — only when not using OpenAI:
# OPEN_SECOND_BRAIN_EMBEDDING_BASE_URL=https://api.together.xyz/v1
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 Changed · +12 lines ebe0f941fa95
- 23d ago Changed 29eb89a7850b
- 1mo ago Changed · +40 lines 7571f79221b1
- 1mo ago Changed · +45 lines 20796822e269
- 2mo ago Changed · +20 lines 944e24b59659
- 3mo ago First seen · 154 lines · 0 tokens per session scan A 7efc472d7680
embeddings-setup is a skill published in the GitHub repository itechmeat/open-second-brain (637 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,712 tokens. 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-30.
embeddings-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| embeddings-setupitechmeat/open-second-brain | Skill | 637 | yesterday | MIT | A | 0 | Claude Code |
| AgentDB Memory Patternsruvnet/RuView | Skill | 106k | today | MIT | A | 45 | Claude Code |
| agent-v3-memory-specialistruvnet/ruflo | Skill | 83k | yesterday | MIT | A | 25 | Claude Code |
| agents-langchaindavila7/claude-code-templates | Skill | 35k | today | MIT | A | 80 | Claude Code, Codex |
| knowledge-orgbojieli/ai-agent-book | Skill | 61k | 2d ago | Apache-2.0 | A | 96 | Claude Code, Codex |
| xerjxerj-org/xerj | Skill | 23k | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| llm-wikiAr9av/obsidian-wiki | Skill | 3.8k | yesterday | MIT | A | 41 | Claude Code |