calc-sample-size

Pass

Audited by Gen Agent Trust Hub on Nov 23, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The file tests/test_worked_examples.py uses the Python exec() and compile() functions to dynamically run code blocks extracted from the skill's own reference markdown files (such as references/formulas.md). This mechanism is used as a self-test to ensure the embedded R and Python snippets produce results consistent with established statistical libraries.
  • [COMMAND_EXECUTION]: The skill instructs the agent to execute R and Python code via the shell (Bash) to perform calculations and return results to the user. Additionally, the test utility tests/test_worked_examples.py invokes shell commands using subprocess.run() to execute the Rscript interpreter during the validation process.
  • [INDIRECT_PROMPT_INJECTION]: The skill workflow (Phase 2 and 3) ingests user-provided study parameters, such as anticipated effect sizes and prevalence rates, and interpolates them into code templates. This creates a surface where unvalidated user input directly influences the generation of executable scripts.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 23, 2026, 06:55 PM