Feishu Probe Optimizer for Openclaw

A technical optimization skill designed to minimize Feishu API consumption by extending probe cache durations in OpenClaw.

bobbycats
v1.0.0
Mar 5, 2026
1
806
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install feishu-probe-optimize

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install feishu-probe-optimize using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Feishu Probe Optimizer?

The Feishu Probe Optimizer is a specialized configuration workflow for Openclaw Skills that addresses the high frequency of health check calls made to the Feishu Bot API. By default, the system validates bot connectivity every minute, which can quickly exceed the monthly 50,000 call free tier limit, especially when managing multiple accounts. This skill provides a safe and effective way to modify the underlying TypeScript source code to increase cache Time-To-Live (TTL) values.

By implementing this optimization, developers can ensure their Openclaw Skills remain functional without hitting rate limits or incurring unnecessary costs. The process involves modifying specific constants in the extension source and performing a comprehensive build to ensure all plugins remain intact and operational.

Feishu Probe Optimizer Use Cases

  • Preventing Feishu Bot API quota exhaustion during routine health checks.
  • Scaling OpenClaw instances to support 5+ Feishu accounts without exceeding free tier limits.
  • Improving service stability by reducing the frequency of external API dependencies for status monitoring.

How Feishu Probe Optimizer Works

  1. Locate the source configuration file responsible for the Feishu extension probe logic.
  2. Adjust the PROBE_SUCCESS_TTL_MS and PROBE_ERROR_TTL_MS constants to extend the cache duration.
  3. Execute a full workspace compilation using pnpm to generate updated build artifacts.
  4. Verify that the distribution directory contains all required extension files to prevent service crashes.
  5. Restart the gateway service via systemd to apply the new high-efficiency cache settings.

Feishu Probe Optimizer Setup

Step 1: Locate the Configuration

find ~/.openclaw/workspace/openclaw/extensions/feishu/src -name "probe.ts"

Step 2: Update TTL Constants

Edit probe.ts and change the default values:

// Success: 10 min -> 24 hours
const PROBE_SUCCESS_TTL_MS = 24 * 60 * 60 * 1000;
// Error: 1 min -> 1 hour
const PROBE_ERROR_TTL_MS = 60 * 60 * 1000;

Step 3: Full Rebuild

Do not use filters; a full build is required to preserve all Openclaw Skills extensions.

cd ~/.openclaw/workspace/openclaw
pnpm build

Step 4: Restart Service

systemctl --user restart openclaw-gateway

Feishu Probe Optimizer Data Schema & Taxonomy

The optimization impacts the following internal parameters and metadata within the Feishu extension:

Parameter Description Default Value Optimized Value
PROBE_SUCCESS_TTL_MS TTL for successful bot info retrieval 600,000 ms (10m) 86,400,000 ms (24h)
PROBE_ERROR_TTL_MS TTL for failed bot info retrieval 60,000 ms (1m) 3,600,000 ms (1h)
API Endpoint Target URL for health checks /open-apis/bot/v3/info N/A
Build Path Target directory for artifacts dist/extensions/feishu/ N/A

Feishu Probe Optimizer Advanced Features

  • Multi-Account Scalability: The cache mechanism automatically scales across all configured Feishu accounts within Openclaw Skills.
  • 99.93% Efficiency Gain: Drastically reduces monthly calls from 129,600 down to just 90 for a three-account setup.
  • Fail-Safe Compilation: Enforces full build patterns to prevent 'plugin not found' errors common in partial builds.
  • Persistence Strategy: Documentation on how to restore optimizations after major OpenClaw version updates that overwrite source files.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*