Labarchive integration

From aipoch/medical-research-skills · View interactive version

Labarchive integration is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Converts LabArchives notebook data, entry metadata, and authorized ELN exports into manuscript-ready academic writing outputs such as Methods sections, data-availability statements, reproducibility appendices, experiment timelines, and submission support notes. Optional bundled scripts can be used t

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

LabArchives Integration

This skill is an Academic Writing workflow built around LabArchives evidence. Its goal is not just API access, but turning authorized ELN material into manuscript-ready writing deliverables.

When to Use

When Not to Use

Primary Writing Outputs

This skill supports these deliverables:

Based on notebook entries, protocols, instrument logs, and sample-processing notes

Based on notebook identifiers, repository links, export status, and sharing constraints

Based on protocol versions, software environments, parameter logs, and file provenance

Based on dated entries, milestones, and decision points

Based on notebook scope, audit trail, and documentation completeness

Authorized Input Sources

Use one or more of:

Optional collection step:

Writing Output Contract

Output A: Methods Draft

Must include:

Output B: Data Availability Statement

Must include:

Output C: Reproducibility Appendix

Must include:

Output D: Experiment Timeline Summary

Must include:

Workflow

1. Validate authorization and source sufficiency

Confirm:

If not, stop and use the refusal template in ## Refusal and Recovery Contract.

2. Choose the acquisition path

Use direct source text if already available. Prefer this path for speed.

If data must be collected first, use one of the bundled scripts:

python scripts/setup_config.py
python scripts/notebook_operations.py --help
python scripts/entry_operations.py --help

Use --dry-run where available before live execution.

3. Normalize notebook evidence

Extract only writing-relevant elements:

4. Draft the requested academic writing output

Keep the prose:

5. Run the final writing safety pass

Check that:

Refusal and Recovery Contract

If the workflow cannot proceed safely, respond with:

Cannot generate the requested LabArchives-based writing output yet.
Reason: <missing authorization / insufficient export / incomplete metadata / unsupported request>
Minimum next step:
- <step 1>
- <step 2>

Use this contract for:

Script Usage Notes

The bundled scripts are supporting collection utilities, not the final output themselves.

If a script path fails:

Academic Writing Style Rules

Recommended Templates

Use assets/writing_outputs_template.md as the default skeleton for the four main writing deliverables.

Deterministic Rules

Completion Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.