kplex-obsidian-cli
Installation
SKILL.md
K-Plex through Obsidian CLI
Use this skill when an assistant works with K-Plex's ontology, indexed knowledge or open maps. The plugin ID is k-plex; the exact public entry point is window.kplexApi.v1. K-Plex has no HTTP/MCP server or parameterized obsidian kplex:* command family.
This repository's skill follows the API implementation. It adapts the earlier Help-vault skill, retaining its access, authorization, coverage, canvas and retry safeguards. This skill uses the canonical online references linked below and works outside the repository.
Connect and discover
- Use the user's intended desktop vault, already open in Obsidian with K-Plex enabled. If CLI is unavailable, explain Settings → General → Command line interface and official CLI setup. Do not install or reload plugins merely to obtain access.
- Pass
vault=<name-or-id>first on every invocation. Verifyvault info=pathagainst the intended destination before reading private data or changing anything. Ask for the destination if unknown; never fall back to the default/active vault. - Probe
window.kplexApi?.v1; callcapabilities(),status()andontologyGuide({format:'markdown'}). Discover optional operations by name and method existence. Reacquire the root after reload; retained handles fail withAPI_UNAVAILABLE. Read authored exact field names, descriptions and inverse pairs before interpreting meaning. Missing descriptions supply no invented semantics.
POSIX examples (replace YOUR_VAULT):
obsidian vault=YOUR_VAULT vault info=path
obsidian vault=YOUR_VAULT eval 'code=JSON.stringify(window.kplexApi?.v1?.capabilities() ?? {ok:false,error:{code:"API_UNAVAILABLE"}})'
obsidian vault=YOUR_VAULT eval 'code=JSON.stringify(window.kplexApi.v1.ontologyGuide({format:"markdown"}))'
obsidian vault=YOUR_VAULT eval 'code=JSON.stringify(window.kplexApi.v1.status())'