credential-verification-workflow

Validates healthcare provider credentials including NPI, licenses, certificates, and degrees against business rules.

Updated May 11, 2026
One-click install
npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill credential-verification-workflow-thachrocky12345
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: credential-verification-workflow
Source: https://github.com/thachrocky12345/local-agent-train-workstation/tree/main/.claude/skills/credential-verification-workflow
Command: npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill credential-verification-workflow-thachrocky12345

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Healthcare platforms must ensure provider credentials (NPI numbers, professional licenses, certificates, degrees) are valid, unexpired, and internally consistent before enabling providers for appointments. Manual auditing of these records across a Django database is slow and error-prone. ## Core Features & Use Cases - NPI Validation: Runs Luhn checksum validation with the 80840 prefix, format checks, and expiration date checks on provider NPI numbers. - License & Certificate Auditing: Validates state-specific license number formats, detects expired credentials, and checks CertificateLevel-to-IssuingOrganization FK consistency. - Score & Pre-Licensed Consistency: Verifies CareProviderScore ranges, flags providers missing scores, and enforces supervisor requirements for pre-licensed providers. - Use Case: Before enabling a provider for appointments, run the workflow with a provider ID to confirm their license is unexpired, their NPI passes Luhn validation, and their is_licensed flag matches their credential records. ## Quick Start Ask the AI to validate all credentials for a specific provider by running the credential verification workflow with the provider's UUID and a markdown report format.

Frequently Asked Questions about credential-verification-workflow

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

FAQPage Schema
How do I validate an NPI number in Python?

Validate an NPI by checking it is 10 digits starting with 1 or 2, then run the Luhn algorithm with the 80840 prefix prepended. Strip whitespace and formatting first, since the field may contain dashes or spaces.

How to check for expired professional licenses in Django?

Query ProfessionalLicense records and compare professional_license_valid_until against datetime.date.today().year. The year fields are IntegerField, not DateField, so compare against the integer year rather than a date object.

Does this workflow modify provider data during validation?

No, the validation is read-only by default. It only writes to the database when the --fix-scores flag is passed to recalculate CareProviderScore values, avoiding unintended side effects from CareProvider.save().

Why does NPI validation fail on a correctly formatted number?

Common causes are hidden formatting characters like spaces or dashes, a wrong length after stripping, or a failing Luhn check digit. Individual providers must use Type 1 NPIs starting with 1, not organizational Type 2 NPIs.

What are the limitations of year-based credential expiration checks?

Year-only IntegerFields cannot detect credentials expiring mid-year, so a license valid_until the current year passes even if it expired last month. Only PreLicensed.anticipated_completion_date supports exact date comparison.