Agent skill
slack-approval
Sends a Slack Block Kit message with [✅ 実行する][❌ キャンセル] buttons and waits for user response. Returns 'approved' or 'denied'. Use when any skill needs user confirmation before executing a destructive or external action (email send, form submit, install, deploy, etc.)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/slack-approval
Metadata
Additional technical details for this skill
- source
- slack-bot-builder (sickn33/antigravity-awesome-skills, 253★) + Slack official Node.js SDK
- requires
-
{ "env": [ "SLACK_BOT_TOKEN", "SLACK_APP_TOKEN" ], "npm": [ "@slack/web-api", "@slack/socket-mode" ], "bins": [ "node" ] }
SKILL.md
slack-approval
全スキル共通の承認ユーティリティ。Block Kit ボタンを Slack に投稿し、ユーザーのクリックを待つ。
使い方(全スキルからこの1行)
const { requestApproval } = require('../slack-approval/scripts/approve');
const result = await requestApproval({
channel: 'C091G3PKHL2', // 送信先チャンネルID
title: '📧 メール返信',
detail: '宛先: 山田教授\n本文: お世話になっております...'
});
if (result === 'approved') { /* 実行 */ }
if (result === 'denied') { /* 停止 */ }
表示される UI
┌─────────────────────────────────────┐
│ 📧 メール返信 │
│ 宛先: 山田教授 │
│ 本文: お世話になっております... │
│ │
│ [✅ 実行する] [❌ キャンセル] │
└─────────────────────────────────────┘
→ [✅ 実行する] 押したら: ✅ 実行しました(ボタン消える)
→ [❌ キャンセル] 押したら: ❌ キャンセルしました(ボタン消える)
戻り値
| 値 | 意味 |
|---|---|
'approved' |
✅ を押した |
'denied' |
❌ を押した |
timeout なし。ユーザーが押すまで待つ。
セットアップ(初回のみ)
cd .claude/skills/slack-approval/scripts
npm install @slack/web-api @slack/socket-mode
適用スキル
naist-mail / naist-portal / naist-wiki / skill-for-you / mobile-app-factory / 全ての新規スキル
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?