plumb-diagnose

plumb-diagnose is a skill for Claude Code, Codex from plumbkit/plumb. It costs 56 tokens per session (1,886 once invoked), scanned A, original, MIT.

A troubleshooting guide for rejected plumb calls or changes that appear broken. It separates policy refusals from unavailable language services, stale indexes, daemon problems, and client-tool mix-ups.

In plain words
What is it for?
Use it after a tool call fails or its result looks wrong, especially when checking error classifications, diagnostics, daemon status, indexes, and retry conditions.
Why use it?
It directs investigation toward the actual failure category instead of changing code based on a misleading error message.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it after a tool call fails or its result looks wrong, especially when checking error classifications, diagnostics, daemon status, indexes, and retry conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plumbkit/plumb/plumb-diagnose
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 plumbkit/plumb --skill plumb-diagnose
Clone the repo
git clone --depth 1 https://github.com/plumbkit/plumb

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 plumb-diagnose

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/plumbkit/plumb/plumb-diagnose"><img src="https://agentmods.dev/badge/skills/plumbkit/plumb/plumb-diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,886 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.00056 $0.01886
Opus 5.5 $0.00022 $0.00754
Sonnet 5.5 $0.00011 $0.00377
Haiku 4.5 $0.00006 $0.00189

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

Security

Grade A, and why

plumb-diagnose 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.

internal/cli/skills/plumb-diagnose/SKILL.md · 77 lines

How it starts

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

Almost every plumb failure is one of three things: a guard doing its job, a language server that has not warmed up, or a lane mix-up between plumb and the client's own tools. Work out which before changing any code.

Under a lean tool profile daemon_info, topology_status, and file_status are not advertised; set [tools] profile = "full" in .plumb/config.toml to see them.

1. Read the classification first, the sentence second

A failed call carries a machine-readable verdict beside the prose, under the key dev.plumbkit/error. Read that before matching any English — it is plumb's own statement about the failure, and it needs no parsing:

"_meta": {
  "dev.plumbkit/error": {
    "kind": "dirty_file",
    "retryable": true,
    "remediation": { "class": "pass_dirty_ok", "reason": "…" }
  }
}

kind is what went wrong, from a closed set of thirteen — invalid_arguments, unread_or_stale, dirty_file, workspace_boundary, rate_limited, git_policy, git_command_failed, concurrent_ref_move, lsp_unavailable, lsp_timeout, daemon_transport, client_timeout, internal. Note the git split: git_policy is plumb refusing, so the fix is on plumb's side; git_command_failed is git itself exiting non-zero (a failing hook, a rejected push), so the fix is in the repository and the answer is already in the captured output.

remediation.class is what to do, and is the field to branch on: re_read, retry_after_wait, pass_dirty_ok, pass_confirm, pass_force, fix_arguments, repin_workspace, retry_when_ready, enable_policy, inspect_output, none.

retryable means: you can make this same operation succeed by performing the remediation yourself, with no human action. It is derived from the class, so one remedy always gives one answer. It is never a licence to replay the call as it stands — most retryable plumb failures guard a non-idempotent mutation, and re-issuing the identical write without first doing the remediation performs exactly the clobber the guard exists to prevent. enable_policy is not retryable because a human must edit configuration; inspect_output and none because nothing you pass changes the outcome.

It travels in two places, so look in both before concluding there is nothing. A tool that ran and failed puts it in the result's _meta. The two rejections that happen before any tool runs — malformed params, and a tool name plumb does not register — have no result to carry it, so it rides the JSON-RPC error.data instead, with code and message unchanged. A mistyped tool name therefore has no _meta at all and still says invalid_arguments / fix_arguments; reading only _meta turns a stated answer into an apparent silence.

An absent key in both places is information, not an omission: it means plumb has no structured claim about this failure. Only then fall back to reading the message, which still names its own fix:

  • "has not been read" — strict mode wants a read_file with a matching mtime before the edit, or the read happened in the other lane. Read with plumb, then edit with plumb.
  • "uncommitted changes" — the dirty-write guard: the file carried changes plumb did not make this session. Commit it, or pass dirty_ok deliberately.
  • a throttled write — the per-session write budget. Wait for the window to slide, or raise PLUMB_WRITE_RATE_LIMIT.
  • "workspace boundary violation" — the path is outside this connection's roots. Re-pin on the right workspace, or have the user add the directory to [workspace] extra_roots in the global config. Setting it in a project's .plumb/config.toml does nothing: those roots widen filesystem access with no per-call confirmation, so a project file that sets them is discarded on merge and a cloned repo cannot grant itself access.
  • a refused re-pin — this connection's workspace was pinned explicitly and you asked for a different one. Pass force when the switch is intended.

Read the full file on GitHub · 77 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 Changed 1008c7a38731
  2. 1mo ago First seen · 77 lines · 56 tokens per session scan A d9d63d7d16fd

Subscribe to this mod's changes

plumb-diagnose is a skill published in the GitHub repository plumbkit/plumb (4 stars, last pushed 6d ago), licensed MIT. It adds 56 tokens to every session and 1,886 once invoked, about $0.0002 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

Other skills, from other repositories

yaml

Validate and understand schema-backed YAML (Kubernetes, Flux, and JSON-Schema configs) with the yayamlls language server. Use when editing or reviewing .yaml/.yml files, diagnosing schema validation errors, configuring .yayamlls.yaml, suppressing a diagnostic, or working with Flux HelmRelease / Kustomization rendering.

home-operations/yayamlls · 69 tokens

pi-loop-forensics

Diagnose pi-go agent loops and degenerate turns — "agent loop aborted", runaway thinking with no tool calls, repeated phrases. Discriminates genuine model repetition collapse from a race, a tool-parse failure, or a too-low guard, and A/B replays a seed session across providers.

dimetron/pi-go · 65 tokens

nightly-session-watch

Nightly sweep of the last 24h of pi-go sessions — anomalous runs, loop aborts, tool error rates, token waste, real prompt-token spend, and whether the observation and palace pipelines are still recording. Triages each finding to the specialist skill that diagnoses it. Use for an unattended daily health check, or on…

dimetron/pi-go · 78 tokens

tui-render-debug

Diagnose and fix pi-go TUI rendering corruption, especially displaced panels, stale rows, cursor drift, and terminal-specific ANSI incompatibilities.

dimetron/pi-go · 33 tokens

troubleshoot-terva

Diagnose terva itself. Symptoms include an extension that will not load, a connector or bot that is down, missing tools, or MCP trouble. A bloated context or session/resume confusion also qualifies. Use when terva misbehaves, or when something that should be available is absent. Also use when the user asks why terva…

terva-sh/terva · 83 tokens

stuck

Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.

QwenLM/qwen-code · 57 tokens