Revenue leakage scanning

From t0ddc3by/claude-for-customer-success · View interactive version

Revenue leakage scanning is an AI agent skill from the GitHub repository t0ddc3by/claude-for-customer-success. Identifies deal structures leaving money on the table before close: underpriced professional services, missing expansion clauses in multi-year deals, renewal terms misaligned with ARR classification, missing success milestone gates for expansion. Fires at Negotiation stage — before close locks the s

How to use this skill

Skill file

[PROPOSED]

Revenue Leakage Scanning

Structural leakage is easier to fix before the contract is signed.

Primary detection window: Negotiation stage — before close.

Reference: Confidence bands → ../../../shared/revops-domain-model.md §2

Config reads: avg_deal_acv, primary_segment


Pre-flight

Read ~/.claude/plugins/config/claude-for-customer-success/rev-ops/CLAUDE.md and

~/.claude/plugins/config/claude-for-customer-success/company-profile.md.

If either is missing or contains [PLACEHOLDER] markers, stop and prompt for

/rev-ops:cold-start-interview.

Note from config: avg_deal_acv, primary_segment

G-code dependency: All G-code guardrails referenced in this skill (G1–G9) are defined in the CLAUDE.md config loaded above. If Pre-flight halts or config is missing, G-codes are undefined — do not proceed with partial config.


Use when

Do NOT use for

Typical Activation

"Revenue leakage scan", "are we leaving money on the table", "missing expansion clause", "mispriced services", "deal structure review for [account]"


Reasoning Protocol

Before generating output, apply these primers:

  1. CLASSIFY: What type of revenue leakage scan is this?
  1. CONSTRAINTS: What limits the solution space?

1. Confirm activation — user reviewing deal structure for a specific deal or cohort

2. Pull deal structure fields, PS line items, contract terms, and product configuration from HubSpot

3. Check deal stage — flag immediately if deal is already closed (post-close is lower leverage)

4. Evaluate all four leakage patterns; quantify estimated ARR impact where possible

5. Apply G1 — leakage estimates shared beyond RevOps require forecast qualification language

6. Apply G6 — data-as-of timestamp required on all HubSpot reads

7. Surface findings with specific pre-close actions while action window is open

  1. EXPERT CHECK: What would a veteran deal desk analyst verify before surfacing leakage findings?

implementation complexity notes must corroborate before flagging underpricing. Without

complexity context, the flag is noise, not signal.

length confirmed — flagging a missing expansion right on a 1-year deal is low value; on

a 3-year deal it's a material ARR growth constraint.

classification misalignment only matters if there's time to add a price increase clause —

confirm with the AE that the contract is not yet countersigned.

Missing milestone gates hurt expansion motion — the fix is a contract amendment, not a

coaching conversation.

  1. ANTI-PATTERNS: Common mistakes to avoid:

ease of fix before close

After execution, verify:


Four Leakage Patterns

Pattern 1 — Professional services underpriced
  Signal: implementation_complexity notes suggest high effort;
          PS line item ≤25% of ACV (typical PS ratio for complexity level)
  Impact estimate: [estimated PS underprice amount]

Pattern 2 — Expansion clause missing
  Signal: multi-year contract (≥2 years) without usage-based expansion clause
          or seat-based expansion rights
  Impact: No contractual mechanism to grow ARR within the contract term

Pattern 3 — Renewal terms / ARR classification mismatch
  Signal: deal counted as New ARR but renewal terms allow flat renewal
          with no price increase clause
  Impact: ARR classification may overstate true growth quality

Pattern 4 — Success milestone gate missing
  Signal: no EBR/QBR or milestone-based check-in tied to expansion conversation
  Impact: CS has no contractual trigger for expansion motion

Output

REVENUE LEAKAGE SCAN — [Account Name] — [Stage]
[HubSpot ✓ live — as of YYYY-MM-DD] [Confidence: Moderate]

Deal: [link]  ACV: $XXXk  Stage: [stage]  Close: [date]

Leakage findings:
  [Pattern type]  Estimated impact: $XXXk  Action: [specific fix before close]
  [Pattern type]  Impact: [structural]      Action: [specific fix]

No leakage patterns detected: [if clean]

Window: [deal is at Negotiation — action window is open / deal is closed — lower leverage]

[DRAFT — RevOps internal]
[G1: Leakage estimates are models. Not revenue commitments.]

Reference Files

| File | Purpose |

|------|---------|

| references/reasoning-blueprint.md | Problem classification taxonomy, domain heuristics, common failure modes, and expert judgment patterns for this skill |

Security & Permissions

Network access: None direct — all external data access is mediated by host-provided MCP connector tools (HubSpot, CS platform, Slack, Linear). This skill makes no direct outbound HTTP calls.

Filesystem scope: None — this skill does not read or write local files. All data is provided at runtime via parameters or MCP connector responses.

Subprocess execution: None.

Dynamic code execution: None — pseudocode in this skill represents the logic contract and is not executed at runtime.

Data sensitivity: Inputs may contain confidential deal and pipeline data. Handle with RevOps-level confidentiality.

Trust & Verification

Input trust model: All user-provided parameters are treated as untrusted at intake. Numeric inputs are validated for plausible range before use in calculations. String inputs are not evaluated as code.

Output trust model: All outputs are proposals or analytical inputs — no outputs constitute approved decisions, revenue commitments, or system actions without explicit human confirmation.

Connector data: Data retrieved via MCP connectors is treated as read-only observed state. Timestamps and data-as-of labels are applied to all connector-sourced values per G6.

Write-tier confirmation: Any proposed write to HubSpot, Linear, or Slack is surfaced as a draft requiring explicit user confirmation before execution.

Guardrails

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.