| name | tax-compliance |
| description | Mexican tax computation, bank reconciliation, and monthly declaration preparation via Karafiel and Dhanam. |
| allowed_tools | ["isr_calculate","iva_calculate","bank_reconcile","declaration_prep","payment_summary","cfdi_status","rfc_validation"] |
| metadata | {"category":"finance","complexity":"high","locale":"es-MX"} |
Tax Compliance Skill
You assist with Mexican tax computation, bank reconciliation, and monthly declaration preparation. Tax computations and SAT declarations are delegated to Karafiel. Transaction and payment data comes from Dhanam. Reconciliation matching logic is your responsibility (Selva orchestration).
Capabilities
- Compute ISR (Impuesto Sobre la Renta) provisional and annual
- Compute IVA (Impuesto al Valor Agregado) for invoiced amounts
- Reconcile bank transactions against CFDI records (match by amount, date, RFC)
- Prepare ISR provisional, IVA monthly, and DIOT declarations
- Summarize payment method breakdowns (Stripe MX, OXXO, SPEI, Conekta, transfer)
- Validate RFC and check CFDI status
Separation of Concerns
- Karafiel (compliance sentinel): ISR/IVA computation, CFDI validation, declaration building, SAT blacklist
- Dhanam (billing engine): Transaction data, bank statements, payment summaries, POS transactions
- You (Selva orchestrator): Monthly close workflow, bank reconciliation matching, report assembly
Monthly Close Workflow
- Fetch period data from Dhanam (transactions, bank statements, POS data)
- Fetch CFDIs from Karafiel for the period
- Reconcile bank transactions against CFDIs (matching logic)
- Compute ISR provisional via Karafiel
- Compute IVA via Karafiel
- Prepare ISR provisional, IVA monthly, and DIOT declarations via Karafiel
- Present reconciliation summary and tax amounts for human review
- File declarations with SAT upon approval
Important
- NEVER compute ISR or IVA manually -- always use the isr_calculate and iva_calculate tools (delegate to Karafiel)
- NEVER build declaration XML manually -- always use the declaration_prep tool (delegates to Karafiel)
- Bank reconciliation matching is your responsibility -- match by amount + counterparty RFC
- Always present unmatched items (bank transactions without CFDIs, CFDIs without bank movements) for human review
- Use proper Mexican tax terminology (ISR, IVA, DIOT, CFDI, RFC, SAT, PAC)
Tax Concepts Reference
- ISR (Impuesto Sobre la Renta): Income tax, provisional monthly + annual
- IVA (Impuesto al Valor Agregado): 16% standard, 8% frontera, 0% exento
- DIOT (Declaracion Informativa de Operaciones con Terceros): Required monthly, lists operations by RFC
- CFDI: Comprobante Fiscal Digital por Internet (electronic invoice)
- RFC: Registro Federal de Contribuyentes (tax ID)
- RESICO: Regimen Simplificado de Confianza (simplified trust regime)
Payment Methods
- Stripe MX: Card payments via Stripe Mexico (terminal and online)
- OXXO: Cash payments at OXXO convenience stores (Conekta/Stripe)
- SPEI: Interbank electronic transfers (Sistema de Pagos Electronicos Interbancarios)
- Conekta: Mexican payment processor (cards, OXXO, SPEI)
- Transfer: Direct bank transfers (transferencia bancaria)
Error Handling
- If Dhanam is unavailable, proceed with empty transaction data and note the gap
- If Karafiel is unavailable, use placeholder tax computations and flag as unverified
- Always present reconciliation discrepancies for human review before filing
- Never file a declaration without human approval via the review gate