/benai-sales:win-loss-analysisfrom BenAI Sales
Analyzes won vs lost B2B sales deals from any CRM, enriches with emails and call transcripts, then generates a .docx report with ideal prospect persona and strategy recommendations.
Ships in BenAI Sales. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
Use AskUserQuestion (3-4 questions max) to gather:
Confirm understanding in one sentence before proceeding.
Goal: Clean Won and Lost deal lists with contact details, minimizing API calls.
references/crm-attio.md | HubSpot → references/crm-hubspot.md | Salesforce → references/crm-salesforce.md | Other → references/crm-generic.mdgmail.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.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:
A healthy analysis needs 15-20+ leads per bucket. If thin, discuss including personal-email leads or widening date range.
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.
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.
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.
Search ALL available transcript tools, don't stop at one source:
fireflies_search, fireflies_get_transcript, fireflies_get_summarysearch-call-recordings-by-metadata, semantic-search-call-recordings, get-call-recordingFireflies 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, pain points (concrete vs vague), buying signals, objections, who attended, prospect's stated intent. Capture direct quotes for the report.
Save enrichment results to files as you go: email_content_analysis.json, won_transcripts_analysis.json, lost_transcripts_analysis.json, fireflies_meeting_map.json. This protects against context loss and lets you reference exact data during report generation.
Use sub-agents (Task tool) to parallelize: one for Won enrichment, one for Lost enrichment, web research concurrent with email/transcript lookups.
Compare Won vs Lost across 6 dimensions. For each, document the pattern, the contrast, supporting evidence (specific leads, quotes), and confidence level.
For lost deal reasons: Don't rely on the CRM lost_reason field, it's almost always empty. Instead, categorize losses from enrichment evidence (transcripts, emails, web research) into archetypes like: Went Cold, Enterprise Procurement Complexity, Product Quality Issues, Pricing/Cost, Competitive/Build Own, Poor Product Fit.
Synthesize findings into an actionable winning persona:
Persona Card: Title/role, company type, size/revenue range, current pain, primary intent, technical profile, buying behavior, geographic focus, deal size sweet spot, key buying signals, red flags.
What They Say: 4-6 actual quotes or paraphrased themes from transcripts that winning prospects consistently express.
Disqualification Criteria: 5-8 specific, observable red flags tied to evidence from lost deal analysis.
Strategic Recommendations: 8-12 actionable recommendations across sales process, targeting/messaging, and pipeline hygiene.
Generate professional PNG charts using the included scripts/generate_charts.py (matplotlib, JSON config → 300 DPI PNGs). Supported types: metric_cards, donut, grouped_bar, horizontal_bar, stacked_bar.
pip install matplotlib --break-system-packages -q 2>/dev/null || pip install matplotlib -q
Build charts_config.json with these (replace placeholder values with actual data):
metric_cards): Won count, Lost count, Avg Won Deal size, Win Rategrouped_bar): Won vs Lost by value rangesdonut): Evidence-based categories from enrichment (NOT from empty CRM field)grouped_bar): Won vs Lost by regionhorizontal_bar, green): Where you win mosthorizontal_bar, red): Where you lose mosthorizontal_bar): Avg meeting duration, questions per meeting, calls per deal, email touches, derived from transcript/email enrichmenthorizontal_bar): % of won deals showing each winning traitOptional: Lead source distribution, sales cycle comparison, priority distribution.
python <skill_path>/scripts/generate_charts.py --config charts_config.json --output-dir ./charts
Colors: Green #4CAF50 (Won) | Red #E53935 (Lost) | Navy #1B3A5C (headers) | Teal #2E86AB (accents) | Orange #FF9800 | Purple #7E57C2
Chart sizes for docx (width x height points): Metric cards 600x180 | Donut 500x360 | Grouped bar 560x380 | Horizontal bar 560x280 (+45 per extra bar)
Read the docx skill (SKILL.md) for docx-js technical instructions. Embed charts using ImageRun:
const chartBuffer = fs.readFileSync('./charts/metrics_summary.png');
new Paragraph({
children: [new ImageRun({ data: chartBuffer, transformation: { width: 600, height: 180 }, type: 'png' })],
spacing: { before: 200, after: 200 },
alignment: AlignmentType.CENTER,
})
Save to outputs directory. Offer executive summary as separate doc if report is lengthy.
This skill is never finished. Improve it as you use it.
references/examples/ so it becomes a model for future runs.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub benaios/benai-skills --plugin benai-sales14 skills in this plugin
/call-prepPrepare for sales calls and output a live, shareable BenAI-branded dashboard (not a chat brief). Researches every attendee and company via web, Attio CRM, Gmail, and Fireflies, then deploys a neo-brutalist "command center" dashboard to a live URL. Works for one call or a whole day. Trigger with "prep me for my call with [company]", "call prep", "prep all my calls today", "get me ready for [meeting]", or "/call-prep"./client-onepagerGenerates a personalized BenAI x Client one-pager (HTML), deploys it to Vercel, and returns a shareable URL within minutes. Use this skill ANY TIME the user asks to prepare, create, build, make, draft, send, or personalize a one-pager for a sales, discovery, or onboarding call. Also triggers on variations like "prep the one-pager for my call with X", "create a one-pager based on the call with X", "personalize the one-pager from the Fireflies", "make a one-pager for [client] at [price]", or "build the same one-pager for [name] today". Handles BOTH pre-call (research-only context from Gmail, Attio, Pipedrive, and the web) and post-call (Fireflies-transcript-grounded personalization) scenarios. Always produces a live, shareable URL and saves the working file under the deliverables folder./create-an-assetGenerate tailored sales assets (landing pages, decks, one-pagers, workflow demos) from your deal context. Describe your prospect, audience, and goal, get a polished, branded asset ready to share with customers./crm-prospect-miningMine high-value prospects from CRM pipeline stages (Lost, No Show, Churned, Stalled) by cross-referencing records with LinkedIn company data and comms history. Connects to any CRM, pulls records from target stages, filters out personal email domains, finds company LinkedIn pages via web research, bulk-scrapes company sizes via Apify, and filters by the user's "high-value" definition (headcount, industry, deal size). Optionally adds intent analysis from emails and transcripts. MANDATORY TRIGGERS: "find high-value prospects", "mine my lost deals", "reactivate pipeline", "which lost leads are worth re-engaging", "analyze my lost deals", "prospect mining", "CRM mining", "pipeline mining", "re-engage lost leads", "high-value lost leads", "company size analysis", "enrich pipeline with LinkedIn", "headcount filter", "filter by company size", or any request about identifying which CRM prospects are worth pursuing based on company size, industry, or intent signals.
/email-personalizationWrite hyper-personalized cold email icebreakers for B2B leads using their company intelligence and LinkedIn data. Use this skill whenever the user says "write icebreakers", "personalize emails", "email personalization", "cold email first lines", "write opening lines", "personalize outreach", "create email openers", or has enriched leads and wants to write the first line of a cold email for each. Also trigger when the user has a CSV with lead intelligence columns and wants to generate personalized outreach copy. This skill produces icebreakers that sound human, reference real observations, and tie back to the user's product/service./lead-generationSource, qualify, enrich, and research a B2B lead list from an Ideal Customer Profile, end to end. Use this skill whenever the user wants to "find leads", "source prospects", "build a lead list", "get me leads for [ICP]", "scrape leads", "find companies that match", "build a prospect list", "/lead-gen", or describes who they sell to and wants a contactable, qualified list back. It picks the right data source for the ICP (Google Maps for local businesses, Sales Navigator or LinkedIn scrapers for B2B roles, a prospecting database otherwise), confirms the tools are connected, sources at the right volume, qualifies every lead with parallel subagents, enriches and verifies contact data (email + phone), runs deep per-lead research, and delivers a clean CSV or Google Sheet. Trigger it even when the user does not name a tool, as long as they want leads that match a profile. The output feeds the `outreach` skill.3 plugins in 2 repositories ship this exact skill · first indexed Sep 18, 2026
Other plugins' skills for the same job