Portfolio · Project 02 · Generative AI for HEOR teams · October 2026
Build a protocol-writing skill in ChatGPT
Most of us reuse the same long prompt every time we draft a study protocol, and the output still drifts: a section goes missing, the variable table changes shape, an assumption slips in unflagged. A skill fixes that. It is a saved, reusable workflow that tells ChatGPT how to do one task the same way every time. This guide builds one end to end, using a real HEOR task as the example: drafting an observational real-world evidence (RWE) study protocol on the HARPER template.
Nine steps, roughly an hour the first time. You do not need to write code. Each step explains what to do, why it matters, and what you should see on screen.
A plan that includes skills. OpenAI lists skills for eligible ChatGPT Business, Enterprise, Healthcare and Edu users.
Skills switched on in your workspace. During the beta they are off by default. A workspace owner turns them on in Permissions & roles, along with uploading, sharing and installing for others.
Your company’s AI policy. Keep patient-level data, unpublished results and confidential strategy out of the skill and its reference files. Protocols drafted with AI still go through your usual scientific and compliance review.
Download the finished skill
Skip the build and install the rwe-protocol-writer skill this guide arrives at: SKILL.md plus the two reference files from step 7, the HARPER section order and the variable table format. Skills follow the open Agent Skills format, so the same ZIP installs in ChatGPT and in Claude. Add your own Word template as assets/protocol-shell.docx if you have one.
Install in ChatGPT
- Open Plugins, then the Skills tab.
- Create › Upload from your computer, and upload the ZIP as downloaded.
- Skills must be switched on for your workspace by its owner.
Install in Claude
- Open Customize › Skills.
- + › + Create skill › Upload a skill, and upload the ZIP as downloaded.
- Skills need code execution switched on.
Test it with a direct request, such as an overall survival protocol in advanced renal cell carcinoma on US EHR data; it should ask for missing inputs before drafting. Read every file before switching it on. Provided as is, without warranty; drafts still need scientific, statistical and compliance review.
What a skill is, in one picture
A skill is a small folder. The only required file is SKILL.md, a plain-text Markdown file with two parts. The top part (the frontmatter) holds a name and a description; ChatGPT reads the description to decide when the skill applies. The body holds the workflow: the inputs to collect, the steps to follow, the output format and the checks to run before answering.
Optional sub-folders carry the material the workflow depends on. Long documents go in references/, which ChatGPT opens only when a step needs them, so the main file stays short. Templates go in assets/, and scripts in scripts/.
How this differs from what you may already use: a custom GPT is a configured version of ChatGPT for a goal or audience, and a project keeps shared files and chats together. A skill is narrower. It teaches one repeatable task, and it travels with you into any chat.
The folder this guide builds. Only SKILL.md is required; the rest is added in step 7.
- 1Plan · 15 minutes, no ChatGPT yet
Scope the task before you open ChatGPT
The quality of a skill is set before you click anything. Write down three things: what the user will hand over (inputs), what “good” looks like when it comes back (output), and what must never happen (guardrails). For a protocol writer, the guardrails matter most. A model that fills a gap with a plausible sample size or an invented code list produces a document that looks finished and is wrong.
Keep the scope to one job. OpenAI’s own guidance favours small skills you can combine over one large skill that tries to do everything. A protocol writer and a separate statistical analysis plan writer will each behave better than one “study documents” skill.
Inputs
- Research question (population, exposure, comparator, outcome, time)
- Data source and study period
- Design: cohort, case-control, chart review, registry
- Audience: regulator, HTA body, payer, journal
Output
- Numbered protocol on the HARPER section order
- Objectives: primary, secondary, exploratory
- One variable table
- “Assumptions to confirm” list at the end
Guardrails
- No invented data, sample sizes, code lists or references
- Gaps marked [TO CONFIRM]
- Methods choices flagged for epidemiologist or statistician sign-off
Why HARPER. The HARmonized Protocol Template to Enhance Reproducibility comes from a joint ISPE and ISPOR task force, published in Value in Health in 2022. It is built for hypothesis-evaluating RWE studies on treatment effects, which makes it a sound default section order for the skill to follow.
- 2In ChatGPT
Open the Skills page
In the sidebar, select Plugins 1, then open the Skills tab 2 in the plugin directory.
The page groups skills into Installed, Created by me, Shared with me and one section for skills your workspace has published. A new account starts with one skill already installed,
skill-creator, whose job is to help you build and update other skills. You will use it in the next step.If you cannot find Plugins or the Skills tab, skills are probably not enabled for your workspace. Ask your ChatGPT workspace owner.
IllustrationThe sidebar entry and tab names follow OpenAI’s Help Center. Your sidebar will show other items around them. - 3In ChatGPT
Choose “Create with chat”
Select Create. You get three routes:
Create with chat 3 runs a guided conversation with the skill creator. It is the best first route: you describe the job in plain language and it writes the
SKILL.mdfor you. Create with editor lets you write or paste the instructions yourself, which suits a second version once you know what you want. Upload from your computer imports a skill folder you built elsewhere, for example one a colleague shared or one exported from another tool.You can also skip the menu entirely: start a normal chat and type “Build me a skill…”. The result is the same.
IllustrationThe three ways to add a skill, as listed by OpenAI. This guide takes the first. - 4In ChatGPT · 5 minutes
Describe the skill in one prompt
Turn your step 1 notes into one message. OpenAI recommends covering five things: the job to be done, the required inputs, numbered steps, the output format, and the final quality checks. The prompt below does exactly that for the protocol writer. Copy it, adjust the therapeutic area or study types to yours, and send it.
Prompt · paste into ChatGPTBuild me a skill called rwe-protocol-writer. Job: draft protocols for observational real-world evidence (RWE) studies in oncology: retrospective cohort, case-control, chart review and registry studies. Inputs I will give: a research question, the data source, the study period and the intended audience (regulator, HTA body, payer or publication). Process: 1. Ask for any missing input before drafting, at most five questions at a time. 2. Follow the HARPER protocol template section by section (I will upload it as a reference file). 3. Write objectives as primary, secondary and exploratory. 4. Put every study variable in a table: name, definition, source field or code list, assessment window. 5. In the analysis plan, name the confounding approach, missing-data handling and sensitivity analyses. Output: a Word-ready protocol with numbered sections and an "Assumptions to confirm" list at the end. Guardrails: never invent data, sample sizes, code lists or references. Mark gaps as [TO CONFIRM]. Final check: every HARPER section is present or marked "Not applicable" with a reason.
Numbered steps help, because the skill will follow them in order. Concrete guardrails help even more: “never invent sample sizes” is a rule the model can check itself against; “be accurate” is not.
IllustrationPaste the prompt from the left. Dictating a first version also works. - 5In ChatGPT
Answer the skill creator’s questions
The skill creator usually comes back with a few questions before drafting. Answer them the way you would brief a new team member: name your usual data sources, say which sections are non-negotiable, and say how gaps should be handled.
This is the cheapest moment to add detail. Two answers in particular change the quality of what you get later: who reads the protocol (an HTA body cares about comparators and generalisability; a journal cares about reporting standards), and what to do when information is missing. Tell it to ask, or to proceed and log assumptions. Never leave it to guess.
IllustrationAn example exchange. The questions you get depend on your prompt. - 6In ChatGPT
Review the draft, then install
The draft skill opens in a window. Read it before you install it. Check three things.
The description. It decides when ChatGPT reaches for the skill, so it should say what the skill does and when to use it, and ideally when not to. The steps. They should match how your team actually drafts protocols, in your order. The rules. Your guardrails should appear word for word, not softened.
Ask for changes in the chat until it reads right, then select Install 4. Installing makes it available to you; sharing comes in step 9. For reference, here is the complete
SKILL.mdthis guide arrives at. You can also paste it into Create with editor directly.SKILL.md · rwe-protocol-writer--- name: rwe-protocol-writer description: Drafts observational RWE study protocols (cohort, case-control, chart review, registry) on the HARPER template. Not for interventional trials or systematic review protocols. --- # RWE protocol writer Use when the user asks to draft, structure or refine a non-interventional study protocol or any of its sections: objectives, eligibility, variables, analysis plan, limitations. ## Before drafting 1. Check for: research question (population, exposure, comparator, outcome, time), data source, study period, design, intended audience (regulator, HTA body, payer or journal). 2. Ask for anything missing, at most five questions at a time. 3. If the user says "use your judgement", proceed and log each choice under "Assumptions to confirm". ## Drafting 4. Follow the section order in references/harper-template.md. 5. Objectives: primary, secondary, exploratory. Tie each to a measurable outcome. 6. Describe the design timeline: time 0 (index date), washout, baseline and follow-up windows. 7. Variables: one table per variable type in the format of references/variable-table-guide.md (name, definition, source field or code list, care setting, assessment window, algorithm source, pre-specified, varied in sensitivity). 8. Analysis plan: confounding approach, missing-data handling, sensitivity analyses with the rationale for each, study size reasoning. 9. Limitations: bias, misclassification and generalisability, each with a mitigation. ## Rules - Never invent data, sample sizes, code lists or citations. Write [TO CONFIRM]. - Cite guidance only if it is in references/ or the user supplied it. - Flag decisions that need sign-off from an epidemiologist or statistician. - If assets/protocol-shell.docx exists, use it as the document template. ## Output A Word-ready protocol with numbered sections, the variable tables, and an "Assumptions to confirm" list at the end. ## Final check Every HARPER section is present or marked "Not applicable" with a reason. Every [TO CONFIRM] is listed.
IllustrationThe draft appears in a window. Keep chatting to change it, or install it for yourself. - 7Strengthen it
Add reference files
A skill that only has
SKILL.mdworks from the model’s general knowledge of protocol structure. Reference files replace that with your standard. Keep them as separate files rather than pasting them into the main instructions: ChatGPT loads a reference only when a step calls for it, which keeps the skill fast and leaves room in the conversation for your study.For the protocol writer, three files earn their place.
references/harper-template.mdholds the section headings and a one-line note on what each must contain.references/variable-table-guide.mdshows one well-defined exposure, outcome and covariate as worked examples.assets/protocol-shell.docxis your house Word template, if you have one. Point to each fromSKILL.mdand say when to use it, as the draft above does in step 4 of its workflow.You can add these by asking the skill creator to update the skill and attaching the files, or by building the whole folder on your computer and choosing Upload from your computer. Uploaded skills are scanned first. Most are ready straight away; some are marked Needs Review, and anything that looks risky is Blocked. The scan is not a substitute for reading the files yourself, especially ones you got from someone else.
- 8Quality control · 20 minutes
Test it on purpose
Run the skill against a short set of test requests before anyone else uses it. OpenAI’s developer guidance suggests five kinds of test. Here is how they translate for a protocol writer.
Test type Example request What should happen Direct “Draft an RWE protocol for overall survival by IMDC risk group in advanced renal cell carcinoma using US EHR data.” Skill runs Full draft, all sections Indirect “I need the methods section for a retrospective cohort study.” Skill runs Methods only, same structure Incomplete “Write a protocol for our new study.” Asks first Up to five questions, no draft yet Off-target “Draft a Phase 3 randomized trial protocol.” Skill stays out Interventional trials are excluded Trap “Just put in a reasonable sample size and some ICD-10 codes.” Holds the rule [TO CONFIRM], no invented numbers or codes Read the results in two ways. If the skill fires at the wrong time, or not at all, the fix is in the description. If it fires correctly but the drafts are uneven, the fix is in the steps and rules. Change one thing at a time and re-run the same tests, so you know what made the difference.
- 9Everyday use
Use it, then share it
Once installed, ChatGPT can use the skill on its own when a request matches its description. You can also call it explicitly by typing
@and its name at the start of your message, which is the more predictable option while you are still building trust in it. Skills combine, too: a protocol writer can hand over to a separate review skill for a quality pass.To share it, open the ••• menu on the skill and choose Share, then pick people or groups in your workspace or copy the link. Colleagues install it from Shared with me. Whether you can share at all, and whether you can publish to the whole workspace, is set by your workspace owner.
Treat a shared skill like a shared template: give it an owner, note what changed when you update it, and re-run the step 8 tests after every edit.
IllustrationMentioning the skill by name makes the choice explicit. ChatGPT can also pick it on its own.
Build once, use beyond ChatGPT
Skills follow the open Agent Skills format, so the same folder can be downloaded from ChatGPT and installed in other tools that support it, including OpenAI’s Codex and Anthropic’s Claude. For a team that uses more than one AI tool, that makes SKILL.md the place to keep the method itself: the steps, the rules, the template. The tool becomes interchangeable.
Build a targeted literature review skill in Claude
The same method applied to a harder job: a skill that searches PubMed, screens and extracts with a human checkpoint at every stage, and logs its own AI use.
Screens on this page are simplified illustrations drawn for this guide, not screenshots. Menu and button names follow OpenAI’s documentation as of October 2026; the interface changes often, so yours may differ.