wiki-doctor

wiki-doctor is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 67 tokens per session (752 once invoked), scanned A, original, MIT.

A command-line health check for a personal wiki and its supporting configuration. It checks page structure, skills, rules, automations, and synchronization settings.

In plain words
What is it for?
Use it to audit a wiki, investigate a broken setup, validate changes before committing, or run scheduled checks.
Why use it?
It finds broken links, invalid page metadata, stale references, missing files, and configuration problems after edits or imports.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Cursor.

Good fit Use it to audit a wiki, investigate a broken setup, validate changes before committing, or run scheduled checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/wiki-doctor
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.

Any agent
npx skills add Kevin-Liu-01/Agent-Machines --skill wiki-doctor
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

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 wiki-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/wiki-doctor/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/wiki-doctor)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/wiki-doctor"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/wiki-doctor/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 wiki-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/wiki-doctor"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/wiki-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 752 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 7 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 25
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 28
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 29
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 30
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 31
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 32
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 35
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00067 $0.00752
Opus 5 $0.00034 $0.00376
Sonnet 5 $0.00013 $0.00150
Haiku 4.5 $0.00007 $0.00075

Measured 9d ago against content hash 9de1f779617b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wiki-doctor 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 9d 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.

knowledge/skills/wiki-doctor/SKILL.md · 80 lines

How it starts

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

Wiki Doctor

Unified health check for Kevin's agent system. Validates five layers: wiki structure, skills, rules, automations, and config sync.

When to use

  • After large wiki edits or ingests
  • When something seems broken (rendering, missing skills, stale data)
  • When Kevin says "doctor", "audit", "health check", "validate"
  • Before committing wiki changes (quality gate)
  • On a schedule (daily via Cursor automation)

Commands

From the wiki repo root (~/Documents/GitHub/kevin-wiki):

# Run all doctors
npx tsx scripts/doctor.ts

# Run a specific doctor
npx tsx scripts/doctor.ts --only wiki        # frontmatter, wikilinks, index
npx tsx scripts/doctor.ts --only skills      # SKILL.md validity, symlinks
npx tsx scripts/doctor.ts --only rules       # .mdc integrity, hub refs
npx tsx scripts/doctor.ts --only automations # staleness, missing refs
npx tsx scripts/doctor.ts --only config-sync # symlink health

# JSON output (for programmatic use)
npx tsx scripts/doctor.ts --json

What each doctor checks

wiki-structure

  • Every page has valid frontmatter (title required, type + created recommended)
  • No broken [[wikilinks]]
  • _index.md page count matches actual files
  • log.md has valid YAML frontmatter

skills

  • Every SKILL.md under skills/personal/, skills/claude/, skills/dedalus/ has frontmatter with name and description
  • Symlinks from wiki repo to ~/.cursor/skills/ and ~/.claude/skills/ are intact
  • No duplicate slugs across namespaces

rules

  • Every .mdc in config/cursor/rules/ is non-empty
  • Rules referenced in agent-operations-hub.md exist on disk
  • Dedalus cursor rules are valid

automations

  • Every automation in state.json has run within 14 days
  • Never-run automations are flagged

config-sync

  • All expected symlinks (~/.cursor/rules, ~/.cursor/skills, ~/.claude/skills, hooks.json, mcp.json) point to correct targets

Interpreting results

Severity Meaning
pass Check passed
warn Non-critical issue, should be fixed when convenient
fail Critical issue, fix before committing

Read the full file on GitHub · 80 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. 9d ago First seen · 80 lines · 67 tokens per session scan A 9de1f779617b

Subscribe to this mod's changes

wiki-doctor is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (29 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 752 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories