Predict depletion time of critical lab reagents based on experimental usage frequency and automatically generate purchase alerts for laboratory inventory management.
Install with Tessl CLI
npx tessl i github:aipoch/medical-research-skills --skill lab-inventory-predictor56
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
This skill is used for laboratory inventory management, predicting reagent depletion time by analyzing historical usage frequency, and automatically generating reminders when purchases are needed.
# View all reagent status
openclaw skill lab-inventory-predictor --action status
# Add or update reagent information
openclaw skill lab-inventory-predictor --action add-reagent \
--name "PBS Buffer" \
--current-stock 500 \
--unit "ml" \
--safety-days 7
# Record experiment consumption
openclaw skill lab-inventory-predictor --action record-usage \
--name "PBS Buffer" \
--amount 50 \
--experiment "Cell Culture Experiment #2024-001"
# Get purchase alerts
openclaw skill lab-inventory-predictor --action alerts
# Generate prediction report
openclaw skill lab-inventory-predictor --action reportfrom skills.lab_inventory_predictor import InventoryPredictor
# Initialize
predictor = InventoryPredictor("/path/to/inventory.json")
# Add reagent
predictor.add_reagent(
name="PBS Buffer",
current_stock=500,
unit="ml",
safety_days=7,
lead_time_days=3
)
# Record usage
predictor.record_usage("PBS Buffer", 50, "Experiment #001")
# Get prediction
prediction = predictor.predict_depletion("PBS Buffer")
print(f"Predicted depletion time: {prediction['depletion_date']}")
# Get purchase alerts
alerts = predictor.get_alerts()| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
--action | string | - | Yes | Action to perform (status, add-reagent, record-usage, alerts, report) |
--data-file | string | ~/.openclaw/workspace/data/lab-inventory.json | No | Path to inventory data file |
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
--name | string | - | Yes | Reagent name |
--current-stock | float | - | Yes | Current stock quantity |
--unit | string | - | Yes | Unit of measurement (ml, mg, etc.) |
--safety-days | int | 7 | No | Safety buffer days |
--lead-time-days | int | 3 | No | Expected delivery time |
--safety-stock | float | - | No | Safety stock threshold |
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
--name | string | - | Yes | Reagent name |
--amount | float | - | Yes | Amount consumed |
--experiment | string | - | No | Experiment identifier |
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
--output, -o | string | stdout | No | Output file path |
--format | string | text | No | Output format (text, json, csv) |
{
"name": "PBS Buffer",
"current_stock": 500,
"unit": "ml",
"safety_stock": 100,
"safety_days": 7,
"lead_time_days": 3,
"usage_history": [
{
"date": "2024-01-15",
"amount": 50,
"experiment": "Cell Culture #001"
}
],
"daily_consumption_rate": 10.5,
"predicted_depletion_date": "2024-02-01",
"last_updated": "2024-01-15T10:30:00"
}daily_consumption = Σ(usage_amount) / days_spandays_until_depletion = current_stock / daily_consumption
depletion_date = today + days_until_depletiondays_until_depletion <= safety_days + lead_time_dayscurrent_stock <= safety_stockDefault data storage location: ~/.openclaw/workspace/data/lab-inventory.json
Configuration example:
{
"settings": {
"default_safety_days": 7,
"default_lead_time_days": 3,
"prediction_lookback_days": 30
},
"reagents": []
}Author: OpenClaw Skill Framework
License: MIT
| Risk Indicator | Assessment | Level |
|---|---|---|
| Code Execution | Python/R scripts executed locally | Medium |
| Network Access | No external API calls | Low |
| File System Access | Read input files, write output files | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Output files saved to workspace | Low |
# Python dependencies
pip install -r requirements.txt20a5eb2
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.