Agent skill

Cross Repo Cache

by closedloop-ai in closedloop-ai/claude-plugins

Check if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches.

Apache-2.0Auto-check: notesDevelopment

Install Cross Repo Cache

skills CLI
$ npx skills add closedloop-ai/claude-plugins --skill cross-repo-cache -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install closedloop-ai/claude-plugins cross-repo-cache --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/closedloop-ai/claude-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/code/skills/cross-repo-cache .claude/skills/cross-repo-cache && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cross-repo-cache
GitHub stars
122
Token cost
~683 tokens
SKILL.md length
177 words
Files
2 (incl. scripts)
Skills in repo
41
Repo updated
First seen
Licence
Apache-2.0

At a glance

Check if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches.

  • : entering Phase 1.4.1
  • SKILL.md covers When to Use, Usage, Interpreting Output and How Freshness Works, plus 1 more section
  • Runs Shell scripts from its folder; calls bash, python3 and git
  • Checking cross-repo cache

What it does

Cross Repo Cache is an agent skill from closedloop-ai/claude-plugins. Check if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches. Compares peer repo git hashes against stored hashes from last coordinator run. Triggers on: entering Phase 1.4.1, checking cross-repo cache, before discovering peers. Returns CROSSREPOCACHEHIT with cached status or CROSSREPOCACHEMISS to re-run coordinator.

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/check_cross_repo_cache.sh`).

It sits in Development. It works with Git. The repository describes itself as: Open-source Claude Code plugins for multi-agent software delivery. Plan-first SDLC workflow, code review, LLM quality judges, and self-learning — grounded in your codebase… The licence is Apache-2.0.

When your agent uses it

  • : entering Phase 1.4.1
  • Checking cross-repo cache
  • Before discovering peers

Example prompts

  • “/cross-repo-cache”

Requirements

  • Python 3
  • A Bash shell
  • Pre-approved tools (allowed-tools): Bash

What it can do on your machine

Read from SKILL.md and the folder at commit 476b54c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • python3
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cross Repo Cache loads about 683 tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 177 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~683

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from closedloop-ai/claude-plugins at commit 476b54c, republished under its Apache-2.0 licence (© closedloop-ai). 177 words, ~683 tokens.

Download SKILL.mdSave it as .claude/skills/cross-repo-cache/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cross-repo-cache
description
Check if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches. Compares peer repo git hashes against stored hashes from last coordinator run. Triggers on: entering Phase 1.4.1, checking cross-repo cache, before discovering peers. Returns CROSS_REPO_CACHE_HIT with cached status or CROSS_REPO_CACHE_MISS to re-run coordinator.
allowed-tools
Bash
context
fork

Cross-Repo Cache Skill

Check whether prior cross-repo coordinator results are still valid, avoiding redundant Sonnet agent launches when peer repositories haven't changed.

When to Use

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.

Usage

Check Cache (Phase 1.4.1)
bash
bash ${CLAUDE_SKILL_DIR}/scripts/check_cross_repo_cache.sh <WORKDIR>
Stamp Cache (after coordinator completes)

After the cross-repo-coordinator runs successfully, stamp the cache:

bash
# 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

Interpreting Output

Cache Hit
CROSS_REPO_CACHE_HIT
status: NO_CROSS_REPO_NEEDED | CAPABILITIES_IDENTIFIED
capabilities:
  - peer-name: capability description

Action:

  • If status is NO_CROSS_REPO_NEEDED: Mark 1.4.x phases complete, proceed to Phase 2
  • If status is CAPABILITIES_IDENTIFIED: Skip coordinator, proceed to Phase 1.4.2 with cached capabilities
Cache Miss
CROSS_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.

How Freshness Works

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.

Cache Location

  • Coordinator results: $WORKDIR/.cross-repo-needs.json (written by coordinator)
  • Cache hash: $WORKDIR/.cross-repo-hash (written by stamp step)
  • Per-repo cache: .learnings/cross-repo-cache/{repo-name}/ (used by generic-discovery agents)

© closedloop-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in plugins/code/skills/cross-repo-cache of closedloop-ai/claude-plugins.

  • SKILL.md
  • scripts/check_cross_repo_cache.sh

Open the folder on GitHubat commit 476b54c

Compare with similar skills

Cross Repo Cache next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cross Repo Cache compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cross Repo Cache this skillclosedloop-ai/claude-plugins122—~683Automated safety check: NotesApache-2.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Codebase Knowledge Graph Q&AEgonex-AI/Understand-Anything86k1 repos~1.2kAutomated safety check: PassMIT
Code Design Rationale Investigatorcursor/plugins10k9 repos~2.6kAutomated safety check: PassNone
Understand Diff AnalysisEgonex-AI/Understand-Anything86k1 repos~1.4kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Codebase Knowledge Graph Q&A

    Egonex-AI/Understand-Anything

    Answers questions about a codebase by searching a prebuilt knowledge graph of its files, functions, classes and dependencies, not by rereading every source file.

    86k GitHub starsUsed in 1 repo~1.2k tokens
    DevelopmentAuto-check passed
  • Official

    Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.

    10k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    86k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Understand Explain

    Egonex-AI/Understand-Anything

    Gives an in-depth explanation of one file, function or module by reading the project's knowledge graph and checking that the graph is still fresh.

    86k GitHub starsUsed in 1 repo~1.3k tokens
    DevelopmentAuto-check passed

More from closedloop-ai/claude-plugins

All 41 skills in this repo
  • Codex Review

    closedloop-ai/claude-plugins

    Run Codex to review a plan file and return structured feedback with a verdict.

    122 GitHub stars~1.4k tokensUpdated today
    Auto-check: notes
  • Critic Cache

    closedloop-ai/claude-plugins

    Check if critic reviews are still valid before re-running Phase 2.5 critics.

    122 GitHub stars~528 tokensUpdated today
    Auto-check: notes
  • Eval Cache

    closedloop-ai/claude-plugins

    Check for a cached plan-evaluation.json result before launching the plan-evaluator agent.

    122 GitHub stars~516 tokensUpdated today
    Auto-check: notes
  • Find Plugin File

    closedloop-ai/claude-plugins

    This skill should be used when needing to locate files within the Claude Code plugins cache directory (~/.claude/plugins/cache).

    122 GitHub stars~812 tokensUpdated today
    Auto-check passed
  • Gh Monitor PR

    closedloop-ai/claude-plugins

    Start a detached GitHub pull-request monitor that wakes the exact launching Codex Desktop or CLI root through the managed Codex App Server when review, CI, conflict, merge-queue, closure, readiness…

    122 GitHub stars~5.1k tokensUpdated today
    Auto-check passed
  • Plan Validate

    closedloop-ai/claude-plugins

    Deterministic plan.json validation via Python script, replacing most plan-validator agent calls.

    122 GitHub stars~1.2k tokensUpdated today
    Auto-check: notes

Works with

Categories

Questions about Cross Repo Cache

What does Cross Repo Cache do?

Check if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches. Cross Repo Cache is an agent skill from closedloop-ai/claude-plugins. Check if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches.

When should I use Cross Repo Cache?

Cross Repo Cache fits situations like: : entering Phase 1.4.1; checking cross-repo cache; before discovering peers.

How do I install Cross Repo Cache in Claude Code?

Run `npx skills add closedloop-ai/claude-plugins --skill cross-repo-cache -a claude-code`. Or copy the skill folder (plugins/code/skills/cross-repo-cache in closedloop-ai/claude-plugins) into .claude/skills/cross-repo-cache in your project. Claude Code loads it when a task matches its description.

How do I install Cross Repo Cache in Codex?

Run `npx skills add closedloop-ai/claude-plugins --skill cross-repo-cache -a codex`. Or copy the skill folder (plugins/code/skills/cross-repo-cache in closedloop-ai/claude-plugins) into .agents/skills/cross-repo-cache in your project. Codex loads it when a task matches its description.

Can I use Cross Repo Cache in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add closedloop-ai/claude-plugins --skill cross-repo-cache -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cross-repo-cache, .gemini/skills/cross-repo-cache, .github/skills/cross-repo-cache and .opencode/skills/cross-repo-cache in your project.

What does Cross Repo Cache need to run?

Going by SKILL.md and its folder, Cross Repo Cache needs a shell for the scripts in its folder and the command-line tools its instructions call (bash, python3 and git). Our summary lists: Python 3; A Bash shell. Its frontmatter pre-approves these tools: Bash.

Does Cross Repo Cache access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cross Repo Cache safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Cross Repo Cache use?

Cross Repo Cache is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cross Repo Cache use?

About 683 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cross Repo Cache?

Skills that share tags, products or a category with Cross Repo Cache: Finishing a Development Branch (obra/superpowers, 296k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Codebase Knowledge Graph Q&A (Egonex-AI/Understand-Anything, 86k stars) and Code Design Rationale Investigator (cursor/plugins, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cross Repo Cache?

closedloop-ai (a GitHub organization) maintains it in closedloop-ai/claude-plugins, which has 122 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on October 7, 2026.

Source: closedloop-ai/claude-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.