# Batch member cites a path only a non member adds

> Batch member cites a path only a non member adds is an open-source agent skill for developer tools. Checks that a batch of pull requests does not cite file paths that will never exist. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds
- **Repository:** https://github.com/wan-huiyan/agent-traffic-control
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** batch-member-cites-a-path-only-a-non-member-adds
- **Collection:** https://github.com/wan-huiyan/agent-traffic-control
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill tackles a gap that ordinary merge gates miss: a change may mention a file path in comments, docstrings or data files, while that file only arrives in a separate pull request outside the batch. It walks through computing the set of paths the merged tree will contain, extracting path-like strings from the lines each member adds, and subtracting one from the other to list dangling citations.

The workflow is shell-based and uses git commands such as ls-tree, diff and cat-file, along with comm and grep. It includes guidance on sorting, on sorting out false positives like placeholders, relative and runtime-built paths, and on choosing between pulling the sibling in, rewriting the citation, or hedging it with a tracked follow-up. It also covers a verification step that confirms the check can actually fail.

It expects a git repository with a base branch and member branches, and a working shell. The author's notes say the approach was measured on a real three-member batch.

## When your agent uses it

> You wrote something correct that the default reader cannot reach: a batch member citing a path only a NON-member adds, or a rule, ruling or ledger sitting on an unlanded branch.

## What it can access

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

- [Instructions only, no scripts](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds)
- [License: MIT](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds)

## Features

- **Post-merge path set:** Builds the list of paths the target branch will hold after the batch merges, using base tree plus added files.
- **Citation extraction:** Pulls path-shaped strings from the lines each member adds, with an extension list that can be tuned per repository.
- **Dangling citation subtraction:** Compares cited paths with the post-merge tree to list references to files that will not exist.
- **False positive triage:** Explains common benign survivors such as placeholders, relative links, runtime-generated paths and external paths.
- **Self-test and verification:** Shows how to prove the check can fail and how to confirm citations against the target branch after landing.
- **Rule visibility check:** Adds a companion check to confirm that a rule or ledger is readable from the main branch, not only from unlanded branches.

## Good for

- Check a batch of pull requests for comments that cite files only another pending pull request adds
- Find documentation links in a merge train that point to paths missing from main
- Audit a tracker or data file for path references that do not resolve after landing
- Verify that a coordination rule is visible on the default branch before relying on it

## Install

### Claude Code

This skill ships in the `agent-traffic-control` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-control
```

Or copy only this skill to `~/.claude/skills/batch-member-cites-a-path-only-a-non-member-adds`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/batch-member-cites-a-path-only-a-non-member-adds &&
cp -R "$tmp/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds" ~/.claude/skills/batch-member-cites-a-path-only-a-non-member-adds &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/batch-member-cites-a-path-only-a-non-member-adds` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/batch-member-cites-a-path-only-a-non-member-adds` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/batch-member-cites-a-path-only-a-non-member-adds &&
cp -R "$tmp/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds" ~/.agents/skills/batch-member-cites-a-path-only-a-non-member-adds &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/batch-member-cites-a-path-only-a-non-member-adds` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/batch-member-cites-a-path-only-a-non-member-adds` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/batch-member-cites-a-path-only-a-non-member-adds &&
cp -R "$tmp/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds" ~/.cursor/skills/batch-member-cites-a-path-only-a-non-member-adds &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/batch-member-cites-a-path-only-a-non-member-adds` 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/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds
```

Or copy the folder to `~/.gemini/skills/batch-member-cites-a-path-only-a-non-member-adds` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/batch-member-cites-a-path-only-a-non-member-adds`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/batch-member-cites-a-path-only-a-non-member-adds &&
cp -R "$tmp/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds" ~/.copilot/skills/batch-member-cites-a-path-only-a-non-member-adds &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/batch-member-cites-a-path-only-a-non-member-adds` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git
```

Then copy `agent-traffic-control/plugins/agent-traffic-control/skills/batch-member-cites-a-path-only-a-non-member-adds` into your agent's skills folder as `batch-member-cites-a-path-only-a-non-member-adds`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Batch member cites a path only a non member adds need to run?

A git repository with the base branch and the member branch heads available, plus a shell with grep, sort and comm. It uses three-dot diffs against the base.

### What does Batch member cites a path only a non member adds change in the repository?

Nothing directly. It writes temporary files under /tmp and reports missing paths; fixing a dangling citation is left to the user.

### Does Batch member cites a path only a non member adds trigger automatically?

No. The skill has disable-model-invocation set, so it is run deliberately as part of batch assembly.

### Is Batch member cites a path only a non member adds a blocking gate?

The author describes it as advisory. The measured noise is high, so every survivor needs to be reviewed by hand.

### How do I install Batch member cites a path only a non member adds in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/batch-member-cites-a-path-only-a-non-member-adds to use it in all your projects, or to .claude/skills/batch-member-cites-a-path-only-a-non-member-adds in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.

### Does Batch member cites a path only a non member adds 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 Batch member cites a path only a non member adds?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Batch member cites a path only a non member adds?

The closest alternatives to Batch member cites a path only a non member adds are Batch merge subject is not evidence a member landed, Clean merge lands line guard on a value neither branch predicted, Git post merge cleanup, Fix merge conflicts and Control tower.

## Where this comes from

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

## Alternatives

- [Batch merge subject is not evidence a member landed](https://ai-powered.com/skills/batch-merge-subject-is-not-evidence-a-member-landed): Batch merge subject is not evidence a member landed is an open-source agent skill for developer tools.
- [Clean merge lands line guard on a value neither branch predicted](https://ai-powered.com/skills/clean-merge-lands-line-guard-on-a-value-neither-branch-predicted): Clean merge lands line guard on a value neither branch predicted is an open-source agent skill for developer tools.
- [Git post merge cleanup](https://ai-powered.com/skills/git-post-merge-cleanup): Git post merge cleanup is an open-source agent skill for developer tools.
- [Fix merge conflicts](https://ai-powered.com/skills/fix-merge-conflicts): Fix merge conflicts is an open-source agent skill for developer tools.
- [Control tower](https://ai-powered.com/skills/control-tower): Control tower is an open-source agent skill for developer tools.
- [Check a stale branch is not undoing newer main work](https://ai-powered.com/skills/check-a-stale-branch-is-not-undoing-newer-main-work): Check a stale branch is not undoing newer main work is an open-source agent skill for developer tools.
- [Merge PR](https://ai-powered.com/skills/merge-pr): Merge PR is an open-source agent skill for developer tools.
- [Git diff 2dot vs 3dot merge safety](https://ai-powered.com/skills/git-diff-2dot-vs-3dot-merge-safety): Git diff 2dot vs 3dot merge safety is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/batch-member-cites-a-path-only-a-non-member-adds
