| name | study-design |
| description | Convert a qualified research brief and evidence ledger into a testable study-design contract with an explicit estimand, measurement plan, bias analysis, analysis plan, falsifiers, and governance gates. Use after topic qualification and before data analysis or manuscript drafting. |
Study Design
Design the smallest credible study that answers the qualified question. Do not
add methods because they are fashionable or conventional.
Required inputs
Require:
research-brief.md with a bounded CONTINUE or specified PIVOT;
evidence-ledger.json with the minimum canonical fields;
- verified information about available data or planned collection.
Use ../../templates/study-design.md. If a required input is absent, invalid,
or blocked, set the design status to BLOCKED and identify the exact repair
action.
Evidence and inference boundary
Anchor design choices to the research brief, evidence ledger, data
documentation, or user decisions. Mark unsupported assumptions explicitly.
Never invent data availability, sample size, event rates, measurement
properties, approvals, registrations, or power.
Design workflow
- Express the question as a population, focal condition or exposure,
comparator, outcome, and time horizon.
- State the target estimand or descriptive quantity and its interpretation.
- Choose the design and explain why it identifies or describes that target.
- Lock time zero, eligibility, follow-up, measurement timing, and unit of
analysis.
- Classify variables as exposure, outcome, confounder, effect modifier,
precision variable, mediator, or excluded variable. Do not adjust for a
mediator or collider without an explicit rationale.
- Enumerate identification assumptions and threats: confounding, selection,
attrition, measurement error, missingness, multiplicity, and leakage.
- Define the primary analysis, uncertainty estimate, diagnostics,
sensitivity analyses, negative controls, and falsification tests.
- Build a risk register that names each threat or likely review attack,
observable trigger, impact, contingency, required evidence, and owner or
human decision. Do not describe a contingency as completed work.
- Define reproducibility, protocol-deviation, ethics, privacy, and data-use
gates.
Decision
Choose:
DESIGN_READY: all non-compensable gates pass;
REVISE: a specific design change can close the remaining gap;
BLOCKED: data, measurement, identification, ethics, or feasibility cannot
currently support the question.
Any parser or tool failure is evidence that a check was not completed, not a
pass. Do not silently fill or auto-repair missing inputs.
Call record_checkpoint with the decisive assumption, uncertainty, or stop
rule. Prefix the statement with [study-design].
Output
Write study-design.md from the template and return a concise summary of:
- question and estimand;
- design and measurement;
- bias and identification assumptions;
- primary and sensitivity analyses;
- risk register and contingencies;
- reproducibility and governance;
DESIGN_READY, REVISE, or BLOCKED;
- unresolved gates and evidence needed.