lintDocuments
Run a read-only health check on a markdown vault to surface orphaned notes, dead wikilinks, contradictions, dangling edges, near-duplicates, and name collisions.
Instructions
Run a read-only health check over the markdown vault: orphans (no graph edges), deadLinks (unresolved [[wikilinks]]), contradictions (contradicts edges), danglingEdges (live link to a deleted doc), nearDuplicates (pairs of docs whose chunk embeddings exceed cosine 0.92, non-blocking lint signal only), and nameCollisions (documents whose title shadows a non-document entity of the same display name — wikilink resolution silently favours the entity). Takes no arguments; scans the whole vault.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orphans | Yes | Documents with no inbound or outbound graph edges (isolated notes). | |
| deadLinks | Yes | Documents that still carry an unresolved [[wikilink]]; each entry's 'unresolved' array names the exact target strings that resolve to nothing. | |
| danglingEdges | Yes | Active links from a live document to a DELETED document (a backlink left behind when deleteDocument tombstoned its target). Each entry carries the live 'subjectPath' and the deleted 'targetPath'/'targetTitle' it still points at, so the fix is 're-point or remove the link in subjectPath'. | |
| contradictions | Yes | Document pairs joined by an active contradicts edge. | |
| nameCollisions | Yes | Documents whose title (display name) shadows a non-document entity with the exact same name. Wikilink resolution silently favours the non-document entity in this case; use the vault path or a kind qualifier to disambiguate. | |
| nearDuplicates | Yes | Pairs of live documents whose chunk embeddings are suspiciously similar (cosine >= 0.92). Non-blocking lint signal only — does NOT prevent writes or imports. Each pair is reported once. |