agentleFS
langfuselangfuse/langfuse-docs/.agents/skills/customer-story-setup/SKILL.md

customer-story-setup

Skill245 starsChanged 8 months agoMITView on GitHub

Converts draft customer-story Markdown into Langfuse website MDX (Fumadocs), collects missing metadata and assets, wires meta.json and authors. Use when adding or converting a customer case study, user story, or /users page, or when the user mentions customer story setup, cresta/canva-style posts, or CustomerStoryCTA/BlogHeader for customers.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not guess: If any item below is missing from the user's draft or message, ask explicitly and wait for answers (or confirm defaults).

    line 23
  2. Distinctive:

    If the draft says "screenshot here" without files, list placeholders in MDX with consistent paths so the user can drop files in later.

    line 68
  3. Distinctive:

    Ask whether to add sparse internal links.

    line 73
  4. Very specific:

    Do not pepper every noun with links.

    line 85
  5. Very specific:

    avoid duplicating company name in role

    line 103
  6. Very specific:

    Add "<slug>" to the pages array (with "index" first).

    line 119
  7. Very specific:

    If new author: add to data/authors.json (key must match BlogHeader authors).

    line 127
  8. Very specific:

    After the story exists, add or update the company in the adopters table with add-customer-to-user-list so the Reference cell is User Story.

    line 134

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Single source of truth: maintain this skill under .agents/skills/customer-story-setup/ only. Claude and Cursor load projected copies under .claude/skills/customer-story-setup and .cursor/skills/customer-story-setup.

Customer story setup (MD -> MDX)

Turns a plain Markdown draft into content/customers/<slug>.mdx in the same pattern as content/customers/canva.mdx and cresta.mdx.

Before writing any file: collect missing input

Do not guess. If any item below is missing from the user's draft or message, ask explicitly and wait for answers (or confirm defaults).

Content & publishing

TopicAsk
Company nameLegal/marketing name for copy and quotes
Company websitePublic URL for the [Company](https://...) link in About <Company>
SlugFilename: <slug>.mdx (lowercase, hyphens), e.g. cresta -> cresta.mdx
Page titleH1 string for BlogHeader + YAML title (often "How <Company> ... with Langfuse")
Short descriptionYAML description + BlogHeader description (SEO/social; 1-2 sentences)
Publish dateYAML date + BlogHeader date (e.g. March 26, 2026)
OG imageOptional ogImage: path; if unset, leave empty like other stories

Authors (BlogHeader authors={["..."]})

TopicAsk
Byline author(s)Who should appear under the title (keys from data/authors.json)
External / guest speakerIf not in authors.json: collect name, title, optional socials, and headshot path under public/images/people/ or public/images/customers/<slug>/, then add an entry to data/authors.json (see existing entries). Every authors key must resolve in authors.json.

Branding & Users index card

TopicAsk
LogosPaths for customerLogo and customerLogoDark (light + dark mode), usually under public/images/customers/<slug>/
Pull quotecustomerQuote (short, for grid card)
Quote attributionquoteAuthor, quoteRole, quoteCompany
Speaker headshot (optional)quoteAuthorImage for card/SEO if you use the same as Canva
Show on /usersshowInCustomerIndex: true | false

Images (screenshots & diagrams)

Produce a numbered checklist for the user (and keep it in the PR description if useful):

  1. Folder: public/images/customers/<slug>/
  2. For each asset: filename, purpose, where it appears (section + suggested alt text)
  3. Remind: customer posts use <Frame fullWidth> around markdown images, e.g. ![Alt](mdc:/images/customers/<slug>/file.png) per site conventions
  4. Size each image by aspect ratio (run sips -g pixelWidth -g pixelHeight <file> to get dimensions):
    • Portrait / square (ratio <= 1:1) -> <div className="flex justify-center"><Frame fullWidth className="w-1/2">...</Frame></div>
    • Landscape (~1.5:1) -> <div className="flex justify-center"><Frame fullWidth className="w-2/3">...</Frame></div>
    • Panoramic (> 2:1) -> <Frame fullWidth className="w-full">...</Frame> (no centering wrapper needed)

If the draft says "screenshot here" without files, list placeholders in MDX with consistent paths so the user can drop files in later.

Docs links (optional but recommended)

Ask whether to add sparse internal links. Default policy: only link major product concepts (match what we used on Cresta):

  • Observability overview
  • Prompt management and/or Playground
  • Scores
  • Self-hosting
  • OpenTelemetry
  • Experiments
  • LLM-as-a-judge
  • Prompt version control

Do not pepper every noun with links. Use paths from llms-docs.txt / available-internal-links rule so links resolve.


MDX structure to produce

  1. YAML frontmatter at top: title, date, description, ogImage, tag: customer-story, author (display string if needed), customerLogo, customerLogoDark, optional quote fields, showInCustomerIndex.
  2. Imports: BlogHeader, CustomerQuote (if quote), ImpactChart (if impact section), CustomerStoryCTA; use Frame for images (global in MDX).
  3. BlogHeader: title, description, customerLogo, authors, date; optional image for hero.
  4. Body headings: One conceptual H1 only (from BlogHeader). Body uses ## and ###; do not skip levels.
  5. Quote block: <CustomerQuote quote="..." name="..." role="..." company="..." />
    • align role / company with frontmatter so the byline reads "Name, Role at Company"
    • avoid duplicating company name in role
  6. Images: size by aspect ratio (see checklist item 4 under Images above)
    • portrait/square -> w-1/2 centered
    • landscape -> w-2/3 centered
    • panoramic -> w-full
  7. Closing: <ImpactChart items={[{ area, impact }, ...]} /> (optional) then <CustomerStoryCTA />.

Reference implementations: content/customers/canva.mdx, content/customers/cresta.mdx.


Repo wiring (after MDX exists)

  1. content/customers/meta.json
    • Add "<slug>" to the pages array (with "index" first).
    • Order matters for layout: the Users grid and homepage carousel are sorted by sortCustomerStoriesByMetaOrder in lib/sortCustomerStoriesByMeta.ts, which reads this list. Place the slug where the card should appear (e.g. last in the list = bottom-right in a 2-column grid).
  2. Authors
    • If new author: add to data/authors.json (key must match BlogHeader authors).
  3. Assets
    • Logos and story images under public/images/customers/<slug>/.
  4. Users / adopters list
    • After the story exists, add or update the company in the adopters table with add-customer-to-user-list so the Reference cell is [User Story](/users/<slug>).

Checklist before finishing

  • All required fields collected from user (or documented as TBD)
  • authors keys exist in data/authors.json
  • meta.json includes slug in desired order
  • Image checklist given to user with folder path
  • Company website link in About section
  • Docs links only where agreed; no broken internal URLs
  • Replace all em dashes with regular hyphens (-) - the linter will do this anyway; better to do it upfront
  • Follow AGENTS.md / documentation-pages.mdc: one H1 via BlogHeader, American English, accessible alt text

Quick YAML skeleton (adapt fields)

---
title: "..."
date: ...
description: ...
ogImage:
tag: customer-story
author: ...
customerLogo: "/images/customers/<slug>/...-light.png"
customerLogoDark: "/images/customers/<slug>/...-dark.png"
customerQuote: "..."
quoteAuthor: "..."
quoteRole: "..."
quoteCompany: "..."
showInCustomerIndex: true
---

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.