logseq-wiki: Skill for Claude Code

.skills/cross-linker/SKILL.md

cross-linker is a skill for Claude Code, Codex from ystreibel/logseq-wiki. It costs 167 tokens per session (2,880 once invoked), scanned A, original, MIT.

A Logseq wiki tool that finds pages which should reference one another and adds missing wiki links. Logseq is a note-taking and knowledge-base application that uses linked pages.

In plain words
What is it for?
Use it to find unconnected pages, add cross-references, and link newly imported knowledge to related pages in the wiki.
Why use it?
Related notes can remain isolated when links are not added during writing. It scans the wiki’s page inventory and likely references to strengthen connections between relevant pages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is ystreibel/logseq-wiki's own configuration. It tells Claude Code and Codex how to work on logseq-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything logseq-wiki configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ystreibel/logseq-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ystreibel/logseq-wiki/main/.skills/cross-linker/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ystreibel/logseq-wiki

Made for: Claude Code, Codex.

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 cross-linker

README.md
[![agentmods](https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/cross-linker/github.svg)](https://agentmods.dev/skills/ystreibel/logseq-wiki/cross-linker)
Your own site
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/cross-linker"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/cross-linker/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 cross-linker

Your own site · 80×15
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/cross-linker"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/cross-linker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,880 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.00167 $0.02880
Opus 5.5 $0.00067 $0.01152
Sonnet 5.5 $0.00033 $0.00576
Haiku 4.5 $0.00017 $0.00288

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

Security

Grade A, and why

cross-linker 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 2mo 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.

.skills/cross-linker/SKILL.md · 232 lines

How it starts

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

Cross-Linker — Tissage automatique des liens wiki

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 properties 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.

Before You Start

  1. Resolve config — read ~/.logseq-wiki/config first (contains LOGSEQ_VAULT_PATH); fall back to .env in the logseq-wiki repo if the global config is absent. Prompt setup if neither exists.
  2. Read $LOGSEQ_VAULT_PATH/wiki/_master-index.md to get the full inventory of pages and their one-line descriptions.
  3. Skim $LOGSEQ_VAULT_PATH/wiki/_log.md to see what was recently ingested (focus linking effort on new pages).

Step 1: Build the Page Registry

Glob all .md files under $LOGSEQ_VAULT_PATH/wiki/ (excluding wiki/_archive/). For each page, extract:

  • Filename (without .md) — this is the wikilink target
  • Title from title:: property
  • Aliases from aliases:: property (if any)
  • Tags from tags:: property
  • Category from directory inference
  • One-line summary — first sentence or summary:: property

Build 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:

  1. Read the full content
  2. Extract existing wikilinks — find all [[...]] references already present
  3. Search for unlinked mentions — check if the page's text contains any of these, without being wrapped in [[...]]:
    • Page filenames (e.g., the word "MyProject" appears but [[wiki/projects/my-project]] is missing)
    • Page titles from title:: property
    • Aliases from aliases:: property
    • Entity names, project names, concept names from the registry

Read the full file on GitHub · 232 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. 2mo ago First seen · 232 lines · 167 tokens per session scan A 5c541d22eb6a

Subscribe to this mod's changes

cross-linker is a skill published in the GitHub repository ystreibel/logseq-wiki (5 stars, last pushed 11d ago), licensed MIT. It adds 167 tokens to every session and 2,880 once invoked, about $0.0007 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

cross-linker compared with skills from other repositories

cross-linker next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cross-linkerystreibel/logseq-wikiSkill511d agoMITA167Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex