wiki-fold

wiki-fold is a skill for Claude Code from AgriciDaniel/claude-obsidian. It costs 76 tokens per session (1,020 once invoked), scanned A, original, MIT.

A log-rollup tool for an Obsidian wiki, which is a collection of linked notes. It combines a selected, limited group of recent log entries into an additional summary while leaving the original entries unchanged.

In plain words
What is it for?
Use it to compress a bounded batch of wiki log entries into a dated fold, or to preview that rollup before saving it.
Why use it?
It reduces the effort of reviewing many raw log entries without losing those original records. It previews the proposed rollup before an optional apply step.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-obsidian plugin — 15 skills, 3 agents, 2 hooks shipped together

Good fit Use it to compress a bounded batch of wiki log entries into a dated fold, or to preview that rollup before saving it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agricidaniel/claude-obsidian/wiki-fold
About the project

claude-obsidian is a local knowledge system that turns source material into linked, source-cited Markdown notes in an Obsidian vault for use with Claude Code and compatible agent hosts. People use it to capture research, retrieve evidence-grounded answers, maintain knowledge, and map connections while retaining ownership of their files. The catalogue entries provide workflows and extensions for operating this knowledge system.

AgriciDaniel/claude-obsidian · 14,763 stars · on GitHub

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 AgriciDaniel/claude-obsidian --skill wiki-fold
Clone the repo
git clone --depth 1 https://github.com/AgriciDaniel/claude-obsidian

Made for: Claude Code.

Or install claude-obsidian, the plugin that ships this one along with the rest of its 15 skills, 3 agents, 2 hooks.

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 wiki-fold

README.md
[![agentmods](https://agentmods.dev/badge/skills/agricidaniel/claude-obsidian/wiki-fold/github.svg)](https://agentmods.dev/skills/agricidaniel/claude-obsidian/wiki-fold)
Your own site
<a href="https://agentmods.dev/skills/agricidaniel/claude-obsidian/wiki-fold"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-obsidian/wiki-fold/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 wiki-fold

Your own site · 80×15
<a href="https://agentmods.dev/skills/agricidaniel/claude-obsidian/wiki-fold"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-obsidian/wiki-fold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,020 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. Third-party audits
  • Socket pass 24 Apr 2026
  • Snyk pass 24 Apr 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00076 $0.01020
Opus 5 $0.00038 $0.00510
Sonnet 5 $0.00015 $0.00204
Haiku 4.5 $0.00008 $0.00102

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

Security

Grade A, and why

wiki-fold 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 10d 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/wiki-fold/SKILL.md · 108 lines

How it starts

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

Extractive log fold

Create an additive rollup of raw wiki/log.md entries. Never modify, move, or delete child entries or their pages. Do not perform fold-of-folds or trigger a fold automatically.

Resolve the portable core from this skill's installation. Resolve the user vault by explicit --vault, CLAUDE_OBSIDIAN_VAULT, workspace config, then current-directory discovery. Never treat the plugin/product root as a vault.

PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
test -f "$CORE"

This skill needs no network egress. Do not call external services.

Select a bounded range

Use batch exponent k with size 2^k; default to k=4. An explicit entry range may override it. If fewer entries exist than requested, report the shortfall and stop rather than folding a partial batch.

Read the selected log entries completely. Read referenced child pages only when the log lacks enough context: target 0-10 reads, hard ceiling 15. Missing pages remain explicit page_missing records.

Derive the structural ID only from inputs:

fold-k{K}-from-{EARLIEST-DATE}-to-{LATEST-DATE}-n{COUNT}

If wiki/folds/{FOLD_ID}.md already exists, return a no-op. Replacing it requires an explicit force request and a separately reviewed replace proposal.

Draft extractively

Follow fold-template.md. Every child log entry must have one deterministic child_key in frontmatter and exactly one matching row in the Child Entries table. Do not deduplicate children by page, although the final Child Pages link list may be deduplicated.

Every outcome must name its source entry. Every number must be verifiable in the selected entry. A cross-entry theme must name at least two contributing entries. Prefer ambiguous in source or source missing to invention. When a child page and log entry disagree, preserve both and identify the mismatch; the log entry is the fold's primary source.

Read the full file on GitHub · 108 lines

Files

What ships with it

1 file 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. 10d ago First seen · 108 lines · 76 tokens per session scan A a887e48737ea

Subscribe to this mod's changes

wiki-fold is a skill published in the GitHub repository AgriciDaniel/claude-obsidian (14,763 stars, last pushed 14d ago), licensed MIT. It adds 76 tokens to every session and 1,020 once invoked, about $0.0004 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

follower-onboard

Onboard a new machine as a receive-only follower on a multi-machine agent network: it reads the shared vault, canon, skills and memory, runs nothing heavy locally (no RAG, reindex or GPU), and never receives executable hooks from the hub. Checklist-driven, with a verify step at each stage. Triggers: "/follower-onboard…

tonydzi/second-brain-starter-kit · 79 tokens

claudeai-sync

Pull new and changed claude.ai web conversations into an Obsidian vault, extract artifacts as first-class notes, concept-link them, and refresh the RAG index and dashboard. Idempotent: curated notes are never overwritten. Triggers: "/claudeai-sync", "pull claude.ai", "grab new claude.ai chats".

tonydzi/second-brain-starter-kit · 74 tokens

mine-channel

Mine any Telegram channel or chat for signal in one command: incremental zero-token scrape, deterministic detector shortlist, LLM judge for what is genuinely valuable to this owner, then linked vault notes, a database row, a map-of-content entry and reindex. Triggers: "/mine-channel ", "alpha from ".

tonydzi/second-brain-starter-kit · 72 tokens

chat-search

Search inside past agent sessions and continue the one that matters with a single command. Uses a separate episodic session index, so raw chat noise never pollutes the curated RAG. Triggers: "/chat-search", "which chat discussed X", "did we already research X", "search old chats".

tonydzi/second-brain-starter-kit · 64 tokens

five-hard

Have the second brain ask the owner five hard questions about their own long-held beliefs and codex entries that have not been revisited, so assumptions stop fossilizing. Monthly or on demand. Triggers: "/five-hard", "challenge my beliefs", "pressure-test my views".

tonydzi/second-brain-starter-kit · 59 tokens

precedent

Check whether something was already decided before proposing it: searches the decisions journal, the declined registry and the rules codex plus semantic search, and returns what was decided, why, what was rejected, and under what condition to revisit. Triggers: "/precedent ", "did we already decide this".

tonydzi/second-brain-starter-kit · 65 tokens