contracts

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

A recurring-contract tool for a Polish sole trader that creates scheduled monthly invoices, tracks whether they were paid, and imports bank transactions from CSV files. CSV is a plain text table format commonly exported by banking systems.

In plain words
What is it for?
Use it for subscription or monthly contracts, automatic invoicing, marking invoices as paid, and matching payments from mBank or generic bank CSV files.
Why use it?
It reduces repeated invoice entry and manual matching of incoming payments to invoices. It can preview bank matches before changing records.

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/contracts/scripts/run_contracts.py.

Good fit Use it for subscription or monthly contracts, automatic invoicing, marking invoices as paid, and matching payments from mBank or generic bank CSV files.

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/contracts

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 contracts

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dithiothreitol/jdg-ksiegowy/contracts"><img src="https://agentmods.dev/badge/skills/dithiothreitol/jdg-ksiegowy/contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 727 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.00117 $0.00727
Opus 5 $0.00059 $0.00364
Sonnet 5 $0.00023 $0.00145
Haiku 4.5 $0.00012 $0.00073

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

Security

Grade A, and why

contracts 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 10d 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/contracts/SKILL.md · 74 lines

What it actually says

Cykliczne kontrakty + śledzenie płatności

1. Auto-fakturowanie

# Uruchom na dziś (z crona lub ręcznie)
python3 skills/contracts/scripts/run_contracts.py

# Symulacja na konkretny dzień
python3 skills/contracts/scripts/run_contracts.py --date 2026-04-30

2. Oznacz fakturę jako zapłaconą

python3 skills/contracts/scripts/mark_paid.py "A1/04/2026"
python3 skills/contracts/scripts/mark_paid.py "A1/04/2026" --date 2026-04-25

3. Import CSV z banku

# Podgląd dopasowań (bez zapisu)
python3 skills/contracts/scripts/import_bank_csv.py wyciag_kwiecien.csv

# Automatyczne oznaczenie zapłaconych po dopasowaniu
python3 skills/contracts/scripts/import_bank_csv.py wyciag_kwiecien.csv --auto-mark

Obsługiwane formaty CSV:

  • mBank: nagłówek #Data operacji;Opis operacji;...;Kwota;Waluta
  • Generyczny: date/data, amount/kwota, description/opis

4. Dodawanie kontraktu (Python API)

from jdg_ksiegowy.registry.db import ContractRecord, save_contract, init_db
import uuid

init_db()
save_contract(ContractRecord(
    id=str(uuid.uuid4()),
    buyer_name="Firma XYZ",
    buyer_nip="5260250274",
    buyer_address="ul. Przykładowa 1, 00-001 Warszawa",
    buyer_email="[email protected]",
    description="Obsługa IT — miesięczna",
    net_amount=2000,
    vat_rate=23,
    cycle="monthly",
    day_of_month=-1,   # -1 = ostatni dzień roboczy
))

Parametry kontraktu

Pole Opis
cycle monthly (jedyne obsługiwane)
day_of_month -1 = ostatni dzień roboczy, 1-28 = konkretny dzień
auto_send_ksef Oznaczenie (wysyłkę KSeF wywołujesz osobno skill ksef)
auto_send_email Oznaczenie (email wysyłasz osobno skill invoice-send)

Cron (codziennie rano)

0 7 * * * cd /opt/jdg && python3 skills/contracts/scripts/run_contracts.py >> logs/contracts.log 2>&1
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. 10d ago First seen · 74 lines · 117 tokens per session scan A a2b1a62077ed

Subscribe to this mod's changes

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