Files
claude-code/plugins/slack-quote-formatter
Claude 69585d4ffa feat: Add slack-quote-formatter plugin for better quoted message display
Adds a new plugin that transforms plain Slack forwarded message blocks into
visually distinctive formatted boxes using Unicode box-drawing characters.

Before:
  [Forwarded Message]
  From: Felix Klock
  Message: Here is some text...

After:
  ╔════════════════════════════════════════════════════════════════════╗
  ║  FORWARDED MESSAGE                                                 ║
  ╠════════════════════════════════════════════════════════════════════╣
  ║  From: Felix Klock                                                 ║
  ╟────────────────────────────────────────────────────────────────────╢
  ║    Here is some text...                                            ║
  ╚════════════════════════════════════════════════════════════════════╝

The plugin uses a UserPromptSubmit hook to intercept prompts containing
[Forwarded Message] blocks and reformats them for better visual distinction.

https://claude.ai/code/session_01YNRC6p2gAMSQZPX2NGK5F1
2026-02-10 19:46:10 +00:00
..

Slack Quote Formatter

Enhances the visual display of Slack forwarded and quoted messages with distinctive Unicode box formatting.

Overview

When Claude Code receives messages from Slack that include forwarded messages, they typically appear as plain text:

[Forwarded Message]
From: Felix Klock
Message: I assume it would be a matter of reviewing the entries...

This plugin transforms these plain blocks into visually distinctive formatted quotes:

╔════════════════════════════════════════════════════════════════════╗
║  FORWARDED MESSAGE                                                 ║
╠════════════════════════════════════════════════════════════════════╣
║  From: Felix Klock                                                 ║
╟────────────────────────────────────────────────────────────────────╢
║    I assume it would be a matter of reviewing the entries...       ║
╚════════════════════════════════════════════════════════════════════╝

Features

  • Unicode box drawing characters for clear visual boundaries
  • Distinct header section highlighting "FORWARDED MESSAGE"
  • Sender information prominently displayed
  • Message content indented for quote-like appearance
  • Automatic text wrapping for long messages
  • Handles multiple forwarded messages in a single prompt

Installation

This plugin is included in the Claude Code plugins repository. To enable it:

  1. Add the plugin to your project's .claude/settings.json:

    {
      "plugins": [
        "path/to/plugins/slack-quote-formatter"
      ]
    }
    
  2. Or install via the Claude Code plugin command:

    /plugin add slack-quote-formatter
    

How It Works

The plugin registers a UserPromptSubmit hook that:

  1. Intercepts incoming prompts
  2. Detects [Forwarded Message] blocks in the Slack context
  3. Transforms them into formatted boxes with visual distinction
  4. Passes the transformed prompt to Claude

Configuration

No configuration required. The plugin automatically activates when Slack forwarded messages are detected.

Plugin Structure

slack-quote-formatter/
├── .claude-plugin/
│   └── plugin.json          # Plugin metadata
├── hooks/
│   ├── hooks.json           # Hook configuration
│   └── format_slack_quotes.py  # Transformation logic
└── README.md

Why Visual Distinction Matters

When working with Slack context in Claude Code, quoted messages can easily blend into the surrounding text, making it harder to:

  • Identify what content is quoted vs. original
  • Understand the source of different pieces of information
  • Parse complex threads with multiple forwarded messages

This plugin makes quoted content immediately recognizable, improving readability and reducing confusion.