cross-linker — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited cross-linker (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are weaving the wiki's knowledge graph tighter by finding and inserting missing [[wikilinks]] between pages that should reference each other but currently don't.
Follow the Retrieval Primitives table in `llm-wiki/SKILL.md`. Build the registry in Step 1 by grepping frontmatter only (not full pages). Reserve full Read for the unlinked-mention detection pass, and even there, only read pages whose summaries/titles make them plausible link targets. Blind full-vault reads are what this framework exists to avoid.
llm-wiki/SKILL.md (walk up CWD for .env → ~/.obsidian-wiki/config → prompt setup). This gives OBSIDIAN_VAULT_PATH and OBSIDIAN_LINK_FORMAT (default: wikilink).index.md to get the full inventory of pages and their one-line descriptionslog.md to see what was recently ingested (focus linking effort on new pages)When inserting links in Step 4, apply the link format from llm-wiki/SKILL.md (Link Format section) using the OBSIDIAN_LINK_FORMAT value. When OBSIDIAN_LINK_FORMAT=markdown, compute the relative .md path from the file being edited to the target page.
Glob all .md files in the vault (excluding _archives/, .obsidian/). For each page, extract:
.md) — this is the wikilink targettitle fieldBuild a lookup table:
page_name → { path, title, aliases, tags, summary }This is your "vocabulary" — every entry in this table is a valid wikilink target.
For each page in the vault:
[[...]] references already present[[...]]:[[projects/my-project/my-project]] is missing)MyProject)[[entities/müller]] and vice versa.[[page-name]] not [[full/path/to/page-name]] when the name is unique across the vault[[foo]] already appears on the page, don't add anotherNot every possible link is worth adding. Score each candidate using a composite signal, then tag it with a confidence label.
| Signal | Points | Example |
|---|---|---|
| Exact name match in text | +4 | "MyProject" appears in body text → link to my-project.md |
| Shared tags (2+) | +2 | Both tagged #ai #agent but no link between them |
| Same project, no link | +2 | Both under projects/my-project/ but don't reference each other |
| Mentioned entity/concept | +2 | Page mentions "knowledge graphs" → link to [[concepts/knowledge-graphs]] |
| Cross-category connection | +2 | Source is in concepts/, target is in entities/ (or skills/ ↔ synthesis/) — different knowledge layers make this link more architecturally valuable |
| Peripheral→hub reach | +2 | Source page has ≤ 2 total links (peripheral) but target has ≥ 8 (hub) — connecting a loose page to a load-bearing concept |
| Partial name match | +1 | "graph" appears but page is knowledge-graphs — plausible but ambiguous |
Tag each candidate with a confidence label based on its score:
| Score | Label | Action |
|---|---|---|
| ≥ 6 | EXTRACTED | Link is effectively certain — exact mention or very strong match. Apply inline. |
| 3–5 | INFERRED | Link is a reasonable inference — shared context, cross-category, peripheral→hub. Apply inline or as Related section. |
| 1–2 | AMBIGUOUS | Weak or partial match. Skip unless user specifically asks to connect loose pages. |
Only act on EXTRACTED and INFERRED candidates. Include the confidence label in the Cross-Link Report so the user can review INFERRED links before trusting them.
For each page with missing links:
Find the first natural mention of the term in the body text and wrap it in wikilinks:
Before:
This project uses knowledge graphs to connect entities.After:
This project uses [[concepts/knowledge-graphs|knowledge graphs]] to connect entities.Use the [[path|display text]] format when the wikilink path differs from the display text.
If the term isn't mentioned naturally in the body but the pages are semantically related (shared tags, same project), add a ## Related section at the bottom of the page:
## Related
- [[projects/my-project/my-project]] — Also uses AI agents for research automation
- [[concepts/knowledge-graphs]] — Core technique used in this projectIf a ## Related section already exists, append to it. Don't duplicate existing entries.
For every EXTRACTED or INFERRED link added (inline or related section), infer a semantic relationship type from the surrounding sentence context and write it to the page's relationships: frontmatter block. Skip AMBIGUOUS links.
Type inference rules — scan the sentence containing the mention (or, for related-section links, the page title and shared-tag context):
| Sentence pattern | Inferred type |
|---|---|
| "X extends / builds on / generalises Y" | extends |
| "X implements / is an implementation of Y" | implements |
| "X contradicts / opposes / refutes / is at odds with Y" | contradicts |
| "X is derived from / based on / adapted from Y" | derived_from |
| "X uses / relies on / depends on / requires Y" | uses |
| "X replaces / supersedes / deprecates Y" | replaces |
| Shared tags or cross-category inference with no directional cue | related_to |
If the surrounding context is ambiguous or the link came from shared-tag matching (no in-body mention), default to related_to.
Writing the block:
Read the page's YAML frontmatter. If a relationships: block already exists, append new entries without duplicating existing targets. If the block is absent, add it after aliases: (or after tags: when aliases: is missing).
relationships:
- target: "[[concepts/knowledge-graphs]]"
type: usesAlways use wikilink format ([[path/to/page]]) for target values in the relationships: YAML block — regardless of OBSIDIAN_LINK_FORMAT. The OBSIDIAN_LINK_FORMAT setting controls body content; frontmatter properties always use wikilink syntax so that wiki-export can reliably parse them.
Only add entries for links added in this cross-linker run — do not touch typed entries that were already present.
After the main linking pass, update affinity scores for all pages in misc/ (pages with promotion_status: misc in their frontmatter, or located under the misc/ directory).
For each misc page:
[[wikilinks]] in the page body[[misc/<slug>]] and [[<slug>]] referencesprojects/<project-name>/project: frontmatter field matching a project nameoutgoing_links + incoming_linksaffinity frontmatter block on the misc page:affinity:
obsidian-wiki: 3
another-project: 1Efficiency note: only read the full body of misc pages — other pages only need a frontmatter grep to determine their project membership.
Present a summary:
## Cross-Link Report
### Links Added: 23 across 12 pages
| Page | Links Added | Confidence | Placement | Relationship Types |
|---|---|---|---|---|
| `projects/my-project/my-project.md` | 3 | EXTRACTED | 2 inline, 1 related | uses ×2, related_to ×1 |
| `entities/jane-doe.md` | 5 | INFERRED | 3 inline, 2 related | extends ×1, uses ×3, related_to ×1 |
| ... | | | | |
### Orphan Pages Remaining: 2
- `references/foo.md` — no incoming or outgoing links found
- `concepts/bar.md` — could not find related pages
### Misc Promotion Candidates: N
Pages in misc/ that have ≥ 3 connections to a single project — ready to be promoted:
| Page | Top Project | Score |
|---|---|---|
| `misc/web-martinfowler-articles-microservices.md` | `obsidian-wiki` | 4 |
To promote: move the page to `projects/<project-name>/references/` and update all backlinks.
### Pages Skipped: 3
- `index.md`, `log.md` — special files
- `_archives/*` — archived contentAppend to log.md:
- [TIMESTAMP] CROSS_LINK pages_scanned=N links_added=M typed_relations_written=T pages_modified=P orphans_remaining=Q misc_affinity_updated=R promotion_candidates=S`hot.md` — Read $OBSIDIAN_VAULT_PATH/hot.md (create from the template in wiki-ingest if missing). Update Recent Activity with a one-line summary of what was linked — e.g. "Cross-linked 23 mentions across 12 pages; 2 orphans remain." Keep the last 3 operations. Update updated timestamp.
## Key Concepts section, add to that section rather than creating a separate ## Related.jane-doe should be linked from almost every project page. Prioritize these.QMD is a search index, not the source of truth. If $QMD_WIKI_COLLECTION is empty or unset, skip this step. Run it only after this skill has written or rewritten vault markdown. If QMD refresh fails, do not roll back the vault changes; report the QMD status separately.
Use $QMD_CLI if set; otherwise use qmd.
${QMD_CLI:-qmd} updateIf the output says vectors are needed or embeddings may be stale, run:
${QMD_CLI:-qmd} embedVerify the collection with either:
${QMD_CLI:-qmd} ls "$QMD_WIKI_COLLECTION"or, when a specific page path is known:
${QMD_CLI:-qmd} get "qmd://$QMD_WIKI_COLLECTION/<page>.md" -l 5Record one of:
QMD refreshed: update + embed + verifiedQMD refreshed: update only + verifiedQMD skipped: QMD_WIKI_COLLECTION unsetQMD skipped: qmd CLI unavailableQMD failed: <short error summary>~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.