Skip to content
Back to skills

Collection

ASecurity

GitHub Actions通知統合スキル - Slack、Discord、MS Teams、Email等への自動通知設定。 以下の場合に自動発動: - 「通知」「notification」「alert」「Slack」「Discord」「Teams」キーワード検出時 - ワークフロー成功/失敗時の通知設定が必要な時 - チーム連携のための通知チャネル構築時 - CI/CD結果を外部サービスに送信する時 - Webhook統合やメッセージフォーマット設計時 📚 リソース参照: このスキルには以下のリソースが含まれています。 必要に応じて該当するリソースを参照してください: - `.claude/skills/notification-integration-gha/resources/discord-teams.md`: Discord・MS Teams統合ガイド - `.claude/skills/notification-integration-gha/resources/slack-integration.md`: Slack統合詳細ガイド - `.claude/ski...

  • 24 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
devopspythongobashnodegitapici/cd

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

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

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-1efdae4d/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-1efdae4d)

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: .claude/skills/notification-integration-gha/SKILL.md
description: |
  GitHub Actions通知統合スキル - Slack、Discord、MS Teams、Email等への自動通知設定。
  以下の場合に自動発動:
  - 「通知」「notification」「alert」「Slack」「Discord」「Teams」キーワード検出時
  - ワークフロー成功/失敗時の通知設定が必要な時
  - チーム連携のための通知チャネル構築時
  - CI/CD結果を外部サービスに送信する時
  - Webhook統合やメッセージフォーマット設計時

  📚 リソース参照:
  このスキルには以下のリソースが含まれています。
  必要に応じて該当するリソースを参照してください:

  - `.claude/skills/notification-integration-gha/resources/discord-teams.md`: Discord・MS Teams統合ガイド
  - `.claude/skills/notification-integration-gha/resources/slack-integration.md`: Slack統合詳細ガイド
  - `.claude/skills/notification-integration-gha/scripts/test-webhook.mjs`: Slack/Discord/TeamsのWebhook URLに対するメッセージ送信テストスクリプト
  - `.claude/skills/notification-integration-gha/templates/notification-workflow.yaml`: Slack/Discord/Teams/Emailへの成功・失敗通知を含むGitHub Actionsワークフロー実例集

version: 1.0.0
category: github-actions
triggers:
  - 通知設定やアラート構築が必要な時
  - Slack/Discord/Teamsへのワークフロー結果送信
  - Webhook統合やメッセージカスタマイズ
dependencies: []
related_skills:
  - .claude/skills/github-actions-syntax/SKILL.md
  - .claude/skills/secrets-management-gha/SKILL.md
  - .claude/skills/conditional-execution-gha/SKILL.md
---

# GitHub Actions Notification Integration Skill

GitHub Actions から Slack、Discord、MS Teams、Email 等への通知統合を提供するスキル。

## ディレクトリ構造

```
notification-integration-gha/
├── SKILL.md                          # このファイル(コマンドリファレンス・概要)
├── resources/
│   ├── slack-integration.md          # Slack Webhook・Actions・フォーマット詳細
│   └── discord-teams.md              # Discord・MS Teams統合パターン
├── templates/
│   └── notification-workflow.yaml    # 通知ワークフロー実例集
└── scripts/
    └── test-webhook.mjs              # Webhook動作テストスクリプト
```

## コマンドリファレンス

### リソース参照(詳細知識)

```bash
# Slack統合詳細(Webhook URL、actions、メッセージフォーマット)
cat .claude/skills/notification-integration-gha/resources/slack-integration.md

# Discord・MS Teams統合パターン
cat .claude/skills/notification-integration-gha/resources/discord-teams.md
```

### テンプレート活用

```bash
# 通知ワークフロー実例(Slack/Discord/Teams/Email)
cat .claude/skills/notification-integration-gha/templates/notification-workflow.yaml
```

### スクリプト実行

```bash
# Webhook動作テスト(Slack/Discord)
node .claude/skills/notification-integration-gha/scripts/test-webhook.mjs <webhook-url> <message>
```

## 通知統合パターン

### 1. Slack 通知(公式 Action 使用)

```yaml
- name: Slack Notification
  uses: slackapi/slack-github-action@v1.24.0
  with:
    channel-id: "C1234567890"
    slack-message: |
      *${{ github.workflow }}* - ${{ job.status }}
      Repository: ${{ github.repository }}
      Commit: ${{ github.sha }}
      Author: ${{ github.actor }}
  env:
    SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
```

### 2. Discord 通知(Webhook)

```yaml
- name: Discord Notification
  if: always()
  run: |
    curl -X POST "${{ secrets.DISCORD_WEBHOOK_URL }}" \
      -H "Content-Type: application/json" \
      -d '{
        "content": "**Workflow Status**: ${{ job.status }}",
        "embeds": [{
          "title": "${{ github.workflow }}",
          "description": "Repository: ${{ github.repository }}",
          "color": ${{ job.status == 'success' && 3066993 || 15158332 }}
        }]
      }'
```

### 3. MS Teams 通知(Webhook Connector)

```yaml
- name: MS Teams Notification
  if: failure()
  run: |
    curl -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" \
      -H "Content-Type: application/json" \
      -d '{
        "@type": "MessageCard",
        "themeColor": "FF0000",
        "summary": "Workflow Failed",
        "sections": [{
          "activityTitle": "${{ github.workflow }} Failed",
          "facts": [
            {"name": "Repository", "value": "${{ github.repository }}"},
            {"name": "Branch", "value": "${{ github.ref }}"},
            {"name": "Commit", "value": "${{ github.sha }}"}
          ]
        }]
      }'
```

### 4. 条件付き通知(成功時・失敗時)

```yaml
- name: Notify on Success
  if: success()
  uses: slackapi/slack-github-action@v1.24.0
  with:
    channel-id: "success-channel"
    slack-message: "✅ Deployment succeeded!"
  env:
    SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Notify on Failure
  if: failure()
  uses: slackapi/slack-github-action@v1.24.0
  with:
    channel-id: "alert-channel"
    slack-message: "❌ Deployment failed! @here"
  env:
    SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
```

## 通知設計のベストプラクティス

### セキュリティ

- **Webhook URL は Secrets 管理**: `${{ secrets.WEBHOOK_URL }}`
- **トークンは暗号化保存**: GitHub Secrets で管理
- **公開リポジトリでの露出防止**: ハードコード禁止

### メッセージ設計

- **視認性**: 絵文字・色・フォーマットで状態を明示
- **コンテキスト**: リポジトリ名・ブランチ・コミット SHA・実行者情報
- **アクション可能**: ログ URL・PR URL・デプロイ URL をリンク

### 条件制御

- **if: always()**: 成功・失敗問わず通知
- **if: failure()**: 失敗時のみアラート
- **if: success()**: 成功時のみ通知

### リトライとエラーハンドリング

- **continue-on-error: true**: 通知失敗でもワークフロー継続
- **timeout-minutes**: 長時間ハングアップ防止

## 関連スキル

通知統合と併用すると効果的なスキル:

| スキル名                      | パス                                                | 概要                               |
| ----------------------------- | --------------------------------------------------- | ---------------------------------- |
| **.claude/skills/github-actions-syntax/SKILL.md**     | `.claude/skills/github-actions-syntax/SKILL.md`     | ワークフロー構文・式・コンテキスト |
| **.claude/skills/secrets-management-gha/SKILL.md**    | `.claude/skills/secrets-management-gha/SKILL.md`    | Webhook URL・トークンの安全な管理  |
| **.claude/skills/conditional-execution-gha/SKILL.md** | `.claude/skills/conditional-execution-gha/SKILL.md` | 条件付き通知(成功/失敗時)        |

## 使用上の注意

### このスキルが提供すること

- Slack/Discord/Teams/Email 統合パターン
- Webhook 設定とメッセージフォーマット
- 条件付き通知(成功/失敗時)
- セキュリティベストプラクティス

### このスキルが提供しないこと

- 通知サービス側のアカウント設定(Slack App 作成等)
- 複雑なメッセージテンプレート言語(Liquid/Handlebars 等)
- カスタムボット実装(Node.js/Python 等)

### 推奨される使用フロー

1. **通知チャネル決定**: Slack/Discord/Teams/Email
2. **Webhook URL 取得**: 各サービスで設定
3. **GitHub Secrets に保存**: `SLACK_WEBHOOK_URL`等
4. **テンプレート適用**: `templates/notification-workflow.yaml`参照
5. **メッセージカスタマイズ**: プロジェクト固有情報追加
6. **テスト実行**: `scripts/test-webhook.mjs`で動作確認

---

**詳細な統合手順とメッセージフォーマットは、resources ディレクトリ内のファイルを参照してください。**

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

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.

View all in devops →

Comments

Loading comments…

Newsletter

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