← Back to Skills Marketplace
meichuanyi

Feishu Agent Skills

by meichuanyi · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
84
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install feishu-agent-skills
Description
Create and wire a new OpenClaw agent with a fixed workflow. Use when the user asks to create/add a new OpenClaw agent or says “我要创建一个新的 Agent”, automate mult...
README (SKILL.md)

OpenClaw Create Agent

Use this skill to create one new OpenClaw agent and finish routing/config updates in one pass.

This skill is Feishu-only. Do not use it for Telegram, Slack, Discord, or other channels.

Required Inputs

First align the user's target scenario, then collect fields. Ask only for missing required fields.

Scenario alignment question (must ask first):

  • Option A: create a new bot/app and map it to a new agent (routing_mode=account)
  • Option B: map an existing/new group to a new agent under one bot (routing_mode=peer)
Field Required Notes
agent_id yes lowercase letters, digits, - only
workspace yes use absolute path for project workspace
model no optional model override for this agent
routing_mode yes account or peer
channel no fixed to feishu

For routing_mode=account (one bot per agent), collect:

  • account_id (required)
  • app_id, app_secret, bot_name (optional but recommended)

For routing_mode=peer (single bot, multi-group), collect:

  • peer_kind (group or direct, required)
  • peer_id (required)
  • account_id (optional, narrows matching if provided)
  • if this is a new group, collect peer_id only after guided gates in Step 0.5

Workflow

  1. Align scenario (new bot per agent or multi-group per agent).
  2. For multi-group scenarios, run guided gates in Step 0.5.
  3. Read current config and backup.
  4. Create agent runtime with OpenClaw CLI.
  5. Upsert config for channel account, binding, and dmScope.
  6. Restart gateway and verify.
  7. Return a concise change summary.

Step 0: Align Requirement

Ask this first:

你是要哪一种?
1) 新建一个机器人,对应一个新 Agent(account 路由)
2) 已有一个机器人,在新群里绑定一个新 Agent(peer 路由)

Map answer:

  • option 1 -> routing_mode=account
  • option 2 -> routing_mode=peer

If answer is ambiguous, stop and clarify before editing config.

Step 0.5: Multi-Group Guided Gates

Apply this step when the user is doing multi-group multi-agent routing.

  1. Guide the user to create a new group and add the bot into that group.
  2. Pause and wait for explicit confirmation: 已创建群.
  3. Only after receiving 已创建群, guide the user to send one message in that group to generate logs.
  4. Pause and wait for explicit confirmation: 已发送.
  5. Only after receiving 已发送, check OpenClaw logs and extract chat_id (format oc_xxxxx).

Suggested command:

openclaw logs --follow

Expected signal in logs:

Received message from peer: { kind: "group", id: "oc_xxxxxxxxxxxxxxxx" }

Step 1: Precheck and Backup

Run:

test -f ~/.openclaw/openclaw.json
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak.$(date +%Y%m%d%H%M%S)

If config file is missing, stop and ask user to initialize OpenClaw first.

Step 2: Create Agent Runtime

Run OpenClaw CLI first (required):

openclaw agents add \x3Cagent_id> --workspace \x3Cworkspace> --non-interactive

If model is provided:

openclaw agents add \x3Cagent_id> --workspace \x3Cworkspace> --model \x3Cmodel> --non-interactive

Step 3: Upsert openclaw.json

Use the bundled script:

python3 scripts/upsert_openclaw_agent.py \
  --config ~/.openclaw/openclaw.json \
  --agent-id \x3Cagent_id> \
  --routing-mode \x3Caccount|peer> \
  [--account-id \x3Caccount_id>] \
  [--app-id \x3Capp_id>] \
  [--app-secret \x3Capp_secret>] \
  [--bot-name \x3Cbot_name>] \
  [--peer-kind \x3Cgroup|direct>] \
  [--peer-id \x3Cpeer_id>]

Run from this skill folder, or replace scripts/upsert_openclaw_agent.py with its absolute path.

Script behavior:

  • upsert channels.\x3Cchannel>.accounts.\x3Caccount_id> when account mode is used
  • upsert one binding for this agent
  • always enforce session.dmScope = per-account-channel-peer for multi-agent Feishu setup

Read references/routing-modes.md when routing choice is unclear.

Step 4: Restart and Verify

Run:

openclaw gateway restart
openclaw agents list --bindings

Validate:

  • target agent appears in list
  • binding points to expected channel/account or channel/peer

Step 5: Report Output

Return:

  • created/updated binding match
  • whether account entry was added/updated
  • whether dmScope changed
  • verification command results

Constraints

  • Preserve existing unrelated agents/accounts/bindings.
  • Reject route conflicts (same channel/account/peer route already used by another agent).
  • Avoid interactive prompts unless user explicitly asks for interactive mode.
  • Assume channel=feishu only.
  • In multi-group scenarios, do not continue past Step 0.5 until receiving 已创建群 and then 已发送.
Usage Guidance
Before installing or running: (1) Confirm the 'openclaw' CLI is installed and you intend to use it — the SKILL.md requires it even though metadata doesn't declare it. (2) Review the bundled script (scripts/upsert_openclaw_agent.py) yourself — it reads and overwrites ~/.openclaw/openclaw.json and will store appSecret/appId/botName there. (3) Run the script in dry-run mode first (--dry-run) to see proposed changes, and keep backups (the script can create one). (4) Check file permissions on ~/.openclaw/openclaw.json if you will store secrets there; consider using more secure secret storage if needed. (5) If you don't trust the skill source, perform these steps manually (use openclaw agents add and edit openclaw.json by hand) rather than granting the skill automatic execution.
Capability Analysis
Type: OpenClaw Skill Name: feishu-agent-skills Version: 1.0.0 The skill bundle is a legitimate utility designed to automate the creation and configuration of OpenClaw agents for the Feishu channel. It includes a Python script (scripts/upsert_openclaw_agent.py) that modifies the local configuration file (~/.openclaw/openclaw.json) and instructions in SKILL.md that use the OpenClaw CLI to manage agent runtimes. All actions, including file backups and configuration updates, are transparently documented and directly aligned with the stated purpose of the skill.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, and included script all target creating/updating OpenClaw agents for the Feishu channel — behavior is coherent. However, the skill's metadata lists no required binaries while the instructions explicitly require the 'openclaw' CLI to be present and used; that's an omission/mismatch in declared requirements.
Instruction Scope
The SKILL.md steps are narrowly scoped to OpenClaw agent creation: reading/backing up ~/.openclaw/openclaw.json, running openclaw CLI commands, following logs to extract peer IDs, and running the bundled Python script to upsert accounts/bindings/dmScope. No external network endpoints or unexpected data exfiltration are present in the instructions.
Install Mechanism
No install spec; this is instruction-only with a small included Python script. There are no downloads from external URLs and no packages installed automatically, so install risk is low.
Credentials
The skill requests sensitive values (appId/appSecret) as command-line arguments and will write them into ~/.openclaw/openclaw.json via the script. The registry declares no required env vars or primary credential, which is consistent with passing secrets as args, but users should be aware that secrets will be stored in the config file (potentially insecure depending on filesystem permissions).
Persistence & Privilege
The skill is not always-enabled and uses normal agent invocation. It does not request to modify other skills or system-wide agent settings beyond editing the user's OpenClaw config file, backing it up, and invoking OpenClaw CLI commands — privileges are limited to the user's filesystem and running CLI tools.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-agent-skills
  3. After installation, invoke the skill by name or use /feishu-agent-skills
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
OpenClaw Create Agent skill v1.0.0 - Introduces a new skill to create and wire up OpenClaw agents for Feishu with a fixed workflow. - Supports two routing modes: new bot per agent (`account`), or multi-group/peer routing under one bot (`peer`). - Implements guided user flows for multi-group setups, including verification steps and log inspection. - Automates config file backup, runtime creation, config upsert, and gateway restart. - Ensures scenario alignment and collects only the required fields per routing mode. - Restricts usage to Feishu channels only.
Metadata
Slug feishu-agent-skills
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Feishu Agent Skills?

Create and wire a new OpenClaw agent with a fixed workflow. Use when the user asks to create/add a new OpenClaw agent or says “我要创建一个新的 Agent”, automate mult... It is an AI Agent Skill for Claude Code / OpenClaw, with 84 downloads so far.

How do I install Feishu Agent Skills?

Run "/install feishu-agent-skills" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Feishu Agent Skills free?

Yes, Feishu Agent Skills is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Feishu Agent Skills support?

Feishu Agent Skills is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Feishu Agent Skills?

It is built and maintained by meichuanyi (@meichuanyi); the current version is v1.0.0.

💬 Comments