TWD Design

An open-source Slack bot for product teams

Describe a screen.
Get a prototype your team can click.

Ask in a Slack thread. TWD Design answers with a working prototype in your design system. Change it by replying, approve it, and your developers get it in the repo with the acceptance criteria already written.

One thread, from idea to pull request

# product-squadThread
S

Sabrina

@twd-design notification settings: email and push per category, and quiet hours

TWD Design is working on it…

1

Describe it like you would to a designer

Mention @twd-design in any channel and say what you need. No templates, no prompts to learn. Not sure where to start? Say hi and it shows you examples.

2

A prototype, in about a minute

It answers in the thread with a clickable prototype that follows your design guide: your colors, your components, your tone. Each version comes with the checks that say when the feature is done, and they already pass.

3

Click through it without leaving Slack

Slack opens it as a page. Every screen of the flow works, with realistic data, so the team reviews the real thing instead of a static mockup. Go ahead: the switches work.

4

Change it by replying

"And on mobile?" "Fewer columns." Each reply is a new version that keeps everything already agreed. Changed your mind? One click takes you back to any earlier version.

5

Approve it. Developers take it from there.

One click opens a pull request in your repo with the prototype, what was agreed and a link back to the conversation. Nothing gets lost in the handoff.

It looks like your product, not like a template

Keep a short design guide in your repo: colors, type, components, tone of voice. Paste the repo link in the thread and every version follows it. Your design team owns the guide; the bot just reads it.

How to write the design guide

# Acme design guide

## Colors
Primary   #4f46e5   buttons, links, active switches
Surface   #ffffff   cards on a #f7f7fb page

## Components
Switch    for on/off settings, never checkboxes
Toast     bottom center, gone after 2 seconds

## Voice
Short and direct. "Save", not "Submit".

What your developers get

No more "what did we agree?". The pull request carries everything the thread decided.

A prototype that is the spec

Every screen and state of the flow in one HTML file, versioned in design/prototypes/ next to the code.

"Done", already defined

The acceptance criteria come as automated checks that already pass in the prototype. Developers run the same checks in the real app, and in CI.

Notes where they matter

Routes, endpoints and payloads in DEV: notes. What exists only for the prototype is marked, so nobody builds it by mistake.

Your dev team sets it up in 15 minutes

It runs on your servers, with your own Slack app, GitHub App and AI key. Nothing is stored, and there is no SaaS in the middle.

  1. 1

    Create the apps

    One command creates your Slack app and GitHub App with your name and color, and checks your AI key.

    $ git clone https://github.com/BRIKEV/twd-design
    $ cd twd-design && npm install
    $ npm run setup
  2. 2

    Run it anywhere a container runs

    512 MB of memory and half a CPU. No database, no public URL.

    $ docker compose up -d

    Docker · Compose · Kubernetes · Render · Fly.io · Railway

  3. 3

    Invite it to a channel

    Then mention it. It introduces itself.

    /invite @twd-design
Read the install guide

What is read, sent and stored · Any AI provider, your key · MIT licensed

Questions

Do I need to know how to code?

No. You write in Slack the way you would brief a designer, and you review the prototype by clicking through it. The code is for the developers who build the feature.

Will the prototypes look like our product?

Yes, once your repo has a design guide: a design/DESIGN.md file with your colors, type, components and tone. Paste the repo link in the thread and every version follows it. Without a guide it uses a clean, neutral style.

Can we go back to an earlier version?

Yes. Every version stays in the thread, and the Back button makes an earlier one the current version again, without asking the AI to rebuild it.

Is our data safe?

It runs on your company servers with your own Slack app, GitHub App and AI key. Nothing is stored: the Slack thread is the only history. It reads your repo's design guide, and the code of a screen when you ask to change one, and sends them with the thread to the AI provider your company chose. It never changes your code.

What does it cost?

TWD Design is free and open source (MIT). The only cost is the AI model, paid directly to the provider your company already uses.

Which AI does it use?

The one you choose: Anthropic, OpenAI, Azure OpenAI, Google, Bedrock, Z.ai GLM or any other provider the Mastra model router supports.

What do developers need to set it up?

About 15 minutes and a server or container platform with 512 MB of memory. One command creates the Slack app and the GitHub App and checks the AI key; then it runs with Docker, Docker Compose, Kubernetes, Render, Fly.io or similar.

Agree on it in the thread.
Build it once.