Swedish Sie Import Export logo

Swedish Sie Import Export

Organization
erp-mafia
swedish-sie-import-export

Swedish SIE4 file format: parsing, validation, generation, troubleshooting. All record types (#VER, #TRANS, #IB, #UB, #RES, #KONTO, #RAR, #FLAGGA, #KSUMMA, #SRU, etc.), SIE types 1-4, encoding detection (CP437/UTF-8/Latin-1), mojibake diagnosis, verification balance integrity, IB/UB continuity, multi-year migration, diffing, audit trail under BFL, BAS account classes, SRU tax codes, and error patterns. Trigger on ANY SIE question: import, export, parsing, validation, encoding issues, garbled å/ä/ö, unbalanced verifications, IB/UB mismatch, #FLAGGA, SIE migration between Fortnox/Visma/BL/SpeedLedger/Bokio, .SE/.SI files, verification series, or code reading/writing SIE data. Always use over training data.

Overview

Publishererp-mafia
Repositoryaccounted-skills
Skill nameswedish-sie-import-export
Stars
100
Forks
9
Bundled files
5
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.

  • 5 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 Sie Import Export 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-sie-import-export
  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-sie-import-export .claude/skills/swedish-sie-import-export
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Swedish Sie Import Export 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 Sie Import Export 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 Sie Import Export 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 SIE4 Import/Export

Deterministic reference for parsing, validating, generating, and troubleshooting SIE4 files.

SIE4 (Standard Import Export) is Sweden's universal accounting data interchange format. Tagged plain-text, one record per line, #LABEL prefix, space-delimited fields. .SE = export, .SI = import. Current spec: utgåva 4C (2025-08-06), which still allows only CP437 (#FORMAT PC8). SIE 5 is a separate XML format; this skill covers SIE 4.

Reference files

FileWhen to read
references/record-types.mdEvery record label and its fields, the five subtypes (1, 2, 3, 4E, 4I), field format rules, verification example, series conventions, multi-year handling, record ordering, #KSUMMA
references/encoding.mdEncoding detection, byte tables, mojibake diagnosis, per-software behaviour, normalization on import
references/validation-rules.mdCommon-error lookup, all validation rules and severities, validation order, remediation workflow, post-import issues, file diffing
references/bas-sru.mdBAS account classes, #KTYP, key accounts, SRU codes, year-end closing and IB/UB flow, #KPTYP
references/migration-and-audit-trail.mdMigrating between systems, what SIE does not carry, post-migration validation, retention and audit trail under BFL

Core invariants (never violate)

  1. Verification balance: Sum of all #TRANS amounts within a #VER block = 0.00 exactly
  2. IB/UB continuity: UB(year N, account) = IB(year N+1, account) for all balance sheet accounts (1xxx-2xxx)
  3. Result account reset: IB for income statement accounts (3xxx-9xxx) must be zero at year start
  4. #FLAGGA idempotency: 0 = not imported, 1 = already imported. Prevents double-import.
  5. Sequential numbering: Verifications within a series appear in ascending verno order
  6. Sign convention: Debit = positive, Credit = negative (in #TRANS, #IB, #UB, #RES)

Procedure for any SIE file

  1. Detect the encoding before parsing. #FORMAT PC8 is unreliable: cloud programs declare PC8 and export UTF-8. Detection order in encoding.md; skip #KSUMMA unless CP437.
  2. Check #FLAGGA. 1 means the file has already been read in: don't import it.
  3. Validate in order: structure → encoding → parsing → chart of accounts → balances → verifications → fiscal year boundaries → dimensions → KSUMMA (CP437 only). Checks and severities in validation-rules.md.
  4. Diagnose before adjusting. Any difference (unbalanced #VER, IB/UB mismatch, non-zero IB on result accounts): keep the file untouched, report the exact difference, compare with the source ledger, fix the cause, re-export. A rättelsepost only when the books themselves are wrong, in the period the error is discovered.
  5. Generating files: write CP437, every verification balanced and in ascending verno order per series, every account declared, #FLAGGA 0.

Never guess these

SituationWhyWhat to do
The file's actual encodingPC8 is declared even by UTF-8 exporters, and mojibake is silentRun the detection order in encoding.md on the raw bytes
An unbalanced verificationThe cause decides the fix; a balancing line hides a missing costCompare with the source voucher and re-export. Never add a balancing line
An IB/UB differenceIB must equal the previous year's UB (ÅRL 2:4 p.7)Diagnose per account against the source. Never adjust the opening or a closed period undiagnosed
Resetting #FLAGGA to 0It defeats the double-import guard (spec 7.4)Confirm the vouchers are not in the target, and document why
VAT codes after an importSIE carries no moms informationConfigure them manually in the target system
The series to import intoCollisions create duplicate verification numbersRemap to an unused series, document the mapping

Related skills

QuestionSkill
SRU codes and the files sent to Skatteverketswedish-sru-filing
BFL bookkeeping duties, verifikationer, archivingswedish-accounting-compliance
The closing entries behind UB and next year's IBswedish-year-end-closing
Moms codes and rules to configure after an importswedish-vat
Project dimensions (#DIM 6 / #OBJEKT) in the booksswedish-project-accounting
Årsredovisning and INK2 from the same balancesswedish-financial-reporting

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 Sie Import Export AI skill do?

Swedish SIE4 file format: parsing, validation, generation, troubleshooting. All record types (#VER, #TRANS, #IB, #UB, #RES, #KONTO, #RAR, #FLAGGA, #KSUMMA, #SRU, etc.), SIE types 1-4, encoding detection (CP437/UTF-8/Latin-1), mojibake diagnosis, verification balance integrity, IB/UB continuity, multi-year migration, diffing, audit trail under BFL, BAS account classes, SRU tax codes, and error patterns. Trigger on ANY SIE question: import, export, parsing, validation, encoding issues, garbled å/ä/ö, unbalanced verifications, IB/UB mismatch, #FLAGGA, SIE migration between Fortnox/Visma/BL/Spe...

Why use Swedish Sie Import Export on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/erp-mafia/accounted-skills/tree/main/.claude/skills/swedish-sie-import-export. 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 Sie Import Export?

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 Sie Import Export?

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

Is the Swedish Sie Import Export 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 👇