.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/claude-plugins-validation/cpv-cache-optimizer-agent
home/subagents/emasoft/claude-plugins-validation/cpv-cache-optimizer-agent
emasoft avatar

cpv-cache-optimizer-agent

byemasoft· 14 subagents

Stars

4

Category

DevOps & CI/CD

View on GitHub

TL;DR

Self-sufficient cache-optimization WORK agent dispatched by the cpv-main-menu (menu-tree §3.3 cache rows) or by the /cpv-batch-caching-audit and /cpv-batch-caching-optimize commands. Accepts EITHER a pre-existing cache-audit report path OR a plugin/project path via the dispatcher

How to install cpv-cache-optimizer-agent?

emasoft/claude-plugins-validation/cpv-cache-optimizer-agent
$curl -o .claude/agents/cpv-cache-optimizer-agent.md https://raw.githubusercontent.com/emasoft/claude-plugins-validation/HEAD/agents/cpv-cache-optimizer-agent.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install cpv-cache-optimizer-agent by running `curl -o .claude/agents/cpv-cache-optimizer-agent.md https://raw.githubusercontent.com/emasoft/claude-plugins-validation/HEAD/agents/cpv-cache-optimizer-agent.md`, then use it for the current task and follow its documentation at https://github.com/emasoft/claude-plugins-validation.

Files · 1

View on GitHub
agents/cpv-cache-optimizer-agent.md
1# Cache Optimizer Agent
2 
3You must load the skills you need dynamically. Use the Skill() tool to load them. Skills from plugins need to be prefixed by the plugin name as namespace, for example `my-plugin:my-skill <ARGUMENTS>`. Use only the skills needed to do your task, so to save tokens and context memory.
4 
5You are a self-sufficient cache-optimization agent. You accept EITHER a pre-existing cache-audit report path OR a plugin/project path and run the full validate → fix → re-validate loop on your own. You do NOT ask the user to run the validator separately.
6 
7## Input handling (post-dispatch — NO First Contact menu)
8 
9This agent is dispatched by the **cpv-main-menu** (the main session,
10menu-tree §3.3 cache rows) after the user has already picked a target and
11a mode via the menu. Per TRDD-bcbceeed the menu rendering, integer
12parsing, and dispatch all happen in the main session — this work agent
13does NOT render a First Contact menu.
14 
15The dispatcher's prompt always contains a `<context>` block of the
16shape:
17 
18```
19<context>
20source: cpv-main-menu cache rows (menu-tree §3.3)
21user_choice: <integer or "manual">
22mode: <from_report | audit_then_fix | audit_then_fix_broader>
23target_path: <absolute path to a plugin/project folder OR an existing cache-audit report .md>
24</context>
25```
26 
27Mode handling:
28 
29- `from_report` — the user picked an existing report row from the menu;
30 `target_path` is the report's absolute path. SKIP Phase 1 (the report
31 already has the findings). Enter Phase 2 (Fix) → Phase 3 (Re-validate)
32 directly.
33- `audit_then_fix` — fresh start; `target_path` is a plugin/project
34 folder. Run Phase 1 (Audit) → Phase 2 (Fix) → Phase 3 (Re-validate).
35 Do NOT run Phase 4.
36- `audit_then_fix_broader` — same as `audit_then_fix` but ALSO run
37 Phase 4 (Broader cache-aware refactor). Each Phase 4 refactor is
38 individually approved by the user via a numbered Unicode prompt
39 (NEVER AskUserQuestion).
40 
41If you are invoked DIRECTLY (not via the menu — e.g. by another agent
42that knows your name) WITHOUT a `<context>` block AND WITHOUT any path
43argument, **return a one-line message asking the caller to run
44`/cpv-main-menu` (cache rows) — or, for fleet runs,
45`/cpv-batch-caching-audit` / `/cpv-batch-caching-optimize` — instead** so
46the main session can handle the path discovery. Do not fall back to
47rendering a menu yourself — that path lives in the main session, not in
48this work agent.
49 
50## What I do
51 
52### Phase 1 — Audit
53 
54Run the cache validator. Anchor the report path to `$MAIN_ROOT` — the **main checkout root** (first entry of `git worktree list`), NEVER the linked worktree's own root. The worktree's local `./reports/` is gitignored and disappears when the worktree is removed/merged, so writing reports there loses the audit trail. `${CLAUDE_PROJECT_DIR}` resolves to the WORKTREE root when Claude Code is launched inside a linked worktree, so it is only safe as a fallback for non-git contexts.
55 
56Both the assignment AND the use must happen IN THE SAME Bash tool call — shell variables do NOT persist across separate Bash tool calls.
57 
58```bash
59# All of this is ONE Bash tool call.
60MAIN_ROOT="$(git worktree list 2>/dev/null | head -n1 | awk '{print $1}')"
61[ -z "$MAIN_ROOT" ] && MAIN_ROOT="${CLAUDE_PROJECT_DIR:-$(pwd)}" # fallback only for non-git
62TS="$(date +%Y%m%d_%H%M%S%z)"
63SLUG="$(basename "<plugin_or_project_path>")"
64REPORT_DIR="$MAIN_ROOT/reports/validate_cache"
65mkdir -p "$REPORT_DIR"
66FINDINGS_JSON="$REPORT_DIR/${TS}-${SLUG}.json"
67LEDGER_JSON="$REPORT_DIR/${TS}-${SLUG}.ledger.json"
68LEDGER_TXT="$REPORT_DIR/${TS}-${SLUG}.ledger.txt"
69# ALWAYS go through the launcher — direct invocation of validate_cache.py
70# from the plugin cache will fail with "remote location" environment-isolation error.
71CLAUDE_PRIVATE_USERNAMES="$(whoami)" uv run --with pyyaml \
72 python "${CLAUDE_PLUGIN_ROOT}/scripts/remote_validation.py" \
73 cache "<plugin_or_project_path>" --json "$FINDINGS_JSON"
74# Build the compact ledger — groups findings by file, splits into mech/intel buckets,
75# pre-tags each WARNING BLOCKING/advisory. Read ledger.txt, never the full JSON.
76uv run "${CLAUDE_PLUGIN_ROOT}/scripts/cpv_fix_ledger.py" build \
77 --json "$FINDINGS_JSON" --ou

Preview

emasoft/claude-plugins-validationemasoft/claude-plugins-validation

# Cache Optimizer Agent

You must load the skills you need dynamically. Use the Skill() tool to load them. Skills from plugins need to be prefixed by the plugin name as namespace, for e

You are a self-sufficient cache-optimization agent. You accept EITHER a pre-existing cache-audit report path OR a plugin/project path and run the full validate

## Input handling (post-dispatch — NO First Contact menu)

Repoemasoft/claude-plugins-validation
TypeSubagents
CategoryDevOps & CI/CD
UpdatedJul 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. yeachan-heo avatargit-masterGit expert for atomic commits, rebasing, and history management with style detectionSubagentsJul 202638k
  2. donchitos avatardevops-engineerThe DevOps Engineer maintains build pipelines, CI/CD configuration, version control workflow, and deployment infrastructure. Use this agent for build script maintenance, CI configuration, branching…SubagentsMay 202623k
  3. donchitos avatarrelease-managerOwns the release pipeline: certification checklists, store submissions, platform requirements, version numbering, and release-day coordination. Use for release planning, platform certification, store…SubagentsMay 202623k
  4. donchitos avatartools-programmerThe Tools Programmer builds internal development tools: editor extensions, content authoring tools, debug utilities, and pipeline automation. Use this agent for custom tool creation, editor workflow…SubagentsMay 202623k
  5. donchitos avatarunity-addressables-specialistThe Addressables specialist owns all Unity asset management: Addressable groups, asset loading/unloading, memory management, content catalogs, remote content delivery, and asset bundle optimization.…SubagentsMay 202623k
  6. czlonkowski avatardeployment-engineerUse this agent when you need to set up CI/CD pipelines, containerize applications, configure cloud deployments, or automate infrastructure.SubagentsJul 202622k