sync-vault-cli

sync-vault-cli is a skill for Claude Code, Codex from abcamus/sync-vault-skills. It costs 43 tokens per session (1,731 once invoked), scanned A, original, MIT.

A command-line interface for searching, listing, reading, and diagnosing files stored in Sync Vault through Obsidian.

In plain words
What is it for?
Use it to find or read cloud files, check account information, inspect devices and configuration, and diagnose sync problems.
Why use it?
It provides a consistent way to inspect cloud files and synchronization status, while showing errors and account limitations.

Skill for Claude CodeCodex

Part of the sync-vault-skills plugin — 3 skills shipped together

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.

agentmods
npx agentmods add skills/abcamus/sync-vault-skills/cli
Any agent
npx skills add abcamus/sync-vault-skills --skill cli
Clone the repo
git clone --depth 1 https://github.com/abcamus/sync-vault-skills

Made for: Claude Code, Codex.

Or install sync-vault-skills, the plugin that ships this one along with the rest of its 3 skills.

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 sync-vault-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abcamus/sync-vault-skills/cli.svg)](https://agentmods.dev/skills/abcamus/sync-vault-skills/cli)
Your own site
<a href="https://agentmods.dev/skills/abcamus/sync-vault-skills/cli"><img src="https://agentmods.dev/badge/skills/abcamus/sync-vault-skills/cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,731 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.01731
Opus 5 $0.00022 $0.00865
Sonnet 5 $0.00009 $0.00346
Haiku 4.5 $0.00004 $0.00173

Measured 4d ago against content hash e7c87c66af66, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sync-vault-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 4d 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.

cli/SKILL.md · 135 lines

How it starts

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

Sync Vault CLI

本技能用于让大模型在需要“通过 Sync Vault CLI 查询/检索/读取云端文件、获取账号信息、诊断同步状态、查看配置或设备列表”时,能稳定、正确地调用本项目提供的 CLI 命令。

适用范围与前提

  • 适用:Obsidian Sync Vault 插件已加载且已注册 CLI handler(Obsidian 版本需要支持 registerCliHandler)。
  • 命令形式:obsidian sync-vault:<subcommand> key=value key2=value2(所有子命令都支持 help=true)。
  • 输出形式:
    • list/search/info/doctor:输出为 JSON 字符串(可直接解析)。
    • read:输出为文本(可能被套餐截断;PDF 在 Free 下会拒绝)。
  • 套餐限制(重要):
    • search:Free 通常仅返回前 5 条;Basic/Pro 支持分页。
    • list:Free 通常最多返回 20 条;Basic/Pro 支持 limit/offset 分页。
    • read:Free 文本读取通常最多 10KB 且会追加截断提示;PDF 读取是 Pro 功能。

快速自检工作流(推荐顺序)

  1. obsidian sync-vault:列出可用命令(确认 CLI 已可用)
  2. obsidian sync-vault:info cloud=<cloud>:确认账号可用/容量健康
  3. 文件发现优先:
    • 有关键词:obsidian sync-vault:search ...
    • Provider 不支持 search 或想要稳定遍历:obsidian sync-vault:list ...
  4. 内容读取:obsidian sync-vault:read path=<filePath> cloud=<cloud>

如遇异常或用户反馈“同步失败/打不开/很慢”:

  • obsidian sync-vault:doctor cloud=<cloud> 获取诊断报告(JSON)

云类型(cloud 参数)

  • 常用:baidu | aliyun | quark | onedrive | onelife
  • 其他(视实际接入与登录状态):cos | infinicloud | nutstore
  • 建议:cloud 统一使用小写字符串;若用户未指定 cloud,部分命令会使用当前选择的云盘(例如 info/doctor 的内部逻辑)。

命令参考

1) 帮助

  • 主帮助:obsidian sync-vault
  • 子命令帮助:obsidian sync-vault:list help=true(任意子命令都支持)

2) list:列出目录文件(支持过滤/递归/分页)

obsidian sync-vault:list path=<path> cloud=<cloud> limit=<n> offset=<n> type=<type> minSize=<bytes> modifiedAfter=<iso|ms> recursive=true|false

  • path:默认 /
  • typemarkdown|md|pdf|image|video|audio|folder|text...
  • recursive=true:会触发递归列举(可能较慢)

输出 JSON 结构(核心字段):

  • files[]: { id, path, name, type, isFolder, size, modified }
  • pagination: { total, returned, limit, offset, hasMore, nextOffset }

分页策略:

  • 如果 pagination.hasMore=true,用 offset=pagination.nextOffset 继续取下一页。

3) search:关键词检索(文件级,不读内容)

obsidian sync-vault:search query=<keyword> cloud=<cloud> limit=<n> offset=<n> path=<prefix> type=<type>

  • 约束:至少提供 query/type/path 之一,否则会返回结构化错误。
  • Provider 不支持 search 时:通常会返回 isError=true,并给出建议改用 list

Read the full file on GitHub · 135 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. 4d ago First seen · 135 lines · 43 tokens per session scan A e7c87c66af66

Subscribe to this mod's changes

sync-vault-cli is a skill published in the GitHub repository abcamus/sync-vault-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 1,731 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain. AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output…

czlonkowski/n8n-mcp · 156 tokens

memory-audit-pattern-extraction

模式提取与失效解药分析。当发现多条记忆在讲同一个教训,或发现自己在一而再再而三地犯同样的错误时使用。.

Dataojitori/nocturne_memory · 48 tokens

init-workspace-documentation

Skill "init-workspace-documentation" from griddynamics/rosetta, covering agent memory.md, agent memory, preventive rules, what worked and what failed.

griddynamics/rosetta · 10 tokens

vault-health-batch

Autonomous batch mode for Vault Health findings. Works through orphans, missing backlinks, and tags in batches without asking on every fix.

pssah4/vault-operator · 32 tokens

memorix-mini-skills

Use when durable project knowledge, gotchas, workflows, or repeated fixes should become reusable agent guidance instead of ordinary memory.

AVIDS2/memorix · 30 tokens

frontmcp-extensibility

Use when extending FrontMCP beyond the core SDK by integrating external npm packages, libraries, or third-party services into providers and tools. Covers VectoriaDB for in-memory semantic and vector search (ML-based embeddings or TF-IDF keyword engines, with persistence) and the tamper-evident, hash-chained skill…

agentfront/frontmcp · 124 tokens