Prompt Caching
sickn33/agentic-awesome-skills
Caching strategies for LLM prompts including Anthropic prompt caching, response caching, and CAG (Cache Augmented Generation)
Display session efficiency report showing token savings, cache performance, and optimization recommendations.
$ npx skills add qf-studio/navigator --skill nav-stats -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install qf-studio/navigator nav-stats --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/qf-studio/navigator.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nav-stats .claude/skills/nav-stats && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "nav-stats" agent skill from https://github.com/qf-studio/navigator/tree/main/skills/nav-stats into .claude/skills/nav-stats/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nav-stats", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/qf-studio/navigator/tree/main/skills/nav-statsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add qf-studio/navigator --skill nav-stats -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install qf-studio/navigator nav-stats --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/qf-studio/navigator.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/nav-stats .agents/skills/nav-stats && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nav-stats" agent skill from https://github.com/qf-studio/navigator/tree/main/skills/nav-stats into .agents/skills/nav-stats/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nav-stats", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add qf-studio/navigator --skill nav-stats -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install qf-studio/navigator nav-stats --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/qf-studio/navigator.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/nav-stats .cursor/skills/nav-stats && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nav-stats" agent skill from https://github.com/qf-studio/navigator/tree/main/skills/nav-stats into .cursor/skills/nav-stats/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nav-stats", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/qf-studio/navigator.git --path skills/nav-stats--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add qf-studio/navigator --skill nav-stats -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install qf-studio/navigator nav-stats --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/qf-studio/navigator.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/nav-stats .gemini/skills/nav-stats && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nav-stats" agent skill from https://github.com/qf-studio/navigator/tree/main/skills/nav-stats into .gemini/skills/nav-stats/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nav-stats", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install qf-studio/navigator nav-statsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add qf-studio/navigator --skill nav-stats -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/qf-studio/navigator.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/nav-stats .github/skills/nav-stats && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nav-stats" agent skill from https://github.com/qf-studio/navigator/tree/main/skills/nav-stats into .github/skills/nav-stats/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nav-stats", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add qf-studio/navigator --skill nav-stats -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install qf-studio/navigator nav-stats --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/qf-studio/navigator.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/nav-stats .opencode/skills/nav-stats && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nav-stats" agent skill from https://github.com/qf-studio/navigator/tree/main/skills/nav-stats into .opencode/skills/nav-stats/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nav-stats", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nav-statsDisplay session efficiency report showing token savings, cache performance, and optimization recommendations.
Nav Stats is an agent skill from qf-studio/navigator. Display session efficiency report showing token savings, cache performance, and optimization recommendations. Use when user asks "show my stats", "how efficient am I?", "show session metrics", or wants to see Navigator's impact.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `functions/efficiency_scorer.py` and `functions/report_formatter.py`).
The repository describes itself as: Finish What You Start — Context engineering for Claude Code. Sessions last 20+ exchanges instead of crashing at 7. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3bb9eac. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadFrom allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
python3bashFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nav Stats loads about 2.7k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 649 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, ReadAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from qf-studio/navigator at commit 3bb9eac, republished under its MIT licence (© qf-studio). 649 words, ~2,660 tokens.
.claude/skills/nav-stats/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Show real-time efficiency reporting with baseline comparisons, making Navigator's value quantifiable and shareable.
Invoke this skill when the user:
DO NOT invoke if:
Verify Navigator is set up:
if [ ! -f ".agent/DEVELOPMENT-README.md" ]; then
echo "❌ Navigator not initialized in this project"
echo "Run 'Initialize Navigator' first"
exit 1
fiExecute the enhanced session statistics script:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
# Check if enhanced script exists
if [ ! -f "$PLUGIN_DIR/scripts/session-stats.sh" ]; then
echo "❌ Session stats script not found"
echo "Reinstall or update Navigator to restore scripts/session-stats.sh"
exit 1
fi
# Run stats script
bash "$PLUGIN_DIR/scripts/session-stats.sh"This script outputs shell-parseable variables:
BASELINE_TOKENS - Total size of all .agent/ docsLOADED_TOKENS - Actually loaded in session (estimated)TOKENS_SAVED - DifferenceSAVINGS_PERCENT - Percentage savedEFFICIENCY_SCORE - 0-100 scoreCACHE_EFFICIENCY - From OpenTelemetryCONTEXT_USAGE_PERCENT - Estimated context fillTIME_SAVED_MINUTES - Estimated time savedUse predefined function to calculate score:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
# Extract metrics from session-stats.sh
source <(bash "$PLUGIN_DIR/scripts/session-stats.sh")
# Calculate efficiency score using predefined function
EFFICIENCY_SCORE=$(python3 "$PLUGIN_DIR/skills/nav-stats/functions/efficiency_scorer.py" \
--tokens-saved-percent ${SAVINGS_PERCENT} \
--cache-efficiency ${CACHE_EFFICIENCY} \
--context-usage ${CONTEXT_USAGE_PERCENT})Use predefined function to format visual report:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
# Generate formatted report
python3 "$PLUGIN_DIR/skills/nav-stats/functions/report_formatter.py" \
--baseline ${BASELINE_TOKENS} \
--loaded ${LOADED_TOKENS} \
--saved ${TOKENS_SAVED} \
--savings-percent ${SAVINGS_PERCENT} \
--cache-efficiency ${CACHE_EFFICIENCY} \
--context-usage ${CONTEXT_USAGE_PERCENT} \
--efficiency-score ${EFFICIENCY_SCORE} \
--time-saved ${TIME_SAVED_MINUTES}Output Format:
╔══════════════════════════════════════════════════════╗
║ NAVIGATOR EFFICIENCY REPORT ║
╚══════════════════════════════════════════════════════╝
📊 TOKEN USAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Documentation loaded: 12,000 tokens
Baseline (all docs): 150,000 tokens
Tokens saved: 138,000 tokens (92% ↓)
💾 CACHE PERFORMANCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Cache efficiency: 100.0% (perfect)
📈 SESSION METRICS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Context usage: 35% (excellent)
Efficiency score: 94/100 (excellent)
⏱️ TIME SAVED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Estimated time saved: ~42 minutes
💡 WHAT THIS MEANS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Navigator loaded 92% fewer tokens than loading all docs.
Your context window is 65% available for actual work.
🎯 RECOMMENDATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Excellent efficiency - keep using lazy-loading strategy
✅ Context usage healthy - plenty of room for work
Share your efficiency: Take a screenshot! #ContextEfficiencyIf .agent/.nav-runtime-state.json carries a judge section with calls > 0, append one row:
Typed judge ({model}): {calls} calls | {failed} failed | {latency_last_ms} ms last, {latency_max_ms} ms max
axes: {overridden} overridden / {agreed} agreed / {undecided} undecidedSum the per-axis axes.<axis>.<outcome> counters for the three outcome totals. "Overridden"
means the judge changed a decision the keyword heuristic had made; "undecided" means the
answer fell inside the noul band or below the confidence floor and the heuristic answered.
Many undecided → the band is too wide for this project; many overrides on an axis that keeps
being wrong → tighten it or disable. Omit the row when the section is absent or calls is 0.
If .agent/.nav-runtime-state.json (schema 2) carries a tier1 section, append one row to the
report:
Tier-1 responder: {hits} zero-token answers | {false_positives} suspected false positivesA false positive = a Tier-1 hit followed by a near-identical re-prompt (the user wanted the model
after all). Rising false positives mean the exact-match table is intercepting prompts it should
not — suggest disabling the offending rule via tier1.rules.<id>: false. Omit the row when the
section is absent or tier1 is disabled.
Based on efficiency score, provide actionable advice:
If efficiency_score < 70:
⚠️ RECOMMENDATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Token savings below target (70%+)
→ Check: Are you loading more docs than needed?
→ Tip: Use navigator to find docs, don't load all upfront
Read more: .agent/philosophy/CONTEXT-EFFICIENCY.mdIf context_usage > 80%:
⚠️ RECOMMENDATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Context usage high (80%+)
→ Consider: Create context marker and compact
→ Tip: Compact after completing sub-tasks
Read more: .agent/philosophy/ANTI-PATTERNS.mdIf cache_efficiency < 80%:
⚠️ RECOMMENDATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Cache efficiency low (<80%)
→ Check: CLAUDE.md properly configured?
→ Tip: Ensure prompt caching enabled
Read more: .agent/philosophy/PATTERNS.md (Caching pattern)efficiency_scorer.pyCalculate Navigator efficiency score (0-100) based on:
Usage:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
python3 "$PLUGIN_DIR/skills/nav-stats/functions/efficiency_scorer.py" \
--tokens-saved-percent 92 \
--cache-efficiency 100 \
--context-usage 35Output: 94 (integer score)
report_formatter.pyFormat efficiency metrics into visual, shareable report.
Usage:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
python3 "$PLUGIN_DIR/skills/nav-stats/functions/report_formatter.py" \
--baseline 150000 \
--loaded 12000 \
--saved 138000 \
--savings-percent 92 \
--cache-efficiency 100 \
--context-usage 35 \
--efficiency-score 94 \
--time-saved 42Output: Formatted ASCII report (see Step 4)
Context Engineering Principle: Measurement validates optimization
From .agent/philosophy/PATTERNS.md:
"Measure to validate. Navigator tracks real metrics, not estimates."
This skill proves:
User says: "Show my stats"
Skill displays:
User can:
User following lazy-loading pattern, cache working perfectly:
Recommendation: Keep it up! Share your efficiency.
User loading too many docs upfront:
Recommendation: Review lazy-loading strategy. Load docs on-demand.
User not using Navigator patterns:
Recommendation: Read philosophy docs. Consider /nav:compact. Review CLAUDE.md.
After using this skill, users should:
Long-term impact:
This skill makes Navigator's value tangible and shareable.
© qf-studio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/nav-stats of qf-studio/navigator.
Open the folder on GitHubat commit 3bb9eac
Nav Stats next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nav Stats this skillqf-studio/navigator | 355 | — | ~2.7k | Automated safety check: Notes | MIT | |
| Prompt Cachingsickn33/agentic-awesome-skills | 47k | 2 repos | ~3.4k | Automated safety check: Pass | MIT | |
| Prompt Cachingdavila7/claude-code-templates | 33k | 5 repos | ~452 | Automated safety check: Pass | MIT | |
| Turborepo Cachingwshobson/agents | 40k | 9 repos | ~2k | Automated safety check: Notes | MIT | |
| OmniRoute LLM Cachediegosouzapw/OmniRoute | 75k | — | ~529 | Automated safety check: Pass | MIT | |
| Cachingzebbern/claude-code-guide | 4.7k | — | ~1.5k | Automated safety check: Pass | MIT |
sickn33/agentic-awesome-skills
Caching strategies for LLM prompts including Anthropic prompt caching, response caching, and CAG (Cache Augmented Generation)
davila7/claude-code-templates
Caching strategies for LLM prompts including Anthropic prompt caching, response caching, and CAG (Cache Augmented Generation) Use when: prompt caching, cache prompt, response cache, cag, cache…
wshobson/agents
Configures Turborepo pipelines and local or remote caching for monorepo builds, including Vercel remote cache, a self-hosted cache and cache-miss debugging.
diegosouzapw/OmniRoute
Documents OmniRoute's cache endpoints for reading cache statistics and clearing entries, statistics or the reasoning cache, with notes on TTL and similarity settings.
zebbern/claude-code-guide
Caching strategies — invalidation, TTL guidelines, cache keys, cache layers, and when not to cache.
affaan-m/ECC
Caches slow file processing results in Python keyed by a SHA-256 hash of the file content, so renames still hit the cache and edits invalidate it automatically.
qf-studio/navigator
Load Navigator documentation navigator when starting development session, resuming work, or beginning new feature.
qf-studio/navigator
Create REST/GraphQL API endpoint with validation, error handling, and tests.
qf-studio/navigator
Generate backend tests (unit, integration, mocks) for existing code.
qf-studio/navigator
Create database migration with schema changes and rollback. An agent skill from qf-studio/navigator.
qf-studio/navigator
Create React/Vue component with TypeScript, tests, and styles.
qf-studio/navigator
Generate frontend component tests (React Testing Library, Vue Test Utils, snapshot) for existing components.
Display session efficiency report showing token savings, cache performance, and optimization recommendations. Nav Stats is an agent skill from qf-studio/navigator. Display session efficiency report showing token savings, cache performance, and optimization recommendations.
Nav Stats fits situations like: user asks show my stats; how efficient am I?; show session metrics; wants to see Navigators impact.
Run `npx skills add qf-studio/navigator --skill nav-stats -a claude-code`. Or copy the skill folder (skills/nav-stats in qf-studio/navigator) into .claude/skills/nav-stats in your project. Claude Code loads it when a task matches its description.
Run `npx skills add qf-studio/navigator --skill nav-stats -a codex`. Or copy the skill folder (skills/nav-stats in qf-studio/navigator) into .agents/skills/nav-stats in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add qf-studio/navigator --skill nav-stats -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nav-stats, .gemini/skills/nav-stats, .github/skills/nav-stats and .opencode/skills/nav-stats in your project.
Going by SKILL.md and its folder, Nav Stats needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and bash). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash, Read.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Nav Stats is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nav Stats: Prompt Caching (sickn33/agentic-awesome-skills, 47k stars), Prompt Caching (davila7/claude-code-templates, 33k stars), Turborepo Caching (wshobson/agents, 40k stars) and OmniRoute LLM Cache (diegosouzapw/OmniRoute, 75k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
qf-studio (a GitHub organization) maintains it in qf-studio/navigator, which has 355 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 8, 2026.
Source: qf-studio/navigator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.