Experimental Designのロゴ

Experimental Design

コミュニティ
beita6969
experimental-design

Design rigorous scientific experiments with power analysis and controls. Use when: user needs to plan an experiment, calculate sample sizes, or set up controls. NOT for: running experiments or analyzing collected data.

概要

公開者beita6969
リポジトリScienceClaw
スキル名experimental-design
スター
950
フォーク
106
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    beita6969がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Experimental Design」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/beita6969/ScienceClaw/tree/main/skills/experimental-design
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/beita6969/ScienceClaw.git /tmp/ScienceClaw
mkdir -p .claude/skills
cp -r /tmp/ScienceClaw/skills/experimental-design .claude/skills/experimental-design
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでExperimental Designを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にExperimental Designを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Experimental Designは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Experimental Design Skill

Design rigorous, reproducible experiments across scientific disciplines.

When to Use

  • "Design an experiment to test..."
  • "How many samples do I need?"
  • "What controls should I include?"
  • "Help me plan a clinical trial"
  • "Is this experimental design valid?"
  • Power analysis and sample size calculation

When NOT to Use

  • Running the actual experiment (use code-execution)
  • Analyzing collected data (use scipy-analysis + statsmodels-stats)
  • Writing up results (use paper-writing)
  • Literature review (use literature-search)

Design Components

1. Research Question and Hypotheses

  • State clear, testable research question
  • Formulate H0 and H1 (see hypothesis-gen skill)
  • Define primary and secondary outcomes

2. Study Design Selection

DesignWhen to UseStrengthsWeaknesses
RCTCausal inference neededGold standard causalityExpensive, ethical limits
FactorialMultiple factorsTests interactionsComplex analysis
CrossoverWithin-subject comparisonReduced variabilityCarryover effects
Quasi-experimentalRandomization impossiblePractical feasibilityWeaker causality
Observational (cohort)Long-term outcomesNatural settingConfounding
Case-controlRare outcomesEfficient for rare eventsRecall bias

3. Power Analysis

python
# Sample size calculation template (using scipy/statsmodels)
from statsmodels.stats.power import TTestIndPower
analysis = TTestIndPower()
n = analysis.solve_power(
    effect_size=0.5,   # Cohen's d (small=0.2, medium=0.5, large=0.8)
    alpha=0.05,         # Significance level
    power=0.80,         # Statistical power (commonly 0.80 or 0.90)
    ratio=1.0,          # Ratio of group sizes (n2/n1)
    alternative='two-sided'
)
print(f"Required sample size per group: {int(n) + 1}")

Key parameters:

  • Effect size: Expected magnitude of difference
  • Alpha: Type I error rate (usually 0.05)
  • Power: 1 - Type II error rate (usually 0.80-0.95)
  • Attrition: Add 10-20% for expected dropout

4. Variable Control

  • Independent variables: What you manipulate
  • Dependent variables: What you measure
  • Confounding variables: What could bias results
  • Control strategies: Randomization, blocking, matching, blinding

5. Randomization

  • Simple randomization (coin flip)
  • Block randomization (balanced groups)
  • Stratified randomization (balance key covariates)
  • Cluster randomization (group-level assignment)

6. Blinding

  • Single-blind: Participants unaware of assignment
  • Double-blind: Participants and researchers unaware
  • Triple-blind: Including data analysts

Reproducibility Checklist

  • Protocol pre-registered (OSF, ClinicalTrials.gov, PROSPERO)
  • All materials/reagents specified with catalog numbers
  • Detailed step-by-step procedure written
  • Statistical analysis plan pre-specified
  • Data management plan documented
  • Raw data sharing plan established
  • Code availability ensured
  • Sample size justified with power analysis
  • Randomization method specified
  • Blinding procedures documented
  • Inclusion/exclusion criteria defined
  • Primary endpoint pre-specified

Output Format

## Experimental Design: [Title]

**Research Question**: [Clear question]
**Design Type**: [RCT/Factorial/etc.]

### Participants/Samples
- Population: [target population]
- Inclusion: [criteria]
- Exclusion: [criteria]
- Sample Size: N=[total] ([n] per group) — Power=[X], alpha=[X], effect=[X]

### Groups
- Experimental: [treatment description]
- Control: [control description]
- Blinding: [single/double/triple/none]

### Variables
- IV: [variables]
- DV: [primary + secondary outcomes]
- Controls: [confounds and how addressed]

### Procedure
1. [Step-by-step protocol]

### Analysis Plan
- Primary: [statistical test]
- Secondary: [additional analyses]
- Multiple comparison correction: [method]

### Timeline
- [Phase 1]: [duration]
- [Phase 2]: [duration]

### Ethics
- IRB/IACUC requirements: [details]
- Consent procedure: [details]

よくある質問

AIスキル「Experimental Design」では何ができますか?

Design rigorous scientific experiments with power analysis and controls. Use when: user needs to plan an experiment, calculate sample sizes, or set up controls. NOT for: running experiments or analyzing collected data.

TypingMindでExperimental Designを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Experimental Designはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにExperimental Designをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/beita6969/ScienceClaw/tree/main/skills/experimental-designを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Experimental Designを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Experimental Designで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもExperimental Designを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Experimental Design」は無料ですか?

はい。beita6969がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇