pharma-skills
A collection of agent skills for BioPharma use cases GSDBench Intake https://rconsortium.github.io/pharma-skills/gsdbench-intake/
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/RConsortium/pharma-skills with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/RConsortium/pharma-skills'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/rconsortium--pharma-skills)HTML
<a href="/listings/rconsortium--pharma-skills"><img src="/api/listings/rconsortium--pharma-skills/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
Using `npx skills add` (Any Agent)
Install skills from this repository into any supported coding agent (Claude Code, Codex, Cursor, Cline, Copilot, and [many more](https://github.com/vercel-labs/skills)) using the `npx skills add` CLI:
# List available skills without installing npx skills add RConsortium/pharma-skills --list # Install skills via an interactive menu npx skills add RConsortium/pharma-skills --all # Install specific skills by name npx skills add RConsortium/pharma-skills --skill group-sequential-design --skill admiral-adsl # Install to Claude Code only, globally npx skills add RConsortium/pharma-skills --agent claude-code --global
Conversational / CLI (Any Agent)
Ask your agent to enable a skill directly from this repo, without cloning it yourself:
> enable "group-sequential-design" skill from https://github.com/RConsortium/pharma-skills
Manual Installation (Claude Code, Cursor, Windsurf, Copilot, etc.)
1. Clone this repository locally or add it as a git submodule:
git clone https://github.com/RConsortium/pharma-skills.git
2. Copy or symlink the skill(s) you need into your project or agent's skills directory. Symlinking keeps the skill up to date with `git pull`:
# Copy a single skill (e.g. for Claude Code) cp -r pharma-skills/group-sequential-design ~/.config/claude-code/skills/ # Or symlink instead of copying ln -s "$(pwd)/pharma-skills/group-sequential-design" ~/.config/claude-code/skills/group-sequential-design
3. Or manually reference the skill in your configuration files (like `.cursorrules`, `AGENTS.md`, or `llms.txt`):
> Please refer to /path/to/pharma-skills/group-sequential-design/SKILL.md for the trial design workflow.
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 127 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.
- # Pharma Skills
- A collection of agent skills for pharmaceutical R&D.
- ## Disclaimer
- This is an open, community-contributed catalog built as part of R Consortium Submissions Working Group Pilot 7. Skills go through community [benchmarking](LIFECYCLE.md) and carry no warranty or endorsement from the R Consortium, the BBSW AI committee, or any contributor's employer.
- These skills produce artifacts that can feed into clinical trial design and regulatory workflows (trial designs, ADaM datasets, simulated data, statistical review). Treat all outputs as a drafting aid, not a validated deliverable — LLM outputs can be wrong or inconsistent between runs, so always independently verify them against your own QC process before they inform any regulatory, clinical, safety, or GxP-regulated activity. You're responsible for that verification and for complying with your organization's policies. Skills may also bundle scripts that execute in your environment, so review a skill's contents before installing and only supply data you're permitted to use. Everything here is MIT-licensed (see [License](#license)) and provided as-is.
- ## Skills
- | Skill | Description |
- |-------|-------------|
- | [group-sequential-design](group-sequential-design/) | Design group sequential clinical trials for survival endpoints (OS, PFS, DFS) with interim analyses, spending functions, multiplicity, and event/enrollment prediction |
- | [clinical-trial-simulation](clinical-trial-simulation/) | Design and simulate clinical trials using the TrialSimulator R package and produce a QC-ready build-order-spine report. Design-agnostic: composes from independent building blocks (endpoints, arms, milestones, regimens) rather than following a fixed catalog of design templates. |
- | [admiral/admiral-adsl](admiral/admiral-adsl/) | Derive ADaM Subject-Level Analysis Datasets (ADSL) from SDTM domains using the {admiral} R package. Encodes the workflow, function selection logic, and CDISC conventions for QC-ready, submission-traceable R code. |
- | [admiral/admiral-bds](admiral/admiral-bds/) | Derive ADaM BDS findings datasets (ADVS, ADLB) from SDTM VS/LB domains. Covers parameter assignment, baseline flagging, change from baseline, visit windowing, and ADLB normal range derivations. |
- | [admiral/admiral-adae](admiral/admiral-adae/) | Derive ADaM Adverse Events Analysis Datasets (ADAE) from SDTM AE and ADSL. Covers treatment-emergent flags, severity, seriousness, and study day variables. |
- | [admiral/admiral-adrs](admiral/admiral-adrs/) | Derive ADaM Tumor Response Analysis Datasets (ADRS) from SDTM RS using {admiral} and {admiralonco}. Covers RECIST 1.1 overall response, confirmed response, best overall response, and clinical benefit. |
- | [admiral/admiral-adtte](admiral/admiral-adtte/) | Derive ADaM Time-to-Event Analysis Datasets (ADTTE) from SDTM event domains and ADSL. Covers event and censoring sources, AVAL in days, and CNSR/CNSDTDSC coding. |
- | [admiral/admiral-adpc](admiral/admiral-adpc/) | Derive ADaM Pharmacokinetic Concentrations Analysis Datasets (ADPC / ADNCA) from SDTM PC and EX. Covers nominal and actual dose-relative times, dosing records, BLQ handling, and NCA-ready output. |
- | [clinical-trial-ipd-sim](clinical-trial-ipd-sim/) | Generate synthetic IPD, source CRFs, SDTM, ADaM, and exports for registered clinical trials using an R/pharmaverse g-formula causal-DAG workflow calibrated to posted protocol and results. |
- | [statistical-reviewer](statistical-reviewer/) | Simulate an independent statistical reviewer auditing a clinical trial submission package (SDTM, ADaM, TLF, SAP, CSR) — reproducing endpoints, tracing results across data layers, flagging population inconsistencies, and assessing data realism. |
- | [rounding](rounding/) | Verify rounding compliance -- ties away from zero, round-once-at-display, fixed display precision with trailing zeros. |
- | [km-digitizer](km-digitizer/) | Digitize Kaplan-Meier survival curves from published PNG images, reconstruct individual patient-level time-to-event data (IPDfromKM) with a verification gate, and generate Word reports with KM comparison plots, survival statistics, and hazard rate curves. |
- | [dose-response](dose-response/) | Extract endpoint specifications and CDISC mappings from trial submission documents (`SAP`, `ADRG`, `define.xml`) and generate R code for dose-response ANCOVA/ANOVA analyses with trend tests, pairwise comparisons, and their 95% CIs. |
- ## Installation
- ### Using `npx skills add` (Any Agent)
- Install skills from this repository into any supported coding agent (Claude Code, Codex, Cursor, Cline, Copilot, and [many more](https://github.com/vercel-labs/skills)) using the `npx skills add` CLI:
- ```bash
- # List available skills without installing
- npx skills add RConsortium/pharma-skills --list
- # Install skills via an interactive menu
- npx skills add RConsortium/pharma-skills --all
- # Install specific skills by name
- npx skills add RConsortium/pharma-skills --skill group-sequential-design --skill admiral-adsl
- # Install to Claude Code only, globally
- npx skills add RConsortium/pharma-skills --agent claude-code --global
- ```
- ### Conversational / CLI (Any Agent)
- Ask your agent to enable a skill directly from this repo, without cloning it yourself:
- > enable "group-sequential-design" skill from https://github.com/RConsortium/pharma-skills
- ### Manual Installation (Claude Code, Cursor, Windsurf, Copilot, etc.)
- 1. Clone this repository locally or add it as a git submodule:
- ```bash
- git clone https://github.com/RConsortium/pharma-skills.git
- ```
- 2. Copy or symlink the skill(s) you need into your project or agent's skills directory. Symlinking keeps the skill up to date with `git pull`:
- ```bash
- # Copy a single skill (e.g. for Claude Code)
- cp -r pharma-skills/group-sequential-design ~/.config/claude-code/skills/
- # Or symlink instead of copying
- ln -s "$(pwd)/pharma-skills/group-sequential-design" ~/.config/claude-code/skills/group-sequential-design
- ```
- 3. Or manually reference the skill in your configuration files (like `.cursorrules`, `AGENTS.md`, or `llms.txt`):
- > Please refer to /path/to/pharma-skills/group-sequential-design/SKILL.md for the trial design workflow.
- ## Using Skills
- Once installed, your agent will automatically activate relevant skills based on your task — no need to invoke them explicitly. For example, with the `admiral-adsl` skill installed:
- ```
- You: Derive ADSL from the SDTM DM and EX domains for this study.
- Agent: I'll use the admiral ADSL workflow. First, let me check the SDTM domains available...
- ```
- Skills that bundle scripts (R or Python) will execute in your environment when the agent runs them — review a skill's contents before installing, per the [disclaimer](#disclaimer) above.
- ## Contributing
- ### New Skills
- Contributions of new skills are welcome. Each skill should:
- 1. Live in its own folder at the repo root
- 2. Include a `SKILL.md` with frontmatter (`name`, `description`) and instructions
- 3. Include a `README.md` describing what the skill does, requirements, and usage
- 4. Include an MIT `LICENSE`
- 5. Follow the [Agent Skill Development Lifecycle](LIFECYCLE.md)
- ### New Benchmark data
- You can add new benchmark data by creating new github issues following the `benchmark` templates.
- ### Evaluate Benchmark data
- If you're interested in contributing to the skill evaluation using your Claude Code account, following this [video](https://github.com/user-attachments/assets/05d24707-36b8-49fc-86ea-beb6365e288e) to set it up.
- ## License
- All skills in this repository are required to be licensed under the MIT License to ensure maximum permissiveness and rapid adoption within pharmaceutical research.
- ## Join Us
- This effort is the part of R consortium Submissions Working Group Pilot 7. It is a joint effort between the R consortium and the [BBSW AI committee](https://www.bbsw.org/ai-committee).
- Pilot 7 was initiated to help the community navigate the rapidly growing number of AI capabilities, tools, and R packages available for clinical trial workflows. One major challenge is the lack of high-quality, diverse benchmark resources, including patient-level datasets and structured test cases such as trial design scenarios. Pilot 7 addresses this gap by crowdsourcing both AI skills and benchmark resources, then using community evaluation to continuously improve them.
- Pilot 7 holds weekly standups three times a month on Fridays from 8–9 AM PST. We also host monthly Submissions Working Group meetings with FDA staff, bringing together participants across different pilot subgroups.
- [Pilot 7 Meeting minutes](https://github.com/RConsortium/submissions-pilot7-synthetic-data/wiki/Meeting-Minutes)
- Everyone is welcome to join. To access our calendar and join the Slack workspace, please see
- [here](https://rconsortium.github.io/submissions-wg/join.html)
- To learn more about the R consortium Submissions Working Group, visit [here](https://rconsortium.github.io/submissions-wg/)
clinical-trial-ipd-sim/scripts/setup_paperclip.sh · Bundled script · 4 lines · 1 finding marked
- #!/usr/bin/env bash
- # Opt-in installer for the Paperclip CLI (the recommended evidence channel). Not run automatically.
- command -v paperclip >/dev/null 2>&1 && { echo "paperclip already installed: $(command -v paperclip)"; exit 0; }
- echo "Installing paperclip CLI..."; curl -fsSL https://paperclip.gxl.ai/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 4 on GitHub
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.