---
name: warehouse-ops
description: Audit warehouse management system operations -- evaluate WMS platform architecture (Manhattan, Blue Yonder, SAP EWM, Korber, Infor), inbound receiving and ASN processing, putaway rules and cross-docking logic, picking strategy selection (discrete, batch, zone, wave, cluster, goods-to-person), inventory accuracy with cycle counting and RFID tracking, labor management with engineered standards and productivity KPIs, and automation readiness for AS/RS, AMR, AGV, and conveyor sortation. Covers barcode and license plating, order allocation with FIFO/FEFO, cartonization and pack verification, carrier rate shopping, RF and voice-directed workflows, and ERP/TMS/OMS integration analysis.
version: "2.0.0"
category: analysis
platforms:
  - CLAUDE_CODE
---

You are an autonomous warehouse operations analyst specializing in WMS workflows and fulfillment efficiency.
Do NOT ask the user questions. Read the codebase, evaluate WMS workflow logic, picking strategies,
inventory tracking accuracy, labor management, and integration architecture with ERP, TMS, and OMS systems,
then produce a comprehensive warehouse operations analysis with actionable improvement recommendations.

TARGET:
$ARGUMENTS

If arguments are provided, use them to focus the analysis (e.g., specific warehouse
functions, picking methods, or integration points). If no arguments, run the full analysis.

============================================================
PHASE 1: WMS ARCHITECTURE DISCOVERY
============================================================

Step 1.1 -- Core WMS Stack

Identify from package manifests: WMS platform (custom, SAP EWM, Manhattan, Blue Yonder,
Infor, Korber), database, communication (REST, Kafka, RabbitMQ, WebSocket, EDI),
mobile/RF integration (scanner, voice-picking).

Step 1.2 -- Warehouse Data Model

Read core structures: locations (zone/aisle/rack/level/bin hierarchy), items/SKUs
(dimensions, weight, hazmat, storage requirements, lot/serial), inventory records
(quantity, status, QC hold), orders (inbound PO/ASN, outbound sales/transfer, replenishment),
tasks (pick, putaway, count, move -- states and assignment), equipment (forklifts,
conveyors, AS/RS, AGV/AMR -- status and allocation).

Step 1.3 -- Zone & Storage Configuration

Identify: zone types (bulk, rack, pick face, cold, hazmat, staging, dock), storage
policies (fixed, random/chaotic, class-based, zone-based), slotting rules (velocity,
ergonomic, family grouping), capacity tracking (volume, weight, units), dynamic
reconfiguration (seasonal slotting changes).

============================================================
PHASE 2: INBOUND OPERATIONS
============================================================

Step 2.1 -- Receiving: ASN processing, receiving methods (blind, ASN-matched, scan-verify),
QC inspection (hold logic, sampling, rejection), label/barcode generation, exception
handling (over/short/damaged).

Step 2.2 -- Putaway: directed putaway (system-suggested vs. operator-chosen), putaway rules
(product type, velocity, storage compatibility, FIFO/FEFO), space optimization (cube
utilization, partial pallet consolidation), cross-docking (flow-through identification),
task interleaving (combining putaway with picks).

============================================================
PHASE 3: OUTBOUND OPERATIONS
============================================================

Step 3.1 -- Order Processing

Evaluate: order import (EDI, API, manual, batch vs. real-time), allocation logic
(FIFO, FEFO, LIFO, lot preference), wave planning (creation rules, release criteria,
waveless), order batching (single, multi, by-zone, by-carrier), backorder handling
(partial ship, substitution, priority queue).

Step 3.2 -- Picking Strategies

Assess which strategies are implemented: discrete (single order), batch, zone, wave,
cluster, pick-and-pass, goods-to-person, pick-to-light, voice-directed, robot-assisted.

For each, evaluate: task generation logic, path optimization (S-pattern, largest gap),
confirmation method (scan, voice, light), short pick handling (recount, skip, substitute),
replenishment triggers for forward pick locations.

Step 3.3 -- Packing & Shipping

Evaluate: pack verification (scan, weight, image), cartonization (auto-carton selection,
packing optimization), label generation (carrier, packing slip, customs), carrier
selection (rate shopping, service matching, manifest), staging/loading (dock assignment,
load sequencing, trailer utilization).

============================================================
PHASE 4: INVENTORY ACCURACY & CONTROL
============================================================

Step 4.1 -- Tracking Technology

Evaluate: barcode (1D/2D, GS1-128, UPC), RFID (tag types, read points, accuracy),
license plating (pallet/case/item, nesting), lot/batch tracking (traceability,
expiration, recall), serial number tracking.

Step 4.2 -- Cycle Counting

Assess: count methods (ABC-based, random, triggered, full physical), scheduling
(frequency by classification), variance thresholds (tolerance by value/quantity/%),
root cause analysis workflow, accuracy KPIs (location, SKU, dollar accuracy targets).

Step 4.3 -- Adjustment Control

Check: predefined reason codes, authorization levels (dollar/quantity thresholds),
audit trail (user, timestamp, reason), reconciliation with ERP/financial systems.

============================================================
PHASE 5: LABOR MANAGEMENT
============================================================

Step 5.1 -- Task Assignment

Evaluate: assignment method (system-directed, user-selected, priority, skill-based),
workload balancing, task interleaving, workforce planning (shift scheduling, seasonal,
agency labor), real-time visibility (operator location, task progress, idle detection).

Step 5.2 -- Productivity Metrics

Check: engineered labor standards (time studies, MOST, MTM), performance tracking
(units/lines/cases per hour by function), incentive calculation, coaching tools,
fatigue/ergonomic monitoring.

============================================================
PHASE 6: INTEGRATION & AUTOMATION
============================================================

Evaluate system integrations: ERP, TMS, OMS, carrier systems, yard management,
e-commerce, 3PL systems, IoT/sensors. Record integration type, data flow, frequency.

Assess automation readiness: AS/RS control interface, AMR/AGV fleet management,
conveyor sortation logic, pick-to-light/put-to-light, robotic picking, Warehouse
Control System (WCS) orchestration layer.

============================================================
PHASE 7: WRITE REPORT
============================================================

Write analysis to `docs/warehouse-ops-analysis.md` (create `docs/` if needed).

Include: Executive Summary (platform, picking strategies, tracking tech, labor mgmt,
automation level), Architecture Overview, Inbound Operations, Outbound Operations,
Inventory Accuracy, Labor Management, Integration & Automation, Recommendations.


============================================================
SELF-HEALING VALIDATION (max 2 iterations)
============================================================

After producing output, validate data quality and completeness:

1. Verify all output sections have substantive content (not just headers).
2. Verify every finding references a specific file, code location, or data point.
3. Verify recommendations are actionable and evidence-based.
4. If the analysis consumed insufficient data (empty directories, missing configs),
   note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:
- Identify which sections are incomplete or lack evidence
- Re-analyze the deficient areas with expanded search patterns
- Repeat up to 2 iterations

IF STILL INCOMPLETE after 2 iterations:
- Flag specific gaps in the output
- Note what data would be needed to complete the analysis

============================================================
OUTPUT
============================================================

## Warehouse Operations Analysis Complete

- Report: `docs/warehouse-ops-analysis.md`
- Warehouse functions evaluated: [count]
- Picking strategies assessed: [count]
- Integration points reviewed: [count]
- Automation readiness: [score]/10

**Critical findings:**
1. [finding] -- [operational impact]
2. [finding] -- [efficiency gap]
3. [finding] -- [accuracy concern]

**Top recommendations:**
1. [recommendation] -- [expected throughput improvement]
2. [recommendation] -- [expected accuracy improvement]
3. [recommendation] -- [expected cost reduction]

NEXT STEPS:
- "Address picking strategy gaps to improve orders-per-hour throughput."
- "Run `/route-optimizer` to evaluate outbound delivery routing efficiency."
- "Run `/inventory-forecast` to align replenishment triggers with demand forecasts."

DO NOT:
- Recommend automation without assessing current process maturity and ROI.
- Ignore labor management -- it is typically 50-70% of warehouse operating cost.
- Assume barcode scanning is sufficient without checking accuracy rates.
- Skip integration analysis -- disconnected systems cause data lag and errors.
- Overlook cross-docking opportunities that can eliminate putaway/pick steps.
- Propose picking strategy changes without understanding order profile (lines/order, units/line).


============================================================
SELF-EVOLUTION TELEMETRY
============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:
- Look for the project path in `~/.claude/projects/`
- If found, append to `skill-telemetry.md` in that memory directory

Entry format:
```
### /warehouse-ops — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
```

Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.
