技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
posterior_object_contracts【数据与研究】Validate and normalize posteriordb posterior, model, data, and reference object contracts for benchmarking workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or benchmark task needs to inspect a posteriordb-style database snapshot and verify that a named posterior has valid links to model, data, dimensions, and reference posterior metadata. Do not use it to run Stan code or infer posterior samples.
database_root: directory containing posteriors/, models/info/, data/info/, and optionally reference_posteriors/info/.posterior_name: posterior JSON basename, for example eight_schools-eight_schools_centered.valid: false.posteriors/<posterior_name>.json from the supplied snapshot.model_name, data_name, reference_posterior_name, dimensions, and dimension.models/info/, data/info/, and reference_posteriors/info/ without reading implementation code.total_dimension from numeric dimension entries and collect missing-link errors.Run python scripts/posterior_contracts.py --database-root <root> --posterior <name> --output contract.json or python tests/test_posterior_contracts.py through the Distiller skill validator.
The script validates file contracts and metadata links only. It does not guarantee that model code compiles, reference draws are high quality, or all posteriordb schemas use exactly the same optional fields.