/code:cross-repo-cachefrom code
Checks if cross-repo coordinator results are reusable by comparing peer repo git hashes. Avoids redundant Sonnet agent launches. Returns cache hit/miss status.
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 cross-repo coordinator results are still valid, avoiding redundant Sonnet agent launches when peer repositories haven't changed.
Activate this skill at the start of Phase 1.4.1 (Discover peers), before launching @code:cross-repo-coordinator. If the cache is fresh, skip the coordinator and use cached results.
bash ${CLAUDE_SKILL_DIR}/scripts/check_cross_repo_cache.sh <WORKDIR>
After the cross-repo-coordinator runs successfully, stamp the cache:
# Compute hash of peer repo states
if [ -f ".workspace-repos.json" ]; then
repo_hashes=""
for repo_path in $(python3 -c "import json; [print(r['path']) for r in json.load(open('.workspace-repos.json')) if r.get('path')]" 2>/dev/null); do
[ -d "$repo_path/.git" ] && repo_hashes="$repo_hashes$repo_path:$(git -C "$repo_path" rev-parse HEAD 2>/dev/null || echo unknown) "
done
echo "$repo_hashes" | shasum -a 256 > $WORKDIR/.cross-repo-hash
else
shasum -a 256 $WORKDIR/.cross-repo-needs.json > $WORKDIR/.cross-repo-hash
fi
CROSS_REPO_CACHE_HIT
status: NO_CROSS_REPO_NEEDED | CAPABILITIES_IDENTIFIED
capabilities:
- peer-name: capability description
Action:
NO_CROSS_REPO_NEEDED: Mark 1.4.x phases complete, proceed to Phase 2CAPABILITIES_IDENTIFIED: Skip coordinator, proceed to Phase 1.4.2 with cached capabilitiesCROSS_REPO_CACHE_MISS
reason: <why the cache is stale or missing>
Action: Launch @code:cross-repo-coordinator as normal. After it completes, stamp the cache.
The script hashes the git HEAD commit of each peer repository listed in .workspace-repos.json. If any peer has new commits, the hash changes and the coordinator re-runs. This correctly handles the case where a peer repo is updated between iterations.
$WORKDIR/.cross-repo-needs.json (written by coordinator)$WORKDIR/.cross-repo-hash (written by stamp step).learnings/cross-repo-cache/{repo-name}/ (used by generic-discovery agents)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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