Swedish Sru Filing logo

Swedish Sru Filing

Organization
erp-mafia
swedish-sru-filing

Swedish SRU file generation for Skatteverket digital tax filing (INK2, INK2R, INK2S declarations for aktiebolag). Covers the two-file submission structure (INFO.SRU + BLANKETTER.SRU), all SRU field codes for INK2/INK2R/INK2S, BAS-to-SRU account mappings for räkenskapsschema, ISO 8859-1 encoding rules, amount formatting (hela kronor, no öre), 12-digit org number formatting, blankett type period suffixes (P1-P4), #BLANKETT/#BLANKETTSLUT delimiters, #UPPGIFT record format, validation error patterns, and rounding/truncation rules per SFL 22:1. Trigger on ANY question about SRU files, SRU-koder, fältkoder, filöverföring till Skatteverket, INK2S/INK2R generation, BAS-to-SRU mapping, "skapa SRU", "generera deklarationsfil", "digital inlämning INK2", BLANKETTER.SRU, INFO.SRU, SKV269, or any code that produces SRU output. Also trigger when debugging Skatteverket validation errors on uploaded SRU files. Always use this skill over training data for SRU topics.

Overview

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

  • 2 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 Sru Filing 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-sru-filing
  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-sru-filing .claude/skills/swedish-sru-filing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Swedish Sru Filing 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 Sru Filing 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 Sru Filing 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 SRU File Generation

SRU files are what Skatteverket's filöverföringstjänst accepts. The canonical source is Skatteverket's "Teknisk information om filöverföring" page (replaced brochure SKV 269 from Jan 1 2024).

Before writing any SRU generation code, read both reference files. Almost every failure is a wrong field code, a wrong sign, or the wrong text encoding.

How to use this skill

FileWhen to read
references/file-format.mdThe file itself: post-by-post structure of both files, period suffixes, ISO 8859-1 encoding, amount and org number formatting, the sign convention, zero-value handling, a worked example for a calendar-year AB, validation errors, data types, spec links
references/sru-codes.mdDeciding what goes in each #UPPGIFT: the full field code tables for INK2, INK2R and INK2S with their printed signs, and the BAS-to-SRU account mapping for the räkenskapsschema

Architecture: two files, always

Every SRU submission consists of exactly two files:

FileContentMax size
INFO.SRUSubmitter metadata (who is filing)—
BLANKETTER.SRUAll blankett blocks with tax data5 MB

File names are case-insensitive but must not be renamed (browsers appending (1) cause rejection).

An aktiebolag filing INK2 needs three blankett blocks inside BLANKETTER.SRU — INK2, INK2R and INK2S — each with its own #IDENTITET line, all terminated by a single #FIL_SLUT.

Generating a file

  1. Fix the period. The blankett type is <FORM>-<inkomstår><P1–P4>, where the income year is the calendar year the räkenskapsår ends and the suffix encodes the ending month. Calendar-year companies are P4.
  2. Write INFO.SRU with the posts in their prescribed order; mandatory are #PRODUKT, #FILNAMN, #ORGNR, #NAMN, #POSTNR, #POSTORT.
  3. Map the trial balance to INK2R via the BAS-to-SRU tables, then compute INK2S by hand, then carry 4.15/4.16 (7670/7770) to INK2 1.1/1.2 (7104/7114).
  4. Convert every amount to whole kronor, truncating öre, and to the form's printed sign — not the trial balance's sign. Omit any field whose value is zero.
  5. Write both files as ISO 8859-1, never UTF-8, and upload them under their exact names.

Field-by-field detail for each step is in the two reference files.

Never guess these

SituationWhyWhat to do
A field code for a rowCodes are published per period package, and a code invalid for the blankett type rejects the whole blockLook it up in sru-codes.md; never infer one from a neighbouring code
The sign of an amountSIE and most ledgers store credit balances as negative — the opposite of what the form wantsReport the printed sign as positive; see sru-codes.md §8
Any single BAS account in 5000–6999They ALL aggregate into one code, 7513; per-account codes are the most common mapping errorSum the range, write one #UPPGIFT 7513
An INK2S valueINK2S codes are NOT auto-derived from BAS accounts — they are tax adjustments requiring manual calculationTake them from the tax computation, not the ledger
The text encodingUTF-8 silently corrupts å, ä, ö and is the commonest cause of validation failureWrite ISO 8859-1 explicitly; see file-format.md §3
Whether a zero belongs in the fileA #UPPGIFT for a zero value causes warnings and sometimes errorsOmit the line entirely

Related skills

QuestionSkill
Getting the trial balance out of the accounting systemswedish-sie-import-export
INK2 form logic, skattemässiga justeringar, N9swedish-financial-reporting
Bokslut, closing entries and the result that feeds 4.1swedish-year-end-closing
Periodiseringsfond, koncernbidrag, schablonintäktswedish-tax-planning
Överavskrivningar and värdeminskningsavdrag behind 4.9swedish-asset-accounting

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 Sru Filing AI skill do?

Swedish SRU file generation for Skatteverket digital tax filing (INK2, INK2R, INK2S declarations for aktiebolag). Covers the two-file submission structure (INFO.SRU + BLANKETTER.SRU), all SRU field codes for INK2/INK2R/INK2S, BAS-to-SRU account mappings for räkenskapsschema, ISO 8859-1 encoding rules, amount formatting (hela kronor, no öre), 12-digit org number formatting, blankett type period suffixes (P1-P4), #BLANKETT/#BLANKETTSLUT delimiters, #UPPGIFT record format, validation error patterns, and rounding/truncation rules per SFL 22:1. Trigger on ANY question about SRU files, SRU-koder,...

Why use Swedish Sru Filing on TypingMind?

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

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

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 Sru Filing?

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

Is the Swedish Sru Filing 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 👇