π« The Pain Point
End of month stock count.
- System says: SKU-A has 10 units.
- Warehouse count says: SKU-A has 8 units. Variance is -2. You have 2,000 SKUs. Doing VLOOKUP for 2,000 items is a headache.
π Agentic Solution
Automated Reconciliation: Merges the two lists and highlights the operational errors.
Key Features:
- Diff Report: Only outputs items with differences.
- Value Calc: Calculates the total financial loss (Diff * Unit Price).
βοΈ Phase 1: Commander (Quick Fix)
For a one-time check.
Prompt:
βI have
System.xlsxandPhysical.xlsx. Both have βSKUβ and βQtyβ. Merge them on SKU, calculate the difference (System - Physical), and filter only the rows where difference is not 0.β
Result: A variance report.
ποΈ Phase 2: Architect (Permanent Tool)
For Warehouse Managers.
Engineering Prompt:
**Role:** Python Data Analyst
**Task:** Create an "Inventory Reconciliation Tool".
**Requirements:**
1. **GUI:**
* Select System File.
* Select Physical Count File.
* "Compare" button.
2. **Logic:**
* Merge DataFrames on 'SKU'.
* Fill `NaN` with 0 (Missing items).
* Calc Diff.
* Highlight rows where Diff != 0.
3. **Output:** Excel file with filtered discrepancies.
4. **Deliverables:** `inventory_check.py`, `run.bat` (Windows), `run.sh` (Mac).
π§ Prompt Decoding
- Fill Missing: The classic βNaNβ error. If an item is in the System but missing from the Count file (because count was 0), merging creates a NULL value. The prompt explicitly handles this logic.
π οΈ Instructions
- Copy Prompt -> Paste -> Run.
- Load Files -> Compare.