insurance-claims
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 even if the user does not say "Stedi" explicitly but mentions 837/835/277CA/ERA, payer IDs, claim rejection codes, claim resubmission, COB, or healthcare clearinghouse automation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-12
- Stars
- ★ 82
- Forks
- 18
01 前言 Front Matter
- name
- insurance-claims
- description
- 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 even if the user does not say "Stedi" explicitly but mentions 837/835/277CA/ERA, payer IDs, claim rejection codes, claim resubmission, COB, or healthcare clearinghouse automation.
02 资源文件 9
- 参考文档references/provider-requirements.md3.8 KB
- 参考文档references/stedi-attachments-and-mcp.md2.3 KB
- 参考文档references/stedi-best-practices.md3.2 KB
- 参考文档references/stedi-claim-lifecycle.md2.9 KB
- 参考文档references/stedi-claim-responses.md3.9 KB
- 参考文档references/stedi-enrollment-and-payers.md2.5 KB
- 参考文档references/stedi-overview.md3.2 KB
- 参考文档references/stedi-submitting-claims.md5.5 KB
- 参考文档references/stedi-testing.md2.1 KB
03 SKILL.md 正文
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:
-
Get the key — direct the user to app.stedi.com/app/settings/api-keys.
- They'll need to log in (or create a free account at stedi.com).
- On the API Keys page, click Create API key, give it a name (e.g.
ona-health), and copy the key.
-
Save the key — open the
.envfile at the repo root (ona-health-skills/.env) and set:STEDI_API_KEY=your-key-hereThe
.envfile is gitignored, so the key will not be committed to source control. -
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
- Use Stedi API + deterministic scripts for validations, submissions, status checks, and retrieval workflows.
- Prefer structured JSON inputs/outputs. Avoid ad-hoc, ambiguous steps.
- Run a requirements preflight before claim actions (payer support, enrollment status, provider identifiers, environment safety).
- Fail fast with actionable remediation steps when prerequisites are not met.
- Keep PHI exposure minimal in logs and outputs.
Read path (progressive disclosure)
Start with:
references/stedi-overview.md
Then read only what is needed:
- Submission design:
references/stedi-submitting-claims.md - Response handling:
references/stedi-claim-responses.md - Practical constraints:
references/stedi-best-practices.md - Rejections/resubmissions lifecycle:
references/stedi-claim-lifecycle.md - Enrollment/payer requirements:
references/stedi-enrollment-and-payers.md - Test workflows:
references/stedi-testing.md - Attachments and MCP context:
references/stedi-attachments-and-mcp.md - Provider/payer requirement preflight:
references/provider-requirements.md
Deterministic workflow
Follow this sequence unless user explicitly requests otherwise.
-
Classify task
- One of:
validate_claim,submit_claim,check_claim_status,lookup_payer,retrieve_277ca,retrieve_835era,poll_transactions,resubmit_or_void.
- One of:
-
Run preflight requirements check
- Resolve payer ID.
- Verify transaction support.
- Verify enrollment requirement and status.
- Verify provider identifiers (NPI and any payer-specific requirements).
- Verify environment consistency (test vs production).
- If any check fails, stop and return deterministic remediation.
-
Use script stubs/interfaces (or real implementation when present)
scripts/validate_claim.pyscripts/submit_claim.pyscripts/check_claim_status.pyscripts/lookup_payer.pyscripts/retrieve_277ca.pyscripts/retrieve_835era.pyscripts/poll_transactions.py
-
Correlate all transactions
- Primary key:
patientControlNumber. - Secondary key: Stedi
correlationId. - Line-level key: service-line control number.
- Primary key:
-
Return structured output
- Include status summary, key identifiers, and next action suggestions.
Script usage contract
Use these interfaces unless user requests a different shape.
-
validate_claim.py- Input: JSON payload path
- Output:
{ "valid": true, "errors": [], "warnings": [] }
-
submit_claim.py- Input: claim type (
professional|institutional|dental), payload, optional test flag - Output:
{ "status": "SUCCESS", "correlationId": "...", "patientControlNumber": "...", "errors": [] }
- Input: claim type (
-
check_claim_status.py- Output:
{ "claims": [ { "statusCategoryCode": "...", "statusCode": "...", "description": "..." } ] }
- Output:
-
lookup_payer.py- Output:
{ "payers": [ { "payerId": "...", "name": "...", "aliases": [], "supportedTransactions": [] } ] }
- Output:
-
retrieve_277ca.py/retrieve_835era.py/poll_transactions.py- Return normalized, parser-friendly objects with deterministic fields.
Required guardrails
- Authentication: read API key from
STEDI_API_KEY. - Always include idempotency keys on submission requests.
- Validate PCN format (alphanumeric, <=17 chars) and uniqueness.
- Avoid reserved delimiter characters in JSON data where applicable.
- Use
usageIndicator: "T"for test submissions and"P"for production. - Do not claim adjudication outcome from 277CA alone.
- Treat duplicate webhooks/responses as normal; deduplicate by transaction and payment trace keys.
Resubmission policy
When user asks to fix/retry/cancel claims:
- Use lifecycle rules in
references/stedi-claim-lifecycle.md. - Determine if claim entered payer system before choosing frequency code.
- Include PCCN where required for replacement/void flows.
- Generate a new PCN on each resubmission.
Output format for user responses
When performing claims tasks, return:
What I did(short)Result(status + key IDs)Why(if rejected/blocked)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
- Do not skip preflight checks for payer/provider requirements.
- Do not use vague advice when a deterministic action is possible.
- Do not expose full PHI payloads unless user explicitly requests and context is safe.
- Do not mix test and production assumptions in one run.
04 同仓库更多 Skills
로인장 (Roinjiang)
Activates when the user needs legal advice, contract review, insurance law consultation, startup legal support, or any legal/regulatory matter. She is a top-tier in-house lawyer with absolute loyalty to the CEO, specializing in insurance law, financial consumer protection, privacy, contracts, labor law, family law, civil and criminal matters.
zocdoc-doctor-finder
Use when a user needs to find a doctor, dentist, specialist, therapist, or healthcare provider — especially when they mention insurance, in-network, availability, location, appointments, or booking. Also use for browsing provider reviews, comparing doctors by specialty, or checking if a provider takes their insurance.
zenmux-context
Answers any question about ZenMux by reading the latest official documentation. Use this skill whenever the user asks about ZenMux product features, API usage, configuration, integration, pricing, models, providers, routing, fallback, streaming, multimodal, structured output, tool calling, reasoning, prompt caching, image generation, video generation, web search, long context, observability, logs, cost tracking, usage analytics, insurance, subscription, pay-as-you-go, invoices, best practices for tools like Claude Code, Cursor, Cline, CodeX, Gemini CLI, opencode, Cherry Studio, Obsidian, Sider, Open-WebUI, Dify, Neovate, GitHub Copilot, OpenClaw, CC-Switch, Immersive Translate, Studio Chat, architecture, benchmarks, FAQ, contact, privacy, terms of service, compliance, or any other ZenMux-related topic. Also trigger when the user writes in Chinese about ZenMux: 文档, 使用指南, 快速开始, API 参考, 最佳实践, 模型路由, 供应商路由, 订阅, 按量计费, 可观测性, 帮助, 常见问题, 接入指南, 配置. Trigger on phrases like "how to use ZenMux", "ZenMux docs", "ZenMux API", "ZenMux integration", "ZenMux 怎么用", "ZenMux 接入", "ZenMux 配置". Even if the user doesn't say "ZenMux" explicitly but asks about LLM API aggregation, model routing, provider fallback in a context where ZenMux is the project being worked on, this skill should activate.
workers-comp-guide
Guide workers compensation compliance and claims management. TRIGGERS - Use when user needs help with workers-comp-guide related tasks.
weekly-kpi-report
Generate McKinsey-style board presentation PPTs from weekly auto insurance data. Automatically calculates 16+ KPIs, creates executive-level slides with actionable insights, and supports week-over-week comparisons. Use when user uploads insurance cost data (Excel/CSV) and requests board report, weekly presentation, executive briefing, or mentions keywords like 董事会汇报, 周报PPT, 经营分析演示, McKinsey-style reports.
wealth-advisory
Wealth management and financial planning for HNW and UHNW clients. Activate when the user mentions wealth management, financial planning, retirement, estate planning, tax planning, GRAT, IDGT, trust, asset allocation, withdrawal rate, Monte Carlo simulation, goals-based investing, tax-loss harvesting, Roth conversion, insurance, annuity, mortgage strategy, concentrated stock, family office, direct indexing, 529 plan, charitable giving, donor-advised fund, private foundation, or asks about personal finance strategy, inheritance, long-term financial planning, or UHNW advisory.