Experimental Design (DOE & randomization)
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Experimental Design (DOE & randomization)
- perks
- [ "simple-randomization", "block-randomization", "stratified-block-randomization", "cluster-randomization", "assign-factorial-runs", "full-factorial", "two-level-factorial", "fractional-factorial", "plackett-burman", "central-composite", "box-behnken", "latin-hypercube" ]
- skill
- experimental-design
02 资源文件 103
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.5 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json12.1 KB
- 参考文档ledger.json330 B
- 许可证LICENSE.txt1.0 KB
- 参考文档perks.json2.6 KB
- 参考文档perks/assign-factorial-runs/manifesto.json354 B
- 参考文档perks/assign-factorial-runs/metadata.json1.2 KB
- 脚本perks/assign-factorial-runs/src/assign_factorial_runs.sh689 B
- 参考文档perks/assign-factorial-runs/src/contracts.json337 B
- 脚本perks/assign-factorial-runs/src/randomization.py6.9 KB
- 脚本perks/assign-factorial-runs/src/run_assign_factorial_runs.py882 B
- 参考文档perks/assign-factorial-runs/test/case.json284 B
- 参考文档perks/assign-factorial-runs/test/fixture/spec.json150 B
- 参考文档perks/block-randomization/manifesto.json348 B
- 参考文档perks/block-randomization/metadata.json1.1 KB
- 脚本perks/block-randomization/src/block_randomization.sh696 B
- 参考文档perks/block-randomization/src/contracts.json365 B
- 脚本perks/block-randomization/src/randomization.py6.9 KB
- 脚本perks/block-randomization/src/run_block_randomization.py730 B
- 参考文档perks/block-randomization/test/case.json320 B
- 参考文档perks/block-randomization/test/fixture/spec.json82 B
- 参考文档perks/box-behnken/manifesto.json324 B
- 参考文档perks/box-behnken/metadata.json1.1 KB
- 脚本perks/box-behnken/src/box_behnken.sh652 B
- 参考文档perks/box-behnken/src/contracts.json351 B
- 脚本perks/box-behnken/src/doe_designs.py7.6 KB
- 脚本perks/box-behnken/src/run_box_behnken.py765 B
- 参考文档perks/box-behnken/test/case.json225 B
- 参考文档perks/box-behnken/test/fixture/spec.json100 B
- 参考文档perks/central-composite/manifesto.json342 B
- 参考文档perks/central-composite/metadata.json1.2 KB
- 脚本perks/central-composite/src/central_composite.sh669 B
- 参考文档perks/central-composite/src/contracts.json357 B
- 脚本perks/central-composite/src/doe_designs.py7.6 KB
- 脚本perks/central-composite/src/run_central_composite.py979 B
- 参考文档perks/central-composite/test/case.json231 B
- 参考文档perks/central-composite/test/fixture/spec.json71 B
- 参考文档perks/cluster-randomization/manifesto.json354 B
- 参考文档perks/cluster-randomization/metadata.json1.1 KB
- 脚本perks/cluster-randomization/src/cluster_randomization.sh695 B
- 参考文档perks/cluster-randomization/src/contracts.json364 B
- 脚本perks/cluster-randomization/src/randomization.py6.9 KB
- 脚本perks/cluster-randomization/src/run_cluster_randomization.py801 B
- 参考文档perks/cluster-randomization/test/case.json320 B
- 参考文档perks/cluster-randomization/test/fixture/spec.json76 B
- 参考文档perks/fractional-factorial/manifesto.json351 B
- 参考文档perks/fractional-factorial/metadata.json1.2 KB
- 参考文档perks/fractional-factorial/src/contracts.json360 B
- 脚本perks/fractional-factorial/src/doe_designs.py7.6 KB
- 脚本perks/fractional-factorial/src/fractional_factorial.sh675 B
- 脚本perks/fractional-factorial/src/run_fractional_factorial.py805 B
- 参考文档perks/fractional-factorial/test/case.json234 B
- 参考文档perks/fractional-factorial/test/fixture/spec.json115 B
- 参考文档perks/full-factorial/manifesto.json333 B
- 参考文档perks/full-factorial/metadata.json1.1 KB
- 参考文档perks/full-factorial/src/contracts.json354 B
- 脚本perks/full-factorial/src/doe_designs.py7.6 KB
- 脚本perks/full-factorial/src/full_factorial.sh663 B
- 脚本perks/full-factorial/src/run_full_factorial.py663 B
- 参考文档perks/full-factorial/test/case.json228 B
- 参考文档perks/full-factorial/test/fixture/spec.json79 B
- 参考文档perks/latin-hypercube/manifesto.json336 B
- 参考文档perks/latin-hypercube/metadata.json1.3 KB
- 参考文档perks/latin-hypercube/src/contracts.json355 B
- 脚本perks/latin-hypercube/src/doe_designs.py7.6 KB
- 脚本perks/latin-hypercube/src/latin_hypercube.sh664 B
- 脚本perks/latin-hypercube/src/run_latin_hypercube.py887 B
- 参考文档perks/latin-hypercube/test/case.json229 B
- 参考文档perks/latin-hypercube/test/fixture/spec.json129 B
- 参考文档perks/plackett-burman/manifesto.json336 B
- 参考文档perks/plackett-burman/metadata.json1.1 KB
- 参考文档perks/plackett-burman/src/contracts.json355 B
- 脚本perks/plackett-burman/src/doe_designs.py7.6 KB
- 脚本perks/plackett-burman/src/plackett_burman.sh662 B
- 脚本perks/plackett-burman/src/run_plackett_burman.py685 B
- 参考文档perks/plackett-burman/test/case.json229 B
- 参考文档perks/plackett-burman/test/fixture/spec.json101 B
- 参考文档perks/simple-randomization/manifesto.json351 B
- 参考文档perks/simple-randomization/metadata.json943 B
- 参考文档perks/simple-randomization/src/contracts.json366 B
- 脚本perks/simple-randomization/src/randomization.py6.9 KB
- 脚本perks/simple-randomization/src/run_simple_randomization.py665 B
- 脚本perks/simple-randomization/src/simple_randomization.sh682 B
- 参考文档perks/simple-randomization/test/case.json315 B
- 参考文档perks/simple-randomization/test/fixture/spec.json63 B
- 参考文档perks/stratified-block-randomization/manifesto.json381 B
- 参考文档perks/stratified-block-randomization/metadata.json1.1 KB
- 参考文档perks/stratified-block-randomization/src/contracts.json376 B
- 脚本perks/stratified-block-randomization/src/randomization.py6.9 KB
- 脚本perks/stratified-block-randomization/src/run_stratified_block_randomization.py869 B
- 脚本perks/stratified-block-randomization/src/stratified_block_randomization.sh722 B
- 参考文档perks/stratified-block-randomization/test/case.json344 B
- 参考文档perks/stratified-block-randomization/test/fixture/spec.json85 B
- 参考文档perks/two-level-factorial/manifesto.json348 B
- 参考文档perks/two-level-factorial/metadata.json1.1 KB
- 参考文档perks/two-level-factorial/src/contracts.json359 B
- 脚本perks/two-level-factorial/src/doe_designs.py7.6 KB
- 脚本perks/two-level-factorial/src/run_two_level_factorial.py690 B
- 脚本perks/two-level-factorial/src/two_level_factorial.sh680 B
- 参考文档perks/two-level-factorial/test/case.json233 B
- 参考文档perks/two-level-factorial/test/fixture/spec.json85 B
03 SKILL.md 正文
experimental-design — Experimental Design (DOE & randomization)
Generate seeded randomization/allocation schedules and design-of-experiments matrices (read-only, local). Each perk reads a small JSON spec and writes a reproducible CSV layout under record_store.
What to look out for
Each tool emits one line of structured JSON (the audit + debug log) and writes its artifacts under record_store. LOGS TO CHECK: that line + the named CSV + the executor run-ledger. Every layout is seeded, so the exact schedule/matrix can be archived and regenerated (a requirement for trial registration and good lab practice).
The randomization perks (simple-, block-, stratified-block-, cluster-randomization, assign-factorial-runs) need only numpy + pandas. The DOE-matrix perks (full-, two-level-, fractional-factorial, plackett-burman, central-composite, box-behnken, latin-hypercube) additionally require pyDOE3; when it is absent the porter writes a graceful empty {} artifact rather than failing.
Perks
| perk | tool | nature |
|---|---|---|
simple-randomization |
simple_randomization |
read-only — independent per-unit assignment (numpy/pandas) |
block-randomization |
block_randomization |
read-only — permuted blocks, balance throughout (numpy/pandas) |
stratified-block-randomization |
stratified_block_randomization |
read-only — blocks within strata (numpy/pandas) |
cluster-randomization |
cluster_randomization |
read-only — randomize whole clusters (numpy/pandas) |
assign-factorial-runs |
assign_factorial_runs |
read-only — randomize run order of design rows (numpy/pandas) |
full-factorial |
full_factorial |
read-only — full factorial over explicit levels (pyDOE3) |
two-level-factorial |
two_level_factorial |
read-only — full 2^k factorial (pyDOE3) |
fractional-factorial |
fractional_factorial |
read-only — 2^(k-p) from a generator (pyDOE3) |
plackett-burman |
plackett_burman |
read-only — main-effects screening (pyDOE3) |
central-composite |
central_composite |
read-only — response-surface CCD (pyDOE3) |
box-behnken |
box_behnken |
read-only — response-surface BBD, >=3 factors (pyDOE3) |
latin-hypercube |
latin_hypercube |
read-only — space-filling sample (pyDOE3) |
All perks are destructive: false: they read a JSON spec and write a CSV; nothing mutates a remote or live service.
How to use it
Pick a perk, copy ledger.json → task-ledger.json, fill its vars + record_store, then validate → compose → compile → oversight → executor.
Localized from K-Dense-AI/scientific-agent-skills
experimental-design— MIT (see LICENSE.txt).
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.