agentleFS
jacksoswagjacksoswag/ObsidAgent/.claude/skills/notes-heartbeat/SKILL.md

notes-heartbeat

Skill1 starsChanged 3 months agoMITView on GitHub

Heartbeat check over $VAULT. Runs deterministic scans and fixes only what a script proved wrong: broken links, malformed fences, bad frontmatter, paths that no longer resolve, etc. Use when asked to check, audit, or clean up the notes or the vault, to rebuild the indexes, or to look for stale info in the notes. Judgment work belongs to sleep.

The file

Files
SKILL.md

notes-heartbeat

python3 $VAULT/.scripts/health.py

Everything this skill acts on is something the script proved. Nothing here decides whether a note deserves to exist, whether two notes should merge, or what a topic should now say. That is sleep, and mixing the two is how a five-minute check turns into an hour of rewriting.

One section at a time when you want it: health.py links, or prose, format, paths, meta, dupes, graph.

What each finding means and what to do

FindingFix
danglingthe target was deleted: repoint at whatever superseded it. Marks a note worth writing: leave it.
fencea ``` opener sitting mid-line opens nothing, so the block below renders as prose and its brackets parse as links. Move it to column 1.
em-dashrewrite per $VAULT/.claude/rules/voice.md. sources/ is excluded from the scan, since that is the source's own text.
scaredit-history narration inside a note. Fold the surviving conclusion in and delete the marker, per $VAULT/.claude/rules/notes.md.
metaadd the field, or rename the file so name matches it.
pathcheck whether the thing moved or died, then fix or cut the sentence. Eyeball first: a path containing a space truncates at the space and reads as missing when it exists.
unlinkeda note's name in plain prose with no wikilink. Usually just wrap it.
dupetwo sources/ files whose bodies or filenames overlap enough to be one document. Never a fix here: sleep's dupe agents read both and judge.
graphnever a fix, only a number. Falling out-degree is the signal sleep acts on.

reindex.py runs first and its own reports (orphan, unfolded, adrift, ambiguous, dangling) print above the health output. Same rule: fix the mechanical ones, hand the rest up.

Where this stops

Four findings look mechanical and are not. Each goes to sleep rather than getting decided here:

  • unlinked in bulk. One or two are typos. Thirty means the graph needs a pass, not thirty edits.
  • scar that is load-bearing. "CGSSetWindowShape is proven dead" reads like a correction scar and is a fact worth keeping. Deleting it re-opens a closed question.
  • path inside an archived project's note. The path is gone because the project is. Whether the note still earns its place is a prune decision.
  • Anything suggesting two notes are one note. Merging is sleep's.

Rules

  • Report, then fix. Never rewrite meaning. A repair changes syntax, a path, a field, or a link. Changing what a note claims is out of scope even when the claim looks wrong; that is a finding to raise.
  • compass/ takes repairs and nothing else. A dangling wikilink or a broken fence in a compass note is fixable with Edit like anywhere else. Its claims are not, and a Write against it is blocked by hook. compass/ notes never report as orphan: they sit above the graph and route down.
  • Return the count. health.py opens with the note total split by folder, and that line leads the report every run, before any finding. It counts real notes only: instructions/, the *-spec.md symlinks, generated indexes, and the dot-folders are all out. reindex.py counts differently and prints its own line above; when the two disagree, this one is the vault's size.
  • Note deletion owned by .agent-instructions/pruning.md and needs approval.
  • Re-run health.py at the end. A repair that introduced a dangling link is the common way this goes wrong.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.