Swedish Payroll logo

Swedish Payroll

Organization
erp-mafia
swedish-payroll

Swedish payroll (lön & arbetsgivaravgifter) compliance reference. Covers AGI filing, sociala avgifter (31.42%), skatteavdrag/skattetabeller, förmånsbeskattning (bil/kost/friskvård), semesterlöneskuld, OB/övertid, traktamente, utlägg/milersättning, F-skatt/A-skatt, BAS 7xxx mapping, brutto/nettolöneavdrag, löneväxling, and sjuklön. Trigger on lön, payroll, AGI, arbetsgivaravgifter, skattetabell, förmåner, semesterlön, traktamente, F-skatt, sjuklön, löneväxling, BAS 7xxx, or booking salary/vacation pay/sick pay in a Swedish context. Always use over training data.

Overview

Publishererp-mafia
Repositoryaccounted-skills
Skill nameswedish-payroll
Stars
100
Forks
9
Bundled files
11
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by erp-mafia on GitHub. Read the source before you install it.

Installation

Install the Swedish Payroll AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/erp-mafia/accounted-skills/tree/main/.claude/skills/swedish-payroll
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/erp-mafia/accounted-skills.git /tmp/accounted-skills
mkdir -p .claude/skills
cp -r /tmp/accounted-skills/.claude/skills/swedish-payroll .claude/skills/swedish-payroll
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Swedish Payroll in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Swedish Payroll on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Swedish Payroll is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Swedish Payroll Compliance

Developer-facing compliance reference for building Swedish payroll software. This skill answers questions about statutory rates, filing obligations, benefit valuations, BAS account mappings, and calculation logic so you can verify your implementation is correct.

How to use this skill

This skill has a router structure. The SKILL.md contains the most critical rules and rates you need constantly. Detailed reference material lives in references/. Read the relevant reference file when you need depth on a specific area.

Reference files

FileWhen to read
references/agi-filing.mdQuestions about arbetsgivardeklaration (AGI), XML schema, field codes (fältkoder), filing deadlines, corrections, penalties, Skatteverket API submission
references/social-charges.mdQuestions about arbetsgivaravgifter component breakdown, age-based reductions, egenavgifter, växa-stöd, forskningsavdrag, youth discount, thresholds (PBB/IBB/SGI)
references/tax-tables.mdQuestions about skatteavdrag, skattetabeller, column system, jämkning, sidoinkomst, statlig inkomstskatt brytpunkt, Skatteverket tax table data format
references/benefits.mdQuestions about förmånsbeskattning: bilförmån (all 3 formula generations, miljöbil reductions), kostförmån, friskvård, KPO, telefon/internet, bostadsförmån
references/vacation-pay.mdQuestions about semesterlön, semesterlöneskuld, procentregeln, sammalöneregeln, semestertillägg, sparade dagar, intjänandeår, BAS 2920/7090 accounting
references/ob-overtime.mdQuestions about OB-tillägg, övertid, Arbetstidslagen limits, CBA divisors, mertid, kompensationsledighet
references/travel-expenses.mdQuestions about traktamente (domestic/international), tremånadersregeln, meal reductions, utlägg vs kostnadsersättning, milersättning, körjournal
references/f-skatt.mdQuestions about F-skatt vs A-skatt vs FA-skatt, verification workflow, employer liability, Skatteverket Företagsuppgifter API
references/bas-7xxx.mdQuestions about BAS kontoplan 7xxx salary accounts, balance sheet accounts (2710/2730/2920), standard monthly journal entry flow
references/deductions-lonevaxling.mdQuestions about nettolöneavdrag vs bruttolöneavdrag processing order, löneväxling (1.058 factor), pension deductibility caps
references/sick-pay.mdQuestions about sjuklön, karensavdrag calculation, day 2-14 at 80%, läkarintyg, återinsjuknande, Försäkringskassan day 15+, högkostnadsskydd

Read multiple reference files when a question spans domains (common).

Core rates and rules (always in context)

Arbetsgivaravgifter: 31.42%

Total rate unchanged since 2009. Calculated on full gross salary + taxable benefits with no cap. Age tiers:

Birth year conditionRate
Born 1937 or earlier0%
Born 1938–1958 (2025 and 2026)10.21% (only ålderspensionsavgift)
Standard (all others)31.42%
Temporary youth: turned 18 but not 23 at year start, 2026 = born 2003–2007 (pay from Apr 1, 2026 to Sep 30, 2027)20.81% on salary up to 25,000 SEK/month (Lag 2026:100)

No avgifter required if total annual compensation from one employer < 1,000 SEK.

AGI filing deadline

12th of month following pay period (17th in Jan/Aug for turnover ≤40 MSEK). Late = 625 SEK; 1,250 SEK if the declaration was due under a föreläggande (SFL 48:6).

Skatteavdrag lookup chain

kommun → total skattesats → round to table number (29-42) → select column (1-6 by employee category) → look up gross salary bracket → withholding amount. Sidoinkomst: flat 30%.

Semesterlön

Procentregeln: 12% of semesterlönegrundande income. Sammalöneregeln: regular pay + 0.43% semestertillägg per day (many CBAs use 0.8%). Intjänandeår: Apr 1 - Mar 31 by law (often calendar year via CBA).

Sjuklön (day 1-14)

Karensavdrag = 20% of one week's sjuklön (80% of weekly pay). Day 2-14: 80% of lost pay. Läkarintyg from day 8. Återinsjuknande within 5 days = same period continues.

Traktamente (domestic)

2024-2025: 290 SEK/hel dag. 2026: 300 SEK/hel dag. Halv dag = 50%. After 3 months same location: 70%. After 2 years: 50%.

Key thresholds 2026

ParameterValue
Prisbasbelopp (PBB)59,200 SEK
Inkomstbasbelopp (IBB)83,400 SEK
Max PGI (7.5 × IBB)625,500 SEK
Pension ceiling (8.07 × IBB)673,038 SEK
SGI ceiling (10 × PBB)592,000 SEK
Friskvård tax-free cap5,000 SEK/year
Milersättning (own car)25 SEK/mil
Statlig skatt skiktgräns643,000 SEK/year
Statlig skatt brytpunkt660,400 SEK/year

BAS 7xxx quick reference

RangeCategory
7010-7090Löner kollektivanställda + semester
7210-7290Löner tjänstemän/företagsledare + semester
7321-7332Traktamente + bilersättningar
7381-7385Förmåner (bostad, kost, bil)
7410-7460Pensionskostnader
7510-7533Arbetsgivaravgifter + SLP
7571-7699Försäkringar + övriga personalkostnader

Standard monthly journal entries

  1. Gross salary: Debit 7210 / Credit 2710 (tax) + Credit 1930 (net pay)
  2. Employer avgifter: Debit 7510 / Credit 2730
  3. Vacation accrual: Debit 7290 / Credit 2920
  4. Avgifter on accrual: Debit 7519 / Credit 2940
  5. Pension premiums: Debit 7410 / Credit 2440/2740
  6. SLP on pensions: Debit 7533 / Credit 2514

Processing order for gross-to-net

bruttolöneavdrag → förmånsvärden (reduced by nettolöneavdrag) → tax base → skattetabell lookup → net pay → nettolöneavdrag → utbetalat belopp. Arbetsgivaravgifter calculated on gross after bruttolöneavdrag but before nettolöneavdrag.

Löneväxling factor

For every 1 SEK salary reduction: pension contribution = 1.058 SEK. Flag if post-reduction salary drops below ~56,087 SEK/month (8.07 × IBB / 12 for 2026).

F-skatt verification

A-skatt: withhold tax + pay avgifter. F-skatt: neither. FA-skatt: split. No F-skatt stated: withhold 30% + full avgifter. Verify via Skatteverket before first payment.

Rate update schedule

Rates shift annually with PBB, IBB, and SLR. Subscribe to Skatteverket's annual publications each December. Bilförmån formulas use SLR from November 30 of prior year (floor 0.50%). Kostförmån tied to PBB. Traktamente normalbelopp published annually. PBB 2027: SCB has calculated 59,600 SEK; not yet formally set by the government.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Swedish Payroll AI skill do?

Swedish payroll (lön & arbetsgivaravgifter) compliance reference. Covers AGI filing, sociala avgifter (31.42%), skatteavdrag/skattetabeller, förmånsbeskattning (bil/kost/friskvård), semesterlöneskuld, OB/övertid, traktamente, utlägg/milersättning, F-skatt/A-skatt, BAS 7xxx mapping, brutto/nettolöneavdrag, löneväxling, and sjuklön. Trigger on lön, payroll, AGI, arbetsgivaravgifter, skattetabell, förmåner, semesterlön, traktamente, F-skatt, sjuklön, löneväxling, BAS 7xxx, or booking salary/vacation pay/sick pay in a Swedish context. Always use over training data.

Why use Swedish Payroll on TypingMind?

Because you install it once and use it with any model. Swedish Payroll is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Swedish Payroll in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/erp-mafia/accounted-skills/tree/main/.claude/skills/swedish-payroll. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Swedish Payroll?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Swedish Payroll?

As many as you like. As long as a model supports skills, you can use Swedish Payroll with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Swedish Payroll AI skill free?

Yes. It is published on GitHub by erp-mafia under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇