Tooluck logoTooluck
SKILL.md

wiki-fold

Agent skill fromAgriciDaniel/claude-obsidian

Create a bounded, extractive, structurally idempotent rollup of recent Obsidian wiki log entries, with dry-run preview by default and one optional transaction apply. Use for manual log compression without modifying child pages. Triggers: fold the log, run a fold, run wiki-fold, log rollup, roll up log entries, commit the fold.

How to install wiki-fold

install wiki-fold
# install the claude-obsidian pack with the skills CLI
npx skills add AgriciDaniel/claude-obsidian

# or add only this skill to Claude Code: copy the folder

skills/wiki-fold/

# into

~/.claude/skills/wiki-fold/ (all projects)

.claude/skills/wiki-fold/ (one project)

skills/wiki-fold/SKILL.md

MITFull file
1# Extractive log fold
2
3Create an additive rollup of raw `wiki/log.md` entries. Never modify, move, or
4delete child entries or their pages. Do not perform fold-of-folds or trigger a
5fold automatically.
6
7Resolve the portable core from this skill's installation. Resolve the user vault
8by explicit `--vault`, `CLAUDE_OBSIDIAN_VAULT`, workspace config, then
9current-directory discovery. Never treat the plugin/product root as a vault.
10
11```bash
12PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
13CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
14test -f "$CORE"
15```
16
17Every `../wiki/references/` link in this file resolves the same way, relative
18to this skill's own directory under `$PRODUCT_ROOT`, never relative to the
19selected vault's `wiki/` directory.
20
21This skill needs no network egress. Do not call external services.
22
23## Select a bounded range
24
25Use batch exponent `k` with size `2^k`; default to `k=4`. An explicit entry range
26may override it. If fewer entries exist than requested, report the shortfall and
27stop rather than folding a partial batch.
28
29Read the selected log entries completely. Read referenced child pages only when
30the log lacks enough context: target 0-10 reads, hard ceiling 15. Missing pages
31remain explicit `page_missing` records.
32
33Derive the structural ID only from inputs:
34
35```text
36fold-k{K}-from-{EARLIEST-DATE}-to-{LATEST-DATE}-n{COUNT}
37```
38
39If `wiki/folds/{FOLD_ID}.md` already exists, return a no-op. Replacing it requires
40…

Excerpt shown under the repository's MIT license.

More skills in claude-obsidian

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates