dyz-gongwen-skills
公文写作 Skills|AI 公文写作助手:防编造、守保密、GB/T 9704 一键排版,覆盖 22 种文书,支持 Claude Code / Codex / Cursor
翻訳待ち
リポジトリ情報はまだ収集していません。
No updates detected yet. GitHub releases will appear here.
A Claude Code skill for coordinating two or more live AI agent sessions over shared files, on one machine or across Windows/macOS/Linux. No server, no message bus: JSON outboxes plus a file watcher, with the safety rules to run it under real concurrency. Built running a fleet of agents on film-production work.
翻訳待ち
Loading the full README.
Read the full README ↗A Claude Code skill for coordinating two or more live agent sessions over shared files. No server, no daemon, no message bus: just JSON outboxes on a shared folder and a lightweight file watcher, so agents on the same box or across machines can hand off work, report progress, and stay out of each other's way.
I built this running a fleet of agents across Windows, macOS, and Linux boxes, on several concurrent projects. The sessions needed to coordinate (who owns which file, what changed, when a job finished) without a heavyweight orchestration layer. A shared folder plus a simple contract turned out to be enough, and it survives the things that usually break coordination: context compaction, a session restart, and a flaky network mount.
Two sessions on one production. One is copying rendered shots, the other is waiting to conform them.
renders.json {"session":"renders","status":"6/23 shots copied","done":false,...}
conform.json {"session":"conform","status":"waiting on renders","done":false,...}
The conform session runs a watcher over the channel folder. When renders updates its outbox to
"23/23 shots copied","done":true, the watcher surfaces that line in the conform session, which
picks up the work. Nobody polled, nothing was double-started, and if either session had died and
restarted, the file still said exactly where things stood.
<session>.json) into a shared channel folder./link-session new <repo> bootstraps a fresh session into a role. You start Claude in a folder, then
point it at a repo that carries type: bootstrap templates: the skill lists them, you pick one, and
it loads that role's starting context, writes its CLAUDE.md, and checks that the folders and tools
the role needs are present before you begin. The templates live in whatever repo you name; the skill
itself stays generic and holds none of their content. The template format is documented in the skill.
These exist because each one failed in production first. They are the difference between a toy and something you trust across machines.
.md; the outbox
message only points at it. Write the file, THEN bump the JSON, because the JSON is what wakes
peers and it must change only once the thing it points at is complete.session and status. Everything
else in the folder is somebody's working file, and treating every .json as a peer eventually
adopts a cache as a colleague./link-session to rebuild the watcher and catch up.Drop the command into your Claude Code commands directory:
# Global (all projects)
mkdir -p ~/.claude/commands
cp .claude/commands/link-session.md ~/.claude/commands/
# Or project-level
mkdir -p your-project/.claude/commands
cp .claude/commands/link-session.md your-project/.claude/commands/
Then invoke /link-session in any session you want to link. Run it again after a compaction or a
restart to catch up on missed messages and rebuild the watcher.
{"session":"renders","updated":"2026-05-23 14:30:00","status":"6/23 shots copied","message":"","to":"","data":{},"done":false,"stop":false}
This is the beginning of the README. Read the rest at the original. Read the full README ↗