slack

Slack Web APIを操作するスキル。メッセージの投稿・取得、スレッドの取得、投稿の検索、ユーザー情報の取得、自分宛てDM送信を実行。 使用タイミング: (1) Slackにメッセージを投稿したい (2) チャンネルのメッセージ履歴を取得したい (3) スレッドの返信を取得したい (4) 自分の投稿を検索したい (5) ユーザー情報を取得したい (6) 自分にDMを送りたい トリガーキーワード: Slack、メッセージ送信、スレッド取得、チャンネル履歴、ユーザー取得、DM送信

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "slack" with this command: npx skills add iemong/agent-skills/iemong-agent-skills-slack

Slack Web API Skill

Slack Web APIを使用してメッセージ・ユーザー操作を行う。

認証

Bearer tokenをAuthorizationヘッダーで送信。

環境変数用途
CLAUDE_SLACK_TOKEN全API操作(投稿、履歴取得、検索等)

トークン取得・スコープ設定の詳細は references/authentication.md を参照。

使用方法

メッセージ投稿

python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/slack_api.py post_message --channel C1234567890 --text "Hello"

自分宛てDM送信

python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/slack_api.py dm_me --text "自分へのメモ"

チャンネル履歴取得

python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/slack_api.py get_history --channel C1234567890 --limit 100

スレッド取得

python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/slack_api.py get_thread --channel C1234567890 --ts 1234567890.123456

投稿検索

検索実行前に必ずクエリを検証すること:

# 1. バリデーション
python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/validate_query.py "from:me keyword"

# 2. バリデーション成功後に検索実行
python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/slack_api.py search --query "from:me keyword"

指定日の自分の投稿取得

python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/slack_api.py my_posts --date 2025-01-19

日付(YYYY-MM-DD形式)を指定して、その日の自分の投稿をすべて取得する。

ユーザー情報取得

python3 ${CLAUDE_PLUGIN_ROOT}/skills/slack/scripts/slack_api.py get_user --user U1234567890

APIリファレンス

詳細なパラメータは references/api_reference.md を参照。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

slack

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

mermaid-state-diagram

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

browser-history

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

dig

No summary provided by upstream source.

Repository SourceNeeds Review