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.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 481 · 2 current installs · 2 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
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.
What to consider before installing
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.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.1
Download zip
latestvk976b7kqysazv4w9xpf6gxqdfx817zjt

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

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

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…