Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Feishu Bot Refresh

ASecurity

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

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
toolsbashapi

Works with

cliapi

Security Analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned 9/29/2026

$npx -y skills add Arry8/openclaw-edge --skill feishu-bot-refresh --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feishu Bot Refresh?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Feishu Bot Refresh
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arry8-feishu-bot-refresh/badge)](https://www.skillsdirectory.com/skills/arry8-feishu-bot-refresh)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: feishu-bot-refresh
description: |
  Refresh Feishu bot identity information. Activate when user sends /refresh-bot-name or mentions refreshing bot name.
---

# 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

```yaml
channels:
  feishu:
    tools:
      bot_refresh: true # default: true
```

## Permissions

Required: No special permissions needed (uses app's internal token)

## Examples

### User sends command

```
/refresh-bot-name
```

### Bot responds

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

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

## Notes

- This is a user-triggered action, not automatic
- Cache does not expire automatically
- User should run this after changing bot name in Feishu platform
- Each account has its own identity file

Attribution

Arry8Arry8
View sourceSee grades on GitHubMore from Arry8 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Create and edit uCoz homepage landing pages via MCP: custom templates, hero sections, lead forms, navigation menus, SEO, and responsive layout. Includes a visual design system (style selection, layout/grid, section recipes, typography/spacing, color tokens, component states, icons, modern CSS/JS, motion, imagery, social proof, copy/voice, accessibility). Uses ucoz-mcp tools for templates, site file uploads, and site modules.

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953191 votes

Pptx

Presentation toolkit (.pptx). Create/edit slides, layouts, content, speaker notes, comments, for programmatic presentation creation and modification.

471861 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes
View all in tools →