协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
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…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Deterministic, API-first insurance claims workflow skill.
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.
ona-health), and copy the key.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.
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.
Start with:
references/stedi-overview.mdThen read only what is needed:
references/stedi-submitting-claims.mdreferences/stedi-claim-responses.mdreferences/stedi-best-practices.mdreferences/stedi-claim-lifecycle.mdreferences/stedi-enrollment-and-payers.mdreferences/stedi-testing.mdreferences/stedi-attachments-and-mcp.mdreferences/provider-requirements.mdFollow this sequence unless user explicitly requests otherwise.
Classify task
validate_claim, submit_claim, check_claim_status, lookup_payer, retrieve_277ca, retrieve_835era, poll_transactions, resubmit_or_void.Run preflight requirements check
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.pyCorrelate all transactions
patientControlNumber.correlationId.Return structured output
Use these interfaces unless user requests a different shape.
validate_claim.py
{ "valid": true, "errors": [], "warnings": [] }
submit_claim.py
professional|institutional|dental), payload, optional test flag{
"status": "SUCCESS",
"correlationId": "...",
"patientControlNumber": "...",
"errors": []
}
check_claim_status.py
{
"claims": [
{ "statusCategoryCode": "...", "statusCode": "...", "description": "..." }
]
}
lookup_payer.py
{
"payers": [
{ "payerId": "...", "name": "...", "aliases": [], "supportedTransactions": [] }
]
}
retrieve_277ca.py / retrieve_835era.py / poll_transactions.py
STEDI_API_KEY.usageIndicator: "T" for test submissions and "P" for production.When user asks to fix/retry/cancel claims:
references/stedi-claim-lifecycle.md.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"
]
}