Skill 详情
pp-obsidian
Provides read-only Obsidian vault analytics and inspection.
使用前先检查
自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。
SKILL.md
这段内容是审核时保存的快照。外部来源才是完整且最新的版本。
---
name: pp-obsidian
description: "Read-only Obsidian vault analytics CLI. Wraps the official `obsidian` binary (v1.12+) for live reads and maintains a local SQLite mirror for offline compound analytics (health score, orphans with age ranking, stale notes, broken wikilinks with source context, raw SQL). V1 is read-only by design — writes wait on the upstream markdown-patch frontmatter-corruption fix."
author: "LARGE FORMAT"
license: "Apache-2.0"
argument-hint: "<command> [args] | install cli|mcp"
allowed-tools: "Read Bash"
metadata:
openclaw:
requires:
bins:
- obsidian-pp-cli
install:
- kind: go
bins: [obsidian-pp-cli]
module: github.com/mvanhorn/printing-press-library/library/productivity/obsidian/cmd/obsidian-pp-cli
---
<!-- GENERATED FILE — DO NOT EDIT.
This file is a verbatim mirror of library/productivity/obsidian/SKILL.md,
regenerated post-merge by tools/generate-skills/. Hand-edits here are
silently overwritten on the next regen. Edit the library/ source instead.
See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->
# Obsidian — Printing Press CLI
## Prerequisites: Install the CLI
This skill drives the `obsidian-pp-cli` binary. **You must verify the CLI is installed before invoking any command from this skill.** If it is missing, install it first:
1. Install via the Printing Press installer. It defaults binaries to `$HOME/.local/bin` on macOS/Linux and `%LOCALAPPDATA%\Programs\PrintingPress\bin` on Windows:
```bash
npx -y @mvanhorn/printing-press-library install obsidian --cli-only
```
2. Verify: `obsidian-pp-cli --version`
3. Ensure the reported install directory is on `$PATH` for the agent/runtime that will invoke this skill.
If the `npx` install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.5 or newer):
```bash
go install github.com/mvanhorn/printing-press-library/library/productivity/obsidian/cmd/obsidian-pp-cli@latest
```
If `--version` reports "command not found" after install, the runtime cannot see the binary directory on `$PATH`. Do not proceed with skill commands until verification succeeds.
## When Not to Use This CLI
Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
## HTTP Transport
This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.
## Command Reference
**deadends** — Manage deadends
- `obsidian-pp-cli deadends` — List notes with no outgoing links
**files** — Manage files
- `obsidian-pp-cli files` — Wraps `obsidian files`. Filter by folder or extension.
**folders** — Manage folders
- `obsidian-pp-cli folders` — Wraps `obsidian folders`.
**live-search** — Manage live search
- `obsidian-pp-cli live-search context` — Wraps `obsidian search:context query=<text>` — body-text search with surrounding lines for each hit.
- `obsidian-pp-cli live-search live-search` — Wraps `obsidian search query=<text>` — dials the running Obsidian process for body-text search. Distinct from the...
**notes** — Single-note read operations
- `obsidian-pp-cli notes <name>` — Wraps `obsidian read file={name}` (or path= for exact paths). Returns raw file contents.
**tags** — Manage tags
- `obsidian-pp-cli tags` — Wraps `obsidian tags`. Optionally scope to a file via path= query.
**tasks** — Manage tasks
- `obsidian-pp-cli tasks` — Wraps `obsidian tasks`. Filter by done/todo/status. (task mutation is V2.)
**unresolved** — Manage unresolved
- `obsidian-pp-cli unresolved` — Wraps `obsidian unresolved`. Tier-3 `broken` builds on this with source-note context.
**vault** — Vault-level inventory and metadata
- `obsidian-pp-cli vault` — W在 GitHub 阅读完整来源 (打开外部页面)