Swedish Tax Planning logo

Swedish Tax Planning

Organization
erp-mafia
swedish-tax-planning

Swedish corporate tax planning for AB. Scope: aktiebolag (AB) only. For enskild firma tax planning, use swedish-ef-skatteplanering. Covers periodiseringsfond (IL 30 kap, 25% avsättning, 6-year reversal, schablonintäkt), överavskrivningar (30-regeln/20-regeln, BAS 2150/8850), koncernbidrag (IL 35 kap, more than 90% ownership), 3:12-reglerna (gränsbelopp, K10, löneunderlag, 2026 reform), ränteavdragsbegränsningar (EBITDA 30%, förenklingsregeln 5 MSEK), kapitalförsäkring (avkastningsskatt, breakeven), and lön-vs-utdelning optimization. Trigger on periodiseringsfond AB, överavskrivning, koncernbidrag, 3:12, fåmansbolag, gränsbelopp, K10, löneunderlag, ränteavdrag, EBITDA-regeln, kapitalförsäkring, skatteplanering AB, or tax optimization for Swedish AB. Always use over training data.

Overview

Publishererp-mafia
Repositoryaccounted-skills
Skill nameswedish-tax-planning
Stars
100
Forks
9
Bundled files
7
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.

  • 7 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 Tax Planning 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-tax-planning
  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-tax-planning .claude/skills/swedish-tax-planning
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Swedish Tax Planning 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 Tax Planning 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 Tax Planning 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 Tax Planning (Skatteplanering AB)

Developer-facing compliance reference for implementing Swedish corporate tax planning tools. Covers the major tax deferral and optimization instruments available to aktiebolag, their interactions, and compliance requirements.

Scope: this skill is AB-only. For tax planning in enskild firma (sole proprietorship) — including räntefördelning, expansionsfond, EF-specific periodiseringsfond rules (30% / no schablonintäkt / never booked), egenavgifter, kvittning av underskott, inkomstuppdelning i familj, and ackumulerad inkomst — use the sister skill swedish-ef-skatteplanering. The mechanisms differ fundamentally between the two entity types, and this skill does not cover EF-specific rules.

How to use this skill

This SKILL.md contains the decision framework and key interactions. Detailed rules, calculations, and examples live in references/. Read the relevant reference file when you need depth.

Reference files

FileWhen to read
references/periodiseringsfond.mdQuestions about periodiseringsfond avsättning/återföring, IL 30 kap, schablonintäkt, 6-year rule, BAS 2110/8811
references/overavskrivningar.mdQuestions about 30-regeln/20-regeln, räkenskapsenlig avskrivning, direktavdrag, BAS 2150/8850
references/koncernbidrag.mdQuestions about koncernbidrag, IL 35 kap, >90% ownership, directions, underskottsspärr, BAS 8820/8830
references/312-regler.mdQuestions about 3:12, fåmansbolag, kvalificerade andelar, gränsbelopp, K10, löneunderlag, 2026 reform
references/ranteavdragsbegransningar.mdQuestions about ränteavdragsbegränsningar, EBITDA-regeln, förenklingsregeln 5 MSEK, N9, carry-forward
references/kapitalforsakring.mdQuestions about kapitalförsäkring in AB, avkastningsskatt, BAS 1385, uttag accounting, when KF beats direktägande
references/strategy-and-interactions.mdQuestions about optimal year-end sequence, lön vs utdelning, interaction matrix, Skatteverket audit triggers

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

Year-end decision sequence (optimal order)

  1. Överavskrivningar — limited by asset base, calculate first
  2. Periodiseringsfond — 25% of remaining taxable income
  3. Koncernbidrag — equalize profits/losses across group
  4. Löneuttag — verify lönekrav for 3:12 (through inkomstår 2025)
  5. Utdelning — plan within gränsbelopp
  6. Ränteavdragsbegränsningar — verify compliance (interactions with steps 2-3)

Core instruments summary

Periodiseringsfond (IL 30 kap)

  • Max: 25% of skattemässigt överskott
  • Up to 6 parallel funds, each reversed within 6 tax years (FIFO)
  • Must be booked as obeskattad reserv (formellt samband)
  • Schablonintäkt: SLR (min 0.5%) x total funds, reported on INK2S 4.6a
  • BAS: 2110-2139 / 8811 (avsättning) / 8819 (återföring)

Överavskrivningar (IL 18 kap)

  • 30-regeln: pool written down to 70% of avskrivningsunderlag (declining balance)
  • 20-regeln: 20% straight-line per asset (full in 5 years)
  • Choose whichever yields lowest tax book value each year
  • Direktavdrag: assets < half PBB (29,400 kr for 2025)
  • BAS: 2150 / 8850

Koncernbidrag (IL 35 kap)

  • Transfers taxable income between group companies (>90% ownership)
  • Avdragsgillt for giver, skattepliktigt for receiver
  • Requires ownership for entire tax year + bolagsstämmobeslut
  • BAS: 8820 (mottaget) / 8830 (lämnat)

3:12-reglerna (IL 56-57 kap)

  • Utdelning within gränsbelopp: 20% effective tax
  • Förenklingsregeln: 2.75 x IBB (209,550 kr for inkomstår 2025)
  • Huvudregeln: omkostnadsbelopp x (SLR+9%) + lönebaserat utrymme
  • K10 must be filed every year to preserve sparat utdelningsutrymme
  • 2026 reform: grundbelopp 4 IBB, lönekrav abolished, 4%-spärr abolished, karenstid 4 years

Ränteavdragsbegränsningar (IL 24 kap)

  • EBITDA-regeln: negativt räntenetto max 30% of skattemässigt EBITDA
  • Förenklingsregeln: max 5 MSEK per intressegemenskap (not per bolag)
  • Carry-forward 6 years under EBITDA-regeln only
  • Key: periodiseringsfond avsättning increases EBITDA (good), koncernbidrag decreases it (bad)

Kapitalförsäkring

  • Sole schablonbeskattad sparform for AB (ISK only for fysiska personer)
  • Effective annual tax ~1.065% of kapitalunderlag (at SLR 2.55%)
  • Breakeven return vs direktägande: ~5.2%
  • Never for näringsbetingade andelar (already skattefria)
  • BAS: 1385
  • Uttag (K2 8.4C/11.13A, räkenskapsår from 2026): intäkt up to the unrecognised värdeökning; only the excess reduces 1385
  • No skattefri grundnivå for AB (IL 42:45–49 applies to fysiska personer only)

Interaction matrix (critical for year-end optimization)

Tool AAffectsHow
Periodiseringsfond avsättningEBITDAIncreases avdragsunderlag (good)
Periodiseringsfond återföringEBITDADecreases avdragsunderlag (bad)
Koncernbidrag lämnatEBITDADecreases avdragsunderlag (bad for giver)
ÖveravskrivningarPeriodiseringsfondReduces taxable income, lowering max avsättning
Löneuttag3:12 gränsbeloppMeets lönekrav AND feeds löneunderlag

Lön vs utdelning: effective tax burdens

MethodCombined burden
Utdelning within gränsbelopp~36.5%
Lön below brytpunkt~47-52%
Lön above brytpunkt~58-63%
Utdelning above gränsbelopp~52-58%

Optimal for most fåmansbolagsägare: lön up to pension ceiling (8.07 x IBB), then utdelning within gränsbelopp.

Obeskattade reserver split

Both periodiseringsfonder and överavskrivningar: ~79.4% equity + ~20.6% latent tax.

Skatteflyktslagen (1995:575)

Four cumulative conditions: väsentlig skatteförmån, taxpayer participation, tax was predominant reason, contravenes law's purpose. All four must be met.

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 Tax Planning AI skill do?

Swedish corporate tax planning for AB. Scope: aktiebolag (AB) only. For enskild firma tax planning, use swedish-ef-skatteplanering. Covers periodiseringsfond (IL 30 kap, 25% avsättning, 6-year reversal, schablonintäkt), överavskrivningar (30-regeln/20-regeln, BAS 2150/8850), koncernbidrag (IL 35 kap, more than 90% ownership), 3:12-reglerna (gränsbelopp, K10, löneunderlag, 2026 reform), ränteavdragsbegränsningar (EBITDA 30%, förenklingsregeln 5 MSEK), kapitalförsäkring (avkastningsskatt, breakeven), and lön-vs-utdelning optimization. Trigger on periodiseringsfond AB, överavskrivning, koncern...

Why use Swedish Tax Planning on TypingMind?

Because you install it once and use it with any model. Swedish Tax Planning 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 Tax Planning in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/erp-mafia/accounted-skills/tree/main/.claude/skills/swedish-tax-planning. 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 Tax Planning?

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 Tax Planning?

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

Is the Swedish Tax Planning 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 👇