Use when the user is planning a two-arm comparison (an A/B test, a simple RCT, a behavioral study, or a two-model/two-config evaluation) and needs to size it and preregister it before collecting data — finding the per-group sample size that hits target statistical power for the smallest effect worth detecting, auditing the design against a validity checklist, and locking it in a preregistration. Only for a single two-arm comparison with one primary outcome. Not for factorial, repeated-measures, clustered/multilevel, time-series, adaptive, or survival designs; not for analyzing data already collected; not for choosing the outcome or manipulation from domain knowledge.
$npx -y skills add gaasher/agent-loop-skills --skill power-analysisInstalls into the current project.
Run `npx skills use "https://github.com/gaasher/agent-loop-skills" --skill "gaasher/agent-loop-skills/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/gaasher/agent-loop-skills" that are relevant to the current task. Run `npx skills add "https://github.com/gaasher/agent-loop-skills"` and select the relevant skills, then follow their instructions.