Help us improve
Share bugs, ideas, or general feedback.
From code
Checks validity of prior Phase 2.5 critic reviews by hashing plan.json and critic-gates.json against stored hash, skipping redundant runs on cache hit.
npx claudepluginhub closedloop-ai/claude-plugins --plugin codeHow this skill is triggered — by the user, by Claude, or both
Slash command
/code:critic-cacheThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check whether prior critic reviews are still valid, avoiding redundant Sonnet agent launches when the plan hasn't changed since the last critic run.
Checks for cached plan-evaluation.json using file timestamps to skip redundant plan-evaluator launches in Phase 1.3. Returns EVAL_CACHE_HIT with values or EVAL_CACHE_MISS if stale.
Reviews and provides high-effort critique of execution plans stored in plan.md, with project-specific LSP detection and session management.
Automatic adversarial review gate that spawns 3 independent reviewers in parallel after any plan is drafted - all must PASS before presenting to user
Share bugs, ideas, or general feedback.
Check whether prior critic reviews are still valid, avoiding redundant Sonnet agent launches when the plan hasn't changed since the last critic run.
Activate this skill at the start of Phase 2.5 (Critic Validation), before launching any critic agents. If the cache is fresh, skip the entire critic phase.
Run the cache check script. The scripts/ directory is relative to this skill's base directory (shown above as "Base directory for this skill"):
bash <base_directory>/scripts/check_critic_cache.sh <WORKDIR>
CRITIC_CACHE_HIT
Action: Skip all critic agent launches. Proceed directly to Phase 2.6 (or Phase 2.7 if no merge is needed). The existing $WORKDIR/reviews/*.review.json files are still valid.
CRITIC_CACHE_MISS
reason: <why the cache is stale or missing>
Action: Run critics as normal. After all critics complete, stamp the cache:
if [ -f ".claude/settings/critic-gates.json" ]; then
cat $WORKDIR/plan.json .claude/settings/critic-gates.json | shasum -a 256 > $WORKDIR/reviews/.plan-hash
else
shasum -a 256 $WORKDIR/plan.json > $WORKDIR/reviews/.plan-hash
fi
The script hashes both plan.json and .claude/settings/critic-gates.json (if it exists) into a single combined hash. This ensures:
Cache hit requires ALL of:
plan.json existsreviews/ directory exists with at least 1 .review.json filereviews/.plan-hash exists