# Deal scoring

A reusable skill the "Keep the pipeline clean and the forecast honest" recipe pulls in. Add it once and every agent on the team can use it.

Rank open deals by value at risk and flag the ones going stale.

## Method
1. Pull all open deals from HubSpot.
2. Diff against last week's snapshot to see what moved stage or slipped.
3. Compute days since last logged activity for each deal.
4. Flag deals with no activity for 21+ days as stalled.
5. Rank stalled deals by deal value, highest value at risk first.
6. Note current stage and owner alongside each ranked deal.

## Rules
- Stall is defined as 21+ days with no logged activity (set on first run, then stored in memory).
- Rank by value at risk first, not by recency or stage alone.
- A deal that moved stage this week is not stalled, even if the last note is old.
- Every stalled deal shows days-since-activity as evidence, not just the stalled label.

## Output
A ranked list of stalled deals — owner, value, stage, days stalled — plus the week-over-week forecast diff.
