session-handoff-number-collision-with-unmerged-sibling

session-handoff-number-collision-with-unmerged-sibling is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 475 tokens per session (4,317 once invoked), scanned A, original, MIT.

A handoff-number collision procedure for parallel coding sessions that create numbered handoff documents. It detects when an unmerged sibling session has already used the number you planned to use.

In plain words
What is it for?
Use it when naming session handoffs in parallel work, so records and follow-up prompts keep unique, traceable numbers.
Why use it?
Looking only at the current branch can miss documents in another worktree or pending pull request, creating two records with the same session number.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the agent-traffic-control plugin — 107 skills shipped together

Good fit Use it when naming session handoffs in parallel work, so records and follow-up prompts keep unique, traceable numbers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/session-handoff-number-collision-with-unmerged-sibling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wan-huiyan/agent-traffic-control --skill session-handoff-number-collision-with-unmerged-sibling
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 107 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-handoff-number-collision-with-unmerged-sibling

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/session-handoff-number-collision-with-unmerged-sibling/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/session-handoff-number-collision-with-unmerged-sibling)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/session-handoff-number-collision-with-unmerged-sibling"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/session-handoff-number-collision-with-unmerged-sibling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-handoff-number-collision-with-unmerged-sibling

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/session-handoff-number-collision-with-unmerged-sibling"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/session-handoff-number-collision-with-unmerged-sibling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 475 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00475 $0.04317
Opus 5 $0.00237 $0.02159
Sonnet 5 $0.00095 $0.00863
Haiku 4.5 $0.00047 $0.00432

Measured 7d ago against content hash 254a4b55df71, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

session-handoff-number-collision-with-unmerged-sibling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-traffic-control/skills/session-handoff-number-collision-with-unmerged-sibling/SKILL.md · 228 lines

How it starts

The opening of the file, as written. The whole thing — 228 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session-Handoff Number Collision With Unmerged Sibling

Problem

session-handoff Phase 1 Step 2 says "Write handoff doc → docs/handoffs/session_N_handoff.md." The implicit assumption is that you can determine N by inspecting docs/handoffs/ on the current branch. This assumption breaks when a parallel/sibling session ran concurrently in another worktree and its handoff PR hasn't merged into main yet.

Concrete sequence:

  1. Sibling session ran 2 hours ago in .claude/worktrees/other/, drafted session_167_handoff.md, opened PR #690 (still under review).
  2. Sibling session updated MEMORY.md "Recent sessions" with an S167 entry AND appended to sessions_archive.md.
  3. You fork your worktree off origin/main — MEMORY.md is local-user-state so you see the sibling's S167 entry, but docs/handoffs/ on origin/main does NOT yet have session_167_handoff.md (PR pending).
  4. You run ls docs/handoffs/ → highest is S166b → you pick S167.
  5. You write docs/handoffs/session_167_handoff.md + session_168_prompt.md.
  6. Both sessions now claim S167. Disk doesn't conflict (different branches). MEMORY.md shows two S167 entries. Future readers can't tell which is canonical.

The collision is silent because:

  • ls only sees the current branch's files.
  • git log origin/main -- docs/handoffs/session_167_handoff.md returns empty (PR pending).
  • Pre-commit hooks don't check session-number uniqueness.
  • The session-handoff skill itself doesn't tell you to cross-check MEMORY.md.

Context / Trigger Conditions

Activate this check during session-handoff Phase 1 Step 2 (before writing the handoff doc), or during Phase 4 Step 22.a (review-agent factual-accuracy pass), whenever all of:

  1. You've picked a session number N based on ls docs/handoffs/.
  2. There's a project-level MEMORY.md or sessions_archive.md that tracks recent sessions.
  3. The repo is in a "dense parallel-PR" state (multiple worktrees, multiple open handoff PRs in recent days, or a pr-conflict-from-mid-flight-merges-style skill in the project's skill set).

Read the full file on GitHub · 228 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 228 lines · 475 tokens per session scan A 254a4b55df71

Subscribe to this mod's changes

session-handoff-number-collision-with-unmerged-sibling is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed today), licensed MIT. It adds 475 tokens to every session and 4,317 once invoked, about $0.0024 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

brain-hydrate

Use when users want to bootstrap the brain with existing project knowledge -- reading ADRs, feature specs, UX docs, commit history, and error patterns to seed institutional memory on a project that already has artifacts on disk. Also use for incremental re-hydration after significant work outside the pipeline.…

robertsfeir/atelier-pipeline · 90 tokens

session-handoff

Documents the current Claude Code session by writing what changed, what broke, how problems were solved, and what's next into DECISIONS.md, CONTEXT.md, and CLAUDE.md. Then commits everything to git. Use this skill when the user says they are done, wrapping up, finishing, handing off, ending the session, switching…

s9b/session-handoff · 150 tokens

cloudflare-workers-ci-cd

Complete CI/CD guide for Cloudflare Workers using GitHub Actions and GitLab CI. Use for automated testing, deployment pipelines, preview environments, secrets management, or encountering deployment failures, workflow errors, environment configuration issues.

secondsky/claude-skills · 50 tokens

bump-sdk-version

Bump the FutureSearch SDK version across all files. Use when releasing a new SDK version, updating version numbers, or the user says bump version, release, version bump.

futuresearch/futuresearch-python · 40 tokens

claude-code-bash-patterns

Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations.

secondsky/claude-skills · 52 tokens

pr-check

PR review compliance: fetch review comments from an open PR, categorize as resolved/unresolved/dismissed, critically evaluate fixable items, implement approved fixes, and reply inline. Pass --unattended to halt on human-judgment items (emitted as Pending-Human) instead of prompting via AskUserQuestion.

rube-de/cc-skills · 67 tokens