Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

incident.io 5 min read Case study mediumAdept

Engineering nits: Building a Storybook for Slack Block Kit

incident.io built a Storybook-style catalogue for its 70+ Slack modals and similar number of messages by extending its Go modal registration framework so every `modal.Register` call also supplies named example variants built from test fixtures. A `slackpreview` package collects these templates, and an API endpoint with a small Go template renders an index page linking each variant to Slack's Block Kit Builder, which serialises the whole Block Kit payload into a shareable URL. Because examples are cheap to write, they are required for every modal, letting anyone, including non-engineers, preview any Slack UI state within seconds.

Assumes: Slack app developmentGo init functions

Related posts

  • Agents need good developer experience too

    Modal easyNovice

    Developer experience principles that make humans productive also help coding agents, because both depend on tight write-run-observe feedback loops. Modal's framework covers programmatic access through a CLI, SDK and API instead of UI-only features, actionable error messages that act as high-signal context for limited context windows, and consistent runnable examples with explanations next to the code. It also argues for defining infrastructure in Python alongside application logic rather than in YAML, and for concise, intuitive naming, such as renaming `concurrency_limit` to `max_containers`.

  • Building a great developer experience at a startup

    incident.io mediumAdept

    incident.io treats developer experience as leverage for sustaining engineering pace without accruing technical or product debt. Their practices include hot reloading, CI kept under roughly 3 minutes, PR reviews within an hour or two, Slack block-kit previews, and a Go `toolbox` CLI for running code locally or in production. Strong typing across Go and TypeScript is reinforced by a type-safe DB library, goa-generated OpenAPI clients and an exhaustive-enum `assertUnreachable` pattern. Reusable building blocks such as engine conditions, actors and `useMutation` hooks sit alongside debugging aids: per-engineer real GCP dev environments, tracing, Sentry sourcemaps and structured logs linked to traces.

  • Building with the OpenAI Apps SDK: A Field Guide

    Render mediumAdept

    OpenAI's Apps SDK extends the Model Context Protocol with a widget layer: tools that return structuredContent with `_meta.openai/outputTemplate` metadata get rendered as inline React components in ChatGPT. Lessons from building a movie recommendation app (Express, TypeScript, Postgres, Valkey, Vite-bundled widgets) include keeping MCP tools portable across clients, iterating via an ngrok tunnel, and building a local widget harness with fixtures and a stubbed `window.openai.callTool()`. Opaque `424 Unhandled errors in TaskGroup` failures almost always come from response-shape mismatches, so log payloads and keep reference fixtures. The full chat loop has no built-in telemetry, so add timing instrumentation yourself.

  • Empowering Engineers with AI

    Slack Engineering easyNovice

    Slack built a set of internal generative-AI developer tools that it estimates will save 10,000+ engineering hours this year. The centrepiece is an escalation-channel bot that classifies posts into six categories using few-shot prompts, then answers from docs, channel history and canvases indexed in Amazon Bedrock Knowledge Bases, with per-channel prompts and similarity thresholds to curb hallucinations. Alongside it run an in-Slack assistant, a web app, CLI tools and a unified LLM platform with a common input/output schema plus Evaluate and Compare playgrounds. Reported results are 30% five-star bot ratings and 70%+ positive chat satisfaction, while hallucinations (~30% of interactions), weak multi-step reasoning and the tuning needed to integrate knowledge sources remain the main limits.

  • Lessons learned from building our first AI product

    incident.io mediumAdept

    incident.io built suggested incident summaries with OpenAI: each time a responder posts an update, GPT proposes a new summary from the update, the Slack conversation and the previous summary, and a human accepts, edits or rejects it. Half of all summary updates are now AI-written. Suggestions are actioned 20% of the time; of those, 63% are accepted, 26% edited and 11% rejected, which is too little conviction to auto-apply summaries. Practical lessons: build a CLI to run prompts against real incident fixture files, force structured output with JSON mode (problem, impact, causes, steps to resolve), give one person uninterrupted time for trial-and-error prompt work, roll out to 10% of customers first, and involve legal early because adding OpenAI as a sub-processor needs customer notice. A shared prompt interface and a single RunPrompt entry point let later AI features reuse the same plumbing.

The quest for software engineering knowledge.

Look:
Layout: