/code:critic-cachefrom code
Checks if prior critic reviews are still valid by comparing content hashes of plan.json and critic-gates.json. Returns CRITIC_CACHE_HIT to skip critics or CRITIC_CACHE_MISS to re-run, avoiding redundant agent launches.
Ships in code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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:
bash ${CLAUDE_SKILL_DIR}/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 ".closedloop-ai/settings/critic-gates.json" ]; then
cat $WORKDIR/plan.json .closedloop-ai/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 .closedloop-ai/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 existsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cache-validation, critic-review, plan-hash, phase-2.5, workflow-caching
npx claudepluginhub closedloop-ai/claude-plugins --plugin code13 skills in this plugin
/build-status-cacheSkip Phase 7 rebuild when no code changed since Phase 5 build passed.
Compares git diff hash against stored hash from last successful build validation.
Triggers on: entering Phase 7, checking build status, before final build validation.
Returns BUILD_CACHE_HIT to skip or BUILD_CACHE_MISS to re-run build-validator.
/closedloop-envProvides ClosedLoop environment paths (CLOSEDLOOP_WORKDIR, CLAUDE_PLUGIN_ROOT) to agents. This skill should be used by any agent that needs to access ClosedLoop run directories, plugin schemas, or other path-dependent resources./codex-reviewRun Codex to review a plan file and return structured feedback with a verdict.
Triggers on: debate loop Codex review rounds.
Returns VERDICT:APPROVED or VERDICT:NEEDS_CHANGES plus CODEX_SESSION token.
Other plugins' skills for the same job