Skip to content
Back to skills

Compute Real Margin

ASecurity

Compute reimbursement minus acquisition cost minus DIR fees per script and flag negative-margin scripts the sticker hid. Reach for this on a margin question.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agents

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add mcorbett51090/RavenClaude --skill compute-real-margin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Compute Real Margin?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Compute Real Margin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcorbett51090-compute-real-margin/badge)](https://www.skillsdirectory.com/skills/mcorbett51090-compute-real-margin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: compute-real-margin
description: "Compute reimbursement minus acquisition cost minus DIR fees per script and flag negative-margin scripts the sticker hid. Reach for this on a margin question."
---

# Skill: Compute real margin after DIR

The sticker reimbursement overstates margin; DIR can flip a script negative (§3 #3).

## Step 1 — Pull the per-script data
Reimbursement, acquisition cost, and DIR/clawback fee per script.

## Step 2 — Compute real margin
Reimbursement − acquisition − DIR via `pharmacy_operations_calc.py margin` (§3 #3).

## Step 3 — Flag the negatives
Scripts negative after DIR and the classes driving them (§3 #3).

## Step 4 — Handle specialty distinctly
Specialty/340B/refrigerated priced separately (§3 #6).

## Output
A per-script real-margin read net of DIR with negative-margin scripts flagged. Traverse Tree 2 in the decision-trees file.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…