← All skills
prompt-caching-strategy
80 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
By affaan-m/ECC (GitHub) · coding · 300,508 stars · scanned at commit d2ef268
Optimize LLM prompt caching hit rate to reduce API costs and improve latency. Analyzes prompt structure, identifies cacheable vs non-cacheable content, and recommends restructuring to maximize cache reuse. TRIGGER when: user says "prompt cache", "cache hit rate", "reduce LLM cost", "optimize token usage", "cheaper LLM calls", or asks about prompt caching strategies for OpenAI/Anthropic/other providers. DO NOT TRIGGER when: user just wants to optimize a single prompt's quality (use prompt-optimi…
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
The author does not mention this. It runs automatically when the plugin is installed. Expected for a coding skill.
Found in 44 places.
Show 17 more
- scripts/hooks/session-activity-tracker.js, line 13
const { spawnSync } = require('child_process'); - scripts/hooks/session-activity-tracker.js, line 346
const result = spawnSync('git', args, { - scripts/lib/llm-summary.js, line 15
const { spawnSync } = require('child_process'); - scripts/lib/llm-summary.js, line 180
const result = spawnSync('claude', ['--model', getLLMModel(), '-p'], { - scripts/lib/observer-sessions.js, line 5
const { spawnSync } = require('child_process'); - scripts/lib/observer-sessions.js, line 45
const result = spawnSync('git', args, { - scripts/lib/utils.js, line 10
const { execSync, spawnSync } = require('child_process'); - scripts/lib/utils.js, line 491
const result = spawnSync('where', [cmd], { stdio: 'pipe' }); - scripts/lib/utils.js, line 494
const result = spawnSync('which', [cmd], { stdio: 'pipe' }); - scripts/lib/utils.js, line 528
const result = execSync(cmd, { - .mcp.json, line 4
"command": "npx", - hooks/README.md, line 295
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const i=JSON.parse(d);const p=i.tool_input?.file_path||'';if(/\\.py$ - hooks/codex-hooks.json, line 10
"command": "node -e \"if(!process.env.PLUGIN_ROOT)throw new Error('Missing Codex PLUGIN_ROOT');process.env.CLAUDE_PLUGIN_ROOT=process.env.PLUGIN_ROOT;const p=re - hooks/hooks.json, line 9
"command": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;if( - hooks/hooks.json, line 18
"command": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;if( - hooks/hooks.json, line 28
"command": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;if( - hooks/hooks.json, line 37
"command": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;if(
and 24 more places
Downloads and installs other software
The author does not mention this. It runs automatically when the plugin is installed.
Found in 2 places.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'prompt-caching-strategy' ] || [ -L ~/.agents/skills/'prompt-caching-strategy' ]; then echo 'A skill folder named prompt-caching-strategy already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/affaan-m/ECC' "$d" && git -C "$d" checkout --quiet 'd2ef2680594f9a17526a6e1a2e18b3d242c5d17b' -- 'skills/prompt-caching-strategy' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/prompt-caching-strategy' ~/.agents/skills/'prompt-caching-strategy' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'prompt-caching-strategy' ~/.claude/skills/'prompt-caching-strategy' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for affaan-m/ECC shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/affaan-m/ECC/)
Score history
| Date | Version | Score |
|---|
| 2026-11-08 | d2ef268 | 80 |
| 2026-11-06 | b38be6a | 80 |
Also found in
Identical copies of this skill exist at:
- affaan-m/everything-claude-code/skills/prompt-caching-strategy