Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问clear审计异常

slack-client-fundamentalsSlack client fundamentals 开发

Agent Skill

用于处理 Slack 工作区里的频道、消息、线程、用户和通知信息。它适合让 Agent 查询团队沟通记录、整理上下文、回复线程或辅助协作提醒。使用时需要确认机器人或用户 token 是否具备目标频道访问权,私有频道和历史消息通常有额外权限限制;发送消息、@成员或批量读取对话时,应避免泄露内部讨论和敏感工作信息。

总安装

480

周安装

20

GitHub Stars

4

下载量

160
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:slack-client-fundamentals(Slack client fundamentals 开发)
来源仓库:https://github.com/linehaul-ai/linehaulai-claude-marketplace
仓库路径:skills/slack-client-fundamentals
安装命令:
npx skills add https://github.com/linehaul-ai/linehaulai-claude-marketplace --skill slack-client-fundamentals
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/linehaul-ai/linehaulai-claude-marketplace --skill slack-client-fundamentals

简介

涵盖 Slack SDK 核心概念与客户端开发基础知识。

  • 适合初学者理解消息发送、事件订阅与错误处理机制。
  • 通过 GitHub 安装,可用于 Codex、Claude 等宿主的学习与实践。
  • 需掌握基本 HTTP 请求构造与异步回调处理技巧。
  • 建议配合官方示例代码逐步验证各项功能实现效果。slack-client-fundamentals 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Slack Go SDK Client Fundamentals

Client Initialization

Initialize the Slack API client with your bot token:

import "github.com/slack-go/slack"

api := slack.New("xoxb-your-bot-token")

Enable debug mode for development:

api := slack.New(
    "xoxb-your-bot-token",
    slack.OptionDebug(true),
)

When to Use Which Approach

Web API (synchronous operations)

Use for direct API calls where you initiate the action:

  • Sending messages, creating channels
  • Retrieving user information
  • Uploading files
  • Any request-response operation

Socket Mode (WebSocket - behind firewall)

Use when your app runs behind a firewall and can't receive HTTP requests:

  • Real-time event handling without public URL
  • Apps running on local machines or private networks
  • Development and testing environments

Events API (HTTP webhooks - public URL)

Use when you have a publicly accessible endpoint:

  • Production apps with HTTPS endpoints
  • Event-driven architectures with webhooks
  • Apps hosted on cloud platforms

Error Handling Patterns

Always handle errors from API calls:

_, _, err := api.PostMessage(channelID, slack.MsgOptionText(text, false))
if err != nil {
    // Handle specific error types
    if rateLimitedError, ok := err.(*slack.RateLimitedError); ok {
        // Wait and retry
        time.Sleep(rateLimitedError.RetryAfter)
    }
    return fmt.Errorf("failed to post message: %w", err)
}

Use context for cancellation and timeouts:

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

// Pass context to API methods that support it

Project Structure Recommendation

slack-bot/
├── cmd/
│   └── bot/
│       └── main.go           # Entry point
├── internal/
│   ├── handlers/
│   │   ├── messages.go       # Message handlers
│   │   ├── events.go         # Event handlers
│   │   └── commands.go       # Slash command handlers
│   ├── slack/
│   │   ├── client.go         # Slack client wrapper
│   │   └── middleware.go     # Authentication, rate limiting
│   └── config/
│       └── config.go         # Configuration management
├── pkg/
│   └── models/               # Shared data models
├── go.mod
└── go.sum

Testing Strategies

See testing-patterns.md for comprehensive testing guidance including:

  • Mocking the Slack API client
  • Integration testing patterns
  • Test fixtures for events and messages
  • CI/CD testing recommendations

Configuration Best Practices

For advanced configuration including custom HTTP clients, retry strategies, and rate limiting:

Next Steps

Based on your use case, explore these skills:

  • Web API operations → Use the slack-web-api skill for messaging, channels, users, files
  • Real-time events → Use the slack-realtime-events skill for Socket Mode or Events API
  • OAuth setup → Use the slack-auth-security skill for multi-workspace authentication

Common Pitfalls

  • Hardcoding tokens in code (use environment variables)
  • Not handling rate limits (implement exponential backoff)
  • Forgetting to validate incoming webhook signatures
  • Using blocking operations in event handlers (use goroutines)
  • Not implementing proper context cancellation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.6%
按下载量换算47

Gemini CLI

19.09%
按下载量换算31

Antigravity

18.29%
按下载量换算29

windsurf

13.08%
按下载量换算21

Codex

7.9%
按下载量换算13

OpenCode

3.48%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills