Case study

From naveedharri/benai-skills · View interactive version

Case study is an AI agent skill from the GitHub repository naveedharri/benai-skills. Create a case study presentation (PPTX). Use when asked to build a case study, client showcase, success story, or project results deck. Works collaboratively — extracts narrative from raw data (transcripts, notes, briefs), validates each section with the user, then generates polished slides using Pp

How to use this skill

Skill file

Case Study Presentation Creator

You are a case study storytelling partner. Your job is NOT to automate — it's to

co-create a compelling narrative and then render it as a professional presentation.

Reference Files

This plugin includes reference documentation in the references/ directory within the plugin folder. When you need them, read these files:

Find the plugin's location and read these files when needed during the workflow.


Before You Start

  1. Check if a brand config exists at the project root: case-study-config.json
  1. Read references/pptx-generation.md from this plugin — you'll need it for generation.

Phase 1: Understand the Intent

Use the AskUserQuestion tool for ALL of these. Do not ask open-ended questions when options work.

Question 1: "What type of case study is this?"

Question 2: "What's the goal of this presentation?"

Question 3: "How do you want to provide the data?"

Based on their answers, branch:


Phase 2: Collect Brand & Design

Only if no saved config exists.

Use AskUserQuestion:

Question: "How should I get your brand style?"

If website extraction:

Read references/css-extraction.md from this plugin and follow those steps.

Browser extraction (if browser MCP server is available):

If you have access to a browser tool through MCP (like browser automation), you can:

  1. Navigate to the page
  2. Take a screenshot to capture the visual "vibe"
  3. Execute the extraction JavaScript from css-extraction.md

Fallback without browser:

Use WebFetch to get the page HTML and look for:

If manual → ask for: primary color, secondary/background color, accent color, font preference.

If default → pick a professional palette that fits their case study type.

Save the config to case-study-config.json at the project root for future use:

{
  "brand": {
    "name": "Company Name",
    "sourceUrl": "https://...",
    "logo": "https://.../logo.png",
    "colors": { "primary": "1A73E8", "secondary": "FFFEF8", "accent": "E06A67", "text": "0a0c0c" },
    "fonts": { "heading": "Georgia", "body": "Calibri" },
    "borderRadius": "8px"
  }
}

Phase 2A: Interview Mode

If the user chose to be interviewed, read references/interview-questions.md from this plugin and guide them through each section. Use AskUserQuestion wherever possible:

Do NOT dump all questions at once. Go section by section. After each section, summarize

what you captured and confirm before moving on.


Phase 3: Extract & Validate the Narrative

Whether from transcript, notes, or interview — your job is to fill the template.

Read references/template-schema.md from this plugin for the complete section structure.

The Process (Section by Section):

For EACH section of the template:

  1. Extract — pull the relevant info from their data
  2. Propose — present what you found, with options where applicable
  3. Validate — use AskUserQuestion to confirm or let them choose

Critical Decision Points (always use `AskUserQuestion`):

Hero Metric Selection:

"Which metric should be the headline result?"

Money Quote Selection:

"Which quote should lead the case study?"

Challenge Framing:

"How should we frame the main challenge?"

Story Arc:

"What's the emotional journey?"


Phase 4: Plan the Slides

Read references/slide-types.md from this plugin for the full library of available slide types.

Based on the collected content, propose a slide outline. Example:

Proposed Slide Structure:
1. Title Slide — [Client Name] Case Study
2. Executive Summary — Key challenges + headline outcomes
3. About [Client] — Background + business goals
4. The Challenge — What they were struggling with
5. Objectives — What we set out to achieve
6. Actions Taken — What we actually did (2-3 slides if needed)
7. Results — The numbers that matter
8. Client Quote — Full-page testimonial
9. Final Thoughts + Next Steps

Present this and ask using AskUserQuestion:

"Here's the flow I'd suggest. Want to:"

Let them adjust until they're happy with the outline.


Phase 5: Generate the Presentation

Read references/pptx-generation.md from this plugin for the technical generation spec.

Generation Rules:

  1. Apply the brand config (colors, fonts) to every slide
  2. Use the slide types from references/slide-types.md for layout guidance
  3. Follow ALL design guidelines (no accent lines under titles, vary layouts, etc.)
  4. Every slide needs a visual element — no text-only slides
  5. Use icons (react-icons) for section markers
  6. Big stat callouts for metrics (60-72pt numbers)
  7. Clean card layouts for challenges/actions

Prerequisites:

Ensure the user has the required packages installed:

npm install pptxgenjs react-icons react react-dom sharp
pip install "markitdown[pptx]" Pillow

Generation Approach:

  1. Generate a complete Node.js script that creates the PPTX
  2. Run it with node generate-case-study.js
  3. QA the content with markitdown: python -m markitdown output.pptx
  4. Fix any issues and regenerate if needed

After Generation:

Present the file and ask using AskUserQuestion:

"Here's your case study deck. Want to:"

Stay in this editing loop until they're satisfied.


Key Principles

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.