← Back to Skills Marketplace
bryan-chx

Feishu Api Cache Fix

by bryan-chx · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
650
Downloads
0
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install feishu-api-cache-fix
Description
Reduces Feishu API calls from every minute to once every 2 hours by caching bot status, saving 99% of API quota usage.
README (SKILL.md)

feishu-api-cache-fix

Fix Feishu API rate limit issue

Version: 1.0.1 Author: @bryan-chx Tags: feishu, api, fix, performance

Problem

Gateway calls Feishu API every minute, causing rate limit exhaustion.

Solution

Add 2-hour cache to probe.ts

Usage

sudo bash fix_feishu_cache.sh
Usage Guidance
Do not run sudo scripts from an unknown source without review. This skill overwrites /usr/local/lib/node_modules/openclaw/extensions/feishu/src/probe.ts (it makes a .bak copy first) and requires root to do so. If you want this change: 1) Inspect fix_feishu_cache.sh line-by-line and confirm the target path matches your installation location; 2) Check the created backup (probe.ts.bak) before proceeding; 3) Prefer testing in a non-production environment or applying the change manually via a code review/patch so you can merge safely; 4) Consider modifying the extension in a package-managed way (fork or patch) rather than overwriting global node_modules; 5) Only proceed if you trust the author/source — the script could introduce breaking behavior even if it contains no network calls.
Capability Analysis
Type: OpenClaw Skill Name: feishu-api-cache-fix Version: 1.0.1 The skill bundle aims to fix a Feishu API rate limit issue by modifying a specific OpenClaw internal file (`probe.ts`) to add a 2-hour cache. The `fix_feishu_cache.sh` script backs up the original file and then overwrites it with new TypeScript code that implements the caching logic. The `SKILL.md` explicitly states the need for `sudo` for this system-level modification. There is no evidence of data exfiltration, malicious execution, persistence, prompt injection attempts against the agent, or obfuscation. All actions are transparent and directly align with the stated purpose of fixing a rate limit issue.
Capability Assessment
Purpose & Capability
The name/description (reduce Feishu API calls by caching probe results) align with the included script, which replaces probe.ts with a caching implementation. However, the skill does not declare that it will write to OpenClaw's installation path (/usr/local/lib/node_modules/openclaw/extensions/feishu/src/probe.ts) or that it requires elevated privileges to do so. That mismatch between claimed 'no requirements' and the script's filesystem modification is noteworthy.
Instruction Scope
SKILL.md tells the user to run sudo bash fix_feishu_cache.sh. The script makes an unconditional backup and then overwrites the feishu probe.ts file at a hardcoded global node_modules path. It does not validate the existing file's contents, confirm compatibility, or limit changes to a local/test environment. While the change is narrowly scoped (no network/exfiltration), overwriting another extension's source file is broad in impact and could break or subvert the Feishu integration.
Install Mechanism
This is an instruction-only skill with no install spec (low install-surface). However, the included shell script writes to a system-installed node_modules path and requires sudo, so although there is no packaged installer, the script will persist changes on disk — treat as higher-risk than a purely read-only instruction.
Credentials
The skill declares no required environment variables or credentials, which fits the simple caching change. But it implicitly requires filesystem write access to OpenClaw's installation and root privileges (the SKILL.md calls sudo). The absence of any declared config paths or privilege requirement is an omission that reduces transparency.
Persistence & Privilege
The script modifies another extension's source file in the global node_modules tree — this is persistent and changes behavior of the Feishu integration beyond the skill's own files. The skill does not request 'always: true', but its disk modification of other component code is a privilege/impact that should be highlighted and approved explicitly by the operator.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-api-cache-fix
  3. After installation, invoke the skill by name or use /feishu-api-cache-fix
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Updated documentation in SKILL.md for clarity and brevity. - Simplified instructions and usage steps. - English translation of SKILL.md content; removed Chinese descriptions. - No changes to core functionality.
v1.0.0
Summary: Added 2-hour cache to reduce Feishu API calls and prevent quota exhaustion. - Introduced caching in probe.ts to limit Feishu API calls to once every 2 hours. - Provided fix script (fix_feishu_cache.sh) and patch backup (probe.ts.patch). - Reduced API usage dramatically, saving 99% of quota. - Updated documentation with problem description, solution, and step-by-step fix instructions.
Metadata
Slug feishu-api-cache-fix
Version 1.0.1
License
All-time Installs 2
Active Installs 2
Total Versions 2
Frequently Asked Questions

What is Feishu Api Cache Fix?

Reduces Feishu API calls from every minute to once every 2 hours by caching bot status, saving 99% of API quota usage. It is an AI Agent Skill for Claude Code / OpenClaw, with 650 downloads so far.

How do I install Feishu Api Cache Fix?

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

Is Feishu Api Cache Fix free?

Yes, Feishu Api Cache Fix is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Feishu Api Cache Fix support?

Feishu Api Cache Fix is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Feishu Api Cache Fix?

It is built and maintained by bryan-chx (@bryan-chx); the current version is v1.0.1.

💬 Comments