搜索

PythonReactSEOPDF
OpenClaw

slack-thread

Read and summarize Slack channel history and thread conversations. Use when receiving Slack links (https://...slack.com/archives/...) or requests to view channel/thread/reply conversations, summarize discussions, or check recent messages in a channel.

epikoding0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install epikoding/slack-reader

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Slack Thread Reader

Script to fetch Slack channel history, threads, and individual replies. Output is LLM-friendly format: one message per line, ascending order (oldest→newest), minimal whitespace.

Script Location

scripts/slack-thread.sh (entry point) → scripts/slack-thread.py (main logic)

Slack Link Structure

https://abstract-im.slack.com/archives/C0AE4MGLNUU
                                        ^^^^^^^^^^^
                                        Channel ID

https://abstract-im.slack.com/archives/C0AE4MGLNUU/p1770775935866499
                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
                                        Channel ID    Message ts (parent)

https://abstract-im.slack.com/archives/C0AE4MGLNUU/p1770776063826049?thread_ts=1770775935.866499&cid=C0AE4MGLNUU
                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^            ^^^^^^^^^^^^^^^^     ^^^^^^^^^^^
                                        Channel ID    Reply ts (child)           Parent ts            Channel ID (duplicate)
  • pTS: Timestamp in URL path. p + 10 digits (seconds) + 6 digits (microseconds). API uses seconds.microseconds format (e.g., p1770775935866499 → 1770775935.866499)
  • thread_ts: Parent message ts of the thread. If present, it's a reply link
  • cid: Duplicate channel ID info (for app deep links, ignored by script)
  • ts: Unique ID and timestamp of a Slack message. Unique within a channel

Usage

3 Modes
Link Format Mode Behavior
/archives/CHANNEL Channel Fetch channel history
/archives/CHANNEL/pTS Thread Fetch full thread with ts as parent
/archives/CHANNEL/pTS?thread_ts=... Reply Fetch single reply only
Read Thread
scripts/slack-thread.sh https://abstract-im.slack.com/archives/CHANNEL/pTIMESTAMP
scripts/slack-thread.sh <channel-id> <thread-ts>
Read Channel History
scripts/slack-thread.sh https://abstract-...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/epikoding/slack-reader
Version
—
Commit
fc4b4bb3a5b4070fc30bd28eb16045bca1231c5d
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Slack Thread Reader

Script to fetch Slack channel history, threads, and individual replies.
Output is LLM-friendly format: one message per line, ascending order (oldest→newest), minimal whitespace.

## Script Location

`scripts/slack-thread.sh` (entry point) → `scripts/slack-thread.py` (main logic)

## Slack Link Structure

```
https://abstract-im.slack.com/archives/C0AE4MGLNUU
                                        ^^^^^^^^^^^
                                        Channel ID

https://abstract-im.slack.com/archives/C0AE4MGLNUU/p1770775935866499
                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
                                        Channel ID    Message ts (parent)

https://abstract-im.slack.com/archives/C0AE4MGLNUU/p1770776063826049?thread_ts=1770775935.866499&cid=C0AE4MGLNUU
                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^            ^^^^^^^^^^^^^^^^     ^^^^^^^^^^^
                                        Channel ID    Reply ts (child)           Parent ts            Channel ID (duplicate)
```

- **pTS**: Timestamp in URL path. `p` + 10 digits (seconds) + 6 digits (microseconds). API uses `seconds.microseconds` format (e.g., `p1770775935866499` → `1770775935.866499`)
- **thread_ts**: Parent message ts of the thread. If present, it's a reply link
- **cid**: Duplicate channel ID info (for app deep links, ignored by script)
- **ts**: Unique ID and timestamp of a Slack message. Unique within a channel

## Usage

### 3 Modes

| Link Format | Mode | Behavior |
|-----------|------|------|
| `/archives/CHANNEL` | Channel | Fetch channel history |
| `/archives/CHANNEL/pTS` | Thread | Fetch full thread with ts as parent |
| `/archives/CHANNEL/pTS?thread_ts=...` | Reply | Fetch single reply only |

### Read Thread
```bash
scripts/slack-thread.sh https://abstract-im.slack.com/archives/CHANNEL/pTIMESTAMP
scripts/slack-thread.sh <channel-id> <thread-ts>
```

### Read Channel History
```bash
scripts/slack-thread.sh https://abstract-...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.