Agent skill
naist-onboarding
Creates a personal
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/naist-onboarding
Metadata
Additional technical details for this skill
- source
- slack-api v1.0.7 (ClawHub) API call patterns
- requires
-
{ "env": [ "SLACK_BOT_TOKEN" ], "npm": [ "@slack/web-api" ], "bins": [ "node" ] }
SKILL.md
naist-onboarding
新規ユーザーが #ai チャンネルで "make my channel" と言ったときに、#ai-<name> チャンネルを作成して招待する。
トリガー
ユーザーが以下のいずれかを言ったとき:
- "make my channel"
- "create my channel"
- "チャンネル作って"
- "マイチャンネル作って"
実行手順
1. ユーザーIDを特定
Slack イベントから送信者の user_id を取得する。
2. onboard.js を実行
cd /Users/anicca/.openclaw/skills/naist-onboarding/scripts
node onboard.js <user_id>
3. 出力を確認して報告
スクリプトが成功すれば自動で Slack に通知される。
エラーが出た場合は #ai にエラー内容を投稿する。
onboard.js が行うこと
| ステップ | 内容 |
|---|---|
| 1 | Slack API でユーザーの display_name を取得 |
| 2 | #ai-<lowercase-name> チャンネルを作成(既存なら再利用) |
| 3 | ユーザーをチャンネルに招待 |
| 4 | #ai に ✅ #ai-<name> 作ったよ! と通知 |
| 5 | 新チャンネルでウェルカムメッセージを送信 |
セットアップ(初回のみ)
cd /Users/anicca/.openclaw/skills/naist-onboarding/scripts
npm install @slack/web-api
Slack Bot に必要なスコープ
| スコープ | 用途 | 現状 |
|---|---|---|
channels:manage |
チャンネル作成・招待 | ❌ 未付与 |
channels:write.invites |
ユーザーをチャンネルに招待 | ❌ 未付与 |
channels:join |
チャンネル参加 | ✅ 付与済み |
chat:write |
メッセージ送信 | ✅ 付与済み |
users:read |
ユーザー名取得 | ✅ 付与済み |
⚠️ 初回セットアップ(ユーザー作業)
- https://api.slack.com/apps/A092UBRAJ1X を開く
- OAuth & Permissions → Bot Token Scopes に追加:
channels:managechannels:write.invites
- Install to Workspace ボタンで再インストール
- 新しい
SLACK_BOT_TOKENを/Users/anicca/.openclaw/.envに更新
→ セットアップ完了後、node scripts/onboard.js <userId> で動作確認。
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?