caching-strategy

Cache repeated file reads, searches, and network lookups with TTL and mtime invalidation.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill caching-strategy-sjdjdiejdrirhdkjej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caching-strategy
Source: https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor/tree/main/.claude/skills/caching-strategy
Command: npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill caching-strategy-sjdjdiejdrirhdkjej

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates redundant work by caching expensive, repeated operations across the Claude Code Conductor workflow, reducing overall execution time.

Core Features & Use Cases

  • File read cache with mtime-based invalidation for docs and specs.
  • Grep/glob search caching to prevent repeated codebase scans.
  • Network request caching for npm/web metadata and doc lookups.
  • Token count caching to avoid recomputing token budgets each phase.
  • Automatic invalidation triggers on file changes and TTL expiry.
  • Lightweight monitoring hooks to measure hit rate and time savings.

Quick Start

Apply the caching-strategy to your project by enabling it in your workflow, then run a plan/install cycle to warm the cache and monitor metrics. Use a representative file like docs/project/api-strategy.md to verify cache hits on subsequent reads. Tune TTLs and invalidation rules based on observed hit rates and freshness requirements.

Frequently Asked Questions about caching-strategy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does caching expensive codebase searches and file reads improve workflow execution time?

Caching codebase searches and file reads improves workflow execution time by storing previous results and reusing them on subsequent calls. This eliminates redundant disk I/O and repeated grep or glob scans across the project.

How do I cache npm package metadata and web lookups during my development workflow?

You can cache npm package metadata and web lookups by applying a network caching strategy with defined TTLs. This stores fetched doc and package data locally, preventing duplicate external requests during plan and implement phases.

What is the best way to avoid recomputing token counts across different workflow phases?

The best way to avoid recomputing token counts is implementing a computed value cache. By caching token budget calculations across plan, implement, and tasks phases, you prevent repeated processing overhead and reduce execution time.

How does mtime-based file invalidation keep cached documentation fresh?

Mtime-based file invalidation checks the modification time of files like docs and specs against the cached timestamp. If the file changes, the cache automatically invalidates and fetches fresh data to ensure correct results.

Can I monitor cache hit rates and time savings for codebase operations?

Yes, you can monitor cache hit rates and time savings using lightweight monitoring hooks. These hooks measure how often cached data is successfully retrieved versus fetched fresh, allowing you to tune TTLs and invalidation rules effectively.

When should I not use TTL-based network caching for web metadata lookups?

You should avoid TTL-based network caching when you require real-time data accuracy for web metadata lookups. If the external package documentation changes frequently and stale data impacts correctness, strict TTLs may serve outdated information.