Skip to content
Automation
Skill

/win-loss-analysis

Win/loss pattern analysis for B2B sales. Pulls deal data from ANY CRM (Attio, HubSpot, Salesforce, Pipedrive, etc.), enriches with emails, call transcripts (Fireflies/Gong), and web research, then analyzes won vs lost deal patterns to build an ideal prospect persona and strategy

From plugin
benai-skills
84152 skills17 agents1 hook4 MCP

Claude Code

$ npx -y skills add naveedharri/benai-skills --skill win-loss-analysis --agent claude-code

SKILL.md

win-loss-analysis.SKILL.md
name: win-loss-analysis
description: "Win/loss pattern analysis for B2B sales. Pulls deal data from ANY CRM (Attio, HubSpot, Salesforce, Pipedrive, etc.), enriches with emails, call transcripts (Fireflies/Gong), and web research, then analyzes won vs lost deal patterns to build an ideal prospect persona and strategy recommendations as a .docx report. MANDATORY TRIGGERS: \"win/loss analysis\", \"won vs lost\", \"deal analysis\", \"sales patterns\", \"pipeline analysis\", \"prospect persona\", \"ICP from deals\", \"why deals are lost\", \"deal patterns\", \"lost deal analysis\", \"winning persona\", \"deal forensics\", \"pipeline forensics\", \"sales retrospective\", \"analyze my pipeline\", \"what's working in sales\", or any request about understanding close/win vs loss patterns, what makes deals close, or building an ICP from historical deal data."
disable-model-invocation: true

Win/Loss Pattern Analysis

Build a data-driven understanding of why deals close and why they don't, then deliver a comprehensive persona and strategy document as a professional .docx report.

**The report includes:** Executive summary with metrics, won/lost case studies with evidence from calls and emails, side-by-side pattern comparison, a complete winning prospect persona, red flags and disqualification criteria, strategic recommendations, and data appendix.

Phase 0: Discovery Questions

Use `AskUserQuestion` (3-4 questions max) to gather:

1. **CRM & Pipeline**: Which CRM, and the pipeline/list name containing deals? 2. **Stage Labels**: Exact names for Won and Lost stages (e.g., "Delivered"/"Lost", "Closed Won"/"Closed Lost") 3. **Business Context**: 2-3 sentences on what the company sells and to whom 4. **Output Preferences**: Full analysis or specific questions to answer?

Confirm understanding in one sentence before proceeding.

Phase 1: CRM Data Extraction

**Goal**: Clean Won and Lost deal lists with contact details, minimizing API calls.

Strategy

1. **Filter at API level**, only request Won/Lost stage records, never pull all then filter locally 2. **Request only needed fields**, name, email, company/domain, deal size, priority, source, close date 3. **Read CRM-specific reference**, check available MCP tools, then read the appropriate file:

  • Attio → `references/crm-attio.md` | HubSpot → `references/crm-hubspot.md` | Salesforce → `references/crm-salesforce.md` | Other → `references/crm-generic.md`

Steps

1. Discover pipeline structure (list attributes, stage IDs, custom fields) 2. Pull Won deals filtered by stage 3. Pull Lost deals filtered by stage 4. Filter out personal email domains (`gmail.com`, `yahoo.com`, `hotmail.com`, `outlook.com`, `icloud.com`, `googlemail.com`, `aol.com`, `protonmail.com`, `live.com`, `me.com`, `mail.com`, `yandex.com`, `zoho.com`, `gmx.com`, `fastmail.com`). Keep a count of filtered leads for the report. 5. Organize into two clean lists with counts

**CRITICAL, Save extracted data to files immediately:**

analysis_summary.json    # Counts, value distributions, aggregate stats
won_deals.json           # Full won deal list
lost_deals.json          # Full lost deal list
domain_analysis.json     # Business vs personal email breakdown

This prevents data loss if enrichment phases hit errors or context limits. Never rely on holding all data in conversation context alone.

**CRITICAL, Validate CRM field reliability:** After initial extraction, check which CRM fields actually contain useful data vs. being mostly empty. Fields like `lost_reason`, `agency`, `requirement`, `source`, and other custom fields are **frequently empty or unreliable** (e.g., 126/131 lost deals having "None" as lost reason is common). Before relying on any field for analysis:

  • Count how many records have non-empty values for each field
  • If a field is <30% populated, flag it as unreliable, don't use it as a primary analysis dimension
  • Tell the user which fields have reliable data and which don't, ask if any you're unsure about are actually maintained
  • Derive insights from enrichment data (transcripts, emails, web research) instead of empty CRM fields

A healthy analysis needs 15-20+ leads per bucket. If thin, discuss including personal-email leads or widening date range.

Phase 2: Multi-Source Enrichment

Raw CRM data tells you WHAT happened; enrichment tells you WHY. **Complete ALL enrichment BEFORE building the report.** Run streams in parallel using sub-agents where possible.

Stream A: Email Analysis (Two-Step Process)

**Step 1, Metadata search**: Find emails involving top leads by deal size (10-15 per bucket). Use `search-emails-by-metadata` (Attio), engagement APIs (HubSpot), or activity records (Salesforce).

**Step 2, Read actual content**: Metadata only gives subject lines and timestamps. You MUST read the actual email body using `get-email-content` (Attio) or equivalent to extract: objections raised, pricing discussions, competitive mentions, enthusiasm/hesitation signals, specific questions asked.

**What to capture per lead**: Email count, date range, key content themes, standout quotes, response patterns.

Stream B: External Company Research

For top 10-15 leads per bucket, quick web research via `WebSearch`/`WebFetch`: company size, industry, tech stack, growth signals. 2-3 minutes per company max, focus on cohort patterns.

Stream C: Call Transcript Analysis

**Search ALL available transcript tools**, don't stop at one source:

  • Fireflies: `fireflies_search`, `fireflies_get_transcript`, `fireflies_get_summary`
  • Attio: `search-call-recordings-by-metadata`, `semantic-search-call-recordings`, `get-call-recording`
  • Gong: Gong MCP search tools

**Fireflies search strategy**: Use targeted queries, search by company name, contact name, or domain individually. Broad keyword searches return massive result sets that overflow context. Example: search "Boostability" not "SEO demo call".

**What to extract**: Number of calls, call progression arc, p

Read more
@naveedharri
Ships withbenai-skills

Expert automation skills for Claude Code, organized by department.

84152 skills17 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
84
Star history of naveedharri/benai-skills on GitHub, a chart by star-history.com

Other skills on benai-skills.

ads-audit

ads-audit

Full multi-platform paid advertising audit with parallel subagent delegation. Analyzes Google Ads, Meta Ads, LinkedIn Ads, TikTok…

ads-budget

ads-budget

Budget allocation and bidding strategy review across all ad platforms. Evaluates spend distribution, bidding strategy…

ads-competitor

ads-competitor

Competitor ad intelligence analysis across Google, Meta, LinkedIn, TikTok, and Microsoft. Analyzes competitor ad copy, creative…

ads-creative

ads-creative

Cross-platform creative quality audit covering ad copy, video, image, and format diversity across all platforms. Detects creative…

ads-google

ads-google

Google Ads deep analysis covering Search, Performance Max, Display, YouTube, and Demand Gen campaigns. Evaluates 74 checks across…

ads-landing

ads-landing

Landing page quality assessment for paid advertising campaigns. Evaluates message match, page speed, mobile experience, trust…

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about win-loss-analysis.

Which coding agents can use win-loss-analysis?
win-loss-analysis installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.