Skip to content
Back to skills

Cross Repo

ASecurity

Use when the user wants code, structure or symbols from ANOTHER repository (a library, a sibling service, a dependency) that is indexed by the ai-context plugin on this machine, or when search results should include more than the current repo. Explains how to allow and query other projects.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agents

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add accso/ai-monitoring --skill cross-repo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cross Repo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cross Repo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/accso-cross-repo/badge)](https://www.skillsdirectory.com/skills/accso-cross-repo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cross-repo
description: >
  Use when the user wants code, structure or symbols from ANOTHER repository
  (a library, a sibling service, a dependency) that is indexed by the
  ai-context plugin on this machine, or when search results should include
  more than the current repo. Explains how to allow and query other projects.
---
<!-- managed-by: opencode-ai-context-plugin -->

# Cross-repo lookup

Every repo is isolated by default: `semantic_search` only sees its own index.
The other repo must already be indexed (opened once with this plugin).

## 1. Find the exact project name

Call `ai_context_list_projects` BEFORE assuming a library or repo is not
indexed. Each entry has a `name` (e.g. `tlt-platform`) and a `key`
(`<name>-<hash8>`). Use only the `name`: the hash differs per machine.
Never guess a name; pick the one matching what the user named.

## 2. Allow it (once, persistent)

Call `ai_context_allow_repo` with that name. It is validated against the
registry and stored (as name, shareable with the team) in `allowed_repos` in `.opencode/ai-context.config.yaml`. It
takes effect immediately, no restart. Only do this when the user asked for
the other repo's results.

## 3. Query it

- `semantic_search`: results of allowed repos are merged in, each tagged with
  its `project`.
- `repo_structure`, `find_symbol`, `analyze_impact` and `search_docs`: pass
  `project: "<name>"` to look into that repo instead of the current one.
- Paths in results are relative to THAT repo, not to the current worktree.
  To read the files, ask the user for the repo's location; `read` only
  works inside the current project.

## Troubleshooting

- `Unknown or not allowed project`: run step 1 and 2. A hashed key is not accepted.
- Name missing in the list: that repo was never indexed with this plugin.
- No symbols or docs from that repo: its symbol index or doc trees may not exist yet.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.