nigerian-fintech-compliance-architect

Implements Nigerian tax computation, FIRS e-invoicing, and identity validation for fintech products.

1|Updated Aug 25, 2026
One-click install
npx skills add https://github.com/sabiscore/swarmxq --skill nigerian-fintech-compliance-architect-sabiscore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nigerian-fintech-compliance-architect
Source: https://github.com/sabiscore/swarmxq/tree/main/.ai/skills/nigerian-fintech-compliance-architect
Command: npx skills add https://github.com/sabiscore/swarmxq --skill nigerian-fintech-compliance-architect-sabiscore

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Nigerian fintech products must comply with jurisdiction-specific tax rules (VAT, CIT, WHT), FIRS e-invoicing mandates, and identity regulations that change with each Finance Act and have no safe generic defaults. This Skill provides the exact rate tables, computation kernels, API integration patterns, and validation logic needed to build compliant features without guessing. ## Core Features & Use Cases - Tax Computation Kernel: Pure, testable TypeScript functions for VAT (7.5% standard, zero-rated, exempt), WHT across six categories, CIT tiers, and VAT return netting with input VAT credit carry-forward. - FIRS e-Invoice Integration: Effect-based API service for TaxPro-Max invoice submission with HMAC-SHA256 signing, exponential backoff retries, and 6-year audit trail handling. - Identity & Compliance Utilities: Validators for TIN, BVN, NIN, CAC numbers, and Nigerian phone numbers, plus NDPR-compliant PII masking and dual en/pcm (Lagos Pidgin) locale support. - Use Case: Building a TaxBridge feature that computes VAT on an invoice, submits it to FIRS for an IRN, validates the customer's TIN, and displays amounts in Naira with Pidgin-language UI strings. ## Quick Start Ask the AI to implement a VAT return computation with FIRS e-invoice submission for a Nigerian fintech feature using this skill.

Frequently Asked Questions about nigerian-fintech-compliance-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute VAT and WHT for Nigerian invoices in TypeScript?

Use the pure computation kernel functions: computeVAT applies 7.5% for standard-rated supplies (0% for zero-rated and exempt), and computeWHT applies category-specific rates such as 10% for rent and dividends or 5% for resident professional fees. Both return rounded amounts with no side effects.

How do I integrate with the FIRS e-invoicing API?

Submit invoices to the FIRS TaxPro-Max endpoint with an HMAC-SHA256 signed payload, Bearer token, and X-TIN header. The integration retries failed calls with exponential backoff up to three attempts and returns an IRN and QR code for accepted invoices.

What is the correct format for TIN, BVN, NIN, and CAC numbers in Nigeria?

TIN, BVN, and NIN are each exactly 11 digits. CAC registration numbers start with RC, BN, or IT followed by 5 to 7 digits, such as RC123456. Nigerian phone numbers use a +234 or 0 prefix followed by 10 digits starting with 7, 8, or 9.

Does this skill support Lagos Pidgin localization?

Yes, Lagos Pidgin (pcm) is treated as a first-class locale alongside English. Every user-facing message key must have both en and pcm translations, with a type-safe translation hook that falls back to English when a key is missing.

How should BVN and NIN data be handled under NDPR?

NDPR requires explicit consent and data minimization for PII. BVN, NIN, TIN, phone, email, and address fields must be masked in logs and API responses using a pattern that shows only the first three and last two characters.

What are the limitations of the FIRS API integration pattern?

The FIRS API is often slow, so calls need retry with exponential backoff capped at three attempts. Submissions require idempotency via the invoice reference as a deduplication key, and all records must be retained for the 6-year FIRS audit requirement.