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
累計下載
3959
星標
2
全站排名
#2,602
全站前 52% · 「商業營運」前 51%
平台累計安裝累計下載星標評論
ClawHub ↗13139592-

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

可讀取頻道和私信、搜尋訊息、檢查未讀、管理草稿和收藏,也能傳送訊息或新增 reaction。該工具從 Slack 桌面會話認證,會快取可代表使用者訪問和操作的 session 憑據。需要人工審閱的訊息應先儲存為草稿;傳送或 reaction 前應單獨取得批准,並在不再需要時清除憑據快取。 在 macOS 鑰匙串中優先選擇單次允許,而非始終允許。

資料釋出於 2026-10-29

可以用來做什麼

  • 需要透過命令列查閱 Slack 工作區內容、起草訊息或經批准後傳送訊息的 macOS 使用者。

什麼時候用

  • 安裝前瞭解 session 憑據的讀取和快取方式;發訊息或 reaction 前先取得單獨批准,敏感內容可先使用草稿。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明如何搜尋 Slack 訊息並準備一條待審閱草稿;不要讀取真實工作區或傳送訊息。

月度資料趨勢

累計下載3959
2690337240532026-03 · 累計下載 27842026-05 · 累計下載 33542026-06 · 累計下載 34852026-07 · 累計下載 37462026-08 · 累計下載 38692026-09 · 累計下載 395926-0326-09
星標2
1232026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093959—2
2026-083869+3.3%2
2026-073746+7.5%2
2026-063485+3.9%2
2026-053354—2
2026-032784—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),按月更新。口徑說明見資料方法。