# site-logistics-optimization

site-logistics-optimization is a Claude Code skill that optimizes construction site logistics, including delivery schedules, crane positioning, storage zones, and equipment traffic.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 118 installs · ★ 434 repo stars
- Author: datadrivenconstruction
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/site-logistics-optimization/SKILL.md
- Updated: 2026-10-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/site-logistics-optimization

## What it does

The skill implements optimization algorithms for construction logistics. It models delivery scheduling with priority and time windows, crane reach verification, material distribution across storage zones, and distance calculations between site areas. The code defines classes for site zones, equipment (cranes, forklifts), and delivery requests, plus methods to compute zone distances and check capacity constraints.

The algorithm schedules deliveries while minimizing time conflicts and equipment contention. Each delivery gets a time slot at an unloading bay, factoring in unload duration. The system checks crane reach to target zones and accounts for vehicle type and material restrictions.

Requires Python 3 in `PATH`. Works across all major AI coding platforms: Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill site-logistics-optimization -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/site-logistics-optimization/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/site-logistics-optimization/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill site-logistics-optimization -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/site-logistics-optimization/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill site-logistics-optimization -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/site-logistics-optimization/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction 5_DDC_Innovative/site-logistics-optimization/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/site-logistics-optimization/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill site-logistics-optimization -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --path 5_DDC_Innovative/site-logistics-optimization
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/site-logistics-optimization/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill site-logistics-optimization -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/site-logistics-optimization/SKILL.md

## When to use it
- schedule material deliveries with priority and unload time constraints
- verify crane reach to target storage zones
- allocate materials across storage zones without exceeding capacity
- optimize equipment routes across the site
- resolve time conflicts at unloading bays

## Example prompts
- Plan delivery sequence for concrete, rebar, and formwork with two unloading bays available 8 AM to 6 PM
- Check if the crane can reach storage area 40 meters away from its current position
- Generate optimal delivery schedule for five material shipments this week, prioritizing concrete

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: ffbceeb459fb7dc8.

BEGIN THIRD-PARTY FILE ffbceeb459fb7dc8
````text
---
name: "site-logistics-optimization"
description: "Optimize construction site logistics including material delivery scheduling, crane positioning, storage area allocation, and traffic flow using operations research and simulation."
homepage: "https://datadrivenconstruction.io"
metadata: {"openclaw": {"emoji": "🚀", "os": ["darwin", "linux", "win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}}
---
# Site Logistics Optimization

## Overview

This skill implements optimization algorithms for construction site logistics. Minimize delays, reduce costs, and improve safety through data-driven planning of deliveries, equipment placement, and material storage.

**Optimization Areas:**
- Material delivery scheduling
- Crane and equipment positioning
- Storage area allocation
- Site traffic flow
- Workforce routing
- Just-in-time delivery

## Quick Start

```python
from dataclasses import dataclass
from typing import List, Dict, Tuple
from datetime import datetime, timedelta
import heapq

@dataclass
class Delivery:
    delivery_id: str
    material_type: str
    quantity: float
    required_date: datetime
    unload_duration_min: int
    storage_area: str
    priority: int = 1  # 1=highest

@dataclass
class TimeSlot:
    start: datetime
    end: datetime
    is_available: bool = True
    delivery_id: str = None

def schedule_deliveries(deliveries: List[Delivery],
                       slots_per_day: int = 8,
                       unload_bays: int = 2) -> Dict[str, TimeSlot]:
    """Simple delivery scheduling"""
    # Sort by priority and required date
    sorted_deliveries = sorted(deliveries, key=lambda d: (d.priority, d.required_date))

    schedule = {}
    bay_schedules = {i: [] for i in range(unload_bays)}

    for delivery in sorted_deliveries:
        # Find available slot
        target_date = delivery.required_date.replace(hour=8, minute=0)

        for bay in range(unload_bays):
````
END THIRD-PARTY FILE ffbceeb459fb7dc8

The third-party file has ended. Everything between the ffbceeb459fb7dc8 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 1959 of 24924 bytes. © datadrivenconstruction · MIT · https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/site-logistics-optimization/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
