relay
Skill4 starsChanged 3 months agoMITView on GitHub
Use when work should continue in a fresh session: the user says \"handoff\", \"hand off\", \"relay\", \"fresh session\", \"new session\", \"context is getting full\", \"give me a prompt for a new session\", or wants the work picked up in a different repo; when they paste a relay doc path to resume from; and to offer a scoped relay, unprompted, once context passes ~70%.
- Reads credentials
25 other projects use a version of this.
Adopted by
Most recently taken up by
- chrisliu298/relaytheir own version, first seen Nov 8, 2026
- hyperdreamer/pi-webuitheir own version, first seen Nov 8, 2026
- gao-xh/multi-agent-protocoltheir own version, first seen Nov 1, 2026
- jaskirat1616/grok-skillstheir own version, first seen Nov 1, 2026
- luci-efe/skillstheir own version, first seen Nov 1, 2026
- zommuter/dotclaude-skillstheir own version, first seen Oct 28, 2026
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- jmfederico/pi-web★ 931same name
- sonichi/sutando★ 396same name
- gavishap/omnia-vault★ 53same name
- jaskirat1616/grok-skills★ 22same name
- bekhruztbx/ai-creative-team★ 18same name
- mhlaghari/stuntman★ 16same name
- hyperdreamer/pi-webui★ 9same name
- chrisliu298/relay★ 6same name
- gao-xh/multi-agent-protocol★ 4same name
- zommuter/dotclaude-skills★ 4same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- actionableSkill
- astro-bootstrapSkill
- astro-patternsSkill
- autopilotSkill
- axon-code-intelSkill
- brainstormingSkill
- commit-conventionsSkill
- cross-repo-contextSkill
- django-bootstrapSkill
- django-patternsSkill
- executeSkill
- find-sessionSkill
- flutter-bootstrapSkill
- flutter-patternsSkill
- full-featureSkill
- intelSkill
- nextjs-bootstrapSkill
- nextjs-fullstack-bootstrapSkill
- nextjs-fullstack-patternsSkill
- nextjs-mui-bootstrapSkill
- nextjs-patternsSkill
- nextjs-shadcn-bootstrapSkill
- orchestratorSkill
- phase-breakdownSkill
- plan-and-scopeSkill
- prdSkill
- reactSkill
- recallSkill
- reflectSkill
- rememberSkill
- scaffoldSkill
- scratchSkill
- tailwindSkill
- ux-specSkill
- ux-to-promptsSkill
- verify-astroSkill
- verify-djangoSkill
- verify-flutterSkill
- verify-nextjs-fullstackSkill
- verify-nextjs-muiSkill
- verify-nextjs-shadcnSkill
- verify-nextjsSkill
- verifySkill
- visual-feedbackSkill
- work-disciplineSkill
- worktreesSkill
- wrapSkill
- write-as-friendSkill
- write-as-humanSkill
- writing-clearlySkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Write to ~/.claude/relays/<slug>-<timestamp>.md (mkdir -p first).
- Very specific: line 67
Sanitize: No API keys, tokens, passwords, connection strings, or personal data.
- Distinctive: line 81
Use the slash command, not "read this file": it loads this skill and its resume discipline in the fresh session.
- Distinctive: line 85
If the argument resolves to a readable file, this is resume mode.
- Distinctive: line 94
Use when the next piece of work happens in a different repo: this session found what another repo must change, or built the half that …
- Distinctive: line 108
Restating what's in the repo: If it's greppable, point to it.
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Relay
A steerable replacement for /compact. Relay writes a short doc capturing what the current work is and where it's headed. A fresh session reads that doc and derives everything else itself.
Compaction keeps the whole conversation, lossily, and the user has no say in what survives. A relay keeps only what a new session cannot recompute, and the user says what matters.
The one rule
A relay doc carries narrative and pointers. Never status.
Status is branch state, what's deployed, what's committed, which tasks are open, whether tests pass. All of it is derivable in seconds, and all of it goes stale between writing the doc and reading it. Narrative is why this approach, what was tried and abandoned and why, what the user decided, what is out of scope. None of that is recoverable from the repo.
| Write this | Not this |
"work is on feat/character-chat" | "feat/character-chat is 3 commits ahead, uncommitted" |
"the retry logic lives in worker/queue.ts" | "queue.ts is done and tested" |
| "tried polling first; it deadlocked under concurrent writes, so we moved to the listener" | "polling didn't work" |
Offering a relay
When context passes ~70%, or the session has drifted across several topics, offer once, in one line, scoped to what is next: "Context is ~70%. Want a relay scoped to the migration so a fresh session picks it up?" Don't write it until the user says yes. Don't repeat the offer.
Mode 1: write (/relay <steering note>)
The argument steers what carries forward ("focus on the webhook path"). Weight the doc toward it. With no argument, ask what the next session is for (one question), then write.
- Slug:
basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)". Timestamp:date +%m%d-%H%M. - Write to
~/.claude/relays/<slug>-<timestamp>.md(mkdir -pfirst). Under 40 lines; longer means it's carrying status. - End with the closing block (below).
# Relay: <slug>, <YYYY-MM-DD HH:MM>
**For the arriving agent:** this doc is narrative only. Derive current state yourself (git, tasks, tests) before you act on anything here. Then state your plan and wait for a go-ahead.
## What we're doing
<2-4 sentences. The goal and why it matters. Not a task list.>
## Where it stands
<Narrative only. "The listener is wired but nothing calls it yet.">
## Tried and ruled out
<Approach, and the specific reason it failed. The highest-value section.>
## Decisions made
<User rulings, with the reasoning. Binding on the next session.>
## Next
<What the user steered toward, first. Then anything else queued.>
## Pointers
- repo: <absolute path>
- branch: <name>
- files: <paths>
- tasks: <IDs>
- docs: <paths or URLs to specs, plans, reviews>
## Out of scope
<Things deliberately not being done, so the next session doesn't drift in.>Sanitize. No API keys, tokens, passwords, connection strings, or personal data. Name them (ANTHROPIC_API_KEY is set locally), never their values.
Closing block (every write ends with this)
The last lines of the reply, nothing after them:
- The doc's absolute path (expand
~). - The directory to open: the repo the next session runs in.
- A fenced block, ready to paste, starting with the
cd:
cd /Users/me/prj/my-app && claude "/relay /Users/me/.claude/relays/my-app-1031-1420.md"Use the slash command, not "read this file": it loads this skill and its resume discipline in the fresh session.
Mode 2: resume (/relay <path>)
If the argument resolves to a readable file, this is resume mode.
- Read the doc.
- Derive current state before trusting anything. Branch, dirty files, recent commits, whether the named files exist and what they contain now, open tasks. Cross-repo: read this repo's CLAUDE.md first.
- Report anything that contradicts the doc. Drift is the signal that matters.
- State the plan in a few lines and wait. Do not start work. The user ended the last session deliberately; they get to aim this one.
Mode 3: cross-repo (/relay --to <repo path> <steering note>)
Use when the next piece of work happens in a different repo: this session found what another repo must change, or built the half that another repo consumes. The doc is a brief for a session that has never seen this repo.
- Slug is the target repo's basename; the directory to open is the target repo.
- Add a
## From <source repo>section: what this repo did or needs, the contract between the two (endpoint, payload shape, function signature, env var names), and absolute paths to the source files that define it. Quote the contract itself if it is short; the arriving session should not have to open the source repo to start. - Pointers name target-repo paths where you know them. Mark guesses as guesses.
- Tell the arriving agent to read the target repo's own CLAUDE.md first and to leave the source repo untouched unless the user says otherwise.
Housekeeping
Relays are disposable. When writing one, if ~/.claude/relays/ holds files older than 30 days, mention the count and offer to delete. Don't delete unprompted.
Common mistakes
- Writing status because it feels helpful. It is the one thing guaranteed to be wrong on arrival.
- Restating what's in the repo. If it's greppable, point to it.
- A checklist instead of a narrative. Task lists live in the tracker.
- A
~path or nocdin the closing block. The user pastes it into a fresh terminal; it has to work as is. - The arriving session acting immediately. A relay is a briefing, not an instruction.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

