Feishu Cache Guardian for Openclaw

An automated configuration guard that protects Feishu API quotas by maintaining optimized cache settings within Openclaw Skills.

zhs0430-sudo
v1.0.0
Mar 5, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install feishu-cache-guardian

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-cache-guardian 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 Cache Guardian?

Feishu Cache Guardian is a specialized utility designed to solve a critical resource management issue for users of the Feishu channel in Openclaw Skills. By default, the system performs health checks every minute, which can consume up to 43,200 API calls per month—significantly exceeding the standard free tier of 10,000 calls. This skill ensures your environment remains within safe limits by enforcing a 60-minute cache policy.

Because system updates often overwrite core extension files, manually optimized settings are frequently lost. Feishu Cache Guardian acts as a persistent watchdog for your Openclaw Skills setup, monitoring the probe configuration and automatically reapplying optimizations whenever a reset is detected, ensuring long-term stability and cost-efficiency.

Feishu Cache Guardian Use Cases

  • Automatically repair Feishu API configurations after performing an upgrade to Openclaw Skills.
  • Prevent service interruptions caused by reaching Feishu API rate limits or monthly quotas.
  • Maintain consistent performance for team notifications without manual file editing.
  • Schedule routine configuration audits to ensure Openclaw Skills extensions remain optimized.

How Feishu Cache Guardian Works

  1. The skill identifies the target configuration file located within the OpenClaw extension directory.
  2. It scans the probe.ts file for specific TTL (Time To Live) constants related to Feishu health checks.
  3. If the script detects that the cache duration has reverted to the inefficient default values, it patches the file to 60 minutes for both success and error states.
  4. After applying the fix, the utility automatically restarts the Gateway service to ensure the changes take effect immediately within the Openclaw Skills environment.

Feishu Cache Guardian Setup

To perform a manual check and fix within your Openclaw Skills environment, execute the following command:

node ~/.openclaw/workspace/skills/feishu-cache-guardian/scripts/check-and-fix.js

For best results, it is highly recommended to automate this process using the cron functionality provided by Openclaw Skills:

openclaw cron add \
  --name "feishu-cache-check" \
  --schedule "0 9 * * *" \
  --command "node ~/.openclaw/workspace/skills/feishu-cache-guardian/scripts/check-and-fix.js"

Feishu Cache Guardian Data Schema & Taxonomy

The skill manages specific constants within the Feishu extension source code to optimize API traffic. The data organization is summarized below:

Constant Default Value Optimized Value Impact
PROBE_SUCCESS_TTL_MS 10 Minutes 60 Minutes Reduces success polling frequency
PROBE_ERROR_TTL_MS 1 Minute 60 Minutes Prevents API hammering during failures

Target Path: /opt/homebrew/lib/node_modules/openclaw/extensions/feishu/src/probe.ts

Feishu Cache Guardian Advanced Features

  • Smart Gateway Restart: Automatically detects configuration drift and restarts the service only when necessary.
  • Post-Upgrade Automation: Supports @reboot scheduling to fix files immediately after Openclaw Skills updates.
  • Efficiency Metrics: Achieves a 98.3% reduction in total API call volume (from 43,200 to 720 calls per month).
  • Non-Invasive Patching: Uses precise string replacement to maintain the integrity of the original source code.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*