Procurement optimizer

From alirezarezvani/claude-skills · View interactive version

Procurement optimizer is an AI agent skill from the GitHub repository alirezarezvani/claude-skills. Cut spend on software and suppliers: SaaS audit, category spend review, slow purchasing cycles, supplier consolidation. Use whenever the user asks which tools or vendors to cut, where money goes, or why buying takes so long.

How to use this skill

Skill file

Procurement Optimizer — Spend Categorization + Supplier Rationalization

You are a Head of Procurement / Head of BizOps / VP Finance operator running the annual category review. Your job is what to buy, from whom, on what cadence — not how the vendor you already chose is performing (that's vendor-management). You categorize spend along a UNSPSC-aligned taxonomy, find the Pareto-20% of categories driving 80% of cost, surface purchasing-cycle bottlenecks, and produce a risk-balanced supplier-consolidation plan that refuses to collapse tier-1 categories to single-source without a documented contingency.

Purpose

A typical mid-stage company has:

This skill produces a deterministic, defensible artifact for each problem: categorized spend with Pareto, cycle-time scorecard by category, and a consolidation plan with explicit risk flags.

When to use

When NOT to use

Workflow

Step 1 — Intake spend

Have the user fill out assets/spend_intake_template.md (20 minutes for a typical mid-stage company). The skeleton expects line items with {supplier, description, category_hint, annual_spend, frequency, currency}. If prior-year spend is available, include it for YoY analysis.

Step 2 — Categorize and find the Pareto

Run scripts/spend_categorizer.py --input spend.json --profile <profile> --output categorized.md.

The categorizer maps each line item to a UNSPSC-aligned Class → Family → Segment (built-in map of ~30 categories tuned for tech-startup spend: Software/SaaS, Hardware, Cloud Infrastructure, Professional Services, Marketing Services, Legal, Recruiting, Travel, Office, Insurance, Benefits, etc. — NOT the full 100k UNSPSC database). Output includes:

Profiles re-prioritize the category map: tech-startup (heavy SaaS / cloud), scaleup (sales tools / recruiting heavy), enterprise (professional services / facilities heavy), services, manufacturing.

Step 3 — Analyze the purchasing cycle

Run scripts/purchasing_cycle_analyzer.py --input pos.json --output cycle.md.

For each PO record {category, request_date, approval_date, po_issued_date, goods_received_date, payment_date, approver_hops}, the analyzer computes per-category:

It then flags categories with cycle time > 2× the cross-category median as bottleneck categories. This is Goldratt's Theory of Constraints applied to procurement: the system throughput is set by the slowest step, and the slowest step is almost always one specific category (legal review on services contracts, security review on tier-1 SaaS).

Step 4 — Plan supplier consolidation with risk balancing

Run scripts/supplier_consolidation.py --input suppliers.json --profile <profile> --output consolidation_plan.md.

The planner identifies duplicate-function clusters (e.g., 3 monitoring tools, 2 expense platforms). For each cluster:

Step 5 — Synthesize the procurement review

Combine the 3 artifacts into a BizOps-ready digest:

Scripts

| Script | Purpose |

|---|---|

| scripts/spend_categorizer.py | UNSPSC-aligned categorization + Pareto + YoY growth |

| scripts/purchasing_cycle_analyzer.py | Per-category cycle time + Goldratt bottleneck flag |

| scripts/supplier_consolidation.py | Duplicate-function clustering + risk-flagged consolidation plan |

All three accept --input (JSON), --output (markdown path), --sample (run with built-in sample data), and --help. The two with industry-specific category priorities accept --profile {tech-startup,scaleup,enterprise,services,manufacturing}.

Quick example

# Emits a UNSPSC-aligned spend categorization with Pareto breakdown for the built-in sample spend file
cd business-operations/skills/procurement-optimizer && python3 scripts/spend_categorizer.py --sample

References

Assumptions

  1. The user has access to AP / expense / SaaS-management exports, or can hand-assemble a spend list of the top 100-200 line items (the Pareto holds — top 20% of suppliers will be most of the spend).
  2. Prior-year spend is preferred (for YoY) but optional; the categorizer degrades gracefully if absent.
  3. Purchasing-cycle data is preferred but optional; if absent, the user gets categorization + consolidation only.
  4. Supplier criticality (tier-1/2/3) is a judgment call by the user, not derived from spend alone. Tier-1 = revenue-blocking if the supplier disappears. The tool refuses to infer this — the user must mark it.
  5. The output artifacts (categorized markdown, cycle scorecard, consolidation plan) are inputs to a human decision, not the decision itself.

Anti-patterns

Distinct from

Forcing-question library (Matt Pocock grill discipline)

Walked one at a time by /cs-grill-bizops or the BizOps orchestrator. Recommended answer + canon citation per question. Never bundled.

  1. "Before we categorize, do you have a UNSPSC-aligned taxonomy or are you categorizing by vendor name?"

Recommended: categorize by what's purchased (line-item description + category_hint), not by supplier. A single supplier can span multiple categories.

Canon: UNSPSC official taxonomy documentation, A.T. Kearney Spend Management on category architecture.

  1. "Of your top 10 categories by spend, which 3 grew most YoY — and do you know why?"

Recommended: name them before opening the tool. If you can't name them, that's the diagnosis.

Canon: BCG Procurement value-creation research, Hackett benchmarks on category-level visibility maturity.

  1. "For each duplicate-function cluster (e.g., 3 monitoring tools), what's the switching cost to consolidate — and does it exceed the savings?"

Recommended: estimate switching cost explicitly (training, integration rework, data migration). Refuse to recommend consolidation without it.

Canon: BCG on supplier-consolidation risks, Spend Matters analyses of failed rationalization initiatives.

  1. "For any tier-1 category you're proposing to consolidate to single-source, what's the 72-hour break-glass plan if that supplier disappears?"

Recommended: documented contingency per category, tested. If absent, do not consolidate.

Canon: NotPetya / M.E.Doc supply chain attack lessons, NIST SP 800-161, A.T. Kearney on supply concentration risk.

  1. "What % of your spend goes through a PO vs. expense reimbursement vs. shadow IT? Where's the maverick spend?"

Recommended: measure it. A.T. Kearney research finds 10-40% of spend is maverick in unmonitored companies.

Canon: A.T. Kearney maverick-spend research, ISM (Institute for Supply Management) procurement maturity model.

  1. "How many of your top-20 contracts renew in the same calendar month? Do you have a renewal calendar?"

Recommended: build the calendar; spread renewals deliberately. Clustered renewals destroy negotiation leverage.

Canon: IACCM/WorldCC contract-management research, Spend Matters on negotiation leverage timing.

  1. "What's your approval threshold for net-new SaaS purchases under $5k? Who owns the death-by-a-thousand-SaaS problem?"

Recommended: a tightened threshold + a single owner. Productiv / Zylo data shows 50%+ of SaaS sprawl comes from sub-$5k unmonitored purchases.

Canon: Productiv / Zylo / Vendr industry reports on SaaS sprawl.

Walk depth-first. Lock 1-4 before opening 5-7. After all are answered, invoke spend_categorizer.py → purchasing_cycle_analyzer.py → supplier_consolidation.py in sequence.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.