batch-cohort

Generate multiple analysis scripts from a validated template across exposure/outcome pairs.

243|60|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Aperivue/medsci-skills --skill batch-cohort
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: batch-cohort
Source: https://github.com/Aperivue/medsci-skills/tree/main/skills/batch-cohort
Command: npx skills add https://github.com/Aperivue/medsci-skills --skill batch-cohort

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Batch-cohort addresses the need to systematically generate many analysis scripts from a single validated methodology to accelerate batch analyses and ensure consistency across multiple exposure/outcome combinations.

Core Features & Use Cases

  • Batch code generation: produce multiple scripts from one template by swapping exposure/outcome variables.
  • Compliance-friendly pipeline: automatic documentation of covariate adjustments, event checks, and reproducibility metadata.
  • Use Case: a data analyst wants to run 20 cohort analyses with different exposure/outcome pairs using the same methodology and compare results in a unified summary matrix.

Quick Start

Provide a validated template and exposure/outcome lists to generate per-combination scripts plus a master runner.

Frequently Asked Questions about batch-cohort

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch generate analysis scripts for multiple exposure and outcome pairs?

Batch code generation automates producing multiple scripts from one template by swapping exposure/outcome variables. It enforces reproducibility constraints, requiring a fixed covariate set, event checks, and a frozen template with a SHA256 hash.

How does batch code generation ensure reproducibility across cohort analyses?

Batch code generation ensures reproducibility by freezing the methodology template with a SHA256 hash and enforcing a fixed covariate set. It automatically documents covariate adjustments and event checks across all generated analysis pipelines.

Can I use batch cohort analysis with both R and Python?

Yes, batch cohort analysis supports generating reproducible pipelines and code for data-analytic studies using either R or Python. You provide a validated template and the tool generates the appropriate per-combination scripts plus a master runner.

What is the best way to run 20 cohort analyses with the same methodology?

The best way to run multiple cohort analyses with the same methodology is using a single validated template. You provide exposure/outcome lists to batch generate individual scripts and aggregate results into a unified summary matrix for comparison.

Do I need a fixed covariate set to automate analysis script generation?

Yes, a fixed covariate set is a strict requirement for automating analysis script generation. The tool enforces safety constraints to ensure covariate adjustments are documented consistently across all exposure/outcome combinations in your batch.