doctor

doctor is a skill for Claude Code from dithiothreitol/jdg-ksiegowy. It costs 91 tokens per session (627 once invoked), scanned A, original, MIT.

A local setup checker for a Polish sole trader’s invoicing and tax-submission tools. It checks seller details, KSeF and Ministry of Finance settings, email, document scanning, and calendar configuration without connecting to the internet.

In plain words
What is it for?
Use it to diagnose configuration, run a preflight check, audit the setup, or verify whether KSeF, JPK, email, and scanning services are ready.
Why use it?
It shows which required settings or files are missing before you try to send invoices or tax files. Warnings identify optional parts that are unavailable, while errors identify blocking problems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/doctor/scripts/check.py.

Good fit Use it to diagnose configuration, run a preflight check, audit the setup, or verify whether KSeF, JPK, email, and scanning services are ready.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dithiothreitol/jdg-ksiegowy
agentmods
npx agentmods add skills/dithiothreitol/jdg-ksiegowy/doctor

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 doctor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dithiothreitol/jdg-ksiegowy/doctor"><img src="https://agentmods.dev/badge/skills/dithiothreitol/jdg-ksiegowy/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 627 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.00091 $0.00627
Opus 5 $0.00046 $0.00313
Sonnet 5 $0.00018 $0.00125
Haiku 4.5 $0.00009 $0.00063

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

Security

Grade A, and why

doctor 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 11d 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.

.claude/skills/doctor/SKILL.md · 60 lines

What it actually says

Doctor — sprawdzanie konfiguracji

Waliduje .env i obecność plików (certyfikaty, klucze) przed wysyłką do KSeF/MF. Nie dotyka sieci.

Wywołanie

# Raport tekstowy
python3 skills/doctor/scripts/check.py

# Format JSON
python3 skills/doctor/scripts/check.py --format json

# Exit code != 0 gdy są błędy (do CI)
python3 skills/doctor/scripts/check.py --fail-on-error

Co sprawdza

[SELLER] — dane sprzedawcy z .env:

  • SELLER_NIP (z walidacją sumy kontrolnej)
  • SELLER_NAME, SELLER_ADDRESS, SELLER_BANK_ACCOUNT/NAME
  • SELLER_EMAIL, SELLER_FIRST_NAME/LAST_NAME, SELLER_BIRTH_DATE, SELLER_TAX_OFFICE_CODE (dla JPK)

[KSEF]:

  • KSEF_ENV (test/demo/prod), pochodny URL API
  • KSEF_NIP + KSEF_TOKEN

[MF] (bramka JPK):

  • MF_ENV (test/prod), pochodny URL
  • MF_PESEL (z walidacją), MF_CERT_PATH/MF_CERT_URL

[SMTP] — wysyłka email (opcjonalne):

  • SMTP_HOST, SMTP_USERNAME, SMTP_PASSWORD

[OCR] — provider i klucze:

  • OCR_PROVIDER (auto/ollama/claude), ANTHROPIC_API_KEY jeśli claude

Poziomy

  • OK — obszar gotowy
  • WARN — brak nieblokujący (np. SMTP) — część funkcjonalności niedostępna
  • ERROR — krytyczny — wysyłka zadziała dopiero po naprawie

Flow po doctor

Jeśli wszystko OK → możesz ruszać z wysyłkami:

# Dry-run na sandboxie KSeF
python3 skills/ksef/scripts/submit.py --dry-run --invoice-file faktury/A1.xml

# Dry-run JPK (sandbox MF)
python3 skills/jpk-submit/scripts/submit.py --dry-run data/jpk/JPK_V7M_04_2026.xml
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. 11d ago First seen · 60 lines · 91 tokens per session scan A e7fd0485fb1a

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository dithiothreitol/jdg-ksiegowy (5 stars, last pushed 1mo ago), licensed MIT. It adds 91 tokens to every session and 627 once invoked, about $0.0005 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

tax-calculator

Calculate tax implications of trades and generate tax reports.

Signal-Execution-Labs/forex-trading-ai-agent · 13 tokens

jangbu-import

A data-import workflow for turning bank files, card records, spreadsheets, receipts, tax invoices, and statement PDFs into a standard set of 13 transaction fields. OCR, or optical character recognition, is used to read information from document images and PDFs.

kimlawtech/korean-jangbu-for · 97 tokens

jangbu-connect

A setup guide for connecting Korean tax, bank, card, and social-insurance data through CODEF, an external API service. It explains how users obtain their own CODEF credentials and store them locally.

kimlawtech/korean-jangbu-for · 98 tokens

jangbu-tax

A financial-reporting tool that summarizes categorized transactions into a profit-and-loss statement and a simplified balance sheet. A profit-and-loss statement covers income and expenses over a period; a balance sheet shows assets, liabilities, and equity at a date.

kimlawtech/korean-jangbu-for · 82 tokens

accountant-expert

Expert-level accounting, tax, financial reporting, and accounting systems. Use when the user mentions accounting, tax, financial reporting, GAAP, or IFRS, or when the task involves Accounting Principles, Financial Statements, Tax & Compliance, or Accounting Systems.

personamanagmentlayer/pcl · 56 tokens

jaz-recipes

Use this skill when modeling complex multi-step accounting transactions — anything that spans multiple periods, involves changing amounts, or requires linked entries. Covers 16 IFRS-compliant recipes (prepaid amortization, deferred revenue, loans, IFRS 16 leases, hire purchase, fixed deposits, asset disposal, FX…

teamtinvio/jaz-ai · 120 tokens