Borrowing it
Nothing to install: this file belongs to Innei/Kagura. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Innei/Kagura/main/.claude/skills/slack/SKILL.mdgit clone --depth 1 https://github.com/Innei/KaguraWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/innei/kagura/slack)<a href="https://agentmods.dev/skills/innei/kagura/slack"><img src="https://agentmods.dev/badge/skills/innei/kagura/slack/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/innei/kagura/slack"><img src="https://agentmods.dev/badge/skills/innei/kagura/slack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00097 | $0.02834 |
| Opus 5 | $0.00048 | $0.01417 |
| Sonnet 5 | $0.00019 | $0.00567 |
| Haiku 4.5 | $0.00010 | $0.00283 |
Grade A, and why
slack scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| 依赖 | **无**(只用标准库 `urllib`,零 `pip install`) | How it starts
The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Slack Skill
只读 Slack Web API 的 9 个子命令封装,统一入口 scripts/slack.py。
不写消息 / 不加 reaction / 不 mark-read —— 这些动作由调用方 Bot 自己处理,client 层有硬编码白名单拦截。
When to Use
触发信号(AI 看到任一信号即考虑调用):
https://*.slack.com/archives/...链接C[A-Z0-9]{8,}/U[A-Z0-9]{8,}/D[A-Z0-9]{8,}/F[A-Z0-9]{8,}风格 IDp123456789012345风格的消息 ts- 用户提到 "Slack" / "thread" / "频道" / "群里" / "@某人 在 Slack 说"
- Jira/PR 正文里的 Slack permalink(排查类任务需要 QA/RD 讨论上下文)
术语对照:
| 用户说法 | 含义 |
|---|---|
| slack / 消息 / DM / 频道 / thread / permalink | 本 skill |
Slack URL https://xxx.slack.com/archives/... |
get / replies / files_download --url 入参 |
@handle / @name / #channel / ^subteam |
resolve / users / channels 入参 |
ts / thread_ts |
Slack 时间戳 ID(1234567890.123456) |
Quick Reference
入口:
.agent-slack/skills/slack/scripts/slack.py
查找顺序:./.agent-slack/skills/slack/scripts/slack.py → <git-root>/.agent-slack/skills/slack/scripts/slack.py → <git-root>/slack/scripts/slack.py(仓库开发路径)→ find . -path '*skills/slack/scripts/slack.py'。
所有调用 = python3 <path> <subcommand> [flags];禁止 import sk.* 绕过入口。
子命令表:
| 子命令 | 作用 | 典型入参 |
|---|---|---|
get |
读单条消息 | --url <permalink> |
replies |
读整个 thread | --url <任一消息 permalink> |
history |
浏览频道最近消息 | --channel <#name|C...> --limit <n|1d|2h> |
search |
全域搜消息(xoxp 专属) | <query 字符串,原生 modifier> |
files_download |
下附件 | --file-id F... 或 --url <permalink> |
channels |
搜/列频道(走 cache) | --query <name> / --type public |
users |
查人(ID/email/name) | --id U... / --email ... / --query <name> |
resolve |
字符串 → 对象 | resolve "#eng" / "@alice" / "^oncall" / U.../C.../F.../email |
cache_refresh |
刷本地 users/channels/subteams 字典 | — |
每条都支持 --help。大输出用 --output <file>(stdout 只打 saved: <path>)。
Setup
| 项 | 说明 |
|---|---|
| Python | ≥ 3.9 |
| 依赖 | 无(只用标准库 urllib,零 pip install) |
| 配置 | 复制 slack/.env.example → slack/.env,至少填 SLACK_BOT_TOKEN |
What ships with it
28 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .env.example 3.0 KB
- README.md 6.8 KB
- scripts/sk/__init__.py 174 B runs code
- scripts/sk/cache.py 9.0 KB runs code
- scripts/sk/channels.py 3.9 KB runs code
- scripts/sk/cli.py 5.1 KB runs code
- scripts/sk/client.py 6.9 KB runs code
- scripts/sk/cmd_cache_refresh.py 6.7 KB runs code
- scripts/sk/cmd_channels.py 4.7 KB runs code
- scripts/sk/cmd_files_download.py 6.8 KB runs code
- scripts/sk/cmd_get.py 4.0 KB runs code
- scripts/sk/cmd_history.py 7.6 KB runs code
- scripts/sk/cmd_replies.py 4.7 KB runs code
- scripts/sk/cmd_resolve.py 9.3 KB runs code
- scripts/sk/cmd_search.py 6.2 KB runs code
- scripts/sk/cmd_users.py 6.9 KB runs code
- scripts/sk/config.py 4.1 KB runs code
- scripts/sk/errors.py 1.5 KB runs code
- scripts/sk/files.py 11 KB runs code
- scripts/sk/lookups.py 1.9 KB runs code
- scripts/sk/mentions.py 4.8 KB runs code
- scripts/sk/message.py 5.5 KB runs code
- scripts/sk/output.py 1.3 KB runs code
- scripts/sk/render.py 13 KB runs code
- scripts/sk/shared.py 2.4 KB runs code
- scripts/sk/timex.py 2.1 KB runs code
- scripts/sk/urls.py 2.5 KB runs code
- scripts/slack.py 635 B runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 193 lines · 97 tokens per session scan A f339fb3828d5
slack is a skill published in the GitHub repository Innei/Kagura (52 stars, last pushed 3d ago), licensed MIT. It adds 97 tokens to every session and 2,834 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
metaschedule
MetaBot's persistent server-side scheduler (cron + one-shot). Optional skill — not installed by default. Use when the user wants tasks that survive Claude session restarts, are visible to other bots, or need to run in MetaBot's PM2 process rather than this Claude session.
metabot-team
Use for the MetaBot Agent Teams CLI: create and inspect durable Teams, spawn teammates, exchange messages, and manage Tasks and Runs across Sessions.
metabot
Unified MetaBot CLI for personal Memory, Skill Hub, durable Agent Bus messaging, agent registry, Agent Teams, T5T, scheduling, and bridge runtime operations.
metaskill
The meta-skill: create AI agent teams, individual agents, or custom skills for any project. Use when the user wants to generate a complete agent team, create a single agent, or create a single skill for Claude Code, Kimi, or Codex.
access
Manage Slack channel access control — pairing, allowlist, channel opt-in. Use when approving a pairing code, changing the DM policy, editing the user allowlist, or opting a channel in or out. Trigger with "/slack-channel:access", "pair my slack account", "add user to slack allowlist", or "opt in a slack channel".
install
Detect installation failures and install, verify, repair, reset, or uninstall the CCSC Slack channel. Use when setting up the Slack channel, checking an existing installation, exporting its Slack app manifest, or safely tearing it down. Trigger with "/slack-channel:install", "install the slack channel", "slack channel…