🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Slk

by @therohitdas

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".

Versionv0.1.7
Downloads3,360
Installs9
Stars⭐ 2
TERMINAL
clawhub install slack-personal

πŸ“– About This Skill


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

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

# 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 [count] # Read recent messages, default 20 (alias: r) slk read @username [count] # Read DMs by username slk read --threads # Auto-expand all threads slk read --from 2026-02-01 # Date range filter slk thread [count] # Read thread replies, default 50 (alias: t) slk search [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 # Pinned items in a channel (alias: pin)

Write

slk send # Send a message (alias: s) slk react # React to a message

Drafts (synced to Slack editor UI)

slk draft # Draft a channel message slk draft thread # Draft a thread reply slk draft user # Draft a DM slk drafts # List active drafts slk draft drop # 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):

    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:

    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 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 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 "..." posts to Slack's editor UI for human to review before sending
  • Search-driven context β€” slk search "deployment process" or slk pins 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