Forecast variance analysis

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

Forecast variance analysis is an AI agent skill from the GitHub repository t0ddc3by/claude-for-customer-success. Compares submitted forecast to actual closed/won outcomes. Classifies variance by root cause: rep-level, deal-size band, stage-entry, seasonal, or product/segment. Surfaces systemic patterns — not one-off explanations. Minimum: 3 deals or 2 consecutive quarters before a pattern is surfaced. Triggers

How to use this skill

Skill file

[PROPOSED]

Forecast Variance Analysis

Traces the gap between what was called and what closed to its root cause.

Patterns require ≥3 deals or ≥2 consecutive quarters before surfacing.

One-off variance is noted but not classified as a pattern.

Reference: Variance classification taxonomy → ../../../shared/revops-domain-model.md §4

Config reads: current_arr, primary_segment, crm_system


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: current_arr, primary_segment, crm_system

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

"Forecast variance analysis", "why did we miss forecast", "actuals vs forecast for Q[N]", "variance decomposition", "forecast accuracy review"


Reasoning Protocol

Before generating output, apply these primers:

  1. CLASSIFY: What type of forecast variance request is this?
  1. CONSTRAINTS: What limits the solution space?

1. Confirm activation — user asking about forecast accuracy, miss analysis, or call quality

2. Check HubSpot connector — multi-quarter history required; declare fallback if unavailable

3. Confirm the period being analyzed (default: most recently closed quarter)

4. Apply G6 — state data-as-of for all historical pipeline pulls

5. Apply G1 — any forward-looking variance projection requires forecast language qualification

6. Apply G5 — rep call accuracy scorecard is analytical input; manager owns the coaching response

7. Apply pattern confidence gate: ≥3 deals or ≥2 consecutive quarters before surfacing a classification

  1. EXPERT CHECK: What would a veteran RevOps forecast analyst verify first?

reads may exclude deals that closed or slipped after the pull — declare data age upfront.

observations are noise, not patterns — surfacing them as classifications misleads coaching.

Variance analysis surfaces what happened; the manager decides what to do about it.

Mixed sources produce phantom variance that doesn't reflect actual call accuracy.

  1. ANTI-PATTERNS: Common mistakes to avoid:

After execution, verify:


Inputs

Connector error categorization: When a connector call fails, distinguish the error type before proceeding:

Do not conflate these — a rate-limited connector will return data shortly; an unavailable connector will not.

Required:

Optional:


Workflow

Step 1 — Calculate total variance

Variance Amount = Submitted Forecast − Actual Closed/Won
Variance %      = Variance Amount ÷ Submitted Forecast

Step 2 — Classify variance [revops-domain-model.md §4]

For each deal that was in the submitted forecast but did not close, or closed at

a different amount, classify the contributing factor:

Step 3 — Pattern confidence gate

Only surface a pattern classification when:

If below threshold: "Insufficient data to classify as systemic — noted as isolated."

Step 4 — Rep call accuracy scorecard (if rep data available)

Rep     Submitted    Actual    Variance    Accuracy
[name]  $XXXk        $XXXk     −$XXk       XX%

Output

FORECAST VARIANCE ANALYSIS — [Quarter/Period]
[HubSpot ✓ live — as of YYYY-MM-DD] [Confidence: High/Moderate]

Total variance: −$XXXk (−XX% of submitted forecast)

Root cause classification:
  Primary:   [Rep-level / Deal-size / Stage-entry / Seasonal / Product]
  Secondary: [if applicable]

Pattern evidence:
  "[Pattern description]" — observed in [N] deals over [N] quarters
  [Confidence: High/Moderate/Low — based on sample size]

Rep accuracy scorecard:
  [table if rep data available]

One-off variances (not classified as patterns):
  [Deal name, amount, what happened — 1 line each]

[DRAFT — RevOps internal] [Confidence: High/Moderate]

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.