Electronic Fiscal Taxing logo

Electronic Fiscal Taxing

Community
peterbamuhigire
electronic-fiscal-taxing

Use when implementing or reviewing electronic fiscal taxation integrations in web, ERP, POS, or mobile-backed systems; covers jurisdiction adapters, tenant-scoped tax identities, API security, queues, offline operation, fiscal evidence, and Uganda EFRIS as the detailed reference.

Overview

Publisherpeterbamuhigire
Repositorychwezi-dev-engine
Skill nameelectronic-fiscal-taxing
Stars
29
Forks
6
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 peterbamuhigire on GitHub. Read the source before you install it.

Installation

Install the Electronic Fiscal Taxing 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/peterbamuhigire/chwezi-dev-engine/tree/main/skills/finance-accounting/electronic-fiscal-taxing
  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/peterbamuhigire/chwezi-dev-engine.git /tmp/chwezi-dev-engine
mkdir -p .claude/skills
cp -r /tmp/chwezi-dev-engine/skills/finance-accounting/electronic-fiscal-taxing .claude/skills/electronic-fiscal-taxing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Electronic Fiscal Taxing 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 Electronic Fiscal Taxing 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 Electronic Fiscal Taxing 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.

Electronic Fiscal Taxing

This engineering skill builds the software boundary between a commercial system and an electronic fiscal authority. It supports one-client deployments and multi-tenant systems without mixing tax identities, credentials, devices, catalogues, queues, or evidence. It is general by design; Uganda EFRIS is the detailed reference implementation.

Prerequisites

Load system-architecture-design, api-design-first, database-design-engineering, distributed-systems-patterns, reliability-engineering, observability-monitoring, and vibe-security-skill as applicable. For accounting, tax, or statutory output, also load the external chwezi-accounting-doctrine electronic fiscal taxing skill and the finance quality gate.

Use When

  • An ERP, POS, billing, e-commerce, or mobile-backed system must fiscalise invoices, receipts, credit notes, debit notes, or cancellations.
  • A provider requires signed/encrypted requests, device registration, rotating keys, acknowledgements, or authority-specific dictionaries.
  • A system must support multiple tenants, each with a distinct TIN/tax ID, fiscal profile, branch/device mapping, and credentials.
  • A remote fiscal service needs an outbox, idempotent retries, dead-letter, replay, reconciliation, or controlled offline mode.
  • A mobile client needs fiscal status and receipt artefacts without direct access to authority credentials.

Do Not Use When

Do not use for tax-law interpretation without the accounting doctrine and current source register, for generic payment integrations, or for visual receipt/UI styling without the design engine. Do not call a third-party fiscal API directly from an untrusted browser or mobile client.

Inputs

ArtifactRequiredProduced by
Context map and critical flowsyessystem architecture
Source system schema and writersyesdatabase/POS audit
Jurisdiction technical pack and source registeryesauthority/onboarding owner
Tenant and identity modelyes for SaaSSaaS/security architecture
API consumers and latency/failure budgetyesproduct/operations
Accounting/tax mappingyes where financialaccounting doctrine/controller

If the technical pack or credentials are absent, build contracts and test fixtures only; block production activation and mark the gap explicitly.

Outputs

  • jurisdiction-neutral fiscal port and adapter contract;
  • tenant/client fiscal-profile and isolation map;
  • versioned API/OpenAPI and error/idempotency contract;
  • schema and expand-contract migration plan;
  • canonical fiscal-document builder and validation rules;
  • outbox/queue/retry/dead-letter/replay/reconciliation design;
  • security, secrets, audit, observability, runbook, rollback, and UAT pack;
  • client/mobile read model that exposes status and authority artefacts safely.

Acceptance requires executable or recorded contract evidence, negative tenant tests, duplicate/replay tests, redacted evidence, rollback instructions, and an explicit release state.

Non-negotiables

  1. The authenticated session or service context determines tenant scope; never accept tenant_id, TIN, or fiscal profile from a request body/query as the authority for routing.
  2. A single-client deployment may use an implicit profile, but the same profile interface must exist so it can be isolated later.
  3. Every fiscal side effect has a stable tenant-scoped idempotency key. A timeout is an unknown result; reconcile before retrying.
  4. Store raw authority responses only under explicit retention and redaction rules. Never log private keys, tokens, passwords, or symmetric keys.
  5. Provider FDN/verification/QR artefacts are persisted atomically with the fiscal result and are never fabricated by a fake client in production.
  6. Online, authority-approved offline, manual exception, rejected, and disabled states are distinct. Offline is bounded by current authority rules.
  7. A queue is at-least-once unless the provider proves otherwise. Workers must be concurrency-safe, bounded, observable, replayable, and quarantine poison messages.
  8. A mobile app consumes ERP fiscal projections; it does not contain URA credentials/private keys or become a second fiscalisation writer.

Decision Rules

SituationChooseFailure avoided
One legal entity, one deploymentOne profile behind the common interfaceHard-coded identity that cannot evolve
Shared SaaS schemaTenant-scoped rows, composite uniqueness/indexes, trusted contextCross-tenant submission
Strong tenant boundary requiredSchema/database isolation with profile resolverCredential/data contamination
Immediate fiscal response requiredSynchronous adapter within bounded timeout, then durable unknown stateFalse success or duplicate retry
Bursty/slow providerTransactional outbox and workerLost side effects and blocked checkout
Offline permitted by authorityIsolated local/enabler store with deadline and upload auditUnlimited unfiscalised backlog
Technical contract not currentContract tests and blocked adapter activationProduction protocol drift

Core Workflow

  1. Inventory writers and ownership. Find every invoice, receipt, payment, stock, correction, print, queue, and mobile sync path; select one canonical fiscalisation hook.
  2. Define the domain port. Use provider-neutral commands/results for fiscalise, query, correct, cancel, sync catalogue, and reconcile. Preserve provider codes and payload hashes alongside normalized states.
  3. Prove identity isolation. Resolve tenant/profile from trusted auth, validate branch/device/product ownership, and test wrong-tenant requests as indistinguishable not-found outcomes.
  4. Design contract first. Specify request/response schemas, auth, version, time, idempotency, rate limits, errors, telemetry, and consumer projections.
  5. Build durable state. Add additive schema changes, unique keys, immutable evidence, outbox claims, retry policy, dead-letter, replay authorization, and retention.
  6. Implement adapter. Keep EFRIS cryptography, envelope, dictionary IDs, endpoint, and response parsing inside the Uganda adapter; do not leak them through domain or mobile APIs.
  7. Integrate commercial paths. Route POS, manual, order, and agent sales through the canonical service; preserve accounting/stock transaction truth.
  8. Verify and release. Run unit, contract, integration, failure, isolation, offline, load, security, migration, UAT, and rollback checks. Activate only after current source-register and authority onboarding gates pass.
  9. Kaizen. Record the baseline, smallest experiment, evidence, standardised learning, owner, rollback, and next re-measurement in the engine.

Anti-Patterns

  • Direct URA calls from Android or browser code. Fix: ERP gateway and safe read-only projection.
  • Client-supplied tenant/TIN routing. Fix: derive profile from verified context.
  • One global AES/key cache or offline store. Fix: tenant/profile-scoped key and device lifecycle with explicit isolation tests.
  • New idempotency key after timeout. Fix: reconcile and reuse the original key.
  • FakeEfrisClient in production wiring. Fix: fail closed unless a configured, authorized adapter is selected.
  • Storing only normalized status. Fix: retain redacted provider code/message, hashes, version, and attempt evidence.
  • Retrying validation or authorization failures. Fix: classify deterministic, transient, unknown, and manual-review outcomes.
  • Adding tenant_id to a table without backfill/index/rollback evidence. Fix: use expand-contract and prove zero unowned rows before enforcement.

Read Next

  • chwezi-accounting-doctrine electronic fiscal taxing for tax and ledger rules
  • api-design-first, database-design-engineering, distributed-systems-patterns, and reliability-engineering
  • multi-tenant-saas-architecture, saas-erp-system-design, and pos-sales-operations-engineering
  • android-development (including its persistence and TDD guidance) for downstream mobile projections

References

Evidence Produced

CategoryArtifactFormatExample
CorrectnessFiscal document reconciliationMarkdown/CSVsource transaction, fiscal request, authority response, retry, cancellation, ledger link, and exception

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 Electronic Fiscal Taxing AI skill do?

Use when implementing or reviewing electronic fiscal taxation integrations in web, ERP, POS, or mobile-backed systems; covers jurisdiction adapters, tenant-scoped tax identities, API security, queues, offline operation, fiscal evidence, and Uganda EFRIS as the detailed reference.

Why use Electronic Fiscal Taxing on TypingMind?

Because you install it once and use it with any model. Electronic Fiscal Taxing 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 Electronic Fiscal Taxing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/finance-accounting/electronic-fiscal-taxing. 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 Electronic Fiscal Taxing?

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 Electronic Fiscal Taxing?

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

Is the Electronic Fiscal Taxing AI skill free?

Yes. It is published on GitHub by peterbamuhigire 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 👇