nigerian-fintech-compliance-architect

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

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

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, identity verification standards (BVN/NIN/TIN/CAC), and NDPR data protection — rules 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 service for TaxPro-Max invoice submission with HMAC-SHA256 signing, exponential backoff retries, and 6-year audit trail support. - Identity & Locale Tooling: Validators for TIN, BVN, NIN, CAC numbers, and Nigerian phone numbers, plus Naira currency formatting and Lagos Pidgin (pcm) as a first-class i18n locale. - Use Case: Building a TaxBridge feature that computes VAT on an invoice, validates the customer's TIN and CAC number, submits the e-invoice to FIRS for an IRN, and displays the result in English or Lagos Pidgin. ## 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 for Nigerian invoices?

Use the computeVAT kernel function with a gross amount and a rate code of standard (7.5%), zero-rated (0%), or exempt. The function returns the VAT amount, net amount, and gross total rounded to two decimals, keeping all rate logic out of inline arithmetic.

How to integrate FIRS e-invoicing API in TypeScript?

Submit invoices through the FIRSApiService, which signs the payload with HMAC-SHA256, posts to the FIRS submit endpoint with your API key and TIN headers, and retries with exponential backoff. Store the returned IRN and QR code for the 6-year audit trail requirement.

What is the format for BVN, NIN, TIN, and CAC number validation?

BVN, NIN, and TIN are each exactly 11 digits validated with simple regex checks. CAC numbers start with RC, BN, or IT followed by 5 to 7 digits, and Nigerian phone numbers use the +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 co-equal locale alongside English. The messages object pairs every user-facing string in both locales, and the useTranslation hook falls back to English when a Pidgin key is missing.

How should PII be handled under NDPR compliance?

NDPR requires explicit consent and data minimization for PII fields like BVN, NIN, TIN, phone, and email. The maskPII utility masks these fields before logging, and structured loggers must never emit raw PII values.

What are the limitations of the WHT computation?

The WHT kernel covers six fixed categories such as rent at 10% and professional fees at 5% or 10%, but rates change with each Finance Act. Always verify current rates against the latest legislation rather than hardcoding new categories inline.