plumb-diagnose

plumb-diagnose is a skill for Claude Code, Codex from plumbkit/plumb. It costs 56 tokens per session (1,842 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

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/plumbkit/plumb/plumb-diagnose
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.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.svg" alt="Measured on agentmods" 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,842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00056 $0.01842
Opus 5 $0.00028 $0.00921
Sonnet 5 $0.00011 $0.00368
Haiku 4.5 $0.00006 $0.00184

Measured 4d ago against content hash d9d63d7d16fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 4d ago), licensed MIT. It adds 56 tokens to every session and 1,842 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-08-31.

Related

Other skills, from other repositories

nim-mcp-tools

Use for Nim symbol navigation, diagnostics, and type resolution. MANDATORY: Use specialized MCP tools (nimFindSymbols, nimFindReferences, nimListSymbols, nimCheckFile, nimCheckProject, nimFindTypeDefinition) first; fall back to grep only on error or user confirmation.

nim-lang/langserver · 64 tokens

ty-docs

Skill "ty-docs" from pledgeandgrow/pledge-skills, covering ty — python type checker and language server, key features, quick reference, configuration and pyproject.toml.

pledgeandgrow/pledge-skills · 34 tokens

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

lsp-config

This skill should be used when the user asks about "LSP configuration", "language server setup", "adding LSP to Claude Code", "mason config import", "lspconfig migration", "lspctl plugin", or discusses Claude Code LSP integration and troubleshooting.

blvp/cc-lspctl · 60 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

interview

Ask one useful structured question at a time only when material product/implementation choices are genuinely missing; remember answers and produce a brief/spec. Discoverable facts should be investigated instead of asked.

Hmbown/CodeWhale · 40 tokens