Skip to content
Agentmart
Submit a tool

feishu-bot-refresh

Refresh Feishu bot identity information.

Skill by Arry8

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/arry8-feishu-bot-refresh

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Refresh Feishu bot identity information. Activate when user sends /refresh-bot-name or mentions refreshing bot name.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/feishu-bot-refresh

What's inside

Skill name
feishu-bot-refresh
Description
Refresh Feishu bot identity information. Activate when user sends /refresh-bot-name or mentions refreshing bot name.
License
MIT
Instructions
158 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts
  • Instructions call the network

Files (3)

  • README.md
  • SKILL.md
  • refresh-bot.sh

SKILL.md (first lines)

# Feishu Bot Identity Refresh

Refreshes the bot's identity information from Feishu API when requested by user.

## Trigger Conditions

Activate when user message contains:

- `/refresh-bot-name`
- `刷新机器人名称`
- `更新机器人信息`
- `refresh bot name`

## Execution Steps

### 1. Get Current Account Configuration

Read the current account's `app_id` and `app_secret` from `~/.openclaw/openclaw.json`:

```json
{
  "channels": {
    "feishu": {
      "accounts": {
        "dev-1": {
          "appId": "cli_a93e6ea211b89cd2",
          "appSecret": "xxx"
        }
      }
    }
  }
}
```

### 2. Get Tenant Access Token

Call Feishu API:

```bash
curl -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" \
  -H "Content-Type: application/json" \
  -d '{
    "app_id": "<appId>",
    "app_secret": "<appSecret>"
  }'
```

Response:

```json
{
  "code": 0,
  "tenant_access_token": "t-xxx",
  "expire": 7200
}
```

### 3. Query Bot Info

Call Feishu API:

```bash
curl -X GET "https://open.feishu.cn/open-apis/bot/v3/info" \
  -H "Authorization: Bearer <tenant_access_token>"
```

Response:

```json
{
  "code": 0,
  "bot": {
    "activate_status": 2,
    "app_name": "OCT10-开发 1",
    "avatar_url": "https://xxx",
    "open_id": "ou_xxx"
  }
}
```

### 4. Save to Identity File

Write to `~/.openclaw/agents/main/sessions/bot-identity.json`:

```json
{
  "feishu": {
    "appId": "<current_app_id>",
    "appName": "<app_name from API>",
    "openId": "<open_id from API>",
    "activateStatus": 2,
    "avatarUrl": "<avatar_url from API>",
    "queriedAt": "<ISO 8601 timestamp>"
  }
}
```

### 5. Reply to User

Confirm the refresh with formatted output:

```
✅ 机器人信息已刷新:

- **名称:** OCT10-开发 1
- **OpenID:** ou_xxx
- **激活状态:** 已激活
- **查询时间:** 2026-03-19 23:50:00
```

## Error Handling

| Error             | Response                                  |
| ----------------- | ----------------------------------------- |
| API call failed   | ❌ 刷新失败:{error message}              |
| Invalid token     | ❌ 刷新失败:凭证无效,请检查飞书应用配置 |
| File write failed | ❌ 刷新失败:无法保存配置文件             |

## Configuration

From Arry8/openclaw-edge, MIT.

More from Arry8/openclaw-edge

Signals

Stars
2
Forks
0
Open issues
10
Last commit (this folder)
Mar 20, 2026 (7 months ago)
Last release
Apr 10, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Arry8

Cite this page

feishu-bot-refresh skill. Agent Mart. https://agentmart.dev/skills/arry8-feishu-bot-refresh (last updated 2026-10-24)