npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codecell-germany/sevdesk-agent-skill

v0.1.12

Published

Agent-first sevdesk bookkeeping CLI and skill for contacts, quotes, invoices, vouchers, and transaction workflows

Downloads

989

Readme

sevdesk-agent-skill


English

Purpose

sevdesk-agent-skill is an agent-first sevdesk toolkit for end-to-end bookkeeping workflows. It gives agents a real CLI plus a skill payload so they can work through contacts, quotes, invoices, vouchers, transaction matching, booking preparation, PDF export, and multi-agent handoffs without relying on the sevdesk web UI.

Public Surface

The public product surface is:

  • sevdesk-agent
  • sevdesk-agent-skill

sevdesk-agent is the operational CLI. sevdesk-agent-skill installs the skill payload for skill-aware agent environments.

Current Scope

  • Full read access across the exposed sevdesk operation catalog through stable operation IDs
  • Write workflows for contacts, orders, invoices, vouchers, and related accounting objects
  • High-level discovery helpers for contacts, billing contacts, invoices, and bank transactions
  • Voucher intake from local PDFs, transaction matching, booking helpers, and booking verification
  • Template-based invoice flows such as installments and recurring clones
  • High-level edit workflows for orders and contacts
  • Safe invoice recreation when a generic invoice update route is not available
  • Safe PDF export with direct file decoding
  • Post-write verification to reduce workflow drift
  • Context snapshots for structured agent handoff

Installation

1. Install the package

npm install -g @codecell-germany/sevdesk-agent-skill

2. Verify the binaries

sevdesk-agent --help
sevdesk-agent-skill --help

After the global install, sevdesk-agent should be available directly on your PATH.

3. Install the skill payload

sevdesk-agent-skill install --force

This step is useful for Codex-style or other skill-aware agent environments that expect an installed local skill payload in addition to the global CLI.

First Run

Requirements:

  • Node.js >= 20
  • SEVDESK_API_TOKEN

Recommended first-run sequence on a fresh machine:

export SEVDESK_API_TOKEN="..."
sevdesk-agent doctor --json
sevdesk-agent read bookkeepingSystemVersion --output json
sevdesk-agent ops list --read-only

If doctor fails or bookkeepingSystemVersion cannot be read, do not proceed to write workflows yet. Fix installation, environment variables, or token configuration first.

Example Workflows

Contact creation and verification

sevdesk-agent find-contact "Muster GmbH" --output json
sevdesk-agent read resolve-billing-contact --query term="Muster GmbH" --output json
sevdesk-agent write createContact --body-file payloads/contact.create.json --verify-contact

Quote creation and PDF export

sevdesk-agent write createOrder --body-file payloads/order.create.json --verify
sevdesk-agent read orderGetPdf --path orderId=12345 --decode-pdf output/offer-12345.pdf --suppress-content --output json

Invoice creation

sevdesk-agent write createInvoiceByFactory --body-file payloads/invoice.create.json --verify
sevdesk-agent docs invoice-finalize

Order edit

sevdesk-agent order edit \
  --order-id 12345 \
  --header "Updated offer header" \
  --address $'Muster GmbH\nMusterstraße 1\n10115 Berlin' \
  --verify

Contact edit

sevdesk-agent contact edit \
  --contact-id 987 \
  --customer-number KD-2026-1001 \
  --street "Musterstraße 1" \
  --zip 10115 \
  --city Berlin \
  --country-id 1 \
  --verify

Voucher intake from a local PDF

sevdesk-agent create-voucher-from-pdf \
  --file /absolute/path/to/adobe-march-2026.pdf \
  --supplier-name "Adobe" \
  --voucher-date 2026-03-10 \
  --amount 119 \
  --tax-type default \
  --tax-rule-id 9 \
  --tax-rate 19 \
  --account-datev-id 700 \
  --accounting-type-id 33 \
  --execute \
  --verify

Voucher and transaction matching

sevdesk-agent find-transaction "Adobe" --amount 119 --booked false --output json
sevdesk-agent match-transaction --voucher-id 901 --output json
sevdesk-agent transaction find-match --supplier "Adobe" --amount 119 --date 2026-03-10 --direction expense --output json
sevdesk-agent accounting resolve --account-number 4210 --scope expense --output json
sevdesk-agent accounting resolve-tax-rule --tax-rule 1 --output json
sevdesk-agent voucher inspect --id 901 --output json
sevdesk-agent voucher book-existing \
  --voucher-id 901 \
  --transaction-id 100 \
  --direction expense \
  --execute \
  --verify
sevdesk-agent assign-voucher-to-transaction \
  --voucher-id 901 \
  --check-account-id 5 \
  --transaction-id 100 \
  --amount 119 \
  --direction expense \
  --execute \
  --verify

Paid expense in one workflow

sevdesk-agent expense process-paid \
  --file /absolute/path/to/adobe-march-2026.pdf \
  --transaction-id 100 \
  --reference-voucher-id 880 \
  --voucher-date 2026-03-10 \
  --amount 119 \
  --policy gross-fallback \
  --direction expense \
  --execute \
  --verify

Special booking cases

sevdesk-agent book-voucher \
  --voucher-id 901 \
  --check-account-id 5 \
  --transaction-id 100 \
  --amount 2.95 \
  --direction expense \
  --difference-reason payment-fees \
  --difference-amount 2.95 \
  --execute \
  --verify

sevdesk-agent expense process-paid \
  --file /absolute/path/to/repair.pdf \
  --transaction-id 1843991732 \
  --policy damage-settlement \
  --output json

Installment invoice from an existing invoice

sevdesk-agent create-invoice-installment \
  --from-invoice 12345 \
  --percent 70 \
  --label "Installment Phase 2" \
  --execute \
  --verify

Recurring invoice clone

sevdesk-agent invoice clone \
  --from 12345 \
  --period monthly \
  --override-position-price 0=199.00 \
  --execute \
  --verify

Safe invoice recreation

sevdesk-agent invoice recreate \
  --from 12345 \
  --patch-file payloads/invoice.patch.json \
  --verify

CLI Overview

  • sevdesk-agent ops list --read-only
  • sevdesk-agent op-show <operationId>
  • sevdesk-agent read <operationId> ...
  • sevdesk-agent write <operationId> ...
  • sevdesk-agent find-contact <term> ...
  • sevdesk-agent resolve-billing-contact <term> ...
  • sevdesk-agent find-invoice <term> ...
  • sevdesk-agent find-transaction [term] ...
  • sevdesk-agent match-transaction ...
  • sevdesk-agent transaction find-match ...
  • sevdesk-agent transaction list-open-expenses ...
  • sevdesk-agent accounting resolve ...
  • sevdesk-agent accounting resolve-tax-rule ...
  • sevdesk-agent create-voucher-from-pdf ...
  • sevdesk-agent voucher inspect ...
  • sevdesk-agent voucher book-existing ...
  • sevdesk-agent expense process-paid ...
  • sevdesk-agent book-voucher ...
  • sevdesk-agent assign-voucher-to-transaction ...
  • sevdesk-agent create-invoice-installment ...
  • sevdesk-agent order edit ...
  • sevdesk-agent contact edit ...
  • sevdesk-agent invoice clone ...
  • sevdesk-agent invoice recreate ...
  • sevdesk-agent doctor --json
  • sevdesk-agent context snapshot ...

Testing

npm run build
npm run test:unit
npm pack

test:live is optional and should only be run with a real sevdesk token in a controlled environment.

License

MIT


Deutsch

Zweck

sevdesk-agent-skill ist ein agentisches Toolkit für durchgängige sevdesk-Buchhaltungsworkflows. Es liefert ein echtes CLI plus Skill-Payload, damit Agenten Kontakte, Angebote, Rechnungen, Voucher, Transaktions-Matching, Buchungsvorbereitung, PDF-Exporte und Multi-Agent-Übergaben ohne manuelle Arbeit in der sevdesk-Weboberfläche abwickeln können.

Öffentliche Oberfläche

Die öffentliche Produktoberfläche besteht aus:

  • sevdesk-agent
  • sevdesk-agent-skill

sevdesk-agent ist das operative CLI. sevdesk-agent-skill installiert den Skill-Payload für skill-fähige Agent-Umgebungen.

Aktueller Umfang

  • Vollständiger Lesezugriff auf den freigelegten sevdesk-Operationskatalog über stabile Operation-IDs
  • Write-Workflows für Kontakte, Angebote, Rechnungen, Voucher und angrenzende Buchhaltungsobjekte
  • High-Level-Discovery-Helfer für Kontakte, Rechnungsempfänger, Rechnungen und Banktransaktionen
  • Voucher-Intake aus lokalen PDFs, Transaktions-Matching, Buchungs-Helper und Buchungs-Verifikation
  • Vorlagenbasierte Rechnungsabläufe wie Abschläge und wiederkehrende Klone
  • High-Level-Edit-Workflows für Angebote und Kontakte
  • Sichere Rechnungs-Recreation, wenn keine generische Invoice-Update-Route verfügbar ist
  • Sicherer PDF-Export mit direkter Dateiausgabe
  • Verifikation nach Writes zur Reduktion von Workflow-Drift
  • Context-Snapshots für strukturierte Agent-Übergaben

Installation

1. Paket installieren

npm install -g @codecell-germany/sevdesk-agent-skill

2. Binaries prüfen

sevdesk-agent --help
sevdesk-agent-skill --help

Nach der globalen Installation sollte sevdesk-agent direkt über den PATH verfügbar sein.

3. Skill-Payload installieren

sevdesk-agent-skill install --force

Dieser Schritt ist sinnvoll für Codex-ähnliche oder andere skill-fähige Agent-Umgebungen, die zusätzlich zum globalen CLI einen lokal installierten Skill-Payload erwarten.

Erster Start

Voraussetzungen:

  • Node.js >= 20
  • SEVDESK_API_TOKEN

Empfohlene Reihenfolge auf einem frischen System:

export SEVDESK_API_TOKEN="..."
sevdesk-agent doctor --json
sevdesk-agent read bookkeepingSystemVersion --output json
sevdesk-agent ops list --read-only

Wenn doctor fehlschlägt oder bookkeepingSystemVersion nicht gelesen werden kann, sollte noch kein Write-Workflow gestartet werden. Zuerst Installation, Umgebungsvariablen oder Token-Konfiguration korrigieren.

Beispiel-Workflows

Kontakt anlegen und verifizieren

sevdesk-agent find-contact "Muster GmbH" --output json
sevdesk-agent read resolve-billing-contact --query term="Muster GmbH" --output json
sevdesk-agent write createContact --body-file payloads/contact.create.json --verify-contact

Angebot anlegen und PDF exportieren

sevdesk-agent write createOrder --body-file payloads/order.create.json --verify
sevdesk-agent read orderGetPdf --path orderId=12345 --decode-pdf output/angebot-12345.pdf --suppress-content --output json

Rechnung anlegen

sevdesk-agent write createInvoiceByFactory --body-file payloads/invoice.create.json --verify
sevdesk-agent docs invoice-finalize

Angebot bearbeiten

sevdesk-agent order edit \
  --order-id 12345 \
  --header "Aktualisierter Angebotskopf" \
  --address $'Muster GmbH\nMusterstraße 1\n10115 Berlin' \
  --verify

Kontakt bearbeiten

sevdesk-agent contact edit \
  --contact-id 987 \
  --customer-number KD-2026-1001 \
  --street "Musterstraße 1" \
  --zip 10115 \
  --city Berlin \
  --country-id 1 \
  --verify

Voucher aus lokalem PDF anlegen

sevdesk-agent create-voucher-from-pdf \
  --file /absolute/path/to/adobe-march-2026.pdf \
  --supplier-name "Adobe" \
  --voucher-date 2026-03-10 \
  --amount 119 \
  --tax-type default \
  --tax-rule-id 9 \
  --tax-rate 19 \
  --account-datev-id 700 \
  --accounting-type-id 33 \
  --execute \
  --verify

Voucher und Transaktion matchen

sevdesk-agent find-transaction "Adobe" --amount 119 --booked false --output json
sevdesk-agent match-transaction --voucher-id 901 --output json
sevdesk-agent transaction find-match --supplier "Adobe" --amount 119 --date 2026-03-10 --direction expense --output json
sevdesk-agent accounting resolve --account-number 4210 --scope expense --output json
sevdesk-agent accounting resolve-tax-rule --tax-rule 1 --output json
sevdesk-agent voucher inspect --id 901 --output json
sevdesk-agent voucher book-existing \
  --voucher-id 901 \
  --transaction-id 100 \
  --direction expense \
  --execute \
  --verify
sevdesk-agent assign-voucher-to-transaction \
  --voucher-id 901 \
  --check-account-id 5 \
  --transaction-id 100 \
  --amount 119 \
  --direction expense \
  --execute \
  --verify

Bezahlte Ausgabe in einem Workflow

sevdesk-agent expense process-paid \
  --file /absolute/path/to/adobe-march-2026.pdf \
  --transaction-id 100 \
  --reference-voucher-id 880 \
  --voucher-date 2026-03-10 \
  --amount 119 \
  --policy gross-fallback \
  --direction expense \
  --execute \
  --verify

Sonderfälle

sevdesk-agent book-voucher \
  --voucher-id 901 \
  --check-account-id 5 \
  --transaction-id 100 \
  --amount 2.95 \
  --direction expense \
  --difference-reason payment-fees \
  --difference-amount 2.95 \
  --execute \
  --verify

sevdesk-agent expense process-paid \
  --file /absolute/path/to/reparatur.pdf \
  --transaction-id 1843991732 \
  --policy damage-settlement \
  --output json

Abschlagsrechnung aus bestehender Rechnung

sevdesk-agent create-invoice-installment \
  --from-invoice 12345 \
  --percent 70 \
  --label "Abschlag Phase 2" \
  --execute \
  --verify

Wiederkehrenden Rechnungsklon erzeugen

sevdesk-agent invoice clone \
  --from 12345 \
  --period monthly \
  --override-position-price 0=199.00 \
  --execute \
  --verify

Rechnung sicher neu erzeugen

sevdesk-agent invoice recreate \
  --from 12345 \
  --patch-file payloads/invoice.patch.json \
  --verify

CLI-Überblick

  • sevdesk-agent ops list --read-only
  • sevdesk-agent op-show <operationId>
  • sevdesk-agent read <operationId> ...
  • sevdesk-agent write <operationId> ...
  • sevdesk-agent find-contact <term> ...
  • sevdesk-agent resolve-billing-contact <term> ...
  • sevdesk-agent find-invoice <term> ...
  • sevdesk-agent find-transaction [term] ...
  • sevdesk-agent match-transaction ...
  • sevdesk-agent transaction find-match ...
  • sevdesk-agent transaction list-open-expenses ...
  • sevdesk-agent accounting resolve ...
  • sevdesk-agent accounting resolve-tax-rule ...
  • sevdesk-agent create-voucher-from-pdf ...
  • sevdesk-agent voucher inspect ...
  • sevdesk-agent voucher book-existing ...
  • sevdesk-agent expense process-paid ...
  • sevdesk-agent book-voucher ...
  • sevdesk-agent assign-voucher-to-transaction ...
  • sevdesk-agent create-invoice-installment ...
  • sevdesk-agent order edit ...
  • sevdesk-agent contact edit ...
  • sevdesk-agent invoice clone ...
  • sevdesk-agent invoice recreate ...
  • sevdesk-agent doctor --json
  • sevdesk-agent context snapshot ...

Tests

npm run build
npm run test:unit
npm pack

test:live ist optional und sollte nur mit echtem sevdesk-Token in einer kontrollierten Umgebung laufen.

Lizenz

MIT