cache-refresh
Keeps idev skill caches fresh after source files are created, deleted, or renamed.
Skill by TheophilusChinomona
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/theophiluschinomona-cache-refresh
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cache-refresh
What's inside
- Skill name
cache-refresh- Description
- Keeps idev skill caches fresh after source files are created, deleted, or renamed. Use after structural file changes or when the user says refresh caches.
- License
- MIT
- Instructions
- 135 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Cache Refresh Skill
## Purpose
Keep all skill caches fresh by detecting when source files change and triggering targeted cache updates. Prevents stale data from causing wrong file paths, missing registrations, or outdated function line numbers.
## Activation
- **Incremental**: After Claude creates, deletes, or renames a file during a task
- **Full refresh**: When user says "refresh caches" or when caches are older than 7 days
Note: skills do not run at session start. The session-start hook surfaces cache ages;
this skill defines what to do when the user or another skill asks for a refresh
(for example, after the hook reports stale caches).
---
## How It Works
This skill does NOT use a file watcher daemon. Instead, it hooks into Claude's own actions — every time Claude creates or modifies a file, this skill updates the relevant caches incrementally.
---
## Phase 1: Track File Changes During Session
After Claude creates, renames, or deletes a source file, determine which caches are affected:
```
File change → Affected caches:
New .cs file (Entity) → file-index, backend-patterns (Function Index), post-creation-verify
New .cs file (Controller) → file-index, architecture-scanner (apiRoutes), backend-patterns
New .cs file (Service) → file-index, backend-patterns
New .tsx/.ts file → file-index, frontend-patterns (Function Index)
New .service.ts file → file-index, architecture-scanner (apiRoutes)
New .hook.ts file → file-index, frontend-patterns
New route added → architecture-scanner, file-index
DI registration changed → post-creation-verify (registration points may shift)
DbContext changed → post-creation-verify (registration points may shift)
Any file deleted → file-index (remove entry), pattern cache Function Index (remove entry)
```
---
## Phase 2: Incremental Update Rules
### After creating a new feature:
```
1. Add new files to file-index/index.md under the correct feature section
2. Add new API routes to architecture-scanner/cache.json apiRoutes
3. Add new function entries to pattern cache Function Index sections
4. Update post-creation-verify registration points if DI/DbContext files were modified
5. Update session-resume recentFiles.modified list
6. Update task-journal with completed task
```
### After modifying an existing file:
```
1. If function was added/removed → update Function Index entries
2. If DI file was modified → update post-creation-verify registration points
3. If route was added → update architecture-scanner apiRoutes
```
### After deleting a file:
```
1. Remove from file-index
2. Remove from architecture-scanner apiRoutes (if controller/service)
3. Remove function entries from the pattern cache Function Index
```
---
## Phase 3: Staleness Detection
When a refresh is requested (or the session-start hook has flagged old caches), check what is actually stale:
```
1. Read each cache's "generated" date
2. If older than 7 days → mark for full refresh
3. If git is available: run `git log --since="CACHE_DATE" --name-only --pretty=format:""`
→ Get list of files changed since cache was generated
→ If changed files overlap with cached paths → mark for targeted refresh
4. If no git: compare cache date only
```
### Staleness levels:
```
Fresh (< 1 day old, no conflicting changes): Use as-is
Stale (1-7 days, minor changes): Incremental update
Expired (> 7 days): Full rescan
```
---
## Phase 4: Full Refresh
When triggered by user ("refresh caches") or expiry:
```
1. Regenerate file-index/index.md (scan all features)
2. Regenerate architecture-scanner/cache.json (scan routes)
3. Regenerate backend-patterns function-index (scan key files)
4. Regenerate frontend-patterns function-index (scan key files)
5. Regenerate post-creation-verify/cache.json (rescan DI line numbers)
6. Regenerate build-check/cache.json (rescan build commands)
7. Update all "generated" dates
```
Run these as parallel agents for speed.
---
## Phase 5: Integration
```
After every file creation/modification by Claude:
1. cache-refresh determines which caches are affected
2. Updates them incrementally (add/remove entries)
3. No full rescan needed for single-file changes
When the session-start hook reports cache ages:From TheophilusChinomona/idev, MIT.
More from TheophilusChinomona/idev
- 0.521score
branch-sync
TheophilusChinomona
Syncs the current feature branch with the team base branch (merge base into feature) before creating a PR, resolving merge conflicts safely with build/test…
SkillBFreshness: BClaude Code +9 - 0.517score
browse
TheophilusChinomona
Interactive browser QA using xd://browser or (optionally) the gstack browse binary for headed mode.
SkillBFreshness: BClaude Code +9 - 0.516score
db-preflight
TheophilusChinomona
Scans DBScripts/ folder for unapplied database migrations and surfaces them before builds or at session start.
SkillBFreshness: BClaude Code +9 - 0.516score
env-preflight
TheophilusChinomona
Session environment sanity check — verifies cwd is the repo root, git auth is live, DB env vars are present, and reports active sandbox constraints.
SkillBFreshness: BClaude Code +9 - 0.516score
eval-harness
TheophilusChinomona
Evaluation framework for capability and regression evals with pass@k metrics.
SkillBFreshness: BClaude Code +9 - 0.516score
context-switching
TheophilusChinomona
Switches between development modes (dev, review, research) by loading the appropriate context.
SkillBFreshness: BClaude Code +9 - 0.516score
continuous-learning
TheophilusChinomona
Automatically extracts reusable patterns from sessions and saves them as learned skills.
SkillBFreshness: BClaude Code +9 - 0.513score
api-contract-validation
TheophilusChinomona
Discovers and validates API endpoints between frontend and backend.
SkillBFreshness: BClaude Code +9 - 0.513score
build-check
TheophilusChinomona
Auto-detects the project's build system and runs compile/type-check after file changes, auto-fixing straightforward errors (max 3 attempts).
SkillBFreshness: BClaude Code +9 - 0.508score
architecture-scanner
TheophilusChinomona
DEPRECATED — Use project-map, backend-patterns, and frontend-patterns instead.
SkillBFreshness: BClaude Code +9 - 0.508score
file-index
TheophilusChinomona
DEPRECATED — Use smart-context for feature-to-file lookups.
SkillBFreshness: BClaude Code +9 - 0.472score
auto-learning
TheophilusChinomona
Instinct-based learning system that observes sessions via hooks and evolves patterns into skills/commands/agents.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 12, 2026 (4 months ago)
- Last release
- Jun 25, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/TheophilusChinomona/idev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from TheophilusChinomona
- 0.521score
branch-sync
TheophilusChinomona
Syncs the current feature branch with the team base branch (merge base into feature) before creating a PR, resolving merge conflicts safely with build/test…
SkillBFreshness: BClaude Code +9 - 0.517score
browse
TheophilusChinomona
Interactive browser QA using xd://browser or (optionally) the gstack browse binary for headed mode.
SkillBFreshness: BClaude Code +9 - 0.516score
db-preflight
TheophilusChinomona
Scans DBScripts/ folder for unapplied database migrations and surfaces them before builds or at session start.
SkillBFreshness: BClaude Code +9 - 0.516score
context-switching
TheophilusChinomona
Switches between development modes (dev, review, research) by loading the appropriate context.
SkillBFreshness: BClaude Code +9 - 0.516score
continuous-learning
TheophilusChinomona
Automatically extracts reusable patterns from sessions and saves them as learned skills.
SkillBFreshness: BClaude Code +9 - 0.516score
env-preflight
TheophilusChinomona
Session environment sanity check — verifies cwd is the repo root, git auth is live, DB env vars are present, and reports active sandbox constraints.
SkillBFreshness: BClaude Code +9
Cite this page
cache-refresh skill. Agent Mart. https://agentmart.dev/skills/theophiluschinomona-cache-refresh (last updated 2026-10-24)