verify

verify is a command for Claude Code from eduardoabreu81/livewiki. It costs 0 tokens per session (1,391 once invoked), scanned A, original, MIT.

A command-line checker for a generated Livewiki, a documentation website built from a repository. It reports broken anchors, changed manual sections, and broken internal links, with human-readable or JSON output.

In plain words
What is it for?
Use it in development or CI to verify a wiki, inspect failures, and choose between normal reports and machine-readable JSON using the --json option.
Why use it?
It catches documentation corruption before readers or continuous-integration checks encounter it.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it in development or CI to verify a wiki, inspect failures, and choose between normal reports and machine-readable JSON using the --json option.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eduardoabreu81/livewiki/verify
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.

Clone the repo
git clone --depth 1 https://github.com/eduardoabreu81/livewiki

Made for: Claude Code.

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 verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/eduardoabreu81/livewiki/verify/github.svg)](https://agentmods.dev/commands/eduardoabreu81/livewiki/verify)
Your own site
<a href="https://agentmods.dev/commands/eduardoabreu81/livewiki/verify"><img src="https://agentmods.dev/badge/commands/eduardoabreu81/livewiki/verify/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 verify

Your own site · 80×15
<a href="https://agentmods.dev/commands/eduardoabreu81/livewiki/verify"><img src="https://agentmods.dev/badge/commands/eduardoabreu81/livewiki/verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,391 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.00000 $0.01391
Opus 5.5 $0.00000 $0.00556
Sonnet 5.5 $0.00000 $0.00278
Haiku 4.5 $0.00000 $0.00139

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

Security

Grade A, and why

verify 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 1mo 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.

livewiki/commands/verify.md · 87 lines

How it starts

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

livewiki verify command

This page documents the livewiki verify CLI subcommand, which checks a generated wiki for the kinds of corruption that would break readers or CI pipelines.

When to use this page

  • Wire livewiki verify into a CI pipeline so build steps fail when the wiki no longer matches its index.
  • Inspect what counts as a "verification failure": broken anchors, altered manual blocks, and broken internal links.
  • Choose between the default human-readable report and a machine-readable JSON report using the --json flag.
  • Debug non-zero exits from the verifier by understanding the option parsing, error handling, and exit-code flow inside registerVerify.

How it fits

The file lives at packages/cli/src/commands/verify.ts, inside the @livewiki/cli package's commands directory. It sits in the command-registration layer of the CLI: each file here exports one registerXxx(program) function that a higher-level CLI bootstrap attaches to a commander Command instance. registerVerify delegates all heavy lifting to the @livewiki/core/verify module — specifically runVerify (the actual checker) and formatVerifyHuman (the text reporter) — and adds only the CLI-shaped concerns: parsing VerifyOptions, resolving the repository root, switching between JSON and human output, and translating outcomes into a process exit code. The verifier itself is what walks the wiki pages and the index; this file is the thin adapter that exposes it as a subcommand.

Diagram

%% livewiki/diagrams/commands-verify.mmd

Command registration

The single responsibility of this file is to teach the top-level commander program how to invoke the verify subcommand and how to render the result.

export function registerVerify(program: Command): void

registerVerify takes the parent commander Command instance and returns nothing; attaching a subcommand to it mutates the program in place.

// packages/cli/src/commands/verify.ts
export function registerVerify(program: Command): void {
  program
    .command("verify")
    .description(
      "validate wiki: anchors + manual blocks + internal links. Exit ≠ 0 on failure (Phase 2, CI-friendly)",
    )
    .action(async (_options: VerifyOptions, command: Command) => {
      const opts = command.optsWithGlobals<VerifyOptions>();
      const json = Boolean(opts.json);
      const repoRoot = path.resolve(process.cwd(), opts.repo ?? ".");
      let result: VerifyResult;
      try {
        result = await runVerify(repoRoot);
      } catch (err) {
        process.stderr.write(`livewiki verify: error — ${(err as Error).message}\n`);
        // An abrupt exit after writing stderr can crash libuv on Windows
        // while I/O is pending. Let Node drain the event loop naturally.
        process.exitCode = 1;
        return;
      }
      if (json) {
        process.stdout.write(JSON.stringify(result) + "\n");
      } else {
        process.stdout.write(formatVerifyHuman(result) + "\n");
      }
      // CI-friendly: exit code != 0 if there are errors
      if (!result.ok) process.exitCode = 1;
    });
}

Read the full file on GitHub · 87 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. 1mo ago First seen · 87 lines · 0 tokens per session scan A a1f59c9563bc

Subscribe to this mod's changes

verify is a command published in the GitHub repository eduardoabreu81/livewiki (1 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,391 tokens. 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.