Rohit Das

Slk

商业运营v0.1.7
作者:Rohit Das更新于 2026-05-18共 5 个版本 · 最新版本发布于 2026-02-11slack-personal
#Slack#Personal

据 AlphaMoat 统计,截至 2026-09,Slk 累计下载 3,959 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 2,602 位,在「商业运营」分类(297 个)中排名第 150 位。

累计安装
131
累计下载
3,959
星标
2
全站排名
#2,602
全站前 52% · 「商业运营」前 51%
平台累计安装累计下载星标评论
ClawHub ↗1313,9592-

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

可读取频道和私信、搜索消息、检查未读、管理草稿和收藏,也能发送消息或添加 reaction。该工具从 Slack 桌面会话认证,会缓存可代表用户访问和操作的 session 凭据。需要人工审阅的消息应先保存为草稿;发送或 reaction 前应单独取得批准,并在不再需要时清除凭据缓存。 在 macOS 钥匙串中优先选择单次允许,而非始终允许。

资料发布于 2026-10-29

可以用来做什么

  • 需要通过命令行查阅 Slack 工作区内容、起草消息或经批准后发送消息的 macOS 用户。

什么时候用

  • 安装前了解 session 凭据的读取和缓存方式;发消息或 reaction 前先取得单独批准,敏感内容可先使用草稿。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

说明如何搜索 Slack 消息并准备一条待审阅草稿;不要读取真实工作区或发送消息。

月度数据趋势

累计下载3,959
2,6903,3724,0532026-03 · 累计下载 2,7842026-05 · 累计下载 3,3542026-06 · 累计下载 3,4852026-07 · 累计下载 3,7462026-08 · 累计下载 3,8692026-09 · 累计下载 3,95926-0326-09
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,959—2
2026-083,869+3.3%2
2026-073,746+7.5%2
2026-063,485+3.9%2
2026-053,354—2
2026-032,784—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.0 KB · ClawHub v0.1.7
---
name: slack-personal
description: Read, send, search, and manage Slack messages and DMs via the slk CLI. Use when the user asks to check Slack, read channels or DMs, send Slack messages, search Slack, check unreads, manage drafts, view saved items, or interact with Slack workspace. Also use for heartbeat Slack checks. Triggers on "check slack", "any slack messages", "send on slack", "slack unreads", "search slack", "slack threads", "draft on slack", "read slack dms", "message on slack".
homepage: https://www.npmjs.com/package/slkcli
user-invocable: true
metadata: {"openclaw":{"emoji":"💬","requires":{"bins":["slk"]},"install":[{"id":"npm","kind":"node","package":"slkcli","bins":["slk"],"label":"Install slk (npm)"}],"os":["darwin"]}}
---

# slk — Slack CLI
展开全部(共 101 行)
Session-based Slack CLI for macOS. Auto-authenticates from the Slack desktop app — no tokens, no OAuth, no app installs. Acts as your user (`xoxc-` session tokens).

## Commands

```bash
# Auth
slk auth                              # Test authentication, show user/team

# Read
slk channels                          # List channels (alias: ch)
slk dms                               # List DM conversations with IDs (alias: dm)
slk read <channel> [count]            # Read recent messages, default 20 (alias: r)
slk read @username [count]            # Read DMs by username
slk read <channel> --threads          # Auto-expand all threads
slk read <channel> --from 2026-02-01  # Date range filter
slk thread <channel> <ts> [count]     # Read thread replies, default 50 (alias: t)
slk search <query> [count]            # Search messages across workspace
slk users                             # List workspace users (alias: u)

# Activity
slk activity                          # All channels with unread/mention counts (alias: a)
slk unread                            # Only unreads, excludes muted (alias: ur)
slk starred                           # VIP users + starred items (alias: star)
slk saved [count] [--all]             # Saved for later items (alias: sv)
slk pins <channel>                    # Pinned items in a channel (alias: pin)

# Write
slk send <channel> <message>          # Send a message (alias: s)
slk react <channel> <ts> <emoji>      # React to a message

# Drafts (synced to Slack editor UI)
slk draft <channel> <message>         # Draft a channel message
slk draft thread <ch> <ts> <message>  # Draft a thread reply
slk draft user <user_id> <message>    # Draft a DM
slk drafts                            # List active drafts
slk draft drop <draft_id>             # Delete a draft
```

Channel accepts name (`general`), ID (`C08A8AQ2AFP`), `@username` for DMs, or user ID (`U07RQTFCLUC`).

## Auth

Automatic — extracts session token from Slack desktop app's LevelDB + decrypts cookie from macOS Keychain.

**First run:** macOS will show a Keychain dialog asking to allow access to "Slack Safe Storage":
- **Allow** — one-time access, prompted again next time
- **Always Allow** — permanent, no future prompts (convenient but any process running as your user can extract credentials silently)
- **Deny** — blocks access, slk cannot authenticate

**Token cache:** `~/.local/slk/token-cache.json` — auto-validated, auto-refreshed on `invalid_auth`.

If auth fails (token rotated, Slack logged out):
```bash
rm ~/.local/slk/token-cache.json
slk auth
```

Slack desktop app must be installed and logged in. Does not need to be running if token is cached.

## Reading Threads

Threads require a Slack timestamp. Use `--ts` to get it, then read the thread:

```bash
slk read general 10 --ts
# Output: [1/30/2026, 11:41 AM ts:1769753479.788949] User [3 replies]: ...

slk thread general 1769753479.788949
```

## Agent Workflow Examples

- **Heartbeat/cron unread check** — `slk unread` → `slk read <channel>` for channels that need attention
- **Save & pick up** — Human saves threads in Slack ("Save for later"). Agent runs `slk saved` during heartbeat, reads full threads with `slk thread`, summarizes or extracts action items
- **Daily channel digest** — `slk read <channel> 100` across key channels → compile decisions, open questions, action items → `slk send daily-digest "📋 ..."`
- **Weekly DM summary** — `slk read @boss 200 --from 2026-02-01 --threads` → extract action items, decisions, context
- **Thread monitoring** — Watch specific threads for new replies (incidents, PR reviews, decisions)
- **Draft for human review** — `slk draft <channel> "..."` posts to Slack's editor UI for human to review before sending
- **Search-driven context** — `slk search "deployment process"` or `slk pins <channel>` to pull context before answering questions

## Limitations

- **macOS only** — uses Keychain + Electron storage paths
- **Session-based** — acts as your user, not a bot. Be mindful of what you send
- **Draft drop** may fail with `draft_has_conflict` if Slack has that conversation open
- **Session token** expires on logout — keep Slack app running or rely on cached token

## Missing Features & Issues

Create PR or Report Issue at: https://github.com/therohitdas/slkcli

「商业运营」分类下的热门技能

Rohit Das 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。