Protocol Writing logo

Protocol Writing

Organization
HeartWise-AI
protocol-writing

Guide for writing high-quality clinical research protocols for AI-based diagnostic studies, validation trials, and retrospective analyses. Use when drafting or reviewing a research protocol for AI in medicine.

Overview

PublisherHeartWise-AI
Repositoryai-writing-skills
Skill nameprotocol-writing
Stars
28
Forks
6
Bundled files
Instructions only
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 HeartWise-AI on GitHub. Read the source before you install it.

Installation

Install the Protocol Writing 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/HeartWise-AI/ai-writing-skills/tree/main/protocol-writing
  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/HeartWise-AI/ai-writing-skills.git /tmp/ai-writing-skills
mkdir -p .claude/skills
cp -r /tmp/ai-writing-skills/protocol-writing .claude/skills/protocol-writing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Protocol Writing 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 Protocol Writing 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 Protocol Writing 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.

Research Protocol Writing

Overview

This skill guides the generation of high-quality clinical research protocols for AI-based diagnostic studies, validation trials, and retrospective analyses.

Protocol Structure

1. Title Page

  • Full protocol title (descriptive, includes study design)
  • Protocol version and date
  • Principal investigator(s) and affiliations
  • Funding sources
  • Ethics approval reference (if applicable)

2. Synopsis

One-page summary containing:

  • Study title
  • Objectives (primary, secondary, exploratory)
  • Study design
  • Population (inclusion/exclusion)
  • Sample size
  • Primary endpoint
  • Timeline

3. Introduction

Structure:

  1. Clinical context (2-3 sentences): Disease burden, current diagnostic standard
  2. Knowledge gap (2-3 sentences): What is unknown or suboptimal
  3. Proposed solution (1-2 sentences): How AI/technology addresses the gap
  4. Study rationale (1-2 sentences): Why this study is needed now

Style:

  • No headers within introduction
  • Flow naturally from problem to solution
  • Cite key statistics (prevalence, mortality, diagnostic accuracy)
  • Avoid overpromising

4. Literature Review / Background

Structure:

  1. Disease pathophysiology (brief)
  2. Current diagnostic approaches and limitations
  3. Prior AI/ML work in this domain
  4. Foundation models or methods being leveraged
  5. Knowledge gaps justifying the study

Style:

  • Concise paragraphs, not exhaustive
  • Focus on directly relevant prior work
  • Identify specific gaps your study addresses
  • 1-2 pages maximum

5. Objectives and Hypotheses

Format:

3.1 Primary Objective
To [verb] the [metric] of [intervention/model] for [outcome] using [comparator].

3.2 Secondary Objectives
- To develop/validate [model B, C, etc.]
- To assess performance stratified by [subgroups]
- To evaluate [additional endpoints]

3.3 Exploratory Objectives
- To investigate [mechanistic questions]
- To explore [hypothesis-generating analyses]

Rules:

  • One primary objective only
  • Objectives are measurable and time-bound
  • Match each objective to evaluation criteria

6. Evaluation Criteria

Format as table:

ObjectiveEvaluation CriteriaJustification
PrimaryAUROC, sensitivity, specificity, PPV, NPVStandard diagnostic metrics
SecondarySubgroup AUROC, calibrationGeneralizability assessment

Standard metrics for diagnostic AI:

  • AUROC, AUPRC
  • Sensitivity at fixed specificity (80%, 90%)
  • Specificity at fixed sensitivity (80%, 90%)
  • PPV, NPV
  • Calibration (observed vs. predicted)
  • Net reclassification improvement (NRI)

7. Study Design and Population

7.1 Design Statement Single sentence: "This is a [retrospective/prospective] [cohort/validation/diagnostic accuracy] study..."

7.2 Population

  • Source population and setting
  • Timeframe
  • Label definitions (positive, negative, extended controls)

7.3 Inclusion Criteria

  • Numbered list
  • Age, diagnosis, data availability requirements
  • Be specific about imaging/ECG quality standards

7.4 Exclusion Criteria

  • Conditions that confound the outcome
  • Prior treatments affecting the index test
  • Data quality exclusions

8. Variables and Data Sources

Format as table:

CategoryVariableSourceIn Biobank?
DemographicsAge, sexEHRYes
ClinicalBMI, comorbiditiesClinic DBNo

Categories:

  • Demographics/Clinical
  • Genetic
  • ECG parameters
  • Imaging (Echo, CMR)
  • Outcomes/Labels

9. Outcomes

9.1 Primary Outcome

  • Clear definition with thresholds
  • Source of ascertainment
  • Adjudication process (if applicable)

9.2 Secondary Outcomes

  • List with definitions

9.3 Label Definitions (for AI studies)

LabelDefinition
Positive[Specific criteria]
Negative[Specific criteria]
Extended Negative[Controls without disease]

10. Methods

10.1 Data Collection

  • Sources, extraction process, quality control
  • Reference biobanks/registries used

10.2 Data Preprocessing

  • Signal processing (filtering, normalization)
  • Image preprocessing (resolution, cropping)
  • Missing data handling

10.3 Modeling For each model, specify:

Model [X]: [Name]
- Architecture: [backbone, layers]
- Input: [data type, dimensions]
- Pretraining: [foundation model, if applicable]
- Fine-tuning strategy: [frozen layers, learning rate]
- Output: [prediction type]
- Loss function: [BCE, MSE, etc.]

Hyperparameter Table:

ParameterValueRationale
OptimizerAdamWWeight decay regularization
Learning rate1e-4Conservative for fine-tuning
Batch size64Memory/stability tradeoff
Epochs100Early stopping, patience=15

Ablation Experiments Table:

ExperimentDescription
A1[Variation to test]
A2[Variation to test]

11. Statistical Analysis

11.1 Sample Size

  • Power calculation or justification for available sample
  • Expected prevalence, desired precision

11.2 Primary Analysis

  • Metrics computed with 95% CI (bootstrap or DeLong)
  • Comparison to reference standard

11.3 Secondary Analyses

  • Subgroup analyses (prespecified)
  • Sensitivity analyses

11.4 Software

  • Python (scikit-learn, PyTorch), R, SAS
  • Version numbers

12. Training and Validation Strategy

ParameterValue
Data split70% train / 15% val / 15% test
Cross-validation5-fold stratified
StratificationBy outcome and key confounders
Random seedFixed (e.g., 42)

13. Ethics and Data Governance

  • IRB/REB approval status
  • Consent requirements (or waiver justification)
  • Data security measures
  • Reference to data governance framework (e.g., Cadre de Gestion)

14. Timeline

PhaseActivitiesDuration
1Data preparationMonths 1-3
2Model developmentMonths 4-8
3ValidationMonths 9-12
4Prospective pilotMonths 13-18

15. Feasibility

Brief section addressing:

  • Data availability and sample size adequacy
  • Computational resources
  • Team expertise
  • Funding

16. References

Standard citation format (Vancouver or APA)


Style Guidelines

General:

  • Use active voice
  • Be specific and quantitative
  • Avoid jargon; define abbreviations
  • No em dashes; use commas or parentheses
  • No excessive hedging

Tables over prose:

  • Hyperparameters → table
  • Variables → table
  • Timeline → table
  • Inclusion/exclusion → bulleted list

Scientific precision:

  • Report thresholds (e.g., "≥70% stenosis" not "significant stenosis")
  • Specify units
  • Define all acronyms at first use

Formatting:

  • Numbered sections (1, 1.1, 1.1.1)
  • Bold for section headers
  • Minimal use of italics
  • No bullet points in flowing text; reserve for lists

Quick Reference: Section Lengths

SectionTarget Length
Synopsis1 page
Introduction0.5-1 page
Background1-2 pages
Objectives0.5 page
Methods3-5 pages
Statistical Analysis1-2 pages
Ethics0.5 page
Timeline/Feasibility0.5 page each

Checklist Before Submission

  • Primary objective is single and measurable
  • Inclusion/exclusion criteria are specific
  • Outcomes have clear definitions with thresholds
  • Sample size justified
  • All models have architecture and hyperparameters specified
  • Ablation experiments defined
  • Data sources and biobank coverage clarified
  • Ethics/consent addressed
  • Timeline realistic
  • All abbreviations defined

Frequently asked questions

What does the Protocol Writing AI skill do?

Guide for writing high-quality clinical research protocols for AI-based diagnostic studies, validation trials, and retrospective analyses. Use when drafting or reviewing a research protocol for AI in medicine.

Why use Protocol Writing on TypingMind?

Because you install it once and use it with any model. Protocol Writing 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 Protocol Writing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/HeartWise-AI/ai-writing-skills/tree/main/protocol-writing. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Protocol Writing?

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 Protocol Writing?

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

Is the Protocol Writing AI skill free?

It is published on GitHub by HeartWise-AI. Check the repository for licensing terms. 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 👇