Skip to content
Back to skills

Case Study Writer

ASecurity

Turn customer interview notes and a metrics file into a case-study scaffold, and check a draft so every number traces to evidence. Use when writing a customer story, checking a case study before publishing, or verifying quotes and results.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythongobash

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill case-study-writer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Case Study Writer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Case Study Writer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-case-study-writer/badge)](https://www.skillsdirectory.com/skills/borghei-case-study-writer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: case-study-writer
description: >
  Turn customer interview notes and a metrics file into a case-study scaffold, and check a draft so every number traces to evidence. Use when writing a customer story, checking a case study before publishing, or verifying quotes and results.
license: MIT
metadata:
  version: 1.0.0
  author: borghei
  category: marketing
  domain: case-studies
  updated: 2026-12-03
  tags:
    - case-study
    - customer-story
    - proof
    - testimonials
    - b2b-marketing
---
# Case Study Writer

Two offline tools that keep a customer story honest. The scaffold builder turns your interview notes and your metrics file into a case-study skeleton in which every line comes from your files and every gap is marked `MISSING`. The proof checker reads a draft and fails any number that does not trace to the metrics file, any result without a baseline or timeframe, any quote without attribution and approval, and any superlative without evidence. Neither tool supplies proof: no number, quote or customer detail appears unless you gave it.

## What you get

Hand the scaffold builder notes and metrics with holes in them and it names each hole instead of papering over it.

```bash
python3 scripts/case_study_scaffold.py assets/flawed_notes.md --metrics assets/flawed_metrics.json
```

Real output (excerpt, exit 1):

```
FIX 10 issues

Read assets/flawed_notes.md: customer fields: 2, challenge items: 0, approach items: 1, quotes: 1, metrics: 3, facts: 0

Findings:
  1. [metric-no-baseline] metrics: Invoice dispute resolution time: before (the baseline) is missing or unreadable
     fix:  Add before (the baseline) to 'Invoice dispute resolution time' in the metrics file; until then the table shows MISSING.
  ...
  5. [unverified-number] notes: ## Results: 40% in "Saved the team about 40% of their week."
     fix:  Add 40% to the metrics file with before, after, period and source, or remove it from the notes.

## The challenge
MISSING: no challenge in the notes. Ask: What was happening before you started? What did it cost you in time, money or customers?

## The approach
- Rolled out in two phases across 12 depots. [UNVERIFIED NUMBER: 12 is not in the metrics file]

| Metric | Before | After | Change | Period | Source |
|---|---|---|---|---|---|
| Invoice dispute resolution time | MISSING | 6 days | MISSING | MISSING | dispute log |
| Freight invoices matched automatically | 22% | 81% | +59 (+268.2%) | Q2 2026 | MISSING |
```

The proof checker on a draft with a made-up number, an unattributed quote and hype:

```bash
python3 scripts/proof_checker.py assets/flawed_draft.md --metrics assets/sample_metrics.json --notes assets/sample_notes.md
```

```
FIX 14 issues

  1. [number-not-in-metrics] line 9: 40% in "Automatic matching reached 81% of invoices, and invoice errors dropped 40% ac..."
     fix:  Remove 40%, or add it to the metrics file with before, after, period and source (or under facts).
  2. [quote-not-in-notes] line 13: "RouteLedger is the best tool we have ever used and our team loves it."
  ...
  4. [result-no-baseline] line 7: Dispute resolution time is now 6 days.
     fix:  State the baseline: the metrics file has 'Invoice dispute resolution time' at 18 days before; write 'from 18 days to 6 days'.
```

The same checker on `assets/sample_draft.md` prints `PASS` (exit 0): 12 of 12 numbers trace, the quote is attributed and approved.

## When to Use

- Writing a customer case study from an interview and a set of results
- Checking a case-study draft before it is published or sent to the customer for sign-off
- Verifying that a quote is word for word, attributed and approved
- Auditing an existing case study for numbers nobody can source

## Clarify First

Settle these before drafting. When one is missing and would change the result, ask; when it would not, use a default and say which.

- **Evidence:** is there a metrics file or an export with before, after, period and source for each result? Without a baseline there is no result to write.
- **Approval:** who at the customer signs off on the story and on each quote, and has it been recorded?
- **Audience and length:** sales one-pager, web page or long form; this changes the sections, not the rules.
- **Customer name:** may the company be named? If not, the scaffold's `Company:` line carries the anonymised label you agree.

If the user wants a result straight away, produce it and state your assumptions at the top.

## Quick Start

```bash
python3 scripts/case_study_scaffold.py assets/sample_notes.md --metrics assets/sample_metrics.json
python3 scripts/case_study_scaffold.py assets/sample_notes.md --metrics assets/sample_metrics.json --output draft.md
python3 scripts/proof_checker.py assets/sample_draft.md --metrics assets/sample_metrics.json --notes assets/sample_notes.md
python3 scripts/proof_checker.py draft.md --metrics metrics.json --format json
```

Exit codes (both tools): `0` clean, `1` findings (the scaffold is still printed, with `MISSING` marks), `2` unusable input (one `BLOCKED:` line on stderr). `--format json` gives the same report as JSON. Input formats: [references/input-formats.md](references/input-formats.md).

## Workflows

### Workflow 1: Interview to scaffold [PROVEN]

1. Run the interview with [references/interview-guide.md](references/interview-guide.md). Ask for an export for every number and record its name and date.
2. Write the notes file: `Company:`, `Contact: Name, Role`, Challenge, Approach, Results, and quotes word for word with `(approved ...)` or `(pending)`.
3. Write the metrics file: one entry per result with before, after, unit, period, source. Put non-result numbers (head count, depots) under `facts`.
4. Run `case_study_scaffold.py`. Every `MISSING` and every `UNVERIFIED NUMBER` is a question for the customer, not a blank to fill by guessing.
5. Re-run until the verdict is `PASS`, then write the narrative around the table: results first in the headline, challenge and approach in the customer's own words.

### Workflow 2: Check a draft before sign-off [PROVEN]

1. Run `proof_checker.py draft.md --metrics metrics.json --notes notes.md`.
2. Fix in order of impact: untraced numbers, quotes not in the notes or not approved, then baselines and timeframes, then superlatives.
3. Where a number is real but missing from the metrics file, add it there with its source; do not widen the draft.
4. Send the draft with the approval comments to the customer. After sign-off, record the status in the notes and re-run; strip the `<!-- approval -->` lines before publishing.

### Workflow 3: Audit an existing case study [RECOMMENDED]

1. Rebuild a metrics file from the numbers the page claims, asking the customer or your analytics for each source.
2. Run the checker with `--format json` and sort `findings` by `impact`.
3. Replace each unsourceable claim with the measured version, or remove it.

## Anti-Patterns: the most damaging mistakes

### Invented proof
**Mistake:** A round number ("saved 40% of their week") typed into the draft because it sounds right, with no export behind it.
**Fix:** Every number goes through the metrics file with a source; the checker reports the rest as `number-not-in-metrics`.

### Results without a baseline or a period
**Mistake:** "Dispute time is now 6 days." Compared with what, measured when?
**Fix:** State the move and the window: "fell from 18 days to 6 days in the first 90 days after go-live", from the metrics entry.

### Quotes that were polished or never approved
**Mistake:** Tightening a quote's wording, or publishing it on a verbal "sounds fine".
**Fix:** Quote the notes word for word (`...` for cuts), attribute with name, role and company, and record approval with a date.

### Superlatives standing in for evidence
**Mistake:** "The leading provider", "best-in-class", "the only platform".
**Fix:** Replace with the measured result, or cite a source in the same sentence; the customer's opinion belongs in an attributed quote.

### Treating `PASS` as a legal or factual sign-off
**Mistake:** Publishing because the checker passed.
**Fix:** The checker proves the draft agrees with your files, not that the files are right. Have the customer approve the final text.

## Scope & Limitations

**In scope:** scaffolding from notes and metrics you supply; checking number traceability, baseline and timeframe wording, quote attribution and approval, and superlatives in a markdown draft.

**Out of scope:** writing the narrative prose, fetching or computing the customer's data, verifying that a metrics file is true, legal review of endorsement or advertising rules, design and layout, publishing. The checks read wording, not meaning; word numbers ("three weeks") are not read, and the superlative list is a heuristic. Rules and sources: [references/proof-rules.md](references/proof-rules.md). Check current FTC endorsement and substantiation guidance before you publish; this is not legal advice.

## Files

| File | Purpose |
|---|---|
| `scripts/case_study_scaffold.py` | Notes + metrics to a scaffold; gaps marked `MISSING`, unbacked numbers tagged |
| `scripts/proof_checker.py` | Draft + metrics (+ notes) to findings: number trace, baseline, timeframe, quotes, superlatives |
| `scripts/case_cli.py`, `case_numbers.py`, `case_notes.py`, `case_draft.py` | Shared libraries (not commands) |
| `references/input-formats.md` | Notes, metrics and draft formats |
| `references/proof-rules.md` | Each rule, its threshold and source |
| `references/interview-guide.md` | Questions that produce proof |
| `assets/sample_*`, `flawed_*`, `malformed_*` | Sound (exit 0), flawed (exit 1), malformed (exit 2) inputs |
| `assets/contract.json` | The runs CI checks |

Files in this skill

  • README.md2 KB
  • SKILL.md9.5 KB
  • assets/contract.json2.6 KB
  • assets/flawed_draft.md488 B
  • assets/flawed_metrics.json364 B
  • assets/flawed_notes.md306 B
  • assets/malformed_draft.md19 B
  • assets/malformed_metrics.json28 B
  • assets/malformed_notes.md41 B
  • assets/sample_draft.md864 B
  • assets/sample_metrics.json663 B
  • assets/sample_notes.md1 KB
  • references/input-formats.md3.2 KB
  • references/interview-guide.md1.3 KB
  • references/proof-rules.md3.5 KB
  • scripts/case_cli.py4.7 KB
  • scripts/case_draft.py4.6 KB
  • scripts/case_notes.py6.9 KB
  • scripts/case_numbers.py10 KB
  • scripts/case_study_scaffold.py10.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.