Light-Science is a research workflow skill pack for AI agents that connects literature review, ideation, experiments, analysis, writing, figures, peer review, and project memory. It is for researchers working on papers, datasets, codebases, or reviewer feedback, with a coordinating skill that tracks decisions and project artifacts. The catalogue entries are skills and instructions from this workflow.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Light0305/Light-skillsnpx agentmods add skills/light0305/light-skills/light-experiment-codingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/light0305/light-skills/light-experiment-coding)<a href="https://agentmods.dev/skills/light0305/light-skills/light-experiment-coding"><img src="https://agentmods.dev/badge/skills/light0305/light-skills/light-experiment-coding/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/light0305/light-skills/light-experiment-coding"><img src="https://agentmods.dev/badge/skills/light0305/light-skills/light-experiment-coding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00170 | $0.03305 |
| Opus 5.5 | $0.00068 | $0.01322 |
| Sonnet 5.5 | $0.00034 | $0.00661 |
| Haiku 4.5 | $0.00017 | $0.00331 |
Grade A, and why
light-experiment-coding scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.
实验编码(stage 6)
任务不是“写出能跑的 notebook”,而是把上游冻结计划逐行实现成可证伪、可复跑、可审计的实验。优先级:
- 不改研究问题;
- 不让评估信息进入训练;
- 能用固定环境与 seed 真复跑;
- 保留足够 raw evidence,让 result-analysis 自己重算;
- 代码整洁和速度服从以上约束。
先完整阅读 references/experiment-coding-resource-map.md。工具机制见
references/tools.md,TDD/调试红旗见
references/tdd_redflags.md 与
references/debug_protocol.md。
入口:冻结输入
开始写码前读取并 hash:
- question / estimand;
- experiment matrix 每一行和 fair-comparison 常量;
- pre-registration 及 provenance;
- failure-tree report:每条 hypothesis 的 success/failure/inconclusive 分支、guardrail/counter-metric、kill criterion 与 amendment policy;
- data fixed revision、raw/curated SHA256、lineage、split ID、
split_leakageevidence; - result-analysis 对 raw run、predictions、metrics、failures、provenance 的消费契约;
- 当前 git commit 与 dirty state。
primary outcome、comparison family、exclusion、stopping 已冻结。若实现证明计划不可行,带最小复现和影响返回 research-plan,停下让人决策;不得改 config 默认值静默漂移。
实现顺序
1. 建立最小可运行项目
优先复制 assets/project-scaffold/:
uv.lock+pyproject.toml:uv sync --locked --extra dev;configs/experiment.schema.json:每个 matrix row 的机读配置;experiment_contracts.py:data/model/metric/preprocessing 最小接口;reproducibility.py:运行期 seed helper;- CI/pre-commit/debug 资产。
遵循现有仓库框架和配置格式;不要为一个实验引入付费 IDE、云追踪或私有 key。MLflow/DVC 可选,普通本地文件必须能完成
核心闭环。不可用资源明确写 UNAVAILABLE:原因,不假装通过。
2. 测试先行
在实现 preprocessing/train/eval 前:
- 写 gold test,验证人工可算的小答案;
- 写 property test(Hypothesis),验证范围、有限性、对称/单调等不变量;
- 写 metamorphic test,验证置换/等价变换后的输出关系;
- 写 train-only-fit 测试,记录 transformer 只收到训练折;
- 亲眼看新测试因缺实现或真实 bug 失败,再写最小实现使其通过。
浮点断言用 pytest.approx / assert_allclose(rtol, atol)。先声明 device、dtype、mixed precision 和容差;NaN/Inf
默认 fail。不要测“随机训练一定达到某个漂亮数”,测确定性边界和可重算事实。
3. 防泄漏实现
- holdout:先 split,再仅用 train
fit/fit_transform,test 只transform; - CV/调参:预处理器与模型放进 sklearn
Pipeline,每折只 fit training fold; - 患者/用户/牧场等实体用 group-aware split,不得跨 train/test;
- 目标编码、特征选择、PCA、imputation 同样只在训练折 fit;
- 数据件复核直接复用 data-engineering
split_leakage,不重造。
What ships with it
32 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/project-scaffold/.github/workflows/ci.yml 1.0 KB
- assets/project-scaffold/.pre-commit-config.yaml 1.4 KB
- assets/project-scaffold/CODE_REVIEW_CHECKLIST.md 3.3 KB
- assets/project-scaffold/configs/experiment.example.json 765 B
- assets/project-scaffold/configs/experiment.schema.json 2.2 KB
- assets/project-scaffold/pyproject.toml 2.3 KB
- assets/project-scaffold/README.md 3.8 KB
- assets/project-scaffold/scripts/boundary_trace.py 2.9 KB runs code
- assets/project-scaffold/scripts/debug_instrument.sh 1.6 KB runs code
- assets/project-scaffold/src/example/__init__.py 87 B runs code
- assets/project-scaffold/src/example/experiment_contracts.py 2.7 KB runs code
- assets/project-scaffold/src/example/reproducibility.py 6.0 KB runs code
- assets/project-scaffold/src/example/stats.py 648 B runs code
- assets/project-scaffold/tests/conftest.py 632 B runs code
- assets/project-scaffold/tests/test_experiment_contracts.py 2.4 KB runs code
- assets/project-scaffold/tests/test_reproducibility.py 2.5 KB runs code
- assets/project-scaffold/tests/test_stats.py 532 B runs code
- assets/project-scaffold/uv.lock 157 KB
- examples/repro_spec.example.json 1.8 KB
- references/code_examples.md 3.1 KB
- references/debug_protocol.md 5.7 KB
- references/experiment-coding-resource-map.md 7.5 KB
- references/tdd_redflags.md 4.5 KB
- references/tools.md 3.4 KB
- scripts/experiment_execution_contract.py 56 KB runs code
- scripts/repro_gate.py 27 KB runs code
- scripts/review_gate.py 19 KB runs code
- scripts/run_artifact_check.py 25 KB runs code
- scripts/seed_audit.py 20 KB runs code
- templates/experiment-execution-contract.example.json 2.2 KB
- templates/run_manifest.md 2.7 KB
- templates/run_manifest.template.json 2.0 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 208 lines · 170 tokens per session scan A 2cdad9b18f3c
light-experiment-coding is a skill published in the GitHub repository Light0305/Light-skills (1,063 stars, last pushed 26d ago), licensed MIT. It adds 170 tokens to every session and 3,305 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
light-experiment-coding compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| light-experiment-codingLight0305/Light-skills | Skill | 1.1k | 26d ago | MIT | A | 170 | Claude Code, Codex |
| anti-defensive-writing-enAdkid-Zephyr/anti-defensive-writing-Skill | Skill | 7.8k | 19d ago | MIT | A | 138 | Claude Code, Codex |
| anti-defensive-writingAdkid-Zephyr/anti-defensive-writing-Skill | Skill | 7.8k | 19d ago | MIT | A | 160 | Claude Code, Codex |
| ml-paper-writingGalaxy-Dawn/claude-scholar | Skill | 6.1k | 7d ago | MIT | A | 72 | Claude Code |
| research-writingalfonso0512/research-writing-skill | Skill | 585 | 4mo ago | MIT | A | 136 | Claude Code, Codex |
| academic-citationjoshua-zyy/academic-paper-writer | Skill | 116 | 2mo ago | MIT | A | 146 | Claude Code |
| ml-paper-writingOpenLAIR/dr-claw | Skill | 1.2k | 23d ago | none | A | 72 | Claude Code, Codex |