file-operation-optimization
Installation
SKILL.md
File Operation Optimization
Overview
Strategies for efficient file reading, caching, and operation planning. Reduces redundant file reads and improves code investigation efficiency.
Problem: Same files read 4-8 times in single tasks (e.g., GameScene.ts read multiple times), multiple grep searches on same files, no file content caching.
Solution: Cache file contents after first read, plan file operations upfront, batch related operations, use semantic search instead of multiple greps.
Impact: Reduce file operation overhead by 30-40%, improve code investigation efficiency.
File Caching Patterns
Pattern 1: Cache After First Read
Cache file contents in agent context after first read: