fisioflow-cpf-cnpj

Validate and format Brazilian CPF, CNPJ, CEP, RG, and CRM documents.

Updated Sep 2, 2025
One-click install
npx skills add https://github.com/rafaelminatto1/fisioflow-51658291 --skill fisioflow-cpf-cnpj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fisioflow-cpf-cnpj
Source: https://github.com/rafaelminatto1/fisioflow-51658291/tree/main/.agents/skills/fisioflow-cpf-cnpj
Command: npx skills add https://github.com/rafaelminatto1/fisioflow-51658291 --skill fisioflow-cpf-cnpj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a centralized, standards-based set of Brazilian document validators (CPF, CNPJ, CEP, phone, RG, and CRM) to ensure consistent validation, formatting, and data cleaning across forms, databases, and workflows in FisioFlow.

Core Features & Use Cases

  • CPF validation/format/clean functions; CPF string normalization and display formatting for patient records.
  • CNPJ validation/format/clean functions for clinics and suppliers.
  • CEP validation and auto-fill hints for address fields (structure-level validation and normalization).
  • Phone validation/formatting for Brazilian landlines and mobiles.
  • RG and CRM validation and formatting with basic structural checks.
  • Use Case: enforce patient data integrity during registration and ensure correct formatting in invoices and medical reports.

Quick Start

Validate and format a Brazilian document string (CPF/CNPJ/CEP/RG/CRM) using the utilities defined in this skill.

Frequently Asked Questions about fisioflow-cpf-cnpj

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

FAQPage Schema
How do I validate and format CPF numbers for patient registrations?

CNPJ validation for clinic and supplier records works by verifying structural check digits, cleaning the input to a digits-only format for database consistency, and applying standard CNPJ display formatting for invoices and medical reports.

Can I use this to validate Brazilian phone numbers and CEP for address fields?

CRM and RG validation works by performing basic structural checks on the input strings, formatting them for consistent display, and cleaning the data to ensure standardized provider record integrity across medical workflows.

What is the best way to clean Brazilian document data across multiple modules?

You need raw Brazilian document strings, such as CPF, CNPJ, CEP, RG, or CRM numbers, to start formatting. The validators process these text inputs directly, applying structural checks and normalizing them for consistent storage and display.

Why does my CNPJ validation fail on formatted strings with punctuation?

Handling validation errors across patient and provider records involves catching structural validation failures during data entry, preventing inconsistent ID formats from saving, and ensuring correct formatting is enforced before generating invoices or medical reports.