anthropics/knowledge-work-plugins/instrument-data-to-allotrope
Claude Code and agent skill by anthropics/knowledge-work-plugins
- vendor
Checking that the SKILL.md file is still in the repository.
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data f…
Install
npx vskill@latest install anthropics/knowledge-work-plugins/instrument-data-to-allotropeSKILL.md
The same SKILL.md was published earlier as anthropics/knowledge-work-plugins/instrument-data-to-allotrope.
Instrument Data to Allotrope Converter
Convert instrument files into standardized Allotrope Simple Model (ASM) format for LIMS upload, data lakes, or handoff to data engineering teams.
Note: This is an Example SkillThis skill demonstrates how skills can support your data engineering tasks—automating schema transformations, parsing instrument outputs, and generating production-ready code.To customize for your organization:- Modify thereferences/files to include your company's specific schemas or ontology mappings- Use an MCP server to connect to systems that define your schemas (e.g., your LIMS, data catalog, or schema registry)- Extend thescripts/to handle proprietary instrument formats or internal data standardsThis pattern can be adapted for any data transformation workflow where you need to convert between formats or validate against organizational standards.
Workflow Overview
- Detect instrument type from file contents (auto-detect or user-specified)
- Parse file using allotropy library (native) or flexible fallback parser
- Generate outputs:
- ASM JSON (full semantic structure)
- Flattened CSV (2D tabular format)
- Python parser code (for data engineer handoff)
- Deliver files with summary and usage instructions
When Uncertain: If you're unsure how to map a field to ASM (e.g., is this raw data or calculated? device setting or environmental condition?), ask the user for clarification. Refer toreferences/field_classification_guide.mdfor guidance, but when ambiguity remains, confirm with the user rather than guessing.
Quick Start
Output Format Selection
ASM JSON (default) - Full semantic structure with ontology URIs
- Best for: LIMS systems expecting ASM, data lakes, long-term archival
- Validates against Allotrope schemas
Flattened CSV - 2D tabular representation
- Best for: Quick analysis, Excel users, systems without JSON support
- Each measurement becomes one row with metadata repeated
Both - Generate both formats for maximum flexibility
Calculated Data Handling
IMPORTANT: Separate raw measurements from calculated/derived values.
- Raw data →
measurement-document(direct instrument readings) - Calculated data →
calculated-data-aggregate-document(derived values)
Calculated values MUST include traceability via data-source-aggregate-document:
Common calculated fields by instrument type:
| Instrument | Calculated Fields | |
|---|---|---|
| Cell counter | Viability %, cell density dilution-adjusted values | |
| Spectrophotometer | Concentration (from absorbance), 260/280 ratio | |
| Plate reader | Concentrations from standard curve, %CV | |
| Electrophoresis | DIN/RIN, region concentrations, average sizes | |
| qPCR | Relative quantities, fold change |
See references/field_classification_guide.md for detailed guidance on raw vs. calculated classification.
Validation
Always validate ASM output before delivering to the user:
Validation Rules:
- Based on Allotrope ASM specification (December 2024)
- Last updated: 2026-01-07
- Source: https://gitlab.com/allotrope-public/asm
Soft Validation Approach: Unknown techniques, units, or sample roles generate warnings (not errors) to allow for forward compatibility. If Allotrope adds new values after December 2024, the validator won't block them—it will flag them for manual verification. Use --strict mode to treat warnings as errors if you need stricter validation.
What it checks:
- Correct technique selection (e.g., multi-analyte profiling vs plate reader)
- Field naming conventions (space-separated, not hyphenated)
- Calculated data has traceability (
data-source-aggregate-document) - Unique identifiers exist for measurements and calculated values
- Required metadata present
- Valid units and sample roles (with soft validation for unknown values)
Supported Instruments
See references/supported_instruments.md for complete list. Key instruments:
| Category | Instruments | |
|---|---|---|
| Cell Counting | Vi-CELL BLU, Vi-CELL XR, NucleoCounter | |
| Spectrophotometry | NanoDrop One/Eight/8000, Lunatic | |
| Plate Readers | SoftMax Pro, EnVision, Gen5, CLARIOstar | |
| ELISA | SoftMax Pro, BMG MARS, MSD Workbench | |
| qPCR | QuantStudio, Bio-Rad CFX | |
| Chromatography | Empower, Chromeleon |
Detection & Parsing Strategy
Tier 1: Native allotropy parsing (PREFERRED)
Always try allotropy first. Check available vendors directly:
When the user provides a file, check if allotropy supports it before falling back to manual parsing. The scripts/convert_to_asm.py auto-detection only covers a subset of allotropy vendors.
Tier 2: Flexible fallback parsing
Only use if allotropy doesn't support the instrument. This fallback:
- Does NOT generate
calculated-data-aggregate-document - Does NOT include full traceability
- Produces simplified ASM structure
Use flexible parser with:
- Column name fuzzy matching
- Unit extraction from headers
- Metadata extraction from file structure
Tier 3: PDF extraction
For PDF-only files, extract tables using pdfplumber, then apply Tier 2 parsing.
Pre-Parsing Checklist
Before writing a custom parser, ALWAYS:
- Check if allotropy supports it - Use native parser if available
- Find a reference ASM file - Check
references/examples/or ask user - Review instrument-specific guide - Check
references/instrument_guides/ - Validate against reference - Run
validate_asm.py --reference <file>
Common Mistakes to Avoid
| Mistake | Correct Approach | |
|---|---|---|
| Manifest as object | Use URL string | |
| Lowercase detection types | Use "Absorbance" not "absorbance" | |
| "emission wavelength setting" | Use "detector wavelength setting" for emission | |
| All measurements in one document | Group by well/sample location | |
| Missing procedure metadata | Extract ALL device settings per measurement |
Code Export for Data Engineers
Generate standalone Python scripts that scientists can hand off:
The exported script:
- Has no external dependencies beyond pandas/allotropy
- Includes inline documentation
- Can run in Jupyter notebooks
- Is production-ready for data pipelines
File Structure
Usage Examples
Example 1: Vi-CELL BLU file
Example 2: Request for code handoff
Example 3: LIMS-ready flattened output
Implementation Notes
Installing allotropy
Handling parse failures
If allotropy native parsing fails:
- Log the error for debugging
- Fall back to flexible parser
- Report reduced metadata completeness to user
- Suggest exporting different format from instrument
ASM Schema Validation
Validate output against Allotrope schemas when available:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 15 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationPassed, 70 of 100Effective. 2 runs. Evaluated 8 months ago.
Source
- SKILL.md in the repositoryCheckingbio-research/skills/instrument-data-to-allotrope/SKILL.md
- Source confirmedPassedThe publisher's ownership of the repository was confirmed.
Popularity
- Repository stars
- 24,210
- Repository forks
- 2,918
- 7-day trend score
- 50
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anthropics/knowledge-work-plugins/instrument-data-to-allotrope)