mattermost

Read and search Mattermost chat using the `mm` CLI. Use this skill whenever the user mentions Mattermost, chat messages, team chat, unread messages, DMs, channel history, mentions, or wants to catch up on what happened in chat. Also triggers when the user asks about specific people's messages, channel activity, searching for something someone said, or checking notifications. The CLI outputs agent-friendly JSON by default with thread IDs, bot detection, and channel refs - no parsing needed.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mattermost" with this command: npx skills add rhnvrm/mattermost-cli/rhnvrm-mattermost-cli-mattermost

Mattermost CLI (mm)

Read and search Mattermost from the command line. JSON output by default, --human for markdown.

Setup

Check if mm is already available:

mm whoami

If that works, skip to "Start here" below.

If mm is not found, install it. Pick whichever works in your environment:

pip install mattermost-cli    # adds `mm` to PATH
# or
pipx install mattermost-cli   # isolated global install
# or
uvx --from mattermost-cli mm  # run without installing (needs uvx)

Then authenticate (one-time):

mm login --url https://your.mattermost.server
mm whoami   # verify

The login command will prompt for credentials interactively. If your server supports Personal Access Tokens (Profile > Security > Personal Access Tokens in the Mattermost UI), you can skip the prompt:

mm login --url https://your.mattermost.server --token YOUR_TOKEN

For environment variables, multiple servers, and troubleshooting, see references/setup.md.

Start here: mm overview

Always run this first. It returns mentions, unread channels, and active channels in a single call.

mm overview              # last 6 hours (default)
mm overview --since 1d   # last 24 hours

The response has three sections:

  • mentions - posts that @-mention you, with root message context when it's a reply
  • unread - channels with unread messages, sorted by count
  • active_channels - channels with recent posts, sorted by recency

Each entry includes a ref field you can pass directly to other commands.

Reading messages

mm messages <channel>                   # last 30 messages, chronological
mm messages <channel> --since 2h        # messages from last 2 hours
mm messages <channel> --threads         # thread index: root + reply count + last reply
mm messages @username                   # DMs with someone

<channel> accepts a name (off-topic), @username for DMs, or a channel ID (for group DMs from overview output).

Threads

Every post includes a thread_id. Use it to read the full conversation:

mm thread <thread_id>                   # root + last 9 replies
mm thread <thread_id> --limit 0         # entire thread
mm thread <thread_id> --since 1h        # just recent replies (root always included)

Searching and mentions

mm search "deployment issue"
mm search "from:alice in:devops after:2025-01-01"
mm mentions                             # @-mentions in last 24h
mm mentions --since 3d

Mentions for replies include a root field with the original message, so you know what "this" or "it" refers to without a follow-up call.

Channel context

mm channel <name>                       # purpose, header, member/pinned count
mm pinned <channel>                     # important/pinned posts
mm members <channel>                    # who's here + online status
mm channels --since 6h                  # all channels with recent activity
mm channels --type dm                   # just DMs

People

mm user @someone                        # profile, role, status, timezone

Key JSON fields

Every post includes these fields so you can navigate without guesswork:

FieldWhat it's for
thread_idPass to mm thread to read full conversation
refOn channel entries; pass to mm messages
is_bot / bot_nameWebhook and bot posts are flagged automatically
rootOn reply-mentions; the original message being replied to
is_reply / reply_countThread structure
reactionsEmoji counts like {"+1": 3, "white_check_mark": 1}

Bot posts from webhooks automatically extract alert content from Slack-format attachments, so you see the actual alert text instead of empty messages.

Further reading

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

mattermost-cli

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated