Agent skill

Write Protocol

by Aperivue in Aperivue/medsci-skills

A skill your agent uses when drafting an IRB or ethics research protocol.

MITAuto-check passedResearch & Science

Install Write Protocol

skills CLI
$ npx skills add Aperivue/medsci-skills --skill write-protocol -a claude-code

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

GitHub CLI
$ gh skill install Aperivue/medsci-skills write-protocol --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/Aperivue/medsci-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/write-protocol .claude/skills/write-protocol && 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
write-protocol
GitHub stars
329
Token cost
~1.6k tokens
SKILL.md length
756 words
Files
4 (incl. references)
Skills in repo
54
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when drafting an IRB or ethics research protocol.

  • Works in 6 steps: Citation integrity: every reference has… → Internal consistency: sample size in… → Design alignment: study type in Section… → …
  • Drafting an IRB
  • SKILL.md covers Inputs, Protocol Structure -- 10…, Output Format and Quality Checks
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Write Protocol is an agent skill from Aperivue/medsci-skills. Use when drafting an IRB or ethics research protocol. Writes Background, Study Design, Sample Size and Statistical Plan in full prose and leaves institution-specific sections as TODO skeletons. Filling an institutional Word form is /fill-protocol.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/ethics_checklist.md`, `references/protocol_template.md` and `skill.yml`).

It sits in Research & Science, covering Experimental design. The repository describes itself as: Agent Skills for medical research — literature search, reporting-guideline & citation checks, statistics, publication figures, submission. Works with Claude Code, Codex, Cursor &… The licence is MIT.

When your agent uses it

  • Drafting an IRB
  • Ethics research protocol

Example prompts

  • “/write-protocol”

Requirements

  • Python 3

Workflow steps

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

  1. Citation integrity: every reference has a DOI or PMID, or is marked
  2. Internal consistency: sample size in Section 3 matches the analysis plan in Section 4
  3. Design alignment: study type in Section 2 matches the statistical approach in Section 4
  4. TODO completeness: all institution-specific items have [TODO] markers
  5. Word counts: core sections fall within target ranges
  6. No AI patterns: avoid phrases like "it is worth noting", "comprehensive", "plays a crucial role"

What it can do on your machine

Read from SKILL.md and the folder at commit 3b14ae2. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Write Protocol loads about 1.6k tokens when it runs, and up to ~5.7k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 756 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.7k

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from Aperivue/medsci-skills at commit 3b14ae2, republished under its MIT licence (© Aperivue). 756 words, ~1,594 tokens.

Download SKILL.mdSave it as .claude/skills/write-protocol/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
write-protocol
description
Use when drafting an IRB or ethics research protocol. Writes Background, Study Design, Sample Size and Statistical Plan in full prose and leaves institution-specific sections as TODO skeletons. Filling an institutional Word form is /fill-protocol.
metadata.triggers
write protocol, IRB protocol, ethics protocol, research protocol, IRB submission, ethics submission, protocol draft

Write-Protocol Skill

Draft the scientific core of an IRB/ethics protocol and leave institution-specific sections as [TODO] skeletons. Read both reference files before generating a protocol draft:

  • ${CLAUDE_SKILL_DIR}/references/protocol_template.md -- the 10-section structure, per-section guidance, and the [TODO] blocks for Sections 5-9
  • ${CLAUDE_SKILL_DIR}/references/ethics_checklist.md -- jurisdiction-specific ethical requirements

Inputs

Collect the required inputs before generating; ask for any that are missing.

  • Required: research question / hypothesis (specific, testable); study type (retrospective cohort, prospective cohort, cross-sectional, RCT, diagnostic accuracy, case-control, case series); target population (who, where, when); primary outcome; secondary outcomes (if any).
  • Optional: key references (DOIs or search terms); institution name (header and ethics guidance); regulatory context -- Korea (PIPA), US (HIPAA/Common Rule), EU (GDPR), other.

Use prior skill outputs directly when they exist; when they do not, ask the user or call the skill:

  • design-study: design recommendations, analysis unit, comparator design, validation strategy.
  • calc-sample-size: protocol/sample_size_justification.md (canonical IRB-ready prose) and protocol/sample_size_calc.{R,py} (reproducible code).
  • search-lit: Background references with verified citations.
  • define-variables: variable_operationalization.md -- literature-grounded definitions, cutoffs, DB-variable mappings for the Methods section. Precondition: if the study is observational and no operationalization artifact exists, call /define-variables before drafting Methods. Do not invent phenotype/cutoff definitions from the data dictionary inside this skill.

Protocol Structure -- 10 Sections

Core Sections (Fully Generated)
Section 1: Background and Rationale (400-600 words)

Full paragraphs, no bullet points, flowing from clinical context (disease burden, current practice) through the knowledge gap and rationale (what this study adds) to the research question or hypothesis. Call /search-lit if key references are not provided. Cite a reference only with a /search-lit-confirmed DOI or PMID; otherwise mark it [UNVERIFIED - NEEDS MANUAL CHECK].

Section 2: Study Design and Eligibility Criteria (300-500 words)

Prose covering the study design with its justification (why this design answers this question), the setting (single-center vs multi-center, institution description) and the study period, followed by numbered inclusion and numbered exclusion criteria. If design-study output is available, incorporate its analysis unit (patient vs lesion vs exam), comparator design, validation strategy, and leakage risks with mitigations. Mark any clinical definition, diagnostic criterion or guideline recommendation you cannot confirm [VERIFY] and ask the user.

Section 3: Sample Size Justification (150-300 words)
  • If protocol/sample_size_justification.md exists (calc-sample-size output): embed it VERBATIM. Do not rephrase numbers.
  • If not available: prompt the user to run /calc-sample-size first; only fall back to a basic justification if the user explicitly declines.
  • Must include: test type, expected effect size (with literature source), alpha level, power, attrition adjustment.
  • Final statement: "We plan to enroll N participants."
Section 4: Statistical Analysis Plan (300-500 words)

Full prose covering: descriptive statistics (continuous as mean (SD) or median (IQR); categorical as count (%)); the primary analysis (test, assumptions, handling of violations); pre-specified secondary analyses; pre-specified subgroup analyses with interaction tests; missing-data handling (complete case, multiple imputation, sensitivity analysis); software name and version (e.g., R 4.4.0, Python 3.12, SAS 9.4); two-sided alpha = 0.05 unless otherwise justified.

Show full SKILL.md (286 more words)Show less
Skeleton Sections (TODO Markers)

Sections 5-9 are the [TODO] blocks from protocol_template.md, copied as they are; never fill them with invented institutional content.

  • Section 5: Study Title and Registration
  • Section 6: Data Collection and Management
  • Section 7: Ethical Considerations -- also add the template's jurisdiction guidance for the regulatory context, and use ethics_checklist.md for the full checklist.
  • Section 8: Timeline and Milestones
  • Section 9: Budget
Section 10: References

A numbered list of the Section 1 citations, the Section 3 effect-size sources, and any references in the calc-sample-size output. Every entry has a verified DOI or PMID or is marked [UNVERIFIED - NEEDS MANUAL CHECK].


Output Format

Generate a single markdown file: protocol_draft.md

  • All 10 sections with clear numbering (1. through 10.)
  • Core sections (1-4) in full prose; the Section 2 eligibility criteria are the only lists
  • Skeleton sections (5-9) with [TODO] markers clearly visible
  • Word count targets noted in comments at the start of each core section
  • Institution name in the header if provided

After generating, tell the user which sections are ready for review, which [TODO] items need their input, and the next steps (e.g., "Fill in Section 5 title and registration, then adapt Section 7 to your IRB form").

Quality Checks

Before delivering the protocol:

  1. Citation integrity: every reference has a DOI or PMID, or is marked [UNVERIFIED - NEEDS MANUAL CHECK]
  2. Internal consistency: sample size in Section 3 matches the analysis plan in Section 4
  3. Design alignment: study type in Section 2 matches the statistical approach in Section 4
  4. TODO completeness: all institution-specific items have [TODO] markers
  5. Word counts: core sections fall within target ranges
  6. No AI patterns: avoid phrases like "it is worth noting", "comprehensive", "plays a crucial role"

© Aperivue, 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 3 other files (references) in skills/write-protocol of Aperivue/medsci-skills.

  • SKILL.md
  • references/ethics_checklist.md
  • references/protocol_template.md
  • skill.yml

Open the folder on GitHubat commit 3b14ae2

Compare with similar skills

Write Protocol 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.

Write Protocol compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Write Protocol this skillAperivue/medsci-skills329—~1.6kAutomated safety check: PassMIT
Scientific Critical Thinkingweapp-tailwindcss/weapp-tailwindcss1.9k23 repos~5.9kAutomated safety check: NotesMIT
Claim-Driven Experiment PlannerzjYao36/Auto-Research-Refine1287 repos~2.3kAutomated safety check: NotesNone
Benchmark Paper TemplateHKUSTDial/Supervisor-Skills8.5k—~2.8kAutomated safety check: PassCC-BY-4.0
Research Refine PipelinezjYao36/Auto-Research-Refine1286 repos~1.4kAutomated safety check: NotesNone
Metabolic Study Planneraiming-lab/AutoResearchClaw15k—~1.9kAutomated safety check: PassMIT

Similar skills

  • Scientific Critical Thinking

    weapp-tailwindcss/weapp-tailwindcss

    Evaluate research rigor. An agent skill from weapp-tailwindcss/weapp-tailwindcss.

    1.9k GitHub starsUsed in 23 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Claim-Driven Experiment Planner

    zjYao36/Auto-Research-Refine

    Turns a refined research proposal into a claim-to-evidence-to-run-order roadmap instead of a sprawling benchmark wishlist.

    128 GitHub starsUsed in 7 repos~2.3k tokens
    Research & ScienceAuto-check: notes
  • Benchmark Paper Template

    HKUSTDial/Supervisor-Skills

    Structures benchmark and evaluation papers around five pillars, with a completeness audit, an Introduction logic chain, a section skeleton and a pre-submission checklist.

    8.5k GitHub stars~2.8k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Research Refine Pipeline

    zjYao36/Auto-Research-Refine

    Chains research-refine and experiment-plan to turn a vague research direction into a focused proposal and a claim-driven experiment roadmap.

    128 GitHub starsUsed in 6 repos~1.4k tokens
    Research & ScienceAuto-check: notes
  • Metabolic Study Planner

    aiming-lab/AutoResearchClaw

    Turns a broad metabolic modelling topic into a concrete, paper-shaped plan with organism, model, perturbations, metrics and figures before any FBA code is written.

    15k GitHub stars~1.9k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Experimental Design

    Oleafly/Oleafly

    Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable.

    206 GitHub starsUsed in 4 repos~3.5k tokens
    Research & ScienceAuto-check: notes

More from Aperivue/medsci-skills

All 54 skills in this repo
  • Model Assessment

    Aperivue/medsci-skills

    A skill your agent uses when validating or evaluating a trained medical-imaging model.

    329 GitHub starsUsed in 1 repo~4.5k tokens
    Auto-check passed
  • Obsidian Paper Vault

    Aperivue/medsci-skills

    A skill your agent uses when turning a folder of research PDFs into Obsidian notes, even if Obsidian is not named.

    329 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Radiomics ML

    Aperivue/medsci-skills

    A skill your agent uses when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar).

    329 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Verify Refs

    Aperivue/medsci-skills

    A skill your agent uses when checking whether a manuscript's references are real.

    329 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed
  • Clean Data

    Aperivue/medsci-skills

    A skill your agent uses when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches).

    329 GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • Design Study

    Aperivue/medsci-skills

    A skill your agent uses when checking a radiology or medical AI study design before drafting or submission.

    329 GitHub stars~3.9k tokensUpdated 2 days ago
    Auto-check passed

Questions about Write Protocol

What does Write Protocol do?

A skill your agent uses when drafting an IRB or ethics research protocol. Write Protocol is an agent skill from Aperivue/medsci-skills. Use when drafting an IRB or ethics research protocol.

When should I use Write Protocol?

Write Protocol fits situations like: drafting an IRB; ethics research protocol.

How do I install Write Protocol in Claude Code?

Run `npx skills add Aperivue/medsci-skills --skill write-protocol -a claude-code`. Or copy the skill folder (skills/write-protocol in Aperivue/medsci-skills) into .claude/skills/write-protocol in your project. Claude Code loads it when a task matches its description.

How do I install Write Protocol in Codex?

Run `npx skills add Aperivue/medsci-skills --skill write-protocol -a codex`. Or copy the skill folder (skills/write-protocol in Aperivue/medsci-skills) into .agents/skills/write-protocol in your project. Codex loads it when a task matches its description.

Can I use Write Protocol 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 Aperivue/medsci-skills --skill write-protocol -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-protocol, .gemini/skills/write-protocol, .github/skills/write-protocol and .opencode/skills/write-protocol in your project.

What does Write Protocol need to run?

SKILL.md names no scripts, command-line tools or credentials: Write Protocol is instructions for the agent only. Our summary lists: Python 3.

Does Write Protocol 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 Write Protocol 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. Review the folder before installing.

What licence does Write Protocol use?

Write Protocol is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Write Protocol use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.1k tokens, read only when the agent opens those files.

What are the alternatives to Write Protocol?

Skills that share tags, products or a category with Write Protocol: Scientific Critical Thinking (weapp-tailwindcss/weapp-tailwindcss, 1.9k stars), Claim-Driven Experiment Planner (zjYao36/Auto-Research-Refine, 128 stars), Benchmark Paper Template (HKUSTDial/Supervisor-Skills, 8.5k stars) and Research Refine Pipeline (zjYao36/Auto-Research-Refine, 128 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Write Protocol?

Aperivue (a GitHub organization) maintains it in Aperivue/medsci-skills, which has 329 GitHub stars. The repository holds 54 skills in this directory. The repository was last updated on October 5, 2026.

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