Agent skill

Medication Reconciliation

by aipoch in aipoch/medical-research-skills

Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.

MITAuto-check passedBusiness, Finance & HR

Install Medication Reconciliation

skills CLI
$ npx skills add aipoch/medical-research-skills --skill medication-reconciliation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills medication-reconciliation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/medication-reconciliation .claude/skills/medication-reconciliation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
medication-reconciliation
GitHub stars
2k
Token cost
~1.4k tokens
SKILL.md length
624 words
Files
5 (incl. scripts)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.

  • Works in 8 steps: PHI Check: Before processing, prompt the… → Confirm patient ID, pre-admission… → Validate that both input files are… → …
  • Tasks that involve Accounting and bookkeeping
  • SKILL.md covers Quick Check, When to Use, Workflow and Usage, plus 7 more sections
  • Runs Python scripts from its folder; calls python

What it does

Medication Reconciliation is an agent skill from aipoch/medical-research-skills. Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts (for example `POLISH_CHANGELOG.md`, `medication-reconciliation_audit_result_v2.json` and `scripts/main.py`).

It sits in Business, Finance & HR, covering Accounting and bookkeeping. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Tasks that involve Accounting and bookkeeping

Example prompts

  • “/medication-reconciliation”

Requirements

  • Python 3

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. PHI Check: Before processing, prompt the user to confirm data has been de-identified: "Please confirm that the input files have been…
  2. Confirm patient ID, pre-admission medication list, and inpatient orders are available.
  3. Validate that both input files are well-formed and patient IDs match.
  4. Run the reconciliation script or apply the manual comparison path.
  5. Return a structured report separating continued, discontinued, new, and duplicate medications.
  6. Dose-change detection: When a drug appears in both lists with different dose strings, flag it as dose_changed with a warning: "Dose change…
  7. Flag warnings for critical drug classes (anticoagulants, hypoglycemics, antihypertensives, antiepileptics).
  8. If inputs are incomplete, state exactly which fields are missing and request only the minimum additional information.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Medication Reconciliation loads about 1.4k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 624 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 624 words, ~1,426 tokens.

Download SKILL.mdSave it as .claude/skills/medication-reconciliation/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
medication-reconciliation
description
Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

Medication Reconciliation

Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.

Medical Disclaimer: This tool is for reference only. Final medication decisions must be confirmed by qualified medical staff. All patient data must comply with applicable data protection regulations (e.g., HIPAA).

Quick Check

bash
python -m py_compile scripts/main.py
python scripts/main.py --help

When to Use

  • Use this skill when comparing pre-admission medication lists against inpatient orders to detect omissions or duplicates.
  • Use this skill when generating structured reconciliation reports for clinical handover or pharmacy review.
  • Do not use this skill as a substitute for pharmacist or physician review of medication orders.

Workflow

  1. PHI Check: Before processing, prompt the user to confirm data has been de-identified: "Please confirm that the input files have been de-identified or that you have authorization to process this patient data under applicable regulations (e.g., HIPAA) before proceeding."
  2. Confirm patient ID, pre-admission medication list, and inpatient orders are available.
  3. Validate that both input files are well-formed and patient IDs match.
  4. Run the reconciliation script or apply the manual comparison path.
  5. Return a structured report separating continued, discontinued, new, and duplicate medications.
  6. Dose-change detection: When a drug appears in both lists with different dose strings, flag it as dose_changed with a warning: "Dose change detected — verify with prescribing physician before proceeding."
  7. Flag warnings for critical drug classes (anticoagulants, hypoglycemics, antihypertensives, antiepileptics).
  8. If inputs are incomplete, state exactly which fields are missing and request only the minimum additional information.

Usage

text
# Basic usage
python scripts/main.py --pre-admission pre_meds.json --inpatient orders.json --output report.json

# Use example data
python scripts/main.py --example

# Verbose output
python scripts/main.py --pre-admission pre_meds.json --inpatient orders.json --verbose

Parameters

ParameterTypeRequiredDescription
--pre-admissionfile pathYesJSON file of pre-admission medications
--inpatientfile pathYesJSON file of inpatient orders
--outputfile pathNoOutput report path (default: stdout)
--exampleflagNoRun with built-in example data
--verboseflagNoInclude detailed matching rationale

Output Format

The reconciliation report separates results into:

  • continued — medications present in both lists (same drug, same dose)
  • dose_changed — same drug present in both lists but with different dose strings (⚠️ requires physician verification)
  • discontinued — pre-admission medications absent from inpatient orders
  • new_medications — inpatient orders not in pre-admission list
  • duplicates — same drug appearing multiple times
  • warnings — critical drug class alerts

Dose-change example:

json
{
  "dose_changed": [
    {
      "drug": "Metformin",
      "pre_admission_dose": "500mg",
      "inpatient_dose": "1000mg",
      "warning": "Dose change detected — verify with prescribing physician before proceeding."
    }
  ]
}
Show full SKILL.md (265 more words)Show less

Scope Boundaries

  • This skill compares structured medication data; it does not interpret clinical appropriateness.
  • This skill does not access live pharmacy systems or EHR databases.
  • This skill does not replace pharmacist verification or physician sign-off.

Stress-Case Rules

For complex multi-constraint requests, always include these explicit blocks:

  1. Assumptions
  2. Inputs Used
  3. Reconciliation Result
  4. Warnings and Critical Flags
  5. Risks and Manual Checks

Error Handling

  • If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
  • If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
  • If scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
  • Do not fabricate medication data, citations, or execution outcomes.

Input Validation

This skill accepts: pre-admission medication lists and inpatient order files (JSON format) for a single patient encounter.

If the request does not involve medication list comparison — for example, asking to prescribe medications, interpret drug interactions clinically, or access live EHR systems — do not proceed with the workflow. Instead respond:

"medication-reconciliation is designed to compare pre-admission and inpatient medication lists to flag omissions and duplicates. Your request appears to be outside this scope. Please provide structured medication input files, or use a more appropriate clinical tool."

Response Template

Use the following fixed structure for non-trivial requests:

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts) in scientific-skills/Other/medication-reconciliation of aipoch/medical-research-skills.

  • SKILL.md
  • POLISH_CHANGELOG.md
  • medication-reconciliation_audit_result_v2.json
  • requirements.txt
  • scripts/main.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Medication Reconciliation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Medication Reconciliation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Medication Reconciliation this skillaipoch/medical-research-skills2k—~1.4kAutomated safety check: PassMIT
Sync Upstreamnyaruka/phonenumbers1.6k—~2.8kAutomated safety check: PassMIT
Radiology Tablehuang-sir1/radiology-skills1.9k—~1.3kAutomated safety check: PassCustom licence
ERPClaw ERP Controlleravansaber/erpclaw114—~18kAutomated safety check: PassGPL-3.0
Odoo Agency Fleet Reviewerpipe-org/mcp-odoo421—~699Automated safety check: PassMIT
Beancount Closebex-co/beancount-io296—~1.4kAutomated safety check: PassMIT

Similar skills

  • Sync Upstream

    nyaruka/phonenumbers

    Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic.

    1.6k GitHub stars~2.8k tokensUpdated 7 days ago
    Business, Finance & HRAuto-check passed
  • Radiology Table

    huang-sir1/radiology-skills

    Create/audit editable publication tables with source reconciliation; not figures or statistical inference.

    1.9k GitHub stars~1.3k tokensUpdated 18 days ago
    Business, Finance & HRAuto-check passed
  • ERPClaw ERP Controller

    avansaber/erpclaw

    Operates the ERPClaw self-hosted ERP in plain language: accounting, invoicing, inventory, purchasing, tax, HR, payroll and reports, treating the ERP as the single source of truth.

    114 GitHub stars~18k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    421 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Beancount Close

    bex-co/beancount-io

    Close an accounting period in a Beancount ledger by reconciling each active account through beancount-reconcile, checking assertions and recurring gaps, reviewing flags, then proposing a commit with…

    296 GitHub stars~1.4k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Forward Implementation First

    Vuk97/forward-implementation-first

    Keeps an agent building and validating real output instead of servicing its own bookkeeping.

    176 GitHub stars~1.8k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 22 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 22 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 22 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 22 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 22 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 22 days ago
    Auto-check passed

Questions about Medication Reconciliation

What does Medication Reconciliation do?

Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety. Medication Reconciliation is an agent skill from aipoch/medical-research-skills. Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.

When should I use Medication Reconciliation?

Medication Reconciliation fits situations like: tasks that involve Accounting and bookkeeping.

How do I install Medication Reconciliation in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill medication-reconciliation -a claude-code`. Or copy the skill folder (scientific-skills/Other/medication-reconciliation in aipoch/medical-research-skills) into .claude/skills/medication-reconciliation in your project. Claude Code loads it when a task matches its description.

How do I install Medication Reconciliation in Codex?

Run `npx skills add aipoch/medical-research-skills --skill medication-reconciliation -a codex`. Or copy the skill folder (scientific-skills/Other/medication-reconciliation in aipoch/medical-research-skills) into .agents/skills/medication-reconciliation in your project. Codex loads it when a task matches its description.

Can I use Medication Reconciliation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill medication-reconciliation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/medication-reconciliation, .gemini/skills/medication-reconciliation, .github/skills/medication-reconciliation and .opencode/skills/medication-reconciliation in your project.

What does Medication Reconciliation need to run?

Going by SKILL.md and its folder, Medication Reconciliation needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Medication Reconciliation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Medication Reconciliation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Medication Reconciliation use?

Medication Reconciliation is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Medication Reconciliation use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Medication Reconciliation?

Skills that share tags, products or a category with Medication Reconciliation: Sync Upstream (nyaruka/phonenumbers, 1.6k stars), Radiology Table (huang-sir1/radiology-skills, 1.9k stars), ERPClaw ERP Controller (avansaber/erpclaw, 114 stars) and Odoo Agency Fleet Review (erpipe-org/mcp-odoo, 421 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Medication Reconciliation?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,978 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.