# Pipeline review — full skill bundle

Source: https://www.gtmskills.com/skill/pipeline-review

This bundle contains every file in the skill. Paths mentioned inside the files refer to the sections below.

Files:
- SKILL.md
- swan.md

===== FILE: SKILL.md =====
URL: https://raw.githubusercontent.com/swan-gtm/gtm-skills/main/skills/ido-goldberg/pipeline-review/SKILL.md

---
name: "pipeline-review"
title: Pipeline review
description: "Reviews pipeline health before forecast calls or recurring check-ins. Flags stuck, skipped, regressing, or at-risk deals and recommends one concrete action per issue."
category: Deals
---

## Instructions

**Setup state.** Not yet configured for this org. Load the `Setup` sub-page and walk the user through mapping their CRM stages to the Swan funnel model, recording per-stage SLAs, and setting the review cadence before running a review. (After setup is performed, rewrite this paragraph via `swan-update-skill` to describe the current state — funnel stages mapped from CRM, required field mappings, per-stage SLAs in days, review cadence and delivery channel, and last-refreshed date — so future runs see the current configuration without re-checking.)

### What this skill does

Walk the user's pipeline. Surface deals that need attention: stalled in stage, regressed in stage, missing key activities, or showing risk signals. Output: a short prioritized list with one action per item. Not a forecast — that's a separate verb.

---

### Step 1 — Scope the review

Ask once:
- Whose pipeline (a specific AE, a team, the whole org)?
- Which stages (mid-funnel only by default — exclude early discovery and closed)?
- Time horizon (default: deals expected to close this quarter, plus anything aging > 30 days regardless of close date).

If the user hasn't said which AE, default to all open mid-funnel deals.

---

### Step 2 — Pull the deal slice

`hubspot-search-objects` (object: deals) filtered to the chosen owner(s), open stages, and the date window. Page size 20. Pull associated company and amount.

If the result is > 40 deals, switch to `swan-execute-code`: dump the deals query result and aggregate from disk.

---

### Step 3 — Flag anomalies per deal

For each deal in the slice, check three things (cheap, no enrichment):

| Flag | Check | How |
|------|-------|-----|
| **Stalled** | No engagement / activity update > 21 days | Deal `hs_lastmodifieddate` > 21 days ago |
| **Regressed** | Stage went backwards | Check stage history if available; or compare to prior pipeline snapshot in memory |
| **Risk: low engagement** | < 3 distinct contacts engaged in last 30 days | `hubspot-get-engagements` on the deal — count distinct contacts |
| **Risk: champion gone** | Primary contact left the company | `swan-search-companies` for the contact's current company vs deal company |
| **Risk: amount missing** | Deal in late stage with no amount | Deal `amount` field empty + stage past discovery |
| **Risk: close date stale** | Close date in the past or > 90 days out for a "this quarter" deal | Compare to today |

Keep one line per flagged deal: `<deal name> — <flag> — <evidence>`. Discard the rest.

If a deal has multiple flags, list them comma-separated on the same line.

---

### Step 4 — Pull fresh signals for at-risk deals only

For each flagged deal, check one source: `swan-fetch-business-events` on the associated company in the last 30 days. If a fresh signal exists, note it — it's the angle to act on.

Skip signal lookup for unflagged deals. Most pipeline reviews are about the at-risk subset.

---

### Step 5 — Recommend one action per flag

Lightest first:

| Flag | Default action | Tool |
|------|----------------|------|
| Stalled, fresh signal exists | Draft a signal-based re-engagement | hand off to `reach-out` |
| Stalled, no fresh signal | Create a CRM task for the owner to call/email manually | `hubspot-create-task` + `hubspot-create-note` |
| Regressed | Create a task to schedule a deal review with the owner | `hubspot-create-task` |
| Low engagement | Hand off to `multi-thread-deals` to identify missing personas | `multi-thread-deals` |
| Champion gone | Hand off to `champion-tracker` to find the champion's new role | `champion-tracker` |
| Amount missing / close date stale | Create a task for the owner to update the deal | `hubspot-create-task` |

Don't auto-execute. List the recommendation. Ask which to proceed with.

---

### Step 6 — Surface the report

```
PIPELINE REVIEW — <date>, <scope>

<N> deals reviewed. <M> flagged.

STALLED (X)
  1. <deal> — <amount> — last activity Y days ago — fresh signal: <yes/no>
     → <action>

REGRESSED (X)
  ...

RISKS (X)
  ...
```

End with a bottom line: "X actions recommended. Want me to create the CRM tasks for the top N?" Wait for approval before writing anything to CRM.

---

### Rules

- MUST process deals in slices of 20. Don't load the whole pipeline into context.
- MUST cite specific evidence per flag (days, dates, counts).
- MUST end with an explicit approval gate before creating CRM tasks.
- NEVER recommend more than 10-15 actions in a single review. Bigger lists won't get acted on. If more deals are flagged, surface top 10 and offer to do the rest in a follow-up pass.
- NEVER flag deals as stalled if they're in a stage where 21 days is normal (custom stages — confirm the org's stage SLAs from memory before flagging).

===== FILE: swan.md =====
URL: https://raw.githubusercontent.com/swan-gtm/gtm-skills/main/skills/ido-goldberg/pipeline-review/swan.md

---
title: Readme
description: "Setup page for pipeline review. Maps CRM stages, key fields, stall rules, and review cadence so future reviews are consistent."
---

## Instructions

### Step 1 — Confirm what CRM is connected

Check what CRM tooling the org has wired in. If a CRM is connected (HubSpot today; other backends as they come online), the rest of setup pulls from there. If no CRM is connected at all, this is the blocker — tell the user plainly: pipeline review without a CRM is guesswork. Push hard on connecting one before continuing.

If the user runs pipeline out of a spreadsheet or a non-CRM tool, the fallback is to ingest a CSV of open deals via the code sandbox. Treat this as a stopgap; flag that everything downstream (forecast, multi-thread, stalled revival) will work better once a CRM is wired.

### Step 2 — Map the CRM's deal stages to Swan's funnel model

Pull the deal stage list from the CRM. Pull Swan's existing funnel stages. Walk the user through aligning them.

The opinionated framing: a clean funnel has 4–6 stages, not 12. If the CRM has 10 stages that nobody can tell apart, suggest consolidating into the canonical shape:

| Funnel stage | What it means |
|--------------|----------------|
| **Discovery / Qualified** | First conversation has happened; fit confirmed; mutual interest. |
| **Demo / Evaluation** | Buyer has seen the product; comparing or piloting. |
| **Proposal / Pricing** | Commercial conversation; pricing on the table. |
| **Negotiation / Contract** | Terms being worked; legal/procurement engaged. |
| **Verbal yes / Committed** | Buyer has said yes; signature pending. |

Reverse-engineer from closed-won deals if possible: look at how the org's recent wins actually moved through stages, and let the real pattern shape the model rather than the CRM admin's wishlist. Persist the mapping by creating funnel stages with the appropriate Swan knowledge tool.

### Step 3 — Pick the fields that drive the review

Don't try to use every field on the deal object. The review needs a focused set. Confirm each is populated reliably in the CRM:

- **Close date** — drives "this quarter" filters and stale-date flags.
- **Amount** — drives prioritization and forecast weighting.
- **Owner** — drives per-AE scope and task routing.
- **Deal source / lead source** — drives debrief context (signal-led vs inbound vs outbound).
- **Last activity / modified date** — drives stalled detection.
- **Stage** — already mapped above.
- **Stage history** — ideal for velocity analysis. If the CRM doesn't track it natively, suggest enabling it; otherwise the velocity skill degrades to total-cycle-only.

If a critical field is missing or unreliable for a meaningful share of deals, surface this — pipeline review on broken data is worse than no review. Recommend a CRM hygiene pass first.

### Step 4 — Set stage SLAs

For each stage in the mapped funnel, ask the user: how long should a healthy deal sit here? Capture as memory ("Discovery: 14 days. Demo: 21 days. Proposal: 14 days. Negotiation: 21 days."). These are the thresholds the parent skill uses to flag stalled deals — without them, the review falls back to a flat 21-day default that fits no org well.

Reverse-engineer from closed-won median time-in-stage if data exists. If the org doesn't know, suggest reasonable defaults to start; the SLA tightens over time as evidence accumulates.

### Step 5 — Define the review cadence

Be opinionated. The right answer for most orgs is **weekly, per-AE, Monday morning**. The review answers "what do I work this week" — that question is asked weekly, not monthly.

For very small teams or single-founder GTM, a **personal weekly** review still beats nothing. For very large teams, **per-AE weekly + a manager rollup monthly** is the shape.

Wire the trigger:
- Type: `SCHEDULE`.
- Cadence: weekly (default Monday 8am org-local).
- Scope: one run per pipeline owner.
- Delivery: chat by default; Slack DM if Slack is connected; email digest as backup.

### Step 6 — Save a baseline snapshot

Take a snapshot of the current open pipeline (deals, stages, amounts, close dates) and append it to org memory. Next week's review compares against it — that's how stage regression and slow drift get caught.

### Step 7 — Seed follow-on configuration

Suggest the user also configure:
- **Forecast** — same stage probabilities can feed forecasting; offer to set that up next.
- **Win/loss debriefs** — recommend running one on the org's most recent closed deal as a learning loop.
- **Stalled deal revival** — schedule it monthly as a deeper companion to the weekly review.

### Step 8 — Rewrite the parent skill's Setup state paragraph

Call `swan-update-skill` on the parent `pipeline-review` skill and rewrite its `**Setup state.**` paragraph so it describes what was just configured. The rewritten paragraph should list each Swan funnel stage with its CRM-stage mapping and SLA in days, the required deal fields that must be populated, the review cadence (frequency, day, scope), the delivery channel (chat / Slack / email), and today's date as last-refreshed. Drop the "Not yet configured" wording entirely.

Future invocations of this skill will read the rewritten paragraph and proceed without re-checking state.

## Recommended companion skills

Pipeline forecast (same funnel, different verb). Stalled deal revival (deeper than the weekly flag pass). Deal velocity analyzer (diagnostic when stage SLAs feel wrong).

## Success criteria

- Funnel stages exist in Swan and align to how the org actually sells.
- Every open deal has the required fields populated.
- Stage SLAs are recorded and used by the review.
- The recurring review fires on schedule and the user/AE acts on flagged items within 48 hours.
- Average days-in-stage trends down over the quarter as the review converts to action.
