Insurance claims

From FDU-INS/Insurance-Skills · View interactive version

Insurance claims is an AI agent skill from the GitHub repository FDU-INS/Insurance-Skills. Use this skill for insurance-claims operations with Stedi whenever the user asks to submit claims, validate claim payloads, check claim status, retrieve/interpret 277CA or 835 responses, troubleshoot payer/provider enrollment requirements, or build deterministic claims workflows. Trigger this skill

How to use this skill

Skill file

insurance-claims

Deterministic, API-first insurance claims workflow skill.

Setup check — do this first

Before doing anything else, verify the Stedi API key is available:

python -c "from scripts.config import get_api_key; print('API key OK')"

Run this from the insurance-claims/ directory. If it prints API key OK, proceed normally.

If it raises an error (key missing or empty), stop and guide the user through setup:

  1. Get the key — direct the user to app.stedi.com/app/settings/api-keys.
  1. Save the key — open the .env file at the repo root (ona-health-skills/.env) and set:

```

STEDI_API_KEY=your-key-here

```

The .env file is gitignored, so the key will not be committed to source control.

  1. Verify — re-run the check above. Once it prints API key OK, continue with the original task.

If the user is unsure where the repo root is, run pwd from the skill directory and show them the path.

Operating principles

  1. Use Stedi API + deterministic scripts for validations, submissions, status checks, and retrieval workflows.
  2. Prefer structured JSON inputs/outputs. Avoid ad-hoc, ambiguous steps.
  3. Run a requirements preflight before claim actions (payer support, enrollment status, provider identifiers, environment safety).
  4. Fail fast with actionable remediation steps when prerequisites are not met.
  5. Keep PHI exposure minimal in logs and outputs.

Read path (progressive disclosure)

Start with:

Then read only what is needed:

Deterministic workflow

Follow this sequence unless user explicitly requests otherwise.

  1. Classify task
  1. Run preflight requirements check
  1. Use script stubs/interfaces (or real implementation when present)
  1. Correlate all transactions
  1. Return structured output

Script usage contract

Use these interfaces unless user requests a different shape.

```json

{ "valid": true, "errors": [], "warnings": [] }

```

```json

{

"status": "SUCCESS",

"correlationId": "...",

"patientControlNumber": "...",

"errors": []

}

```

```json

{

"claims": [

{ "statusCategoryCode": "...", "statusCode": "...", "description": "..." }

]

}

```

```json

{

"payers": [

{ "payerId": "...", "name": "...", "aliases": [], "supportedTransactions": [] }

]

}

```

Required guardrails

Resubmission policy

When user asks to fix/retry/cancel claims:

Output format for user responses

When performing claims tasks, return:

  1. What I did (short)
  2. Result (status + key IDs)
  3. Why (if rejected/blocked)
  4. Next actions (numbered, deterministic)

Example:

{
  "action": "submit_claim",
  "status": "blocked",
  "reason_code": "ENROLLMENT_REQUIRED",
  "context": {
    "providerNpi": "1999999984",
    "payerId": "6400",
    "transactionType": "835"
  },
  "nextActions": [
    "Submit enrollment request for 835",
    "Wait for enrollment status live",
    "Retry submission with same validated payload structure"
  ]
}

What to avoid

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.