openclaw-agent-feishu-onboarding
Create OpenClaw agents and onboard Feishu routing with explicit multi-step confirmations. Use when the user needs to (1) define a new agent role and workspace, (2) collect and confirm Feishu route fields including peer.id, (3) apply account/peer bindings, and (4) validate routing and rollback safely.
Best use case
openclaw-agent-feishu-onboarding is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Create OpenClaw agents and onboard Feishu routing with explicit multi-step confirmations. Use when the user needs to (1) define a new agent role and workspace, (2) collect and confirm Feishu route fields including peer.id, (3) apply account/peer bindings, and (4) validate routing and rollback safely.
Teams using openclaw-agent-feishu-onboarding should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/openclaw-agent-feishu-onboarding/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How openclaw-agent-feishu-onboarding Compares
| Feature / Agent | openclaw-agent-feishu-onboarding | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Create OpenClaw agents and onboard Feishu routing with explicit multi-step confirmations. Use when the user needs to (1) define a new agent role and workspace, (2) collect and confirm Feishu route fields including peer.id, (3) apply account/peer bindings, and (4) validate routing and rollback safely.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
SKILL.md Source
# OpenClaw Agent Feishu Onboarding
Standardize creation of new OpenClaw agents and Feishu route binding.
Use this skill for operational execution with strict confirmations.
## Runtime Prerequisites
- Required binaries:
- `openclaw` (CLI available in PATH)
- `python` (3.x, used by `scripts/validate_feishu_bindings.py`)
- Preflight checks:
- `openclaw --version`
- `python --version`
- Data access behavior:
- Reads local OpenClaw config (`openclaw.json` / `OPENCLAW_CONFIG_PATH`)
- May write local agent and routing state (`agents.list[]`, `bindings[]`)
- Do not run on machines where local config access is not permitted
## Core Scope
- Create a new agent (`agents.list` + workspace + identity).
- Confirm Feishu route target fields before any write.
- Bind routing using `bindings.match` with `channel/accountId/peer`.
- Verify final route and provide rollback steps.
## Required Inputs
- Agent intent:
- Agent purpose and responsibility boundary.
- Explicit out-of-scope items.
- Agent spec:
- `agentId` (lowercase, digits, hyphen).
- `workspace` path.
- `model` id.
- Identity object in `agents.list[]`:
- use `identity` object (for example `identity.name`, `identity.emoji`, `identity.theme`)
- do not rely on top-level `name` only
- Feishu route spec:
- `match.channel`: `feishu`
- `match.accountId`: for example `main`
- `match.peer.kind`: `group` (or `dm` when needed)
- `match.peer.id`: Feishu session id (group id like `oc_xxx` or dm id)
## Hard Validation Gates (Must Pass)
- `agents.list[]` entry for new agent must include `identity` object.
- `identity.name` must be set for human-readable routing/debug checks.
- `match.accountId` must be one of `channels.feishu.accounts` keys (for example `main`).
- Never put Feishu group/session id (`oc_xxx`) into `match.accountId`.
- Group routing must include `match.peer = { kind: "group", id: "oc_xxx" }`.
- If routing is for a specific group but `match.peer` is missing, abort and correct config before continuing.
- Before write, print the final binding object and require explicit confirmation.
## Multi-Step Confirmation Protocol
Do not skip confirmations. Ask and confirm in this exact order.
1. Confirmation A: Agent Goal
- Confirm what this agent should do.
- Confirm what this agent must not do.
2. Confirmation B: Agent Configuration
- Confirm `agentId`, `workspace`, model, identity fields.
- Confirm naming conventions and collision check (`agentId` uniqueness).
3. Confirmation C: Feishu Routing Target
- Confirm `accountId`.
- Confirm `peer.kind`.
- Confirm `peer.id` (explicitly state this is the Feishu session id).
- Confirm whether this is a precise peer binding or account-level fallback.
4. Confirmation D: Execution Approval
- Summarize all fields in one compact block.
- Ask for final go/no-go before writing config.
## Execution Workflow
1. Discover current state:
- `openclaw agents list`
- `openclaw config get agents.list --json`
- `openclaw config get channels.feishu.accounts --json`
- `openclaw directory groups list --channel feishu --account <account-id> --query "<keyword>" --json`
- `openclaw config get bindings --json`
2. Create agent:
- `openclaw agents add ...`
- Optional: `openclaw agents set-identity ...`
3. Apply routing:
- Use `openclaw agents bind` for account-scoped binding when needed.
- Ensure peer-precise rule exists in top-level `bindings[]` with `match.peer`.
4. Validate:
- `python -X utf8 ./scripts/validate_feishu_bindings.py --config <openclaw.json-path>`
- `openclaw config validate --json`
- ensure target `agents.list[]` entry has `identity.name`
- Check `bindings[]` entry content and ordering.
- Ensure every group-targeted rule has `match.peer.kind = "group"` and `match.peer.id = "oc_xxx"`.
5. Reload/restart gateway if required by deployment policy.
## Routing Rules
- `peer` rule is the precise route key for a specific Feishu conversation.
- Use `match.peer.id` to bind a specific session (group `oc_xxx`).
- If both peer-level and account-level bindings exist, keep peer rule first.
- Avoid broad fallback rules until peer-specific routes are confirmed.
- Wrong example (forbidden): `match.accountId: "oc_xxx"` without `match.peer`.
Agent list entry should follow this shape:
```json
{
"id": "data-analyst",
"workspace": "C:\\Users\\Administrator\\.openclaw\\workspace-dataAnalysis",
"agentDir": "C:\\Users\\Administrator\\.openclaw\\agents\\data-analyst\\agent",
"identity": {
"name": "data-analyst"
}
}
```
Canonical peer binding object:
```json
{
"agentId": "<agent-id>",
"match": {
"channel": "feishu",
"accountId": "main",
"peer": {
"kind": "group",
"id": "oc_xxx"
}
}
}
```
## Safety and Rollback
- Never delete agents unless explicitly requested.
- Before changing `bindings`, capture current `bindings` snapshot.
- If wrong route is applied, revert to previous binding set and re-validate.
- Prefer reversible, explicit changes and post-change verification.
## Why It Still Routes to `main`
- Binding did not match the real incoming `peer.id` (most common).
- `bindings[]` was written but gateway runtime did not reload the latest config.
- `match.accountId` mismatched current Feishu account key.
- Target agent exists but `agents.list[]` entry is malformed (missing required fields such as `identity` object expected by your convention).
- Message arrived in a different conversation than the configured group.
## References
- Command examples and rollback snippets: [commands.md](./references/commands.md)
- Chinese runbook and confirmation checklist: [usage-zh.md](./references/usage-zh.md)
- Auto-check script: [validate_feishu_bindings.py](./scripts/validate_feishu_bindings.py)Related Skills
openclaw-youtube
YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.
openclaw-search
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.
openclaw-media-gen
Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.
Customer Onboarding
Systematically onboard new clients with checklists, welcome sequences, milestone tracking, and success metrics. Reduce churn by nailing the first 90 days.
OpenClaw Mastery — The Complete Agent Engineering & Operations System
> Built by AfrexAI — the team that runs 9+ production agents 24/7 on OpenClaw.
Employee Onboarding Generator
Build a structured 90-day onboarding plan for any role. Covers pre-boarding, Day 1, Week 1, 30/60/90-day milestones, buddy assignments, and success metrics.
openclaw-safe-change-flow
Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.
jqopenclaw-node-invoker
统一通过 Gateway 的 node.invoke 调用 JQOpenClawNode 能力(file.read、file.write、process.exec、process.manage、system.run、process.which、system.info、system.screenshot、system.notify、system.clipboard、system.input、node.selfUpdate)。当用户需要远程文件读写、文件移动/删除、目录创建/删除、进程管理(列表/搜索/终止)、远程进程执行、命令可执行性探测、系统信息采集、截图采集、系统弹窗、系统剪贴板读写、输入控制(鼠标/键盘)、节点自更新、节点命令可用性排查或修复 node.invoke 参数错误时使用。
openclaw-stock-skill
使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。
openclaw-whatsapp
WhatsApp bridge for OpenClaw — send/receive messages, auto-reply agents, QR pairing, message search, contact sync
polymarket-openclaw-trader
Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.
openclaw-version-monitor
监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明