{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-other-chemical-storage-sorter-fbe1d3622459","title":"Chemical Storage Sorter for Lab Safety","summary":"Classify and sort laboratory chemicals into safe storage groups based on hazard classification. Provides segregation guidelines compliant with OSHA, NFPA, and institutional safety standards, and identifies incompatible pairs.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-chemical-storage-sorter-fbe1d3622459","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-chemical-storage-sorter-fbe1d3622459","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-chemical-storage-sorter-fbe1d3622459.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-chemical-storage-sorter-fbe1d3622459\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Before using the tool, ensure that you have a list of chemical names (standard IUPAC, common names, or CAS numbers). The tool is designed for sorting and compatibility checking only; it does not interpret SDS documents or provide medical advice.","instructions":"---\nname: chemical-storage-sorter\ndescription: Sort laboratory chemicals into safe storage groups by hazard classification (acids, bases, oxidizers, flammables, toxics). Identifies incompatible pairs, generates storage plans with warnings, and supports OSHA\/NFPA compliance for lab safety.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Chemical Storage Sorter\n\nOrganize laboratory chemicals into safe storage groups based on chemical compatibility and hazard classification. Prevents dangerous reactions by identifying incompatible pairs and providing segregation guidelines compliant with OSHA, NFPA, and institutional safety standards.\n\n**Key Capabilities:**\n- **Automatic Chemical Classification**: Categorize chemicals into hazard groups\n- **Compatibility Checking**: Identify incompatible pairs that could react dangerously\n- **Storage Grouping**: Sort chemical inventories into safe storage arrangements\n- **Safety Warnings**: Generate warnings for incompatible combinations\n- **Regulatory Compliance**: Follow OSHA and NFPA segregation rules\n\n---\n\n## Input Validation\n\nThis skill accepts: a list of chemical names (comma-separated or one per line), or a single chemical name for compatibility checking. Chemical names should be standard IUPAC or common names; CAS numbers are also accepted.\n\nIf the request does not involve sorting or checking laboratory chemicals for safe storage \u2014 for example, asking to synthesize chemicals, interpret SDS documents, or provide medical advice about chemical exposure \u2014 do not proceed. Instead respond:\n> \"Chemical Storage Sorter is designed to classify and sort laboratory chemicals for safe storage. Please provide a list of chemical names. For other chemical safety tasks, use a more appropriate tool.\"\n\n---\n\n## Quick Check\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\n## Workflow\n\n1. Confirm the chemical list, required inputs, and any special constraints (custom classifications, lab-specific rules).\n2. Validate that the request matches the documented scope; stop if the task requires unsupported assumptions.\n3. Run the script or apply the documented classification path with only the inputs available.\n4. Return a structured result separating assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n**Fallback:** If no chemicals are provided, respond: \"No chemical list provided. Please supply chemical names via `--chemicals` or as a text list. Cannot sort without input chemicals.\"\n\n---\n\n## Core Capabilities\n\n### 1. Chemical Classification\n\n```python\nfrom scripts.main import ChemicalStorageSorter\nsorter = ChemicalStorageSorter()\ngroup = sorter.classify_chemical(\"Hydrochloric acid\")  # \u2192 \"acids\"\n```\n\n| Group | Examples | Storage Requirements |\n|-------|----------|---------------------|\n| **Acids** | HCl, H\u2082SO\u2084, HNO\u2083 | Acid cabinet, secondary containment |\n| **Bases** | NaOH, KOH, ammonia | Base cabinet, separate from acids |\n| **Oxidizers** | H\u2082O\u2082, KMnO\u2084, nitrates | Cool, dry, away from organics |\n| **Flammables** | Ethanol, acetone, hexane | Flammable storage cabinet |\n| **Toxics** | Cyanides, mercury, arsenic | Locked cabinet, limited access |\n| **General** | NaCl, PBS, sucrose | Standard storage |\n\n### 2. Compatibility Checking\n\n```python\ncompatible, message = sorter.check_compatibility(\"Hydrochloric acid\", \"Sodium hydroxide\")\n# \u2192 False, \"INCOMPATIBLE: acids cannot be stored with bases\"\n```\n\n| Chemical Group | Incompatible With | Reaction Risk |\n|----------------|------------------|---------------|\n| **Acids** | Bases, oxidizers, cyanides | Violent neutralization, toxic gas |\n| **Oxidizers** | Flammables, acids, bases | Fire, explosion |\n| **Flammables** | Oxidizers, acids | Fire, combustion |\n\n### 3. Storage Plan Generation\n\n```python\ngroups = sorter.sort_chemicals(inventory)\nsorter.print_storage_plan(groups)\n```\n\n---\n\n## CLI Usage\n\n```text\n# Sort list of chemicals\npython scripts\/main.py --chemicals \"HCl,NaOH,ethanol,H2O2\"\n\n# Check compatibility between two chemicals\npython scripts\/main.py --chemicals \"HCl\" --check \"NaOH\"\n\n# List all storage groups\npython scripts\/main.py --list-groups\n```\n\n---\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `--chemicals`, `-c` | string | No | Comma-separated chemical list |\n| `--check` | string | No | Check compatibility with another chemical |\n| `--list-groups`, `-l` | flag | No | List all storage groups |\n\n---\n\n## Output Requirements\n\nEvery final response must make these explicit:\n\n- Objective or requested deliverable\n- Inputs used (chemical list) and assumptions introduced\n- Classification method and any manual overrides applied\n- Core result: storage groups with chemicals assigned, incompatibility warnings\n- Constraints and risks (tool is first-check only; always verify with SDS)\n- Unresolved items and next-step checks\n\n---\n\n## Error Handling\n\n- If no chemicals are provided, list the required input format and request it.\n- If a chemical cannot be classified, assign to \"general\" and flag for manual review. Suggest: (1) provide the CAS number for lookup, (2) consult the SDS for GHS hazard classification, (3) contact the institutional safety officer.\n- If `scripts\/main.py` fails, report the failure point and provide manual classification fallback using the hazard group table above.\n- Do not fabricate classifications or compatibility results.\n\n---\n\n## Common Pitfalls\n\n- **Assuming dilute = safe**: Even dilute acids\/bases need proper storage\n- **Storing by alphabetical order**: Acetic acid next to acetone \u2014 always prioritize compatibility\n- **Inadequate separation**: Use physical barriers (cabinets), not just distance\n- **Outdated storage plans**: Update documentation whenever chemicals are relocated\n- **Ignoring multi-hazard chemicals**: Concentrated HNO\u2083 is both acid and oxidizer \u2014 store in most restrictive group; multi-hazard chemicals are automatically assigned to the most restrictive applicable group\n\n---\n\n## Storage Requirements by Group\n\n| Group | Cabinet Type | Special Requirements |\n|-------|-------------|---------------------|\n| **Acids** | Acid cabinet | Secondary containment, corrosion-resistant |\n| **Bases** | Base cabinet | Minimum 3 feet from acids |\n| **Oxidizers** | Standard\/oxidizer | Away from ignition sources |\n| **Flammables** | Flammable cabinet | Bonding\/grounding for dispensing |\n| **Toxics** | Locked cabinet | Access log, limited quantities |\n\n---\n\n## References\n\n- OSHA Chemical Storage Guidelines: https:\/\/www.osha.gov\/chemical-storage\n- NFPA 45: Fire Protection for Laboratories Using Chemicals\n- Prudent Practices in the Laboratory (National Research Council)\n","use_cases":["Sort a list of chemicals into safe storage groups","Check compatibility between two chemicals","Generate a storage plan for a lab inventory"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Other\/chemical-storage-sorter\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T14:26:47.000000Z","updated_at":"2026-11-26T09:24:51.000000Z","seo_title":"Chemical Storage Sorter for Lab Safety","seo_description":"Organize lab chemicals into safe storage groups. Prevent dangerous reactions with OSHA\/NFPA compliant segregation guidelines.","seo_keywords":["chemical storage safety","lab chemical segregation","chemical compatibility check","OSHA compliant storage","lab safety guidelines"]}}