← 返回 Skills 市场
100
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install sample-size-power-calculator
功能描述
Advanced sample size and power calculations for complex study designs including survival analysis, clustered designs, and multiple comparisons.
安全使用建议
This package appears to implement legitimate sample-size calculations, but there are multiple documentation⇄code mismatches and some missing input validation. Before installing or running it: 1) Review and reconcile SKILL.md examples with scripts/main.py argument names (use --help to confirm valid flags). 2) Install numpy/scipy in an isolated environment (venv/container). 3) Test edge cases (missing args, hazard_ratio <= 0, None effect sizes) because the script assumes required numeric inputs and may raise exceptions. 4) Confirm the non-inferiority path (main.py asks for sigma via API use; CLI just prints a message). 5) Ignore the SKILL.md 'Network Access: High' entry unless you add network code — the current script makes no network calls. 6) Run the script on non-sensitive sample data first and review outputs for correctness before using results in real study planning. If you need higher assurance, request the author to fix documentation mismatches and add explicit input validation and argument parsing checks.
功能分析
Type: OpenClaw Skill
Name: sample-size-power-calculator
Version: 1.0.0
The skill bundle provides a statistical calculator for sample size and power analysis using standard libraries (numpy, scipy). The Python script (scripts/main.py) implements basic statistical formulas for t-tests, chi-square, and survival analysis without any high-risk behaviors like network access, file system manipulation, or shell execution. While the SKILL.md documentation contains a risk assessment table claiming 'High' risk for network access and external API calls, these appear to be artifacts of a generic template, as the actual code contains no such functionality. The agent instructions are well-structured, focusing on input validation and error handling.
能力评估
Purpose & Capability
The name/description (advanced sample size & power calculations) match the included implementation (scripts/main.py) and the declared dependencies (numpy, scipy). The script implements t-tests, chi-square, survival (log-rank), ANOVA, non-inferiority helpers and dropout adjustment — all coherent with the stated purpose.
Instruction Scope
SKILL.md instructs the agent/user to run scripts/main.py and provides example usage, but several documented argument names and examples do not match the actual CLI implemented in scripts/main.py (e.g., SKILL.md examples show '--test ttest' or '--test survival' and table uses names like 'ttest'/'chi2', while main.py requires choices like 'ttest-ind','ttest-paired','chisq','survival','anova','noninf'). The documentation also flags 'Network Access' as High even though the packaged script contains no network calls. The SKILL.md asks to confirm inputs and sandboxing (good) but the runtime instructions are inconsistent and could lead to runtime errors or mis-invocation.
Install Mechanism
There is no install spec; this is instruction-plus-source. requirements.txt lists only numpy and scipy, which are reasonable and proportional to the computations performed. No downloads from untrusted URLs or extract operations are present.
Credentials
The skill requests no environment variables, no credentials, and no special config paths. This is appropriate for a local numerical script. (No evidence of hidden credential usage in code.)
Persistence & Privilege
The skill does not request 'always' presence and does not modify other skills or system settings. It runs as a standalone script and does not request elevated or persistent privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install sample-size-power-calculator - 安装完成后,直接呼叫该 Skill 的名称或使用
/sample-size-power-calculator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of advanced sample size and power calculator:
- Provides sample size and power calculations for complex study designs, including survival analysis, clustered designs, and multiple comparison scenarios.
- Supports t-test (paired/independent), chi-square, log-rank (survival), ANOVA, regression, and non-inferiority designs.
- Includes structured workflow for reproducible, audit-ready outputs with explicit assumptions and fallback/error handling.
- Features CLI-based interaction (`scripts/main.py`) with comprehensive parameter and risk documentation.
- Emphasizes security, validation, and constraints to ensure responsible data handling and output consistency.
元数据
常见问题
Sample Size & Power Calculator (Advanced) 是什么?
Advanced sample size and power calculations for complex study designs including survival analysis, clustered designs, and multiple comparisons. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 100 次。
如何安装 Sample Size & Power Calculator (Advanced)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install sample-size-power-calculator」即可一键安装,无需额外配置。
Sample Size & Power Calculator (Advanced) 是免费的吗?
是的,Sample Size & Power Calculator (Advanced) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Sample Size & Power Calculator (Advanced) 支持哪些平台?
Sample Size & Power Calculator (Advanced) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Sample Size & Power Calculator (Advanced)?
由 AIpoch(@aipoch-ai)开发并维护,当前版本 v1.0.0。
推荐 Skills