logseq-link-hygiene

logseq-link-hygiene is a skill for Claude Code, Codex from codekiln/logseq-encode-garden. It costs 71 tokens per session (530 once invoked), scanned A, original, no licence file.

A tool for checking and standardising Logseq wikilinks, which are links between pages in a Logseq knowledge graph.

In plain words
What is it for?
It is for adding, reviewing, resolving, or replacing links in Logseq pages, including links created during note imports.
Why use it?
It helps prevent broken references, duplicate pages, and accidental creation of empty stub pages when editing or importing notes.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/codekiln/logseq-encode-garden/logseq-link-hygiene
Any agent
npx skills add codekiln/logseq-encode-garden --skill logseq-link-hygiene
Clone the repo
git clone --depth 1 https://github.com/codekiln/logseq-encode-garden

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 logseq-link-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/codekiln/logseq-encode-garden/logseq-link-hygiene.svg)](https://agentmods.dev/skills/codekiln/logseq-encode-garden/logseq-link-hygiene)
Your own site
<a href="https://agentmods.dev/skills/codekiln/logseq-encode-garden/logseq-link-hygiene"><img src="https://agentmods.dev/badge/skills/codekiln/logseq-encode-garden/logseq-link-hygiene.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 530 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00071 $0.00530
Opus 5 $0.00036 $0.00265
Sonnet 5 $0.00014 $0.00106
Haiku 4.5 $0.00007 $0.00053

Measured 3d ago against content hash 30de2b97178b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

logseq-link-hygiene 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 3d 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.

.agents/skills/logseq-link-hygiene/SKILL.md · 59 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 59 lines · 71 tokens per session scan A 30de2b97178b

Subscribe to this mod's changes

logseq-link-hygiene is a skill published in the GitHub repository codekiln/logseq-encode-garden (10 stars, last pushed 7d ago), with no licence file. It adds 71 tokens to every session and 530 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

kb-ingest

Build and integrate documents in a PARA Knowledge Base. Classifies, creates or moves, summarizes, links, indexes, validates, and records new vault knowledge from Inbox, a specified path, or a direct request to create/update wiki content.

ernestolee13/para-knowledge-base · 51 tokens

kb-lint

Health check for the PARA Knowledge Base. Detects orphan documents, broken links, index drift, tag issues, and stale content. Run periodically or as part of weekly review.

ernestolee13/para-knowledge-base · 39 tokens

kb-query

Query the PARA Knowledge Base to find information, synthesize answers from vault documents, inspect recent activity when needed, and record compact query telemetry when configured. Use for any question about Obsidian vault content, projects, references, logs, links, or cross-document analysis.

ernestolee13/para-knowledge-base · 57 tokens

kb-index

Update Knowledge Base indexes. Smart mode detects changes and updates only what's needed. Full rebuild available with --full flag. Use after adding/moving documents or when indexes feel stale.

ernestolee13/para-knowledge-base · 38 tokens

kb-init

Initialize or adopt a portable PARA Knowledge Base in an Obsidian vault. Detects numbered, standard, or configured roots; creates indexes and a log when requested; and installs shared rules/config for Claude Code, Codex, and local consumers.

ernestolee13/para-knowledge-base · 52 tokens

adopt

Scaffold the PKM system onto an existing Obsidian vault. Scans your vault structure, maps folders interactively, and generates configuration — no template required.

ballred/obsidian-claude-pkm · 36 tokens