# Cross file relationship synthesis

> Cross file relationship synthesis is an open-source agent skill for developer tools. Maps typed, line-anchored relationships across files to ground cross-file conclusions. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/cross-file-relationship-synthesis
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** cross-file-relationship-synthesis
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through analysing a set of files that were read separately but whose conclusion depends on how calls, imports, data writes and reads, schema producers and consumers, or config values pass between them. The agent first states a one-line role for each file in scope, names the edge kinds it will trace, and then records every edge in its actual direction of flow with file and line at both ends.

The workflow separates edges the agent observed in code from edges it only inferred from matching names, treating name matches as leads to verify. It pays particular attention to secondary writers, paths that bypass an abstraction, and consumers that are never registered. From the verified map it identifies cut points and their blast radius as explicit file lists, and it resolves every orphan or dead end as either a missing edge or a genuinely unreachable file.

The skill is written for specialist reviews and requires no scripts or external tools; it works from the source files the agent can read. It is explicitly scoped to mapping repository relationships and does not decide privacy compliance or recommend refactoring.

## When your agent uses it

> Use when several files have been read independently but a conclusion depends on how control or data crosses them: build a typed, directed, line-anchored map of calls, imports, producer-consumer and config edges; identify cut points, blast radius, orphans, and traversal-backed conclusions. It maps arbitrary repository relationships; it does not settle privacy compliance or prescribe graph surgery.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/cross-file-relationship-synthesis)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/cross-file-relationship-synthesis)

## Features

- **Typed edge mapping:** Records calls, imports, data flows, schema links and config dependencies as directed edges with file and line anchors.
- **Observed versus inferred separation:** Keeps edges confirmed in code apart from guesses drawn from matching names.
- **Cut point analysis:** Finds files whose changes propagate furthest and lists the files each one affects.
- **Orphan and dead end resolution:** Checks unreachable or unconnected files and decides whether an edge is missing or the file is truly isolated.
- **Traversal-backed conclusions:** Requires final claims to be stated as a walk over recorded edges that another reader can repeat.

## Good for

- Trace how a config value flows from a settings file to the modules that consume it
- Find every file affected if a shared data schema changes
- Check whether a write path bypasses the main abstraction layer in a codebase
- Identify orphaned modules that nothing in the repository imports or calls
- List the blast radius of changing a central utility file

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/cross-file-relationship-synthesis` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cross-file-relationship-synthesis &&
cp -R "$tmp/.agents/skills/cross-file-relationship-synthesis" ~/.claude/skills/cross-file-relationship-synthesis &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/cross-file-relationship-synthesis` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/cross-file-relationship-synthesis` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cross-file-relationship-synthesis &&
cp -R "$tmp/.agents/skills/cross-file-relationship-synthesis" ~/.agents/skills/cross-file-relationship-synthesis &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/cross-file-relationship-synthesis` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/cross-file-relationship-synthesis` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cross-file-relationship-synthesis &&
cp -R "$tmp/.agents/skills/cross-file-relationship-synthesis" ~/.cursor/skills/cross-file-relationship-synthesis &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/cross-file-relationship-synthesis` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/cross-file-relationship-synthesis
```

Or copy the folder to `~/.gemini/skills/cross-file-relationship-synthesis` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/cross-file-relationship-synthesis`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cross-file-relationship-synthesis &&
cp -R "$tmp/.agents/skills/cross-file-relationship-synthesis" ~/.copilot/skills/cross-file-relationship-synthesis &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/cross-file-relationship-synthesis` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/cross-file-relationship-synthesis` into your agent's skills folder as `cross-file-relationship-synthesis`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Cross file relationship synthesis run any scripts or need extra tools?

No. The skill ships a single SKILL.md file with no scripts, and it does not set allowed tools.

### What does Cross file relationship synthesis explicitly not cover?

It maps arbitrary repository relationships but does not settle privacy compliance or prescribe graph surgery such as refactoring.

### When should an agent use Cross file relationship synthesis?

When several files have been read independently and a conclusion depends on how control or data crosses between them.

### How do I install Cross file relationship synthesis in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cross-file-relationship-synthesis to use it in all your projects, or to .claude/skills/cross-file-relationship-synthesis in one project.

### Does Cross file relationship synthesis run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Cross file relationship synthesis?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Cross file relationship synthesis?

The closest alternatives to Cross file relationship synthesis are Trace architecture, Dependency cycle audit, Skill flow, Context map and Improve codebase architecture.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Trace architecture](https://ai-powered.com/skills/trace-architecture): Trace architecture is an open-source agent skill for developer tools.
- [Dependency cycle audit](https://ai-powered.com/skills/dependency-cycle-audit): Dependency cycle audit is an open-source agent skill for developer tools.
- [Skill flow](https://ai-powered.com/skills/skill-flow): Skill flow is an open-source agent skill for developer tools.
- [Context map](https://ai-powered.com/skills/context-map): Context map is an open-source agent skill for developer tools.
- [Improve codebase architecture](https://ai-powered.com/skills/improve-codebase-architecture): Improve codebase architecture is an open-source agent skill for developer tools.
- [Codebase comprehension](https://ai-powered.com/skills/codebase-comprehension): Codebase comprehension is an open-source agent skill for developer tools.
- [Repo recon](https://ai-powered.com/skills/repo-recon): Repo recon is an open-source agent skill for developer tools.
- [Code reachability audit](https://ai-powered.com/skills/code-reachability-audit): Code reachability audit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/cross-file-relationship-synthesis
