slackcli

Slack CLI: Send messages, read conversations, search, and manage Slack workspaces from the terminal. Use when the user asks anything related to Slack — sending messages, checking unreads, searching conversations, or managing workspaces. Also trigger when a Slack URL is provided (e.g., https://*.slack.com/archives/*, app.slack.com/*) or when the conversation context mentions Slack threads, channels, or messages.

10 stars

Best use case

slackcli is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Slack CLI: Send messages, read conversations, search, and manage Slack workspaces from the terminal. Use when the user asks anything related to Slack — sending messages, checking unreads, searching conversations, or managing workspaces. Also trigger when a Slack URL is provided (e.g., https://*.slack.com/archives/*, app.slack.com/*) or when the conversation context mentions Slack threads, channels, or messages.

Teams using slackcli should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/slackcli/SKILL.md --create-dirs "https://raw.githubusercontent.com/neko-neko/dotfiles/main/claude/skills/slackcli/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/slackcli/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How slackcli Compares

Feature / AgentslackcliStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Slack CLI: Send messages, read conversations, search, and manage Slack workspaces from the terminal. Use when the user asks anything related to Slack — sending messages, checking unreads, searching conversations, or managing workspaces. Also trigger when a Slack URL is provided (e.g., https://*.slack.com/archives/*, app.slack.com/*) or when the conversation context mentions Slack threads, channels, or messages.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# slackcli

Slack ワークスペースを操作する CLI ツール。メッセージ送信・会話管理・検索・保存済みアイテムの操作が可能。

## Security Rules

- `messages send` / `messages react` / `messages draft` は **実行前にユーザー確認必須**(外部に影響する操作)
- 読み取り系(`conversations list/read/unread`, `search`, `saved list`)は確認なしで実行可
- トークン値を出力に含めない

## Prerequisites

```bash
# インストール確認
which slackcli

# 認証状態の確認
slackcli auth list
```

未認証の場合は「認証セットアップ」セクションを案内する。

## 認証セットアップ(ブラウザトークン)

### parse-curl(推奨・最も簡単)

ブラウザの DevTools で Slack API リクエストを右クリック → Copy as cURL → CLI にペースト。

```bash
# クリップボードから自動抽出してログイン
slackcli auth parse-curl --from-clipboard --login

# パイプ経由
pbpaste | slackcli auth parse-curl --login

# インタラクティブモード
slackcli auth parse-curl --login
```

### login-browser(手動指定)

ブラウザの DevTools から `xoxd` / `xoxc` トークンを手動で抽出して指定する。

```bash
slackcli auth login-browser \
  --xoxd=xoxd-YOUR-TOKEN \
  --xoxc=xoxc-YOUR-TOKEN \
  --workspace-url=https://yourteam.slack.com
```

トークン抽出手順のガイドを表示:

```bash
slackcli auth extract-tokens
```

### 認証管理

| コマンド | 説明 |
|---------|------|
| `slackcli auth list` | 認証済みワークスペース一覧 |
| `slackcli auth set-default <workspace-id>` | デフォルトワークスペース設定 |
| `slackcli auth remove <workspace-id>` | ワークスペース削除 |
| `slackcli auth logout` | 全ワークスペースからログアウト |

## Command Reference

共通オプション: ほぼ全コマンドに `--workspace <id|name>` がある(デフォルト以外のワークスペースを指定可能)。

### conversations — 会話管理

| コマンド | 説明 | 主要オプション |
|---------|------|---------------|
| `slackcli conversations list` | 会話一覧 | `--types` (public_channel,private_channel,mpim,im), `--limit` (default:100), `--exclude-archived`, `--cursor`, `--workspace` |
| `slackcli conversations read <channel-id>` | メッセージ履歴取得 | `--thread-ts`, `--exclude-replies`, `--limit` (default:100), `--oldest`, `--latest`, `--workspace`, `--json` |
| `slackcli conversations unread` | 未読会話一覧 | `--types` (channels,dms,groups), `--workspace`, `--json` |

### messages — メッセージ操作

> **注意:** send / react / draft は実行前にユーザー確認を取ること。

| コマンド | 説明 | 主要オプション |
|---------|------|---------------|
| `slackcli messages send` | メッセージ送信 | `--recipient-id` (必須), `--message` (必須), `--thread-ts`, `--workspace` |
| `slackcli messages react` | リアクション追加 | `--channel-id` (必須), `--timestamp` (必須), `--emoji` (必須), `--workspace` |
| `slackcli messages draft` | 下書き作成 (ブラウザトークン専用) | `--recipient-id` (必須), `--message` (必須), `--thread-ts`, `--workspace` |

### search — 検索

| コマンド | 説明 | 主要オプション |
|---------|------|---------------|
| `slackcli search messages <query>` | メッセージ検索 | `--in`, `--from`, `--limit` (default:20), `--page`, `--sort` (score/timestamp), `--sort-dir` (asc/desc), `--workspace`, `--json` |
| `slackcli search channels <query>` | チャンネル検索 | `--limit` (default:20), `--workspace`, `--json` |
| `slackcli search people <query>` | ユーザー検索 | `--limit` (default:20), `--workspace`, `--json` |

### saved — 保存済みアイテム

| コマンド | 説明 | 主要オプション |
|---------|------|---------------|
| `slackcli saved list` | 保存済みアイテム一覧 | `--limit` (default:20), `--state` (saved/completed), `--workspace`, `--json` |

### update — 更新

| コマンド | 説明 |
|---------|------|
| `slackcli update` | 最新バージョンに更新 |
| `slackcli update check` | 更新の有無を確認 |

## Discovering Commands

```bash
# ヘルプ表示
slackcli --help
slackcli <command> --help
```

Related Skills

weekly-sync

10
from neko-neko/dotfiles

Linear(SSOT)と顧客向け出力先(GitHub Project 等)の間で定例ミーティング向けの 週次同期を実行する。チケットのスキャン・差分分析・顧客向けDocument作成・出力先転写・ ステータス同期を一気通貫で行う。プロジェクト固有の設定は .weekly-sync/config.md で管理。

triage

10
from neko-neko/dotfiles

URL(Slack/GitHub/その他)から情報収集→周辺コンテキスト探索→分析→Linear Issue 登録を行う初動対応ワークフロー。 問い合わせやバグ報告のトリアージに使用する。

linear-refresh

10
from neko-neko/dotfiles

Linear チケットの棚卸し・構造整理・未登録ソース発見を Collect/Discover/Analyze/Approve/Execute の 5 ステップで一気通貫実行する。 既存の外部リンク探索に加え、Slack/GitHub のキーワード検索と逆引きで未紐付きの 外部ソースも発見する。定期的な Linear メンテナンス、または「棚卸し」「リフレッシュ」 「整理」の依頼時に使用する。

handover

10
from neko-neko/dotfiles

現在のセッションで行った作業・決定事項・アーキテクチャ変更を project-state.json に記録し、 handover.md を生成する。コンテキスト圧縮の直前、/handover の明示呼び出し、 ツール呼び出し累計 50 回超過時、または応答が遅延した時に使用する。

doc-check

10
from neko-neko/dotfiles

コード変更に影響を受ける md ドキュメントを検出し、ユーザー承認後に更新する。 md ファイルの YAML frontmatter に宣言された depends-on(ファイルパス・glob)と 本文中の Markdown リンクから依存グラフを構築し、git diff との突合で影響範囲を特定する。 /doc-check で起動、またはコード変更を含むタスク完了時に実行を検討する。

doc-audit

10
from neko-neko/dotfiles

md ドキュメントの陳腐化・欠落・矛盾を 4 Layer 構造で検出し、ユーザー承認後に修正する。 depends-on 検証、coverage チェック、business-rule/architecture の未文書化知識検出、 readme/CLAUDE.md のメタ整合検査を行う。/doc-audit で起動、または大規模なコード変更後に ドキュメント整合性を確認したい時に使用する。

continue

10
from neko-neko/dotfiles

前セッションの project-state.json から未完了タスク(in_progress/blocked)を特定し、 ユーザー承認後に作業を再開する。/continue の明示呼び出し、"continue from handover" のような継続指示、handover.md への言及を検出した時に使用する。worktree 切り替えと Pipeline Detection も含む。

swe-cli-skills

12
from SylphAI-Inc/skills

Senior engineer CLI expertise for AI agents — workflows, safety guardrails, gotchas, and anti-patterns across cloud, IaC, containers, databases, dev tools, and platforms

DevOps & Infrastructure

PicoClaw Fleet

11
from EricGrill/agents-skills-plugins

Orchestrate a fleet of remote PicoClaw workers over SSH for fast, ephemeral one-shot tasks.

DevOps & Infrastructure

VibeCollab — Setup Instructions for AI Assistants

9
from flashpoint493/VibeCollab

You are helping a user set up VibeCollab in their project.

Workflow & Productivity

raycast-extension-docs

9
from lemikeone/Codex-skill-raycast-extension

Guidance for building, debugging, and publishing Raycast extensions using the Raycast documentation set. Use when Codex needs to create or modify Raycast extensions (React/TypeScript/Node), consult Raycast API reference or UI components, build AI extensions, handle manifest/lifecycle/preferences, troubleshoot issues, or prepare/publish extensions to the Raycast Store or Teams.

Coding & Development

evomap

9
from hyz0906/paper

Connect to the EvoMap collaborative evolution marketplace. Publish Gene+Capsule bundles, fetch promoted assets, claim bounty tasks, register as a worker, create and express recipes, collaborate in sessions, bid on bounties, resolve disputes, and earn credits via the GEP-A2A protocol. Use when the user mentions EvoMap, evolution assets, A2A protocol, capsule publishing, agent marketplace, worker pool, recipe, organism, session collaboration, or service marketplace.

AI Agent Marketplace