deephaven-mcp: Skill for Claude Code

.agents/skills/pydocs-accuracy/SKILL.md

pydocs-accuracy is a skill for Claude Code, Codex from deephaven/deephaven-mcp. It costs 62 tokens per session (514 once invoked), scanned A, original, Apache-2.0.

A review skill for checking whether Python docstrings accurately describe the code, including parameters, return values, and exceptions. It is meant for focused correctness fixes rather than a full rewrite.

In plain words
What is it for?
Use it during a code review to verify or surgically correct docstrings for specified Python files or functions, including spelling checks.
Why use it?
It catches documentation that promises behavior the code does not provide, including incorrect names or possible return values. This keeps code documentation aligned with actual behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is deephaven/deephaven-mcp's own configuration. It tells Claude Code and Codex how to work on deephaven-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deephaven-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to deephaven/deephaven-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/deephaven/deephaven-mcp/main/.agents/skills/pydocs-accuracy/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/deephaven/deephaven-mcp

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 pydocs-accuracy

README.md
[![agentmods](https://agentmods.dev/badge/skills/deephaven/deephaven-mcp/pydocs-accuracy.svg)](https://agentmods.dev/skills/deephaven/deephaven-mcp/pydocs-accuracy)
Your own site
<a href="https://agentmods.dev/skills/deephaven/deephaven-mcp/pydocs-accuracy"><img src="https://agentmods.dev/badge/skills/deephaven/deephaven-mcp/pydocs-accuracy.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 514 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.00062 $0.00514
Opus 5 $0.00031 $0.00257
Sonnet 5 $0.00012 $0.00103
Haiku 4.5 $0.00006 $0.00051

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

Security

Grade A, and why

pydocs-accuracy 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 8d 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/pydocs-accuracy/SKILL.md · 37 lines

What it actually says

When to use this vs. pydocs-improve: use pydocs-accuracy for surgical correctness-only fixes (e.g., during a code review where restructuring would expand scope). Use pydocs-improve for a full review that may also restructure docstrings or add missing required sections.

For the specified file or function, verify that all docstrings are factually accurate. Fix any inaccuracies directly.

Docstrings — check:

  • Description matches what the function actually does
  • Args section matches actual parameter names, types, and behavior
  • Returns section matches what the function actually returns — including the value vocabulary of any documented string field (apply ref-output-serialization-conventions); if the docstring lists possible values, they must match what the code emits
  • Raises section lists only exceptions the function actually raises
  • No documented behavior that the code no longer implements
  • Spelling in the docstrings you touch — apply ref-python-coding-practices rule 8; verify with uv run codespell <file>

Pydantic fields — when the change touches a StrictSchema / RedactableSchema subclass, check the field's trailing PEP 257 docstring (the triple-quoted string immediately below the assignment) for accuracy only:

  • The description matches the field's current type, constraints (gt=0, ge=0, etc.), and behavior
  • Mentioned default values still match the actual default
  • No documented behavior that the code no longer implements

Restructuring is out of scope for this skill. If a field has no trailing docstring (or is documented only via a Sphinx Attributes: block on the class), do not add or convert here — flag it for pydocs-improve, which owns the convention. The tests/test_field_docs_contract.py regression test will also surface the missing description on the next test run.

Do not remove TODOs. Fix inaccuracies; do not rewrite or restructure docstrings beyond what accuracy requires.

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. 8d ago First seen · 37 lines · 62 tokens per session scan A a9ba6ec05757

Subscribe to this mod's changes

pydocs-accuracy is a skill published in the GitHub repository deephaven/deephaven-mcp (5 stars, last pushed 3d ago), licensed Apache-2.0. It adds 62 tokens to every session and 514 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.