wiki-cli

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

A read-only bridge to Obsidian's official command-line interface, which lets programs search and read a vault from a terminal. It checks whether that interface is actually usable and falls back to reading files when needed.

In plain words
What is it for?
Use it to detect the available vault-reading method, search notes, inspect backlinks and tags, and read Obsidian content.
Why use it?
It avoids treating a merely installed command as working when Obsidian is closed or command-line access is disabled. It keeps changes out of this tool; vault edits go through a separate transaction process.

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 detect the available vault-reading method, search notes, inspect backlinks and tags, and read Obsidian content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agricidaniel/claude-obsidian/wiki-cli
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 · 16,953 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-cli
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-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agricidaniel/claude-obsidian/wiki-cli"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-obsidian/wiki-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 743 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
  • 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.00095 $0.00743
Opus 5.5 $0.00038 $0.00297
Sonnet 5.5 $0.00019 $0.00149
Haiku 4.5 $0.00010 $0.00074

Measured yesterday against content hash 6fd940fdf15b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki-cli 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 yesterday.

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-cli/SKILL.md · 84 lines

How it starts

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

Obsidian CLI read transport

Use this skill only to detect transport and read or search a selected vault. The official executable is obsidian; binary presence alone does not prove it is usable.

Resolve the installed product root from this skill's own location, not from the vault or current working directory:

PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
DETECT_TRANSPORT="$PRODUCT_ROOT/scripts/detect-transport.sh"
test -f "$DETECT_TRANSPORT"

Every ../wiki/references/ link in this file resolves the same way, relative to this skill's own directory under $PRODUCT_ROOT, never relative to the selected vault's wiki/ directory.

Detect safely

Probe without persisting host state:

bash "$DETECT_TRANSPORT" --peek --vault "$VAULT"

Trust available.cli.usable, not merely present or exit status. A supported CLI can still be unavailable because the Obsidian app is not running, command line access is disabled, or its response is an error. Use filesystem reads as the portable fallback.

Persist a refreshed .vault-meta/transport.json only when the user or setup workflow asks for a transport snapshot:

bash "$DETECT_TRANSPORT" --force --vault "$VAULT"

That file is derived runtime configuration, not knowledge content. Preserve a valid manual_override recorded by the detector.

Run official CLI commands from the selected vault so Obsidian resolves the correct workspace. Confirm supported syntax with the installed CLI before relying on optional commands. Typical read-only forms are:

(cd "$VAULT" && obsidian read path="$NOTE")
(cd "$VAULT" && obsidian search query="$QUERY")

Always double-quote "$NOTE" and "$QUERY", pass key-value form (path= / query=) or -- where supported, and reject untrusted vault titles or queries starting with - that could be interpreted as CLI options.

Use read-only commands for backlinks, tags, or Bases results only when the detector reports the CLI ready. Otherwise read files under $VAULT directly and use rg for search. Reject absolute note arguments, traversal, symlinks, or resolved paths outside the selected vault.

Read the full file on GitHub · 84 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. yesterday Changed · +4 lines · +21 tokens per session 6fd940fdf15b
  2. 2mo ago Changed · +4 lines 468df53c8712
  3. 3mo ago First seen · 76 lines · 74 tokens per session scan A 2885621fc55c

Subscribe to this mod's changes

wiki-cli is a skill published in the GitHub repository AgriciDaniel/claude-obsidian (16,953 stars, last pushed yesterday), licensed MIT. It adds 95 tokens to every session and 743 once invoked, about $0.0004 per session on Opus 5.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

wiki-cli compared with skills from other repositories

wiki-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wiki-cliAgriciDaniel/claude-obsidianSkill17kyesterdayMITA95Claude Code
screenpipe-apitonydzi/second-brain-starter-kitSkill16todayMITA68Claude Code
follower-onboardtonydzi/second-brain-starter-kitSkill16todayMITA79Claude Code
brain-onboardtonydzi/second-brain-starter-kitSkill16todayMITA121Claude Code
memory-tidytonydzi/second-brain-starter-kitSkill16todayMITA78Claude Code
claudeai-synctonydzi/second-brain-starter-kitSkill16todayMITA74Claude Code
mine-channeltonydzi/second-brain-starter-kitSkill16todayMITA72Claude Code