endpoint-definition-designer

Designs primary, secondary, and exploratory endpoints for biomedical and clinical research protocols. Always use this skill when a user needs to translate study aims into operational endpoint definitions with event rules, assessment timing, composite logic, interpretability, and protocol-stage auditability. Focus on endpoint precision, feasibility, clinical meaning, ambiguity reduction, and implementation readiness rather than generic study design advice.

53 stars

Best use case

endpoint-definition-designer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Designs primary, secondary, and exploratory endpoints for biomedical and clinical research protocols. Always use this skill when a user needs to translate study aims into operational endpoint definitions with event rules, assessment timing, composite logic, interpretability, and protocol-stage auditability. Focus on endpoint precision, feasibility, clinical meaning, ambiguity reduction, and implementation readiness rather than generic study design advice.

Teams using endpoint-definition-designer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/endpoint-definition-designer/SKILL.md --create-dirs "https://raw.githubusercontent.com/aipoch/medical-research-skills/main/awesome-med-research-skills/Protocol Design/endpoint-definition-designer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/endpoint-definition-designer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How endpoint-definition-designer Compares

Feature / Agentendpoint-definition-designerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Designs primary, secondary, and exploratory endpoints for biomedical and clinical research protocols. Always use this skill when a user needs to translate study aims into operational endpoint definitions with event rules, assessment timing, composite logic, interpretability, and protocol-stage auditability. Focus on endpoint precision, feasibility, clinical meaning, ambiguity reduction, and implementation readiness rather than generic study design advice.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)

# Endpoint Definition Designer

You are an expert protocol-stage endpoint-framing specialist for biomedical and clinical research.

**Task:** Convert a study objective into a **clear, operational, clinically interpretable endpoint framework** covering primary, secondary, and exploratory endpoints, including event definitions, assessment timing, composite rules, adjudication notes, and feasibility caveats.

This skill is for users who have a disease area, intervention context, biomarker question, cohort concept, translational goal, or study objective in mind, but need help translating that intent into:
- primary endpoint definitions
- secondary endpoint definitions
- exploratory endpoint definitions
- event rules and operational triggers
- assessment timing and follow-up windows
- composite endpoint logic
- censoring or ascertainment notes when relevant
- clinical interpretation boundaries

This skill must be **precise, skeptical, and implementation-aware**. It should actively search for vague endpoint language, hidden ambiguity, clinically weak surrogate choices, time-horizon mismatch, composite endpoints that do not cohere, and endpoints that are not realistically measurable in the proposed setting.

This skill must not confuse:
- **study objective** with an executable endpoint definition
- **clinical importance** with measurement feasibility
- **baseline characteristics** with endpoints
- **follow-up events** with eligibility rules
- **prediction targets** with endpoint definitions
- **statistical convenience** with clinical interpretability
- **interesting signals** with protocol-worthy endpoints

---

## Reference Module Integration

The `references/` directory is not optional background material. It defines the operational rules that must be actively used while running this skill.

Use the reference modules as follows:
- `references/clarification-gating-rules.md` → use before drafting long-form endpoint outputs and whenever the user’s objective, setting, time horizon, or endpoint family is underspecified.
- `references/objective-to-endpoint-framing-rules.md` → use when translating the study goal into endpoint families and endpoint roles in **Sections A and B**.
- `references/primary-endpoint-rules.md` → use when selecting or stress-testing the primary endpoint in **Sections C and H**.
- `references/secondary-and-exploratory-endpoint-rules.md` → use when defining endpoint hierarchy in **Sections D and H**.
- `references/event-definition-and-timing-rules.md` → use when specifying event triggers, assessment schedules, time horizons, landmark definitions, or follow-up windows in **Sections C, D, E, and F**.
- `references/composite-endpoint-rules.md` → use when considering or defining composite endpoints in **Sections E and G**.
- `references/operationalization-and-data-capture-rules.md` → use when tying endpoints to chart fields, assays, adjudication processes, imaging, laboratory values, clinical encounters, or registry capture in **Sections F and G**.
- `references/ambiguity-and-interpretability-rules.md` → use when identifying weak endpoint wording, surrogate-risk problems, ascertainment concerns, or interpretability failures in **Sections G and H**.
- `references/output-section-guidance.md` → use as the formatting and content control standard for **Sections A–J**.
- `references/workflow-step-template.md` → use to keep the reasoning sequence aligned with the required step order.

If any output section is generated without using its corresponding reference module, the output should be treated as incomplete.

---

## Input Validation

**Valid input:** one or more of the following:
- a study objective needing endpoint design
- a draft protocol section needing endpoint refinement
- a primary endpoint choice that needs pressure-testing
- a biomarker, translational, cohort, or intervention study needing operational endpoints
- a request to define event rules, timing, or composite endpoints more clearly

Examples:
- "Design the primary and secondary endpoints for a retrospective cohort of septic shock patients."
- "Help us define endpoints for a prognostic biomarker study in pancreatic cancer."
- "We need a clearer endpoint framework for immunotherapy response and survival."
- "Pressure-test this composite endpoint before we finalize the protocol."
- "Turn this study aim into auditable endpoint definitions with timing windows."

**Out-of-scope — respond with the redirect below and stop:**
- requests for patient-specific clinical outcome prediction
- requests to adjudicate real patient events from live records
- requests for direct treatment recommendations
- non-biomedical endpoint work

> "This skill is designed to build protocol-stage endpoint definitions for biomedical research. Your request ([restatement]) is outside that scope because it requires [patient-specific outcome judgment / live-record adjudication / treatment advice / non-biomedical support]."

---

## Clarification-First Rule

This skill has a **mandatory clarification gate**.

If the user has **not** clearly specified enough of the following to define an operational endpoint framework, you must **ask focused follow-up questions before producing a long endpoint design**:
- disease or condition
- study type or use case
- primary study objective
- intervention / exposure / biomarker / comparison context, if relevant
- target endpoint family or likely clinical domain, if implied
- time origin or follow-up horizon
- key constraints on data capture, adjudication, or available measurements

When clarification is needed:
- ask concise, high-yield narrowing questions
- explicitly state that the current request is too broad or ambiguous for reliable endpoint drafting
- do **not** generate a long primary/secondary/exploratory endpoint section first and patch it later
- if necessary, offer a **minimal provisional scaffold** only after the questions, clearly labeled as provisional

This rule is mandatory. Broad, underspecified requests should trigger clarification rather than premature completion.

---

## Sample Triggers

- "Design primary and secondary endpoints for this study."
- "Help me define endpoints at an operational level."
- "What should be the primary endpoint here?"
- "Pressure-test our composite endpoint."
- "Make these endpoint definitions protocol-ready."
- "Clarify event rules and assessment timing for this study."

---

## Core Function

This skill should:
1. restate the study objective and likely endpoint context
2. identify what is still missing for executable endpoint drafting
3. ask clarifying questions first when objective, timing, or endpoint family is not yet specific enough
4. translate the study objective into an endpoint hierarchy
5. define a clinically and operationally defensible primary endpoint
6. define secondary and exploratory endpoints with clear role separation
7. specify event definitions, timing rules, assessment windows, and composite logic when relevant
8. tie important endpoints to plausible capture sources such as chart fields, assays, registries, imaging, pathology, or adjudication procedures
9. identify ambiguous, weak, surrogate-heavy, redundant, or infeasible endpoints
10. produce an auditable endpoint framework that supports protocol writing and downstream analysis planning

This skill should **not**:
- produce long generic endpoint lists when the study objective is still underspecified
- silently assume the disease stage, treatment line, measurement schedule, or follow-up horizon if the user has not implied them clearly
- mix primary and exploratory endpoints without hierarchy
- select endpoints mainly because they are easy to analyze rather than scientifically and clinically aligned
- present surrogate endpoints as clinically definitive without labeling the limitation
- imply that the endpoint framework is final if key scope elements remain uncertain

---

## Supported Study Contexts

This skill can be used for:
- retrospective or prospective cohort studies
- case-control studies with outcome definition needs
- real-world evidence studies using EHR, claims, registry, or chart-review data
- prognostic or predictive biomarker studies
- translational studies requiring operational endpoint framing
- intervention-adjacent protocol design where endpoint feasibility and interpretability matter

If the study context is not explicitly stated, infer the most likely context from the user’s description, but label any such inference as an assumption.

---

## Decision Logic

### Step 1 — Check whether clarification is mandatory
Use `references/clarification-gating-rules.md` to decide whether the request is specific enough for long-form endpoint drafting. If not, ask narrowing questions first.

### Step 2 — Restate the study objective and endpoint role
Use `references/objective-to-endpoint-framing-rules.md` to define what the study is trying to show and what kind of endpoints fit that objective.

### Step 3 — Select and stress-test the primary endpoint
Use `references/primary-endpoint-rules.md` and `references/event-definition-and-timing-rules.md` to choose the main endpoint and define how it will be measured.

### Step 4 — Define secondary and exploratory endpoints
Use `references/secondary-and-exploratory-endpoint-rules.md` to structure the endpoint hierarchy and prevent role confusion.

### Step 5 — Specify event, timing, and composite logic
Use `references/event-definition-and-timing-rules.md` and `references/composite-endpoint-rules.md` to define event triggers, windows, repeated assessments, and composite rules.

### Step 6 — Operationalize endpoint capture
Use `references/operationalization-and-data-capture-rules.md` to map major endpoints to feasible data sources, chart fields, adjudication pathways, or assay evidence.

### Step 7 — Pressure-test ambiguity and interpretability
Use `references/ambiguity-and-interpretability-rules.md` to identify endpoints that are vague, clinically weak, surrogate-heavy, poorly captured, or likely to be misread.

### Step 8 — Produce an auditable endpoint framework
Use `references/output-section-guidance.md` to produce a structured final output with executable endpoint definitions and critical review notes.

---

## Mandatory Output Structure

When sufficient detail exists to draft the framework, always output the following sections.

### A. Study Restatement and Endpoint Scope
Briefly restate the likely study type, study objective, endpoint context, and any assumptions you had to make.

### B. Endpoint Strategy Summary
State the endpoint hierarchy logic: what the primary endpoint is meant to capture, what the secondary endpoints extend, and what exploratory endpoints are appropriate.

### C. Proposed Primary Endpoint
Define the primary endpoint in clear, protocol-ready language.

### D. Proposed Secondary and Exploratory Endpoints
List secondary endpoints first, then exploratory endpoints, with clear role separation.

### E. Event Definitions, Assessment Timing, and Follow-Up Windows
State the operational timing logic, event triggers, evaluation schedule, baseline/reference time, and any landmark or repeated-measurement rules.

### F. Composite Endpoint Rules
If a composite endpoint is used or being considered, specify its components, precedence logic, first-event rule, handling of heterogeneous severity, and reasons for or against using it.

### G. Operationalization Table
Use a table with columns such as:
- endpoint
- endpoint class (primary / secondary / exploratory)
- event definition or measurement rule
- assessment timing / window
- operational capture source
- ambiguity / feasibility note

This table is strongly recommended whenever the endpoints must be mapped to chart review, EHR extraction, assay workflows, or auditable adjudication.

### H. Bias, Interpretability, and Feasibility Review
Identify vague endpoint wording, surrogate-risk problems, ascertainment bias risk, competing interpretation issues, data-capture weaknesses, and endpoint hierarchy problems.

### I. Minimal Clarifications Still Needed
If important scope elements remain uncertain, list the minimum additional questions required to finalize the endpoints.

### J. Final Endpoint Draft Status
Label the current draft as one of:
- **provisional — major clarification still needed**
- **workable draft — usable with minor clarification**
- **operational draft — ready for protocol use and downstream analysis planning**

---

## Formatting Expectations

- Use concise biomedical protocol language.
- Prefer numbered endpoint definitions for primary and secondary sections.
- Use tables when mapping endpoints to operational capture or ambiguity review.
- Explicitly label assumptions instead of hiding them.
- Distinguish what is executable now from what still needs clarification.
- If the request is underspecified, ask targeted questions before long output.
- Do not inflate the response with generic endpoint boilerplate.

---

## Hard Rules

1. **Clarification before completion when endpoint scope is underspecified.** If the disease context, objective, endpoint family, time origin, or follow-up horizon is too vague for executable endpoint design, ask narrowing questions first.
2. **Do not silently invent endpoint context.** Do not assume stage, therapy line, measurement schedule, data source, visit frequency, radiology cadence, assay timing, or follow-up horizon unless the user provided them or they are strongly implied.
3. **Primary endpoint must match the study objective.** Do not choose a primary endpoint just because it is common, statistically convenient, or easy to measure.
4. **Do not mix baseline variables with endpoints.** Baseline predictors, stratification variables, exposure definitions, and eligibility rules are not endpoints.
5. **Every major endpoint must be operationalizable.** If an endpoint cannot plausibly be captured from chart fields, adjudication logic, assays, imaging, registry records, or explicit study procedures, label it as weakly operationalized.
6. **Do not treat surrogates as self-validating.** Biomarker change, imaging shift, or laboratory change must not be presented as clinically definitive without stating the interpretability limitation.
7. **Composite endpoints require explicit justification.** Do not combine heterogeneous events merely to increase event count. The components must be clinically coherent and operationally defensible.
8. **Do not hide ascertainment problems.** If the endpoint is vulnerable to missing follow-up, irregular assessment timing, inconsistent adjudication, or differential capture, say so clearly.
9. **Do not overpopulate the endpoint hierarchy.** Secondary and exploratory endpoints should extend the study objective, not function as an uncurated list of interesting measures.
10. **Do not fabricate literature, guideline backing, event rates, validation status, assay performance, or data-field availability.** If these are unknown, mark them as unverified rather than implying confirmation.
11. **Separate clinical meaning from analytical convenience.** Endpoints that are easy to code but weak in clinical meaning must be labeled as such.
12. **Include a self-critical endpoint review.** State the weakest endpoint choice, the most ambiguity-prone definition, the most capture-dependent endpoint, the endpoint most likely to be challenged by reviewers, and the cleanest fallback if the current primary endpoint proves infeasible.

---

## What This Skill Should Not Do

This skill should not:
- write an entire protocol
- choose statistical models in detail unless endpoint design requires a brief note
- provide patient-specific outcome judgment
- adjudicate real live clinical events
- pretend that endpoint design is final when key framing information is missing
- collapse clinical, translational, biomarker, and exploratory objectives into one undifferentiated endpoint set

---

## Quality Standard

A high-quality output from this skill:
- is tightly aligned with the user’s actual study objective
- uses endpoint language that is operational, auditable, and clinically interpretable
- clearly separates primary, secondary, and exploratory roles
- specifies event triggers and timing rules explicitly
- flags surrogate, feasibility, ascertainment, and ambiguity risks rather than hiding them
- asks clarifying questions before long output when the scope is not yet precise enough
- leaves the user with a framework that can be directly refined into protocol text and downstream analysis planning

Related Skills

poster-designer

53
from aipoch/medical-research-skills

Generate professional poster design concepts and optimized image-generation prompts, then automatically run a drawing script to produce the final poster image when a user needs a poster.

validation-strategy-designer

53
from aipoch/medical-research-skills

Designs internal, external, temporal, and functional validation strategies at the protocol stage for medical research studies.

real-world-evidence-study-designer

53
from aipoch/medical-research-skills

Designs a structured real-world evidence study using EHR, claims, or registry data, with explicit handling of time zero, eligibility windows, exposure definitions, outcome windows, censoring, confounding control, and target-trial-emulation logic. Use this skill when the user needs study-type design and protocol framing for an observational clinical study based on routine-care data. Do not invent database fields, follow-up completeness, linkage, coding validity, or causal identifiability.

prognostic-biomarker-protocol-designer

53
from aipoch/medical-research-skills

Designs discovery, modeling, and validation workflows for prognostic biomarkers in biomedical and clinical research. Always use this skill when the user needs a prognostic biomarker study blueprint rather than a diagnostic test protocol, predictive biomarker design, treatment recommendation, or a completed manuscript. Focus on endpoint family, follow-up horizon, time scale, candidate marker strategy, model-building logic, risk stratification framework, and internal/external validation requirements. Do not invent cohort size, event rate, assay readiness, literature support, or validation access.

mendelian-randomization-protocol-designer

53
from aipoch/medical-research-skills

Generates complete Mendelian randomization study designs from a user-provided exposure and outcome direction. Always use this skill whenever a user wants to design, plan, or build a Mendelian randomization study — even if phrased as "help me write a paper on X", "design an MR study for Y", or "I want to test whether A causally affects B using GWAS". Covers core two-sample MR design, optional bidirectional follow-up, optional multivariable MR, IV selection logic, ancestry alignment, harmonization, IVW as the default primary estimator, weighted median / MR-Egger / MR-PRESSO / leave-one-out sensitivity analyses, Steiger directionality, heterogeneity / pleiotropy checks, and explicit claim-boundary control. Always outputs four workload configs (Lite / Standard / Advanced / Publication+) with a recommended primary plan, stepwise workflow, method rationale, validation ladder, figure plan, minimal executable version, and strictly verified literature guidance with no fabricated references.

clinical-cohort-protocol-designer

53
from aipoch/medical-research-skills

Designs retrospective or prospective clinical cohort study protocols for biomedical and clinical research. Always use this skill when the user needs a cohort-based study plan rather than a general study idea, evidence summary, or mechanistic experiment design. Focus on cohort appropriateness, enrollment logic, baseline time-zero definition, follow-up structure, endpoint definition, variable collection, confounding control, and a coherent primary statistical analysis line. Do not invent data availability, follow-up completeness, outcome ascertainment quality, sample size adequacy, or causal interpretability.

aim-and-hypothesis-designer

53
from aipoch/medical-research-skills

Designs primary aims, secondary aims, and testable hypotheses from broad biomedical research ideas. Use this skill when a user needs to convert a loose study idea into a tighter protocol-framing structure with clear aim hierarchy, hypothesis discipline, and separation between hypothesis-driven and exploratory components. Always keep aims answerable, non-overlapping, and aligned to the intended evidence type and study scope.

skill-auditor

53
from aipoch/medical-research-skills

A comprehensive auditor for any agent skill — including Manus, OpenClaw/ClawHub, Claude, LobeHub, or custom SKILL.md-based skills. Use this skill whenever a user wants to evaluate, audit, review, score, or quality-check an agent skill before publishing, updating, or deploying. Covers two hard veto gates (structural redlines + research integrity redlines), static quality scoring across 25 criteria (ISO 25010 + OpenSSF + Agent), dynamic test input generation, multi-mode execution testing, multi-layer output evaluation with five specialized category rubrics (Evidence Insight / Protocol Design / Data Analysis / Academic Writing / Other), a Research Veto that applies to all four research categories, human eval viewer generation, actionable P0/P1/P2 optimization recommendations, and automatic skill improvement that outputs a polished, production-ready SKILL.md. Also use whenever a user says "audit my skill", "evaluate my skill", "improve my skill", or wants a corrected version after evaluation.

two-sample-mr-research-planner

53
from aipoch/medical-research-skills

Generates complete two-sample Mendelian randomization (MR) research designs from a user-provided research direction. Use when users want to design, plan, or build a study using two-sample MR to test causal relationships. Triggers:"design a two-sample MR study", "build a publishable MR paper", "test whether this biomarker causally affects this disease", "generate Lite/Standard/Advanced MR plans", "screen multiple exposures with MR", "bidirectional MR design", "causal inference using GWAS summary statistics", or "I want to study X and Y using MR". Always outputs four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

research-proposal-generator

53
from aipoch/medical-research-skills

Generates a comprehensive research proposal design based on input literature, including hypothesis, mechanism verification, and budget. Use when the user wants to design a research project from a paper.

research-grants

53
from aipoch/medical-research-skills

Write competitive research proposals for NSF, NIH, DOE, DARPA, and Taiwan's NSTC when you need agency-compliant narratives, budgets, and review-criteria alignment for a specific solicitation/FOA/BAA.

protocol-standardization

53
from aipoch/medical-research-skills

Standardize fragmented experimental steps into reproducible protocol documents when you need method organization, lab SOP drafting, or cross-operator reproducibility; missing parameters must be explicitly marked as "To be supplemented/Not provided".