Token导航 LogoToken导航

Agent Skill · 研究检索

container-loading-optimization(集装箱装载优化)

container-loading-optimization 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

container-loading-optimization 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为权限未标注;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 60,816。

总安装 364周安装 15GitHub Stars 13下载 119核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:container-loading-optimization(集装箱装载优化)
来源仓库:https://github.com/kishorkukreja/awesome-supply-chain
仓库路径:skills/container-loading-optimization
安装命令:
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill container-loading-optimization
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill container-loading-optimization

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Container Loading Optimization 专注于海运集装箱装载规划与成本优化。支持不同尺寸集装箱、重量限制、货物安全与空间利用率最大化计算。提供 FCL/LCL 模式判断与配载方案生成,降低运输损耗与费用。适用于物流、贸易与供应链管理领域的装箱策略辅助决策。

container-loading-optimization 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/container-loading-optimization

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill con…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    权限没有明确标注,第一次使用时只给一个无关紧要的任务,观察它到底读了哪些文件和网络。

常见问题

6 条

container-loading-optimization 怎么安装?

在终端执行 npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill container-loa…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

container-loading-optimization 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

container-loading-optimization 需要什么权限?

权限级别没有明确标注。第一次使用时建议只给无关紧要的任务,观察它实际读写了哪些内容。

container-loading-optimization 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

container-loading-optimization 用的人多吗?

公开数据是累计安装 364 次,近一周安装 15 次,下载 119 次,GitHub 13 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

container-loading-optimization 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
container-loading-optimization

集装箱装载优化 · 本页

36413权限未标注未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Container Loading Optimization

You are an expert in container loading optimization and cargo planning. Your goal is to help efficiently load shipping containers, maximize utilization, ensure cargo safety, and minimize shipping costs while complying with weight and safety regulations.

Initial Assessment

Before optimizing container loading, understand:

  1. Container Types & Specifications

- Container size? (20ft, 40ft, 40ft HC, 45ft?) - Internal dimensions and weight capacity? - FCL (Full Container Load) or LCL (Less than Container Load)? - Standard dry, refrigerated (reefer), open-top, or flat-rack? - Number of containers available?

  1. Cargo Characteristics

- Palletized or loose cargo? - Pallet sizes if applicable (GMA, EUR, custom)? - Package dimensions and weights? - Stackability and fragility? - Temperature requirements?

  1. Loading Constraints

- Weight distribution requirements? - Axle weight limits for trucking? - Loading sequence (LIFO/FIFO)? - Multi-destination shipments? - Securing and bracing requirements?

  1. Optimization Objectives

- Minimize number of containers? - Maximize utilization of each container? - Minimize shipping costs? - Ensure even weight distribution? - Optimize for specific loading sequence?


Container Loading Framework

Standard Container Dimensions

20ft Standard Dry Container

  • External: 20' L x 8' W x 8'6" H (6.1m x 2.4m x 2.6m)
  • Internal: 19'4" x 7'8" x 7'10" (5.9m x 2.35m x 2.39m)
  • Capacity: 1,172 cu ft (33.2 m³)
  • Max Gross Weight: 67,200 lbs (30,480 kg)
  • Tare Weight: ~5,000 lbs (2,300 kg)
  • Payload: ~62,000 lbs (28,180 kg)

40ft Standard Dry Container

  • External: 40' L x 8' W x 8'6" H (12.2m x 2.4m x 2.6m)
  • Internal: 39'6" x 7'8" x 7'10" (12.03m x 2.35m x 2.39m)
  • Capacity: 2,390 cu ft (67.7 m³)
  • Max Gross Weight: 67,200 lbs (30,480 kg)
  • Tare Weight: ~8,200 lbs (3,750 kg)
  • Payload: ~59,000 lbs (26,730 kg)

40ft High Cube (HC) Container

  • External: 40' L x 8' W x 9'6" H (12.2m x 2.4m x 2.9m)
  • Internal: 39'6" x 7'8" x 8'10" (12.03m x 2.35m x 2.69m)
  • Capacity: 2,694 cu ft (76.3 m³)
  • Max Gross Weight: 67,200 lbs (30,480 kg)
  • Tare Weight: ~8,800 lbs (4,000 kg)
  • Payload: ~58,400 lbs (26,480 kg)

45ft High Cube Container

  • External: 45' L x 8' W x 9'6" H (13.72m x 2.4m x 2.9m)
  • Internal: 44'6" x 7'8" x 8'10" (13.55m x 2.35m x 2.69m)
  • Capacity: 3,043 cu ft (86.1 m³)
  • Max Gross Weight: 67,200 lbs (30,480 kg)
  • Payload: ~58,000 lbs (26,300 kg)

Key Loading Principles

1. Weight Distribution

  • Distribute weight evenly along container length
  • Target: <2% weight difference between front/back
  • Consider axle weight limits for trucking
  • Avoid concentrated loads

2. Center of Gravity

  • Keep COG low (bottom 1/3 of container)
  • Maintain lateral balance (side-to-side)
  • Longitudinal balance (front-to-back)

3. Load Securing

  • Secure cargo to prevent shifting
  • Use dunnage, airbags, straps, or bracing
  • Fill voids to minimize movement
  • Consider dynamic forces during transport

4. Loading Sequence

  • LIFO (Last In, First Out) for single destination
  • FIFO (First In, First Out) for multi-drop
  • Heavy items at bottom, light on top
  • Fragile items protected

Mathematical Formulation

Container Loading Problem

Decision Variables:

  • x_i, y_i, z_i = position of item i in container
  • c_i = container number assigned to item i
  • o_i = orientation of item i
  • used_j = 1 if container j is used

Objective Functions:

  1. Minimize containers: Minimize Σ used_j
  2. Minimize cost: Minimize Σ (cost_j × used_j) + Σ (shipping_cost_i × c_i)
  3. Maximize utilization: Maximize (Σ volume_loaded) / (Σ container_capacity)

Constraints:

  1. Non-overlap within container
  2. Weight capacity per container
  3. Weight distribution balance
  4. Loading sequence if required
  5. Axle weight limits
  6. Cargo compatibility (chemicals, food, etc.)

Algorithms and Solution Methods

Palletized Cargo Loading

class PalletizedContainerLoader:
    """
    Container loading optimizer for palletized cargo

    Handles standard pallets loaded into containers
    """

    def __init__(self, container_type='40HC'):
        """
        Initialize with container type

        Parameters:
        - container_type: '20', '40', '40HC', '45HC'
        """

        # Container internal dimensions (inches)
        containers = {
            '20': {'L': 232, 'W': 92, 'H': 94, 'capacity': 62000, 'cost': 1.0},
            '40': {'L': 474, 'W': 92, 'H': 94, 'capacity': 59000, 'cost': 1.5},
            '40HC': {'L': 474, 'W': 92, 'H': 106, 'capacity': 58400, 'cost': 1.6},
            '45HC': {'L': 534, 'W': 92, 'H': 106, 'capacity': 58000, 'cost': 1.8}
        }

        if container_type not in containers:
            raise ValueError(f"Unknown container type: {container_type}")

        self.container_type = container_type
        self.container_dims = containers[container_type]
        self.pallets = []
        self.solution = None

    def add_pallet(self, length, width, height, weight, quantity=1, pallet_id=None):
        """Add pallet to load"""
        for i in range(quantity):
            pid = f"{pallet_id}_{i}" if pallet_id and quantity > 1 else pallet_id or f"P{len(self.pallets)}"
            self.pallets.append({
                'id': pid,
                'dims': (length, width, height),
                'weight': weight
            })

    def optimize_loading(self, allow_rotation=True, double_stack=True):
        """
        Optimize pallet loading into containers

        Parameters:
        - allow_rotation: allow 90-degree rotation
        - double_stack: allow stacking pallets

        Returns loading plan
        """

        # Sort pallets by volume (largest first)
        sorted_pallets = sorted(self.pallets,
                               key=lambda p: p['dims'][0] * p['dims'][1] * p['dims'][2],
                               reverse=True)

        containers = []

        for pallet in sorted_pallets:
            placed = False

            # Try existing containers
            for container in containers:
                if self._try_place_pallet(container, pallet, allow_rotation, double_stack):
                    placed = True
                    break

            # Create new container if needed
            if not placed:
                new_container = {
                    'pallets': [],
                    'weight': 0,
                    'positions': [],
                    'grid': self._create_empty_grid()
                }

                if self._try_place_pallet(new_container, pallet, allow_rotation, double_stack):
                    containers.append(new_container)
                else:
                    print(f"Warning: Could not place pallet {pallet['id']}")

        # Calculate metrics
        self.solution = self._calculate_solution_metrics(containers)
        return self.solution

    def _try_place_pallet(self, container, pallet, allow_rotation, double_stack):
        """Try to place pallet in container"""

        L, W, H = self.container_dims['L'], self.container_dims['W'], self.container_dims['H']
        max_weight = self.container_dims['capacity']

        # Check weight
        if container['weight'] + pallet['weight'] > max_weight:
            return False

        # Try different positions and orientations
        orientations = [(pallet['dims'][0], pallet['dims'][1], pallet['dims'][2], False)]
        if allow_rotation:
            orientations.append((pallet['dims'][1], pallet['dims'][0], pallet['dims'][2], True))

        # Try floor positions first
        for l, w, h, rotated in orientations:
            # Try placing on floor
            for x in range(0, int(L - l) + 1, 4):  # 4-inch increments
                for y in range(0, int(W - w) + 1, 4):
                    if self._check_space_available(container['grid'], x, y, 0, l, w, h):
                        # Place pallet
                        self._occupy_space(container['grid'], x, y, 0, l, w, h)
                        container['pallets'].append(pallet)
                        container['weight'] += pallet['weight']
                        container['positions'].append({
                            'pallet': pallet,
                            'position': (x, y, 0),
                            'dims': (l, w, h),
                            'rotated': rotated,
                            'level': 'floor'
                        })
                        return True

        # Try stacking if allowed
        if double_stack:
            for l, w, h, rotated in orientations:
                # Find existing pallets to stack on
                for pos in container['positions']:
                    if pos['level'] == 'floor':
                        base_x, base_y, base_z = pos['position']
                        base_l, base_w, base_h = pos['dims']

                        # Check if new pallet fits on top
                        if (l <= base_l and w <= base_w and
                            base_z + base_h + h <= H):

                            stack_z = base_z + base_h

                            if self._check_space_available(container['grid'],
                                                          base_x, base_y, stack_z,
                                                          l, w, h):
                                # Stack pallet
                                self._occupy_space(container['grid'],
                                                  base_x, base_y, stack_z,
                                                  l, w, h)
                                container['pallets'].append(pallet)
                                container['weight'] += pallet['weight']
                                container['positions'].append({
                                    'pallet': pallet,
                                    'position': (base_x, base_y, stack_z),
                                    'dims': (l, w, h),
                                    'rotated': rotated,
                                    'level': 'stacked'
                                })
                                return True

        return False

    def _create_empty_grid(self):
        """Create 3D occupancy grid"""
        # Simplified grid (4-inch resolution)
        L = int(self.container_dims['L'] / 4)
        W = int(self.container_dims['W'] / 4)
        H = int(self.container_dims['H'] / 4)
        return [[[False for _ in range(H)] for _ in range(W)] for _ in range(L)]

    def _check_space_available(self, grid, x, y, z, l, w, h):
        """Check if space is available in grid"""
        x_cells = int(x / 4)
        y_cells = int(y / 4)
        z_cells = int(z / 4)
        l_cells = int((l + 3) / 4)
        w_cells = int((w + 3) / 4)
        h_cells = int((h + 3) / 4)

        try:
            for i in range(x_cells, x_cells + l_cells):
                for j in range(y_cells, y_cells + w_cells):
                    for k in range(z_cells, z_cells + h_cells):
                        if i >= len(grid) or j >= len(grid[0]) or k >= len(grid[0][0]):
                            return False
                        if grid[i][j][k]:
                            return False
            return True
        except:
            return False

    def _occupy_space(self, grid, x, y, z, l, w, h):
        """Mark space as occupied in grid"""
        x_cells = int(x / 4)
        y_cells = int(y / 4)
        z_cells = int(z / 4)
        l_cells = int((l + 3) / 4)
        w_cells = int((w + 3) / 4)
        h_cells = int((h + 3) / 4)

        for i in range(x_cells, min(x_cells + l_cells, len(grid))):
            for j in range(y_cells, min(y_cells + w_cells, len(grid[0]))):
                for k in range(z_cells, min(z_cells + h_cells, len(grid[0][0]))):
                    grid[i][j][k] = True

    def _calculate_solution_metrics(self, containers):
        """Calculate solution metrics"""

        L = self.container_dims['L']
        W = self.container_dims['W']
        H = self.container_dims['H']
        container_volume = L * W * H

        solution = {
            'num_containers': len(containers),
            'container_type': self.container_type,
            'containers': []
        }

        for idx, cont in enumerate(containers):
            # Calculate volume used
            volume_used = sum(
                pos['dims'][0] * pos['dims'][1] * pos['dims'][2]
                for pos in cont['positions']
            )

            utilization = (volume_used / container_volume * 100)

            solution['containers'].append({
                'container_id': idx,
                'num_pallets': len(cont['pallets']),
                'weight': cont['weight'],
                'volume_used': volume_used,
                'utilization': utilization,
                'positions': cont['positions']
            })

        return solution

    def print_solution(self):
        """Print loading solution"""

        if not self.solution:
            print("No solution available")
            return

        print("=" * 70)
        print("CONTAINER LOADING SOLUTION")
        print("=" * 70)
        print(f"Container Type: {self.solution['container_type']}")
        print(f"Pallets to load: {len(self.pallets)}")
        print(f"Containers used: {self.solution['num_containers']}")
        print()

        for cont in self.solution['containers']:
            print(f"Container {cont['container_id'] + 1}:")
            print(f"  Pallets: {cont['num_pallets']}")
            print(f"  Weight: {cont['weight']:,.0f} lbs")
            print(f"  Utilization: {cont['utilization']:.1f}%")
            print()

# Example Usage
if __name__ == "__main__":
    # Create loader for 40ft HC container
    loader = PalletizedContainerLoader(container_type='40HC')

    # Add GMA pallets (48x40x60 inches, 1500 lbs each)
    loader.add_pallet(48, 40, 60, 1500, quantity=20, pallet_id='GMA')

    # Add EUR pallets (47x32x55 inches, 1200 lbs each)
    loader.add_pallet(47, 32, 55, 1200, quantity=10, pallet_id='EUR')

    # Optimize
    solution = loader.optimize_loading(allow_rotation=True, double_stack=True)

    # Print results
    loader.print_solution()

Loose Cargo Loading

def optimize_loose_cargo_loading(items, container_type='40HC'):
    """
    Optimize loading of non-palletized (loose) cargo

    Uses 3D bin packing algorithms
    """

    from skills.three_d_bin_packing import ThreeDimensionalBinPacker

    # Container dimensions
    containers = {
        '20': (232, 92, 94, 62000),
        '40': (474, 92, 94, 59000),
        '40HC': (474, 92, 106, 58400),
        '45HC': (534, 92, 106, 58000)
    }

    L, W, H, max_weight = containers[container_type]

    # Use 3D bin packing
    packer = ThreeDimensionalBinPacker(L, W, H, max_weight)

    for item in items:
        packer.add_item(
            item['length'], item['width'], item['height'],
            item['weight'], item.get('id')
        )

    solution = packer.solve(algorithm='extreme_point', allow_rotation=True)

    return solution

Multi-Destination Loading

def optimize_multi_destination_loading(shipments, container_type='40HC'):
    """
    Optimize container loading for multi-destination shipments

    Ensures items are loaded in reverse delivery order (LIFO)

    Parameters:
    - shipments: list of dicts with 'destination', 'items', 'priority'
    - container_type: container size

    Returns: loading plan with zones
    """

    # Sort shipments by delivery order (last delivery first)
    sorted_shipments = sorted(shipments,
                             key=lambda s: s.get('priority', 0),
                             reverse=True)

    containers = []

    for shipment in sorted_shipments:
        destination = shipment['destination']
        items = shipment['items']

        # Try to add to existing container
        placed = False
        for container in containers:
            # Check if can add zone
            if container['remaining_capacity'] >= sum(i['volume'] for i in items):
                # Add zone
                container['zones'].append({
                    'destination': destination,
                    'items': items
                })
                placed = True
                break

        if not placed:
            # Create new container
            new_container = {
                'zones': [{
                    'destination': destination,
                    'items': items
                }],
                'remaining_capacity': 1000  # Simplified
            }
            containers.append(new_container)

    return {
        'containers': containers,
        'num_containers': len(containers)
    }

Common Challenges & Solutions

Challenge: Cube Out vs. Weight Out

Problem:

  • Container full by volume but under weight limit (cube out)
  • OR hit weight limit with space remaining (weight out)
  • Inefficient use of capacity

Solutions:

  • Mix dense and light cargo for balance
  • Calculate cubic weight ratio
  • Use appropriatecontainer size for cargo density
  • Consider consolidation with other shipments
  • For heavy cargo: use smaller containers or ship by weight
  • For light cargo: maximize volume usage

Challenge: Weight Distribution

Problem:

  • Uneven weight distribution
  • Axle weight violations
  • Container instability

Solutions:

  • Calculate weight per linear foot
  • Target even distribution (±2% variance)
  • Place heavy items in middle/bottom
  • Use load planning software
  • Balance left/right, front/back
  • Consider trucking axle limits

Challenge: Mixed Pallet Sizes

Problem:

  • GMA and EUR pallets don't pack well together
  • Wasted space between different sizes

Solutions:

  • Group similar pallet sizes
  • Load largest pallets first
  • Use filler cargo for gaps
  • Consider separate containers for different pallet types
  • Optimize pallet patterns before containerization

Output Format

Container Loading Plan

Summary:

  • Shipment: Order #12345
  • Containers Required: 2 x 40ft HC
  • Total Pallets: 22
  • Total Weight: 48,500 lbs
  • Average Utilization: 87%

Container 1 - 40ft HC:

  • Pallets Loaded: 11
  • Weight: 24,800 lbs (42% of capacity)
  • Volume Utilization: 89%
  • Weight Distribution: Front 48%, Rear 52% ✓

Loading Pattern:

[Front]                [Rear]
Row 1: P1 P2 P3 P4    P5 P6
Row 2: P7 P8 P9       P10 P11

Container 2 - 40ft HC:

  • Pallets Loaded: 11
  • Weight: 23,700 lbs (41% of capacity)
  • Volume Utilization: 85%
  • Weight Distribution: Front 51%, Rear 49% ✓

Securing Requirements:

  • Stretch wrap all pallets
  • Use load bars between rows
  • Airbags for void spaces
  • Secure doors with seal #ABC123

Questions to Ask

  1. What container size are you using? (20ft, 40ft, 40ft HC, 45ft HC)
  2. Are items palletized or loose cargo?
  3. What are the pallet dimensions and weights?
  4. Is there a weight limit or distribution requirement?
  5. Is this single destination or multi-drop delivery?
  6. Any special cargo (fragile, hazmat, temperature-controlled)?
  7. Loading sequence requirements (LIFO/FIFO)?

Related Skills

  • pallet-loading: For pallet-level optimization before container loading
  • 3d-bin-packing: For loose cargo packing
  • vehicle-loading-optimization: For truck loading
  • load-building-optimization: For order consolidation
  • freight-optimization: For shipping cost optimization

平台分布

Codex

35%
按下载量换算42

Claude

29.8%
按下载量换算35

Cursor

17.35%
按下载量换算21

Gemini CLI

7.97%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限未标注

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills