一键导入
prompt-cache-optimizer
审计并优化 LLM 提示缓存命中率、输入 token、延迟与调用成本。用于用户要求“优化缓存命中”“降低 token 成本”“审计 LLM 调用”“提示词缓存优化”“优化 AI 调用费用”,或需要为任意 agent profile 与应用代码建立可观测性和固定回归样本时。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
审计并优化 LLM 提示缓存命中率、输入 token、延迟与调用成本。用于用户要求“优化缓存命中”“降低 token 成本”“审计 LLM 调用”“提示词缓存优化”“优化 AI 调用费用”,或需要为任意 agent profile 与应用代码建立可观测性和固定回归样本时。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
维护 .learnings/ 经验库,把过多或反复出现的学习记录、错误日志、铁律失效问题聚类诊断,追溯并修改对应 skill、模板、校验脚本或项目规则;修复并验证后再归档或移除已解决记录;同时检查 .agents/skills 与 .claude/skills 的共享功能同步,防止更新 Codex 后 Claude Code 丢失对应能力。用户提到 learnings 太多、错误反复犯、清理经验库、维护自我学习、压缩错误日志、从错误中修技能、同步 Codex 和 Claude Code 技能时触发。
维护 .learnings/ 经验库,把过多或反复出现的学习记录、错误日志、铁律失效问题聚类诊断,追溯并修改对应 skill、模板、校验脚本或项目规则;修复并验证后再归档或移除已解决记录;同时检查 .agents/skills 与 .claude/skills 的共享功能同步,防止更新 Codex 后 Claude Code 丢失对应能力。用户提到 learnings 太多、错误反复犯、清理经验库、维护自我学习、压缩错误日志、从错误中修技能、同步 Codex 和 Claude Code 技能时触发。
技能注册表同步工具。扫描任意 agent skill 目录中的 */SKILL.md 并自动更新对应 skill-invocation.md 中的技能列表表格。用于新增、修改或删除本地技能后同步注册表。触发词:同步注册表、更新技能列表、sync skill registry、update skill registration、刷新技能列表、同步技能表格。
Create or retrofit reusable named workflow state machines for multi-step agent projects. Use when a project needs recoverable workflow state files, multiple workflow definitions, phase gates, restart-safe agent workflows, explicit skipped/blocked states, workflow routing rules, or reusable workflow templates across repositories.
审计并优化 LLM 提示缓存命中率、输入 token、延迟与调用成本。用于用户要求“优化缓存命中”“降低 token 成本”“审计 LLM 调用”“提示词缓存优化”“优化 AI 调用费用”,或需要为任意 agent profile 与应用代码建立可观测性和固定回归样本时。
Audit a Git repository for exposed API keys, tokens, passwords, private keys, and other credentials without printing their values. Use when asked to check repository security, scan for leaked secrets, review files before committing or pushing, investigate a credential leak, or check Git history after a possible exposure.
| name | prompt-cache-optimizer |
| description | 审计并优化 LLM 提示缓存命中率、输入 token、延迟与调用成本。用于用户要求“优化缓存命中”“降低 token 成本”“审计 LLM 调用”“提示词缓存优化”“优化 AI 调用费用”,或需要为任意 agent profile 与应用代码建立可观测性和固定回归样本时。 |
以项目真实的提示构造、调用日志和回归样本为依据优化缓存;不要把缩短提示词或删除必要上下文误当成优化。
scripts/prompt-cache-bootstrap.sh 安装或检查规则、调用事件 schema 与回归样本模板。references/measurement.md。assets/llm-usage-event.schema.json 作为调用日志字段合同。assets/prompt-cache-regression-cases.json 创建脱敏、稳定的回归样本。git status --short before editing.bash scripts/prompt-cache-bootstrap.sh --check --platform both --target <target-project>
bash scripts/prompt-cache-bootstrap.sh --apply --platform both --target <target-project>
both with codex or claude.--platform none --agent name,agent_dir,entry_file.request_type, template_id, template_version, and model.references/measurement.md before adding telemetry or interpreting cache metrics.