Skip to content
Back to skills

Notify Slack

ASecurity

Slack chat.postMessage を叩く共通シェル関数。~/.config/patrol/secrets.sh の SLACK_BOT_TOKEN / SLACK_CHANNEL_ID を読んで投稿する。メンション付き通知はユーザーの U08RPS2BLUD を文字列に含める。

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
securitypythonbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill notify-slack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Notify Slack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Notify Slack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-notify-slack/badge)](https://www.skillsdirectory.com/skills/aibot88-notify-slack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: notify-slack
description: Slack chat.postMessage を叩く共通シェル関数。~/.config/patrol/secrets.sh の SLACK_BOT_TOKEN / SLACK_CHANNEL_ID を読んで投稿する。メンション付き通知はユーザーの U08RPS2BLUD を文字列に含める。
---

# notify-slack

プロジェクト横断で使える Slack 通知関数の canonical 版。

## 由来

`agent-playbook/scripts/patrol-config.sh` の `notify_slack` を抽出・正規化したもの。今後、agent-playbook 側もここを参照する方向に寄せる。

## 使い方(プロジェクトからの取得)

```bash
bash ~/mgmt-team/platform-standards/scripts/ps-fetch.sh \
  catalog/skills/notify-slack \
  --dest .claude/skills/notify-slack
```

取得後、シェルスクリプトから:

```bash
source .claude/skills/notify-slack/notify.sh
notify_slack "<@U08RPS2BLUD> 作業開始" "$SLACK_CHANNEL_ID"
```

## 前提

- `~/.config/patrol/secrets.sh` に `SLACK_BOT_TOKEN` を定義
- 投稿先チャンネル ID は呼び出し時の第 2 引数、または環境変数 `SLACK_CHANNEL_ID`
- メンション運用はグローバル指示に従い `<@U08RPS2BLUD>` を本文に含める

## 非機能

- BOT_TOKEN が無ければ**静かに終了**(return 0)。CI や secrets 未設定の端末で落ちない
- curl 失敗時も `|| true` で握りつぶす。通知は副次的処理のため本体を止めない
- POST body は python3 で JSON シリアライズして改行・特殊文字を安全に扱う

Files in this skill

  • SKILL.md1.5 KB
  • source.json736 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.