Compute statistical power, required sample size, and minimum detectable effect (MDE) for a study design, then write a registry-ready power section. Handles two-arm RCTs (with clustering / ICC and unequal allocation), multiple-arm corrections, and a simulation-based power option for non-standard designs (DiD/event-study, IV, panel). Use when user says "power analysis", "power calculation", "MDE", "minimum detectable effect", "how big a sample do I need", "is my study powered", "power for an RCT", or when /preregister needs a power section for an experiment. Produces a power/MDE table, power curves, and a methods paragraph to paste into a preregistration.
$npx -y skills add pedrohcgs/claude-code-my-workflow --skill power-analysisInstalls into the current project.
Run `npx skills use "https://github.com/pedrohcgs/claude-code-my-workflow" --skill "pedrohcgs/claude-code-my-workflow/power-analysis"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/pedrohcgs/claude-code-my-workflow" that are relevant to the current task. Run `npx skills add "https://github.com/pedrohcgs/claude-code-my-workflow"` and select the relevant skills, then follow their instructions.