Medicare Drug Stats logo

Medicare Drug Stats

Organization
Open-Medica
medicare-drug-stats

Access CMS Medicare data including physician services, prescriber data, hospital utilization, and drug spending analysis via Socrata API.

Add to TypingMind

Overview

PublisherOpen-Medica
Repositoryopen-medical-skills
Skill namemedicare-drug-stats
Stars
32
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Open-Medica on GitHub. Read the source before you install it.

Installation

Install the Medicare Drug Stats AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Open-Medica/open-medical-skills/tree/main/skills/medicare-drug-stats
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Open-Medica/open-medical-skills.git /tmp/open-medical-skills
mkdir -p .claude/skills
cp -r /tmp/open-medical-skills/skills/medicare-drug-stats .claude/skills/medicare-drug-stats
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Medicare Drug Stats in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Medicare Drug Stats on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Medicare Drug Stats is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Medicare Drug Spending & Utilization

Access comprehensive Centers for Medicare & Medicaid Services (CMS) data on drug spending, physician prescribing patterns, hospital utilization metrics, and provider payment analysis through the Socrata Open Data API. This skill enables AI agents to query real federal healthcare expenditure datasets, supporting health economics research, formulary management, prescribing pattern analysis, and healthcare policy evaluation.

Quick Install

bash
npx skills add Open-Medica/open-medical-skills --skill medicare-drug-stats

What It Does

  • Drug spending analysis across Medicare Part B and Part D programs including total spending, per-unit cost, per-beneficiary cost, year-over-year price changes, and manufacturer rebate impact data
  • Prescriber-level data queries to examine individual provider prescribing patterns, total claim counts, beneficiary counts, and drug-specific utilization for any Medicare-enrolled prescriber by NPI number
  • Geographic utilization analysis with spending and utilization data aggregated at state, hospital referral region (HRR), and county levels to identify regional variation in prescribing and costs
  • Hospital utilization metrics including DRG-level discharge counts, average covered charges, total Medicare payments, and length-of-stay data by facility and diagnosis
  • Trend analysis support with multi-year datasets enabling year-over-year comparisons of drug prices, utilization volumes, prescribing shifts, and spending trajectories

Clinical Use Cases

  • Formulary cost management: A health plan pharmacy director can query total Medicare spending for all drugs within a therapeutic class (e.g., PCSK9 inhibitors), compare per-unit costs, and identify the most cost-effective formulary choices supported by real utilization data.
  • Prescribing pattern benchmarking: A medical director at an ACO can pull prescribing data for all primary care providers in their network, compare opioid prescribing rates against regional and national benchmarks, and identify outlier prescribers for targeted education.
  • Drug pricing research: A health economist studying insulin affordability can track year-over-year spending per beneficiary for all insulin products in the Medicare Part D program, quantify the impact of manufacturer rebates, and model projected savings from proposed policy changes.
  • Hospital efficiency analysis: A hospital administrator can compare their facility's average Medicare payment and length of stay for a specific DRG against peer hospitals in the same region, identifying opportunities for cost reduction and care pathway improvement.

Safety & Evidence

  • Safety Classification: Safe -- This skill queries publicly available, de-identified CMS administrative datasets. It does not access individual patient records, contain protected health information, or make clinical recommendations. All data is aggregate-level and publicly released by the U.S. federal government.
  • Evidence Level: High -- CMS datasets are the authoritative source for U.S. Medicare program utilization and spending data. These datasets are used extensively in peer-reviewed health services research, congressional reports, and federal policy analysis. Data undergoes rigorous quality checks before public release.

Example Usage

Analyze drug spending trends:

Query Medicare Part D drug spending data for semaglutide (Ozempic
and Wegovy) from 2020 to 2024. Show total spending, number of
beneficiaries, per-beneficiary cost, and year-over-year percentage
change. Compare against liraglutide (Victoza) for the same period.

Examine prescribing patterns by region:

Pull Medicare prescriber data for all opioid prescriptions in
West Virginia, Kentucky, and Ohio for 2023. Aggregate by state
and show total claim counts, total beneficiaries, and per-capita
opioid prescribing rate. Compare to the national average.

Technical Details

  • Category: Administrative
  • Author: OMS Contributors (original: openpharma-org)
  • License: MIT
  • API: Socrata Open Data API (SODA) for CMS datasets
  • Key Datasets: Medicare Part D Spending by Drug, Medicare Provider Utilization and Payment, Medicare Part D Prescribers, Inpatient Prospective Payment System (IPPS)
  • Data Source: Centers for Medicare & Medicaid Services (data.cms.gov)
  • Rate Limits: 1,000 requests/hour without app token; higher limits with free Socrata app token
  • Dependencies: HTTP client (curl/fetch), JSON parser, SoQL query syntax

References


This skill is part of Open Medical Skills, a curated marketplace of medical AI skills maintained by physicians for physicians and the healthcare industry.

Frequently asked questions

What does the Medicare Drug Stats AI skill do?

Access CMS Medicare data including physician services, prescriber data, hospital utilization, and drug spending analysis via Socrata API.

Why use Medicare Drug Stats on TypingMind?

Because you install it once and use it with any model. Medicare Drug Stats is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Medicare Drug Stats in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Open-Medica/open-medical-skills/tree/main/skills/medicare-drug-stats. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Medicare Drug Stats?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Medicare Drug Stats?

As many as you like. As long as a model supports skills, you can use Medicare Drug Stats with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Medicare Drug Stats AI skill free?

Yes. It is published on GitHub by Open-Medica under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇