Skill: shanruoyu/cold-chain-risk-calculator (version 0.1.0)

--- name: cold-chain-risk-calculator description: Calculate cold chain transport risks version: 1.0.0 category: Operations tags: [] author: AIPOCH license: MIT status: Draft risk_level: Medium skill_type: Tool/Script owner: AIPOCH reviewer: '' last_updated: '2026-02-06' --- # Cold Chain Risk Calculator Calculate temperature excursion risks for cold chain transport. ## Parameters | Parameter | Type | Default | Required | Description | |-----------|------|---------|----------|-------------| | `--route`, `-r` | string | - | Yes | Transport route description | | `--duration`, `-d` | int | - | Yes | Transport duration in hours | | `--packaging`, `-p` | string | dry-ice | No | Packaging type (dry-ice, liquid-nitrogen, gel-packs) | ## Usage ```bash python scripts/main.py --route "NYC-Boston" --duration 48 --packaging dry-ice ``` ## Features - Route risk assessment - Packaging optimization - Temperature monitoring ## Risk Assessment | 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 | ## Security Checklist - [ ] No hardcoded credentials or API keys - [ ] No unauthorized file system access (../) - [ ] Output does not expose sensitive information - [ ] Prompt injection protections in place - [ ] Input file paths validated (no ../ traversal) - [ ] Output directory restricted to workspace - [ ] Script execution in sandboxed environment - [ ] Error messages sanitized (no stack traces exposed) - [ ] Dependencies audited ## Prerequisites No additional Python packages required. ## Evaluation Criteria ### Success Metrics - [ ] Successfully executes main functionality - [ ] Output meets quality standards - [ ] Handles edge cases gracefully - [ ] Performance is acceptable ### Test Cases 1. **Basic Functionality**: Standard input → Expected output 2. **Edge Case**: Invalid input → Graceful error handling 3. **Performance**: Large dataset → Acceptable processing time ## Lifecycle Status - **Current Stage**: Draft - **Next Review Date**: 2026-03-06 - **Known Issues**: None - **Planned Improvements**: - Performance optimization - Additional feature support

path: scripts/main.py
content: #!/usr/bin/env python3
"""
Cold Chain Risk Calculator
Calculate transport risks for temperature-sensitive samples.
"""

import argparse


def calculate_risk(route, duration_hours, packaging):
    """Calculate cold chain risk."""
    # Simplified risk calculation
    base_risk = duration_hours * 0.5
    packaging_factor = {"dry-ice": 0.8, "liquid-nitrogen": 0.3, "gel-packs": 1.2}
    risk = base_risk * packaging_factor.get(packaging, 1.0)
    
    print(f"Route: {route}")
    print(f"Duration: {duration_hours} hours")
    print(f"Packaging: {packaging}")
    print(f"Risk score: {risk:.2f}")
    
    if risk < 10:
        return "Low risk"
    elif risk < 20:
        return "Medium risk"
    else:
        return "High risk"


def main():
    parser = argparse.ArgumentParser(description="Cold Chain Risk Calculator")
    parser.add_argument("--route", "-r", required=True, help="Transport route")
    parser.add_argument("--duration", "-d", type=int, required=True, help="Duration in hours")
    parser.add_argument("--packaging", "-p", default="dry-ice", choices=["dry-ice", "liquid-nitrogen", "gel-packs"])
    args = parser.parse_args()
    
    risk_level = calculate_risk(args.route, args.duration, args.packaging)
    print(f"Risk level: {risk_level}")


if __name__ == "__main__":
    main()


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)