zk

zk is a skill for Claude Code from mishahanin/heading-os. It costs 101 tokens per session (1,777 once invoked), scanned A, original, Apache-2.0.

A skill for managing a Zettelkasten knowledge base: a collection of linked, focused notes used to build and explore a second brain. It can add, enrich, find, connect, distil, organise, and summarise notes.

In plain words
What is it for?
Use it to capture ideas, improve existing notes, find related knowledge, connect concepts, review the collection, or create a brief.
Why use it?
It helps turn scattered ideas and source material into reusable notes with links between related concepts.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions Claude Code.

Good fit Use it to capture ideas, improve existing notes, find related knowledge, connect concepts, review the collection, or create a brief.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mishahanin/heading-os/zk
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 mishahanin/heading-os --skill zk
Clone the repo
git clone --depth 1 https://github.com/mishahanin/heading-os

Made for: Claude Code.

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 zk

README.md
[![agentmods](https://agentmods.dev/badge/skills/mishahanin/heading-os/zk/github.svg)](https://agentmods.dev/skills/mishahanin/heading-os/zk)
Your own site
<a href="https://agentmods.dev/skills/mishahanin/heading-os/zk"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/zk/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 zk

Your own site · 80×15
<a href="https://agentmods.dev/skills/mishahanin/heading-os/zk"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/zk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,777 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.00101 $0.01777
Opus 5 $0.00051 $0.00889
Sonnet 5 $0.00020 $0.00355
Haiku 4.5 $0.00010 $0.00178

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

Security

Grade A, and why

zk 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.

.claude/skills/zk/SKILL.md · 122 lines

How it starts

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

Zettelkasten Knowledge Base

Manage the knowledge/ second brain shared between Claude Code and Zettlr. Atomic notes, wiki-links, status lifecycle, and anti-dumping discipline.

Variables

  • $ARGUMENTS - Subcommand and parameters. Format: [action] [target]
  • Actions: add, enrich, find, connect, distill, garden, stats, brief

Context Loading

First, read .workspace-identity.json to determine workspace type. Paths depend on workspace type:

CEO workspace (flat paths):

  • knowledge/odin-brain/INDEX.md - current brain stats and note inventory
  • context/strategy.md - for strategic relevance assessment
  • context/pipeline.md - for deal/prospect context
  • context/current-data.md - for timeline and milestone context

Exec workspace (tiered paths):

  • personal/knowledge/INDEX.md - personal note inventory
  • corporate/knowledge/shared/INDEX.md - corporate shared knowledge (if exists)
  • corporate/context/strategy.md - for strategic relevance assessment
  • corporate/context/pipeline.md - for deal/prospect context
  • corporate/context/current-data.md - for timeline and milestone context

Subcommand dispatch

Parse the first word of $ARGUMENTS to determine the action. If no subcommand is given, default to stats.

Read references/subcommands.md before you run any subcommand below. It holds the full step sequence, the note file template, and the per-type enrichment rules. The table names only the command lines and the approval gates.

Subcommand Commands and gates What it does
add [type] Ends with python3 scripts/sanitize-text.py {path}. Type people is a redirect: "People intel belongs in CRM. Use /crm add." Ask "CEO-only or Corporate-wide?" before writing. Create one atomic note under the workspace's knowledge root, status seed.
enrich [note] Ends with python3 scripts/sanitize-text.py {path}. Ask which note when several match. Research a seed or growing note, add connections, raise its status.
find [query] Grep only. No writes. Search personal AND corporate shared knowledge by title, keyword, type, or body.
connect [note] Present suggested links as a numbered list, then ask which to add. Never add a link unasked. Suggest links to other notes and to workspace files, then write the approved ones both ways.
distill [source] Present the proposed notes, then WAIT for Misha's approval. Ends with python3 scripts/sanitize-text.py on each created file. Extract 3-7 atomic insights from a skill output file into durable notes.
garden python3 scripts/odin-brain-health.py, then ask which actions to take, then python3 scripts/odin-brain-health.py --update-index. Maintenance pass over stale seeds, orphans, broken links, and connection opportunities.
stats python3 scripts/odin-brain-health.py --update-index Regenerate INDEX.md and display it with any health concerns.
brief [topic] Read-only. Present inline; create no file unless asked. Synthesize every note on a topic into a narrative summary.

Read the full file on GitHub · 122 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 122 lines · 101 tokens per session scan A e2f92057d486

Subscribe to this mod's changes

zk is a skill published in the GitHub repository mishahanin/heading-os (11 stars, last pushed 3d ago), licensed Apache-2.0. It adds 101 tokens to every session and 1,777 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories