sample-size-basic

Basic sample size calculator for clinical research planning with common statistical scenarios

3,891 stars

Best use case

sample-size-basic is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Basic sample size calculator for clinical research planning with common statistical scenarios

Teams using sample-size-basic should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/sample-size-basic/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aipoch-ai/sample-size-basic/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/sample-size-basic/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How sample-size-basic Compares

Feature / Agentsample-size-basicStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Basic sample size calculator for clinical research planning with common statistical scenarios

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Sample Size (Basic)

Basic sample size estimation for clinical research planning.

## Use Cases
- Quick sample size estimates for grant proposals
- Preliminary study design calculations
- Educational purposes for statistics training

## Parameters
- `test_type`: Type of test (t_test, chi_square, proportion)
- `alpha`: Significance level (default 0.05)
- `power`: Statistical power (default 0.80)
- `effect_size`: Expected effect size
- `baseline_rate`: Baseline proportion (for proportion tests)

## Returns
- Required sample size per group
- Total sample size
- Statistical assumptions summary

## Example
Input: Two-sample t-test, alpha=0.05, power=0.80, effect_size=0.5
Output: n=64 per group, total=128 subjects

## Risk Assessment

| Risk Indicator | Assessment | Level |
|----------------|------------|-------|
| Code Execution | Python/R scripts executed locally | Medium |
| Network Access | No external API calls | Low |
| File System Access | Read input files, write output files | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Output files saved to workspace | Low |

## Security Checklist

- [ ] No hardcoded credentials or API keys
- [ ] No unauthorized file system access (../)
- [ ] Output does not expose sensitive information
- [ ] Prompt injection protections in place
- [ ] Input file paths validated (no ../ traversal)
- [ ] Output directory restricted to workspace
- [ ] Script execution in sandboxed environment
- [ ] Error messages sanitized (no stack traces exposed)
- [ ] Dependencies audited
## Prerequisites

```bash
# Python dependencies
pip install -r requirements.txt
```

## Evaluation Criteria

### Success Metrics
- [ ] Successfully executes main functionality
- [ ] Output meets quality standards
- [ ] Handles edge cases gracefully
- [ ] Performance is acceptable

### Test Cases
1. **Basic Functionality**: Standard input → Expected output
2. **Edge Case**: Invalid input → Graceful error handling
3. **Performance**: Large dataset → Acceptable processing time

## Lifecycle Status

- **Current Stage**: Draft
- **Next Review Date**: 2026-03-06
- **Known Issues**: None
- **Planned Improvements**: 
  - Performance optimization
  - Additional feature support

Related Skills

two-sample-mr-research-planner

3891
from openclaw/skills

Generates complete two-sample Mendelian randomization (MR) research designs from a user-provided research direction. Use when users want to design, plan, or build a study using two-sample MR to test causal relationships. Triggers: "design a two-sample MR study", "build a publishable MR paper", "test whether this biomarker causally affects this disease", "generate Lite/Standard/Advanced MR plans", "screen multiple exposures with MR", "bidirectional MR design", "causal inference using GWAS summary statistics", or "I want to study X and Y using MR". Always outputs four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

sample-size-power-calculator

3891
from openclaw/skills

Advanced sample size and power calculations for complex study designs including survival analysis, clustered designs, and multiple comparisons.

Sample Text Processor

3891
from openclaw/skills

---

freezer-sample-locator

3891
from openclaw/skills

Track and retrieve sample locations in -80°C freezers with hierarchical storage organization. Trigger conditions: - User needs to record sample storage positions (freezer ID, level, rack, box, grid position) - User requests to search samples by name, project, date, or location - User requires sample inventory management and export functionality Input: Sample metadata (name, project, quantity) and storage coordinates Output: Structured sample location records with search and export capabilities Success criteria: - Accurate position recording without conflicts - Fast search and retrieval (<1 second for 1000+ samples) - Data integrity maintained across operations - Export in multiple formats (JSON, CSV) Risk level: MEDIUM (Script execution with file system access) Technical difficulty: INTERMEDIATE Version: v1.0 Owner: 研发部 Last updated: 2026-02-06

skill-example-synthesizer

3891
from openclaw/skills

为 Skill 生成高质量正例、反例和边界例,提升路由与可理解性。;use for skills, examples, routing workflows;do not use for 只给笼统例子, 忽视误触发场景.

qa-scenario-synthesizer

3891
from openclaw/skills

把需求拆成功能、异常、跨端、脏输入和恢复场景测试集。;use for qa, test-scenarios, edge-cases workflows;do not use for 宣称已经完成测试, 忽略关键用户路径.

customer-voice-synthesizer

3891
from openclaw/skills

聚合客服、销售、评价与访谈中的用户原声,并按 JTBD/阶段组织。;use for customer-voice, jtbd, research workflows;do not use for 泄露用户隐私, 选择性忽略负面声音.

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research