obsidian-history-check

obsidian-history-check is a skill for Claude Code from ryanzhao1011/workframe. It costs 114 tokens per session (1,202 once invoked), scanned A, original, MIT.

A read-only checker for viewing document history and comparing earlier and current versions in Obsidian, a note-taking application. If Obsidian's command-line tool is unavailable, it can fall back to Git history or show how to recover a version through Obsidian.

In plain words
What is it for?
Use it to inspect recent document changes, compare versions, investigate suspected accidental edits, and review history before a major rewrite.
Why use it?
It helps determine what changed before a document is edited further or restored. It avoids restoring, overwriting, or deleting anything automatically.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the core plugin — 38 skills, 4 agents, 13 hooks shipped together

Good fit Use it to inspect recent document changes, compare versions, investigate suspected accidental edits, and review history before a major rewrite.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ryanzhao1011/workframe/obsidian-history-check
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 ryanzhao1011/workframe --skill obsidian-history-check
Clone the repo
git clone --depth 1 https://github.com/ryanzhao1011/workframe

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 38 skills, 4 agents, 13 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 obsidian-history-check

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/obsidian-history-check"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/obsidian-history-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,202 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.
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.00114 $0.01202
Opus 5.5 $0.00046 $0.00481
Sonnet 5.5 $0.00023 $0.00240
Haiku 4.5 $0.00011 $0.00120

Measured 1mo ago against content hash cb59442fd8e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

obsidian-history-check 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 1mo 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.

plugins/core/skills/obsidian-history-check/SKILL.md · 108 lines

How it starts

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

Obsidian History Check

定位

本 skill 只读历史、版本和 diff,不恢复、不覆盖、不删除文件。

它用于在文档疑似误改或大改前查看 Obsidian 本地历史。如果 CLI 不可用,则 fallback 到 git diff/log;项目没有 git 时,提示用户使用 Obsidian GUI 文件恢复。

触发场景

  • 用户问“刚才改了什么”“能不能看之前版本”。
  • agent 准备大改正式文档前,需要看近期历史。
  • 外部评审反馈回写本地后,需要对比修改前后。
  • 文档内容疑似被误改。

何时不用

  • 普通读取当前正文:直接 Read。
  • 查看当前工作区修改且项目有 git:优先 git diff。
  • 要恢复历史版本:本 skill 只做只读检查,恢复必须用户单独确认。

CLI Probe

优先读取 .workframe/state/obsidian-cli-status.json(schema 权威定义见 skill: obsidian-doc-structure §status.json schema):

  • do_not_probe: true → 永不重新 probe(不设 TTL、不做过期自判),直接按 cli_available 决定走 CLI 还是 fallback;重新启用 CLI 的唯一入口 = 用户手动删除该文件
  • 缓存缺失 → 执行非执行检测(全程不运行任何 obsidian 命令):定位命令(Get-Command obsidian / command -v obsidian)→ 判定是否 GUI 启动器(所在目录存在 Obsidian.exe / resources.pak 特征文件)→ 不可用则写入 status.json(cli_available: false、do_not_probe: true、reason)并 fallback
  • 仅当非执行检测确认存在独立 CLI shim 时,才允许执行 obsidian version / obsidian vault info=path 验证并写入 commands_verified

⚠️ 未通过非执行检测时禁止执行任何 obsidian 命令——在「装了 GUI 但未启用 CLI」的机器上会误启动 Obsidian 窗口。

不可用时 fallback 到 git 或 Obsidian GUI 提示。

调用前检查

执行任一 Obsidian CLI 命令前,必须依序确认:

  • status.json 存在且 do_not_probe: true 且 cli_available: false → 直接 fallback,不做任何 probe。
  • 命令在 commands_verified 数组中 → 可以使用 CLI。
  • 命令不在数组中 → 直接 fallback,不尝试执行。
  • status.json 不存在或 schema 不匹配 → 按「CLI Probe」的非执行检测流程重新检测(禁止直接执行 obsidian 命令)。

官方 CLI 命令

obsidian history path="<file>" format=json
obsidian history:list path="<file>" format=json
obsidian history:read path="<file>" version="<version>"
obsidian diff path="<file>" from="<version>"

以本机 obsidian help <command> 的参数名为准。

禁止事项

  • 默认不执行 history:restore。
  • 不执行 sync:restore。
  • 不覆盖当前文件。
  • 不把历史版本直接写回源文件。

如果用户明确要求恢复,必须先:

  1. 展示 diff 摘要。
  2. 说明会覆盖哪些内容。
  3. 等用户明确确认。
  4. 优先建议另存为临时文件供人工对照,而不是直接覆盖事实源。

即使用户确认,本 skill 仍不执行 history:restore。恢复流程拆成两步:

  • 本 skill 只把历史版本导出到 tmp/obsidian-history/<task-id>/restored-<version>.md。
  • 用户审阅后,如确实要覆盖事实源,再单独调用 obsidian-safe-write 或使用 Edit 执行覆盖。

Read the full file on GitHub · 108 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. 1mo ago Changed · -4 lines · +77 tokens per session cb59442fd8e7
  2. 2mo ago First seen · 112 lines · 37 tokens per session scan A a012f79c9da2

Subscribe to this mod's changes

obsidian-history-check is a skill published in the GitHub repository ryanzhao1011/workframe (8 stars, last pushed yesterday), licensed MIT. It adds 114 tokens to every session and 1,202 once invoked, about $0.0005 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-31.

Related

obsidian-history-check compared with skills from other repositories

obsidian-history-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
obsidian-history-checkryanzhao1011/workframeSkill8yesterdayMITA114Claude Code
knowledge-structuresjtprogru/bear-skillsSkill1yesterdayMITA84Claude Code
html-prototypemayuemarsha-del/pm-skillsSkill45mo agoMITA97Claude Code
feature-acceptancemayuemarsha-del/pm-skillsSkill45mo agoMITA192Claude Code
prdmayuemarsha-del/pm-skillsSkill45mo agoMITA202Claude Code
ui-walkthroughmayuemarsha-del/pm-skillsSkill45mo agoMITA231Claude Code
gbgcielebak/goal-by-goalSkill14mo agoMITA150Claude Code