Communityコーディング&開発github.com

チャネル設定

チャットチャネルを非対話型ワンライナーで設定・検証します。シークレット値はSecretRefs経由でのみ扱います。

チャネル設定 とは?

このスキルは、AIエージェント(例:Claude Code、Cursor、Codex)がOpenClawのチャットチャネル(Telegram、Discordなど)を安全かつ効率的に設定・検証するための一連の手順を定義します。秘密情報(ボットトークンなど)をログや設定ファイルに直接出力したり永続化したりすることを禁止し、SecretRefやセッション内のマスク入力による安全なフローを強制します。 主な用途は、チャネルの初期設定、既存設定の確認、設定変更、問題の診断・修復、そして実際のメッセージ送信による動作確認です。すべての操作は、最終的に「検証可能な結果(Prove result)」で終了するか、それが不可能な理由を正確に説明する必要があります。 対応プラットフォームはOpenClawで、CLIコマンド(openclaw config、openclaw channels、openclaw messageなど)を使用します。スキルは「Gather(情報収集)」「Mutate(変更)」「Repair(修復)」「Prove(検証)」「Report(報告)」のフェーズに分かれており、各フェーズで具体的なコマンドと注意事項が示されています。 このスキルにより、AIエージェントは人的ミスやセキュリティリスクを回避しながら、チャットチャネルの設定を自動化・検証できます。特に、シークレットの取り扱いに関する厳格なルールと、各操作の前にオペレーターの承認を求める点が重要です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/custodian-skills/configure-channel

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

チャネル設定 は何をしますか?

シークレット値を出力したり永続化したりしないでください。チャネルトークンは、SecretRefとしてのみ、またはオペレーターがマスク入力でシークレットを入力するセッション内のconnect_channelフローを通じてのみ設定に入力されます。ディスク上の設定ファイルを手動で編集しないでください。すべての実行は、観測可能なProve結果、または証明できなかった理由の正確な説明で終了します。

Gather(情報収集)

openclaw channels list --all
openclaw channels status
openclaw config get channels --json        # "Config path not found" は初回設定前は正常

書き込み前に正確な設定パスを確認してください。キー名はチャネルによって異なります(channels.telegram.botToken、channels.discord.token、...)。

openclaw config schema --json | jq '.properties.channels.properties.telegram'

Mutate(変更)

書き込み前に、目的のアカウントとアクセス変更についてオペレーターと確認してください。既存の承認済みallowlistエントリ、dmPolicy、groupPolicyは、それらの置き換えまたは変更が明示的に承認されない限り保持してください。チェックを通すためにアクセスを拡大しないでください。

推奨されるシェルパス — トークンをゲートウェイプロセスの環境変数または0600ファイルにステージングし、SecretRefとして配線します(Telegramの例)。

openclaw config set channels.telegram.botToken --ref-provider default --ref-source env --ref-id TELEGRAM_BOT_TOKEN

ボットが接続され、DMポリシーがpairingの場合、オペレーターにDMを送信するよう依頼してください。ペアリング応答内のYour Telegram user idを読み取るか、openclaw logs --followを実行して、その送信者のtelegram pairing requestエントリ内のsenderUserIdを読み取ってください。キャプチャしたらフォローを停止し、無関係なログはプライベートに保ってください。現在のポリシーがこのフローを妨げる場合は、既に検証済みのIDを使用するか、発見のブロッカーを報告してください。アクセスを拡大しないでください。

数値のTelegramユーザーIDを使用してください。電話番号、ユーザー名、チャット/グループID、ボットIDは使用しないでください。このシングルユーザーの例では、123456789はプレースホルダーです。検証済みの承認済みユーザーIDに置き換え、他の承認済みエントリは保持してください。

openclaw config set channels.telegram.allowFrom '["123456789"]' --strict-json

複数フィールドの変更を1回の検証済み書き込みで行う場合:

openclaw config patch --stdin <<'JSON'
{ channels: { telegram: { enabled: true, groupPolicy: "allowlist" } } }
JSON

セッション内の代替手段:connect_channelツールアクションをチャネルIDを指定して呼び出します。オペレーターはマスク入力でトークンを入力し、チャット内には表示されません。openclaw channels add --token <value>は避けてください。シークレットがargvとプロセスリストに露出します。

Repair(修復)

openclaw doctor --lint
openclaw channels status --probe

doctor --lintは結果がある場合に終了コード1で終了することがあります。レポートを読み、残りのチェックを続行してください。通常のdoctorとdoctor --non-interactiveは設定/状態を書き込むことがあります。承認前の診断には使用しないでください。openclaw doctor --fix --non-interactiveは明示的な承認後にのみ適用し、その後ステータスを再確認してください。

Prove(検証)

実際の明確にラベル付けされたテストメッセージを1つ送信し、コマンド結果から配信を確認してください(最初に--dry-runを使用してペイロードを検査)。

openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore" --dry-run
openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore"

送信に失敗した場合は、資格情報を公開せずに、正確なアカウント、権限、宛先、またはネットワークブロッカーを報告してください。

Report(報告)

変更したチャネルとアカウント、書き込んだ正確な設定パス(値は含めない)、テストの宛先、および観測された配信結果を報告してください。残っているオペレーター対応があればリストアップしてください。

詳細なリファレンス:https://docs.openclaw.ai/channels/telegram(および他のチャネルの対応ページ)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

関連スキル