用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tkoenig/agent-skills --skill slack-assistant命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | slack-assistant |
| description | Send Slack messages as the authenticated user via CLI and SLACK_USER_TOKEN. |
Use when you want to send Slack messages as the user who authorized the app.
CLI commands are relative to this skill directory (use {baseDir}).
Always ask for confirmation before sending a message.
SLACK_USER_TOKEN is set (xoxp-...).SLACK_USER_NAME is the username of the authenticated user (e.g., tomk).chat:write scope (and channels:read/groups:read/users:read / im:historyif needed).You are sending messages as $SLACK_USER_NAME.
bash {baseDir}/scripts/slack-assistant list-users
bash {baseDir}/scripts/slack-assistant presence --user U12345678
bash {baseDir}/scripts/slack-assistant send-channel --channel C12345678 --text "Hello"
If the recipient is unclear, list users to identify the correct user ID before sending (no confirmation needed for listing users).
Before asking for confirmation to send the DM, check and report the recipient's presence status.
bash {baseDir}/scripts/slack-assistant dm --user U12345678 --text "Hello"
Slack uses "mrkdwn" format, NOT Markdown. Key differences:
| Format | Slack mrkdwn | NOT Markdown |
|---|---|---|
| Bold | *bold* | **bold** |
| Italic | _italic_ | *italic* |
| Strike | ~strike~ | ~~strike~~ |
| Code | `code` | (same) |
| Code block | ```code``` | (same) |
| Link | <url|text> | [text](url) |
| Bullet | • item or - item | (same) |
Example:
*PR Review: v2/legacy cleanup (#499)*
• Removes unused helpers - _nice cleanup_
• See <https://github.com/org/repo/pull/499|PR #499>
When passing --text in a shell command, wrap the message in single quotes or $'...' so backticks and $ aren’t executed by the shell. Backticks inside double quotes will trigger command substitution and strip text.
Example:
bash {baseDir}/scripts/slack-assistant dm --user U12345678 --text $'Use `code` and $vars safely.'
If the message contains single quotes, escape them or use a different quoting strategy.
基于 SOC 职业分类