Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

responses-third-party-prompt-cache-patch响应第三方提示缓存补丁

Agent Skill

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

总安装

3,481

周安装

148

GitHub Stars

公开资料未说明

下载量

1,220
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:responses-third-party-prompt-cache-patch(响应第三方提示缓存补丁)
来源仓库:https://github.com/tsunheimat/responses-third-party-prompt-cache-patch
安装命令:
openclaw skills install responses-third-party-prompt-cache-patch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install responses-third-party-prompt-cache-patch

简介

该技能修补 OpenClaw dist 包,使第三方兼容端点支持保留 Prompt_cache_key 和 retention 设置。

  • 适用于 OpenClaw 环境,解决与外部 API 的提示缓存兼容性问题。
  • 需在已安装特定版本基础上应用补丁,操作具有潜在风险。
  • 使用前务必确认当前环境与目标兼容性,建议备份原有配置。
  • 仅建议在明确需要第三方集成且官方不支持的情况下使用。

SKILL.md

name
responses-third-party-prompt-cache-patch
description
Patch an installed OpenClaw dist bundle so third-party OpenAI-compatible Responses endpoints keep prompt_cache_key and prompt_cache_retention instead of having them stripped. Use when the user wants a local patch on a machine running OpenClaw, not an upstream refactor or config change, and needs a workflow with dry-run, backup, rollback, syntax validation, and upgrade-aware reapply.

Responses Third Party Prompt Cache Patch

Patch the installed OpenClaw dist bundle so shouldStripResponsesPromptCache(model) stops deleting prompt_cache_key and prompt_cache_retention for third-party OpenAI-compatible Responses endpoints.

Source: https://github.com/tsunheimat/openclaw-responses-prompt-cache-patch

Quick install for OpenClaw

clawhub install responses-third-party-prompt-cache-patch --workdir ~/.openclaw/workspace

Risks

  • Write directly into the OpenClaw installation directory under dist/.
  • Require Python 3 and Node.js on the target machine.
  • Need a gateway restart after apply or rollback for the change to take effect.

Quick start

Run from this skill directory:

python3 scripts/patch_prompt_cache.py --dry-run
python3 scripts/patch_prompt_cache.py
openclaw gateway restart

Roll back

python3 scripts/revert_prompt_cache.py
openclaw gateway restart

Target selection

  • Default to the currently installed OpenClaw root by resolving the openclaw executable.
  • Accept --root /path/to/openclaw to patch a copied fixture or a different installation.
  • Scan dist/pi-embedded-*.js first, then fall back to other dist/*.js bundles only if the target function moved.

What the scripts do

scripts/patch_prompt_cache.py

  • Support --dry-run
  • Create timestamped backups before writing
  • Apply a narrow patch only inside shouldStripResponsesPromptCache(model)
  • Run node --check after writing
  • Auto-restore the fresh backup if syntax validation fails
  • Detect already-patched bundles and upgrade-style reapply situations

scripts/revert_prompt_cache.py

  • Restore the latest matching backup for each currently patched bundle
  • Support --dry-run
  • Validate restored files with node --check

Recommended verification flow

  1. Run --dry-run on the real installation.
  2. Copy the target bundle into a fixture and run --root <fixture> for real apply testing.
  3. Run apply again to confirm idempotency.
  4. Run rollback on the same fixture.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.36%
按下载量换算1,200

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills