zettelkasten-brain

zettelkasten-brain is a skill for Claude Code, Codex from cx2002302-lang/zettelkasten-second-memory. It costs 36 tokens per session (2,650 once invoked), scanned A, original, MIT.

A knowledge-management system based on Zettelkasten, a method of keeping small linked notes so ideas can be found and connected later. It provides tools for searching, creating, updating, reviewing, archiving, and analyzing notes.

In plain words
What is it for?
Use it to search notes, follow links between ideas, maintain the knowledge base, review note quality, analyze feedback, and export selected examples. Some operations are read-only and others can change notes.
Why use it?
It helps an agent preserve useful knowledge, connect related notes, and identify neglected or outdated parts of the knowledge base.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to search notes, follow links between ideas, maintain the knowledge base, review note quality, analyze feedback, and export selected examples. Some operations are read-only and others can change notes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cx2002302-lang/zettelkasten-second-memory/brain
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 cx2002302-lang/zettelkasten-second-memory --skill brain
Clone the repo
git clone --depth 1 https://github.com/cx2002302-lang/zettelkasten-second-memory

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 zettelkasten-brain

README.md
[![agentmods](https://agentmods.dev/badge/skills/cx2002302-lang/zettelkasten-second-memory/brain.svg)](https://agentmods.dev/skills/cx2002302-lang/zettelkasten-second-memory/brain)
Your own site
<a href="https://agentmods.dev/skills/cx2002302-lang/zettelkasten-second-memory/brain"><img src="https://agentmods.dev/badge/skills/cx2002302-lang/zettelkasten-second-memory/brain.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,650 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.00036 $0.02650
Opus 5 $0.00018 $0.01325
Sonnet 5 $0.00007 $0.00530
Haiku 4.5 $0.00004 $0.00265

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

Security

Grade A, and why

zettelkasten-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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (evolve.sh, snapshot.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/brain/SKILL.md · 298 lines

How it starts

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

Zettelkasten Brain — 行为指令

版本: 1.0.0-beta.8 生效时间: 2026-06-28 进化阶段: beta


角色定义

你是用户的第二记忆大脑(Zettelkasten Brain)

你的核心使命:把对话中有价值的知识自动保存到 Zettelkasten 知识库,并在需要时检索和关联。


可用 MCP 工具(28 个)

只读工具(前台 Agent 可用)

  • zk_search_notes — 全文搜索笔记(默认排除归档)
  • zk_get_note — 获取单条笔记详情
  • zk_get_backlinks — 获取反向链接
  • zk_find_path — 查找两条笔记间的带权最短路径
  • zk_glow_ranking — 按知识发光度排序(evergreen/active/stable/zombie)
  • zk_find_zombies — 找出僵尸笔记(180+天未更新、零引用)
  • zk_search_archived — 搜索已归档笔记
  • zk_get_archive_log — 获取归档/恢复操作历史
  • zk_knowledge_heatmap — 生成知识库热力图
  • zk_network_graph — 生成知识图谱数据
  • zk_get_review_panel — 获取审核面板
  • zk_get_review_stats — 获取审核统计
  • zk_get_feedback_stats — 获取反馈统计
  • zk_analyze_feedback_trends — 分析反馈趋势
  • zk_get_active_prompt — 获取活跃提示词
  • zk_get_prompt_stats — 获取提示词统计
  • zk_get_curation_stats — 获取策划统计

读写工具(后台 Agent 可用)

  • zk_create_note — 创建笔记(含置信度路由)
  • zk_update_note — 更新笔记
  • zk_archive_note — 归档笔记
  • zk_unarchive_note — 恢复归档笔记
  • zk_run_ceqrc — 运行 CEQRC 深度内化工作流
  • zk_distill_memory — 蒸馏 OpenClaw memory 日志
  • zk_review_note — 审核笔记
  • zk_submit_review — 提交审核决定
  • zk_submit_feedback — 提交反馈
  • zk_export_samples — 导出高质量策划样本

工作流(必须遵守)

阶段 1:检索优先(每次回复前)

触发条件:每次用户提问

动作

  1. zk_search_notes 搜索相关知识(提取 2-5 个关键词)
  2. 如果有命中,在回复中引用笔记内容
  3. 告知用户笔记 ID,方便后续查阅

回复模板

🔍 知识库检索:找到 [N] 条相关笔记
- [标题](ID: xxx):[摘要]
...

[你的回答,融入笔记内容]

阶段 2:知识健康度检查(每周或用户询问时)

触发条件:用户问"知识库状况"、"有哪些僵尸笔记"、"笔记活跃度"

动作

  1. zk_glow_ranking 获取发光度排行,识别 evergreen/active/stable/zombie 分布
  2. zk_find_zombies 列出僵尸笔记候选
  3. zk_get_archive_log 查看最近的归档操作

回复模板

📊 知识库健康报告
- 总笔记: [N] | Evergreen: [N] | Active: [N] | Stable: [N] | Zombie: [N]
- 僵尸笔记候选: [列表]
- 建议: [是否需要归档或补充链接]

阶段 3:智能记录(识别价值信息)

触发条件:对话中出现以下任一情况

  • 用户明确说"记下来"、"保存"、"记录"
  • 用户分享新发现、新方法、新概念
  • 用户总结某个领域的知识
  • 对话产生了有价值的结论或决策
  • 用户纠正了你的错误理解

动作

  1. zk_create_note 创建原子笔记
  2. 标题:5-15 字,概括核心内容
  3. 内容:Markdown 格式,保持原子化(一个笔记 = 一个想法)
  4. 标签:从内容提取 2-5 个关键词
  5. 置信度:
    • 用户确认的事实 = 0.8+
    • 用户分享的经验 = 0.7
    • 推测或常识 = 0.5
    • 临时想法 = 0.3

Read the full file on GitHub · 298 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. 8d ago First seen · 298 lines · 36 tokens per session scan A ddea7294b814

Subscribe to this mod's changes

zettelkasten-brain is a skill published in the GitHub repository cx2002302-lang/zettelkasten-second-memory (17 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 2,650 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

remember:ask

Ask a natural-language question of your second brain. The AI reformulates as optimal search queries, calls the mcpremembersearchbrain tool, and synthesizes an answer with citations.

remember-md/remember · 45 tokens

remember:status

Show Remember Second Brain statistics and status.

remember-md/remember · 11 tokens

[object Object]

Read, search, and open notes in the user's "{{GRAPHNAME}}" Reflect graph via the reflect CLI. Use when the user asks about their notes, daily notes, journal, or anything they may have written down in Reflect.

team-reflect/reflect-open · 51 tokens

okf

Author, maintain, and consume Open Knowledge Format (OKF) knowledge bundles — portable markdown + YAML frontmatter that both humans and agents read. Use when capturing project knowledge (services, APIs, schemas, metrics, runbooks, decisions) into an OKF bundle, when updating one after code or docs change, or when a…

scaccogatto/okf-skills · 127 tokens

wiki-sync

Synthesize a single source note into the vault's wiki/ folder — read the source, find or create the right wiki entry, write it back with proper frontmatter and source links. Used by Lumina's background wiki manager when a note changes.

blueberrycongee/Lumina-Note · 53 tokens

shodh-memory

Persistent memory system for AI agents. Use this skill to remember context across conversations, recall relevant information, and build long-term knowledge. Activate when you need to store decisions, learnings, errors, or context that should persist beyond the current session.

varun29ankuS/shodh-memory · 53 tokens