Files
accounted/registry/entries/swedish-payroll.mdx
T
Jakob Wennberg 3d1ed15b6d feat(registry): move community registry source of truth into the public repo (#1458)
* feat(registry): move community registry source of truth into the public repo

The site's registry page says "Lägg till en egen" and links here, but the
MDX entries lived in the private website repo, so an external contributor
had no path to open the PR we were inviting (found by the first person who
tried). This makes the invitation real:

- registry/entries/ + registry/authors/ hold the 20 existing entries and
  2 author profiles, migrated verbatim from the website repo, which now
  syncs FROM this directory instead of owning the content
- registry/README.md documents the frontmatter convention and the flow
- scripts/validate-registry.ts (npm run validate:registry, wired into
  core-build) checks structure and rejects JSX/import/export in bodies:
  the site renders entries through MDX, which would execute those inside
  the website build
- CONTRIBUTING.md points at the registry for listing community work

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>

* fix(registry): close MDX-safety gaps and correct six compliance claims from PR review

Review bot findings on #1458, both verified and addressed:

- The body safety gate only rejected capitalized JSX tags, but MDX also
  evaluates lowercase HTML tags (<div>, <img onerror=...>) and bare {...}
  expressions. The validator now rejects any raw tag and any brace outside
  fenced code and backtick inline code; literal tags in prose go in
  backticks. Verified: a crafted entry with all three bypasses fails, all
  existing content still passes.
- Six factual errors in migrated entries, each checked against the skill
  sources in .claude/skills/ before editing (these were live on the site
  already): traktamente 2026 is 300 kr not 260; employer contributions for
  66+ at year start (67+ from 2026) are 10.21% not "65+: 16.36%", and the
  under-18 0% claim is replaced with the documented 18-22 youth reduction;
  electronics reverse-charge threshold is 100 000 kr excl VAT per invoice
  not 250 000; half prisbasbelopp 2026 is 29 600 not 24 750; kostnadsställe
  is SIE dimension 1 not 7; SRU period suffixes encode the fiscal-year end
  range (P1 jan-apr, P2 maj-aug, P4 sep-dec) not fixed months.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>

---------

Signed-off-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 10:54:09 +02:00

55 lines
3.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "swedish-payroll — lön, arbetsgivaravgifter och förmånsbeskattning"
description: "SKILL.md för svensk lönehantering. AGI-inlämning, sociala avgifter 31.42%, skatteavdrag enligt skattetabeller, förmånsbeskattning (bil/kost/friskvård), semesterlöneskuld, OB/övertid, traktamente, utlägg/milersättning, F-skatt vs A-skatt, BAS 7xxx-mappning, brutto/nettolöneavdrag, löneväxling, sjuklön."
slug: "swedish-payroll"
kind: "skill"
author: "erp-mafia"
status: "live"
lang: "sv"
personas: ["finance", "byra", "founder"]
publishedAt: "2026-05-12"
updatedAt: "2026-08-08"
repoUrl: "https://github.com/erp-mafia/swedish-accounting-skills/tree/main/.claude/skills/swedish-payroll"
externalUrl: "https://github.com/erp-mafia/swedish-accounting-skills"
version: "community"
ogImageEyebrow: "Skill"
faq:
- q: "Vad är skillnaden mellan arbetsgivaravgifter och egenavgifter?"
a: "Arbetsgivaravgift 31.42% (BAS 7510 mot 2731) gäller anställda. Egenavgift 28.97% gäller enskild näringsidkare och delägare i HB/KB, betalas via inkomstdeklarationen. Pensionärer över 65 har lägre avgift. Skillen visar exakta procentsatser och åldersbrytpunkter."
- q: "Hur förmånsbeskattas bil?"
a: "Bilförmånsvärde 2026: ramnummer + bränsletyp i Skatteverkets tabell. Hamnar i ruta 013 på AGI och bokas mot BAS 7385. Vid drivmedelsförmån läggs ett tillägg på 1.2x faktisk drivmedelskostnad. Skillen täcker både ordinarie bilförmån och drivmedelsförmån separat."
- q: "Vad är löneväxling?"
a: "Anställd byter en del av bruttolönen mot pensionsavsättning. Skattefördelaktigt för anställd och arbetsgivare (lägre arbetsgivaravgift på växlad del). Skillen visar BAS-bokning 7410 + 2710, och vad som krävs avtalsmässigt."
---
## Vad skillen täcker
* AGI på individnivå: månadsinlämning, fältstruktur (KU10/KU13-schema), SUS-cert för API-flöde.
* Sociala avgifter 31.42% (2026), inklusive åldersgränser (fyllda 66 vid årets ingång, 67 från 2026: 10.21%) och tillfällig ungdomsnedsättning 18-22 år (20.81%, apr 2026-sep 2027).
* Skatteavdrag: skattetabeller per kommun, jämkning, kvarskatt.
* Förmånsbeskattning: bil (Skatteverkets tabellvärde), kost (250 kr/dag vid full dygnsdebitering), bostad (regionvärden), friskvård (skattefri upp till 5 000 kr/år), trängselskatt, parkering.
* Semesterlöneskuld: 12% schablon eller individuell beräkning, BAS 7290 mot 2920.
* OB- och övertidsersättning: kollektivavtalsregler, BAS 7260.
* Traktamente: schablon (300 kr/dag inrikes 2026), över schablon beskattas.
* Utlägg och milersättning: 25 kr/mil skattefritt 2026.
* F-skatt vs A-skatt: vilken som gäller per uppdragstyp, FA-skatt-kombinationen.
* BAS 7xxx-mappning: löner 7010/7090, förmåner 73827388, arbetsgivaravgift 7510.
* Bruttolöneavdrag vs nettolöneavdrag: vad som påverkar AGI vs vad som bara går utanför.
* Sjuklön: dag 214, karensavdrag, ersättning från Försäkringskassan dag 15+.
## Installera
```bash
git clone https://github.com/erp-mafia/swedish-accounting-skills.git
cd swedish-accounting-skills
claude
```
## Pairs med
* [skatteverket-arbetsgivardeklaration](/community/registry/skatteverket-arbetsgivardeklaration) — accounted-skill som faktiskt genererar AGI-XML från en löneberäkning.
## Licens
MIT.