ucsb-nlp-chang/federatedskill/mailer-policy-analysis
Claude Code and agent skill by ucsb-nlp-chang/federatedskill
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Analyzes medication mailer policy economics (45-day vs 90-day fill cycles) using compound cost, mailer cost, base payment, and service fee CSVs. Use when tasked with computing annual margins, mailer savings, and making a cycle conversion decision based on a financial threshold.
Install
npx vskill@latest install ucsb-nlp-chang/federatedskill/mailer-policy-analysisSKILL.md
Mailer Policy Analysis
Overview
Compute annual financial margins for 45-day and 90-day medication fill cycles across 150 patients per medication. Output a detailed JSON breakdown and a concise Markdown summary.
Execution
- Place
compound_cost.csv,mailer_cost.csv,base_payment.csv, andservice_fee.csvin the working directory. - Run
python3 scripts/compute_mailer_policy.py [base_dir] [threshold](defaults to/rootand$8500). - Verify outputs match the schema and line-count constraints below.
Key Formulas & Constants
- Patients per medication: 150
- 45-day cycle: 45 doses/fill, 8 fills/year
- 90-day cycle: 90 doses/fill, 4 fills/year
- Annual Drug Cost:
(price_per_1000 / 1000) * patients * fills * doses_per_fill(identical for both cycles) - Annual Mailer Cost:
mailer_cost * patients * fills - Annual Payment:
(base_payment + service_fee) * fills - Annual Margin:
payment - drug_cost - mailer_cost - Decision Rule: If
abs(margin_90 - margin_45) < threshold, recommendswitch_to_90_day, elsekeep_45_day.
Output Requirements
- JSON (`mailer_policy_analysis.json`): Sorted alphabetically by medication. All currency values rounded to 2 decimals. Must include
assumptions,medicationsarray, andtotals. - Markdown (`mailer_policy_summary.md`): Exactly 4-8 non-empty lines. Must state total margins for both cycles, absolute difference, threshold comparison, and final decision.
Anti-Patterns
- Do not manually calculate values in the prompt; use the provided script to avoid floating-point or rounding errors.
- Do not assume annual drug costs differ between cycles; total annual doses are identical (360 per patient).
- Ensure the summary strictly adheres to the 4-8 non-empty line constraint.
- Use
python3explicitly;pythonmay not be available in the environment.
Troubleshooting
- If the script fails due to missing CSV columns, verify column names exactly match:
medication,price_per_1000_doses_usd,mailer_format,mailer_cost_usd,base_payment_per_fill_150_patients_usd,service_fee_per_fill_150_patients_usd. - If totals mismatch, verify that
mailer_cost.csvmapsmailer_formattomailer_cost_usdcorrectly before running.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ucsb-nlp-chang/federatedskill/mailer-policy-analysis)