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.pyuses the Pythonexec()andcompile()functions to dynamically run code blocks extracted from the skill's own reference markdown files (such asreferences/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.pyinvokes shell commands usingsubprocess.run()to execute theRscriptinterpreter 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