audit-docstrings

audit-docstrings is a skill for Claude Code from InstituteforDiseaseModeling/idm_standards. It costs 55 tokens per session (1,905 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing Python docstrings, the explanatory text attached to code elements such as functions and classes.

In plain words
What is it for?
Use it when documenting Python components, adding API references with MkDocs or Quarto, and explaining where code belongs in a research workflow.
Why use it?
It makes code documentation more consistent and helps disease-modeling researchers understand how each component fits into their work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the idm-standards plugin — 10 skills shipped together

Good fit Use it when documenting Python components, adding API references with MkDocs or Quarto, and explaining where code belongs in a research workflow.

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

Made for: Claude Code.

Or install idm-standards, the plugin that ships this one along with the rest of its 10 skills.

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 audit-docstrings

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/institutefordiseasemodeling/idm_standards/audit-docstrings"><img src="https://agentmods.dev/badge/skills/institutefordiseasemodeling/idm_standards/audit-docstrings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,905 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.00055 $0.01905
Opus 5 $0.00028 $0.00953
Sonnet 5 $0.00011 $0.00381
Haiku 4.5 $0.00006 $0.00191

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

Security

Grade A, and why

audit-docstrings 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.

idm_standards_plugin/skills/audit-docstrings/SKILL.md · 204 lines

How it starts

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

Python docstring guidelines

Skill version: 1.1_2026.07.21

Use Google-style docstrings. Every public class, method, and function should have a docstring that helps a disease-modeling researcher understand not just what the object does, but where it fits in their workflow. Use American English spelling and usage.

If using Material for MkDocs to build documentation, the plugin mkdocstrings renders docstrings as API reference content. Local modules are documented automatically; to include external packages, use the mkdocs-gen-files plugin and associated Python script.

If using Quarto to build documentation, list all modules in the quarto.yml config file for them to be documented. Configure the docstring parser format as follows:

quartodoc:
  parser: google

Structure of a good docstring

def some_function(arg1, arg2):
    """ One-line summary ending with a period.

    Two to four sentences of prose explaining what this does and why a researcher
    would reach for it. Mention the disease model context — is this used during
    initialization, timestep updates, or post-simulation analysis?

    Link to related objects using MkDocs cross-reference syntax, e.g.
    [`Model`][laser.generic.model.Model] or [`Susceptible`][laser.generic.components.Susceptible].

    Args:
        arg1 (array): Description including shape, dtype, and units where
            relevant. E.g. "Shape ``(nticks+1, num_nodes)``, dtype float32."
        arg2 (int): Description. State default values explicitly if they matter.

    Returns:
        array: What is returned, its shape, dtype, and interpretation.
            For None returns, omit this section entirely.

    Raises:
        ValueError: When and why this is raised.

    Examples:

        # Show the most common researcher workflow. Use a self-contained snippet
        # that a researcher can run or adapt directly:

        model = Model(scenario, params)
        result = some_function(model.nodes.S[0], model.params.nticks)

    Note:
        Reserve for non-obvious caveats — performance warnings, thread safety,
        or behaviors that diverge from what the name implies.
    """

Read the full file on GitHub · 204 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 · 204 lines · 55 tokens per session scan A b191126949fb

Subscribe to this mod's changes

audit-docstrings is a skill published in the GitHub repository InstituteforDiseaseModeling/idm_standards (2 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,905 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

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

rocm-kernels

Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…

huggingface/kernels · 93 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.

getsentry/skills · 57 tokens