Plain Support

Plugin

Plain 客服平台官方插件:在 Claude Code 里查询客户、工单会话和 SLA,给工单加内部备注,创建和更新帮助中心文章,起草群发通知(只存草稿,不会发送)。需要 Plain 账号的 API Key,本机要装 curl 和 jq;未上架插件市场,需克隆仓库后本地加载。

team-plain/skills7
README

Plain Support Plugin for Agents

A Cursor and Claude Code plugin that gives your agents direct access to the Plain customer support platform via its GraphQL API.

With this plugin, your agent can read customers, threads, conversations, help center articles, and more - directly from your terminal.

What can it do?

ResourceReadWrite
CustomersList, get, search by name/email/external ID-
ThreadsList, get, search, read full timelineAdd internal notes
Help CenterList centers, articles, groupsCreate/update articles and groups
CompaniesList, get-
TenantsList, get-
LabelsList-
Tiers & SLAsList, get with SLA configs-
BroadcastsList, get, search, send history, per-recipient deliveries, recipient previewCreate, update, delete drafts. Never schedules or sends
Broadcast audiencesList, getCreate, update, delete
WorkspaceGet info-

Example use cases

  • "What are the open support threads for customer john@example.com?"
  • "Read the full conversation on thread th_01ABC and summarize it"
  • "Add a note to thread th_01ABC with my investigation findings"
  • "Create a help center article about how to reset passwords"
  • "Which customers are in the Enterprise tier?"
  • "How many channels would a broadcast to the Enterprise tier reach?"
  • "Draft a broadcast announcing bulk actions to our Enterprise tenants"
  • "Which recipients did last week's broadcast fail to reach, and why?"

Installation

Option 1: Install via npx skills

npx skills add team-plain/plain-support

Option 2: Install as a Claude Code plugin

# Try it locally first
claude --plugin-dir /path/to/plain-support

# Or install from a marketplace that includes this plugin
/plugin install plain-support@marketplace-name

Option 3: Clone manually

git clone git@github.com:team-plain/plain-support.git
claude --plugin-dir ./plain-support

Prerequisites

API key

In Plain, go to Settings > Machine users & API Keys to create an API key. Then set it as an environment variable:

export PLAIN_API_KEY="plainApiKey_..."

Add it to your shell profile (.bashrc, .zshrc, etc.) to persist across sessions.

Dependencies

The plugin requires curl and jq:

# macOS
brew install jq

# Ubuntu/Debian
sudo apt-get install jq

# curl is pre-installed on most systems

Usage

Once installed, invoke the skill in Claude Code:

/plain-support

Claude will then have access to all Plain API commands. You can ask questions naturally:

  • "List my open threads"
  • "Find the customer with email support@acme.com"
  • "Show me the timeline for thread th_01H..."
  • "Create a draft article about our refund policy"

License

MIT