Prior auth review skill

From vitaclaw/vitaclaw · View interactive version

Prior auth review skill is an AI agent skill from the GitHub repository vitaclaw/vitaclaw. Automate payer review of prior authorization (PA) requests. This skill should be used when users say "Review this PA request", "Process prior authorization for [procedure]", "Assess medical necessity", "Generate PA decision", or when processing clinical documentation for coverage policy validation a

How to use this skill

Skill file

Prior Authorization Review Skill

Overview

This skill automates the payer review process for prior authorization (PA) requests. It processes clinical documentation, validates medical necessity against coverage policies, and generates authorization decisions with supporting rationale.

Target Users: Health insurance payer organizations (Medicare Advantage, Commercial, Medicaid MCOs)

Value Proposition: Reduce PA review time from 30-60 minutes to under 5 minutes. Enable auto-approval for 40-60% of clear-cut cases.


Architecture

This skill uses a simplified 2-subskill workflow:

Subskill 1: Intake & Assessment
  ↓ (validates data, extracts clinical info, assesses medical necessity)
Subskill 2: Decision & Notification
  ↓ (generates auth decision with provider notification)

ONLY REVIEW THE SUBSKILL FILES WHEN THEY ARE NEEDED, DONT PRE-READ THE WHOLE SKILL ON BOOTUP

Output: Authorization Decision Package

Waypoint Files

waypoints/
├── assessment.json          # Subskill 1 output (consolidated)
└── decision.json           # Subskill 2 output (final decision)

Prerequisites

Required MCP Servers

This skill requires 3 healthcare MCP connectors:

  1. CMS Coverage MCP Connector - Medicare coverage policies (NCDs, LCDs)
  2. ICD-10 MCP Connector - Diagnosis code validation and lookup
  3. NPI MCP Connector - Healthcare provider verification via NPPES

For detailed tool usage, parameters, and CMS web resources, see references/01-intake-assessment.md.

MCP Invocation Notifications

During execution, the skill displays notifications before and after each MCP connector call:

File Structure

See README.md File Organization section for complete directory structure and file descriptions.


Decision Policy

This skill enforces a decision policy rubric that determines the outcome when validation checks fail. The policy balances regulatory compliance, patient safety, and operational efficiency.

See references/rubric.md for:

Quick Summary:

To customize decision logic for your organization, edit references/rubric.md.


How to Use

Process PA Request

Simply invoke the skill:

Use the prior-auth-review-skill

The skill will:

  1. Check for incomplete requests (auto-resume if found)
  2. Collect PA request details
  3. Execute Subskill 1: Intake & Assessment
  4. Execute Subskill 2: Decision & Notification
  5. Output authorization decision package

Execution Flow

When this skill is invoked:

Startup: Check MCP Configuration

Before proceeding, verify required MCP connectors are available.

Check for the following MCP connectors:

  1. CMS Coverage MCP - Required for coverage policy lookup
  2. ICD-10 MCP - Required for diagnosis code validation
  3. NPI MCP - Required for provider verification

If any MCP connectors are not configured:

Display error and exit:

"Missing required MCP connectors: [list missing connectors]. This skill requires all three healthcare MCP connectors to function. Please configure the missing connectors and try again. See README Prerequisites for setup instructions."

Exit skill.

If all MCP connectors are available: Proceed silently to next step.


Startup: Request Input Files

Prompt the user to provide input files or use sample data.

Display the following prompt:

Prior Authorization Review requires the following input files:

REQUIRED FILES:
1. Prior Authorization Request Form (PDF) - Contains member info, requested service, provider details
2. Clinical Notes / H&P (PDF) - History and physical examination documentation
3. Diagnostic Imaging Reports (PDF) - CT, MRI, X-ray, or other imaging results
4. Laboratory Results (PDF) - Relevant lab work supporting medical necessity
5. Additional Supporting Documentation (PDF, optional) - PFTs, specialist consults, etc.

OPTIONS:
(A) Upload your own files - Provide paths to each required document
(B) Use sample files - Load pre-configured sample case (CT-guided lung biopsy)

Enter your choice (A/B): ___

If user selects (A) - Upload own files:

If user selects (B) - Use sample files:


Startup: Check for Existing Request

Check if waypoints/assessment.json exists:

```

Found incomplete PA request: [Request ID]

Resume this request? (Y/N): ___

```

Subskill 1: Intake & Assessment

Execute: Read and follow references/01-intake-assessment.md

What it does:

  1. Collect PA request information
  2. Validate provider credentials and codes (parallel MCP calls)
  3. Search coverage policies
  4. Extract clinical data
  5. Assess medical necessity against policy criteria
  6. Generate recommendation (APPROVE/DENY/PEND)

Output: waypoints/assessment.json (consolidated)

Duration: 3-4 minutes

Ask user:

Ready to proceed to Subskill 2? (Y/N): ___

Subskill 2: Decision & Notification

Execute: Read and follow references/02-decision-notification.md

What it does:

  1. Load assessment from Subskill 1
  2. Confirm or override recommendation
  3. Generate decision-specific content:
  1. Create provider notification letter
  2. Document audit trail

Output:

Duration: 1-2 minutes

Final Summary

Display a concise completion message with:

Offer user options to:

  1. View decision letter
  2. Start new PA review
  3. Exit

Error Handling

Missing MCP Servers:

If required MCP connectors not available, display error listing missing connectors and Removefully.

Missing Subskill Prerequisites:

If Subskill 2 invoked without waypoints/assessment.json, notify user to complete Subskill 1 first.

File Write Errors:

If unable to write waypoint files, display error with file path, check permissions/disk space, and offer retry.

Data Quality Issues:

If clinical data extraction confidence <60%, warn user with confidence score and low-confidence areas. Offer options to: continue, request additional documentation, or abort.

For all errors, provide clear, actionable messages and user options for resolution.


Quality Checks

Before completing workflow, verify:


Implementation Requirements

  1. Always read subskill files: Don't execute from memory. Read the actual subskill markdown file and follow instructions.
  1. Auto-detect resume: Check for existing waypoints/assessment.json on startup. If found and status is not "assessment_complete", offer to resume.
  1. Parallel MCP execution: In Subskill 1, execute NPI, ICD-10, and Coverage MCP calls in parallel for optimal performance.
  1. Preserve user data: Never overwrite waypoint files without asking confirmation or backing up.
  1. Clear progress indicators: Show users what's happening during operations (MCP queries, data analysis).
  1. Graceful degradation: If optional data missing, continue with available data and note limitations.
  1. Validate outputs: Check that waypoint files have expected structure before proceeding.

MCP Tool Call Transparency (REQUIRED)

CRITICAL: Every time you invoke an MCP tool or WebFetch for code validation:

BEFORE the call:

AFTER receiving results:

If there's an issue:

Benefits:

Requirements:

Common Mistakes to Avoid


Subskill Descriptions

Subskill 1: Intake & Assessment (3-4 minutes)

Subskill 2: Decision & Notification (1-2 minutes)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.