/sjh-skills:session-teamfrom sjh-skills
Coordinates multi-strand work in T3 Code using Single-Ops-Leader or Multi-Lead (Model B) topologies with shared state on disk, status cards, and explicit resource ownership.
Ships in sjh-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Coordinate multi-strand work in T3 Code using two topologies: Single-Ops-Leader for small/medium teams (1–4 parts), and Multi-Lead (Model B) for large multi-domain projects.
Single-Ops-Leader:
user ⇄ sync ──→ ops leader ⇄ workers (delegated subagents)
↑ reads │ writes
└── team doc in repo
Multi-Lead (Model B):
user ⇄ sync (global control plane; reads status/<lead>.md in parallel)
user ⇄ domain leads (infra / task-gen / kg ...) ⇄ own workers (0-GPU + bounded smoke GPU)
│ verified commits / specs (handoff) │ write own card
▼ ▼
ops leader (shared GPUs, pools, long runs) ──→ <main-repo>/<team-dir>/status/<lead>.md
⇄ cluster / heavy workers
What makes it work is the protocol (shared state on disk, criteria written before the run, one owner per shared thing, explicit resources, typed reports), not chatty messaging. Messages say "look"; the team doc and status cards say what is true.
This skill uses T3 Code only. If its tools are missing (try loading them once with ToolSearch, or use the acp-mcp-call terminal fallback below when T3_ACP_MCP_NODE is set), say so and stop; never fall back to another harness's session tools or native invoke_subagent.
| role | is | does | does not |
|---|---|---|---|
| sync | user's global control plane | Global overview, cross-track trade-offs, global rules, spawning/retiring leads. Reads the team doc or federated status/<lead>.md cards on demand. | Dispatch workers, run check-ins, hands-on work, scrape long thread histories |
| domain lead (Model B) | top-level thread (vertical PI) | Discusses architecture/research directly with the user; owns end-to-end 0-GPU / local / domain-repo work (research, code edits, unit tests, PR review) plus short, bounded GPU smoke checks (1–2 idle local/dev GPUs or a single short-lived smoke pod ≤30m, with collision check + immediate net-zero teardown) to verify envs/renders/sanity checks via its own delegate_task workers; writes status/<lead>.md; hands verified commits/specs to ops leader for heavy runs. | Message sync; unilaterally grab shared cluster compute pools, multi-GPU allocations, or unattended long-running loops |
| ops leader | top-level thread (horizontal SRE) | Owns shared cluster compute quotas, shared worker pools, long-running unattended pipelines (large rollouts, multi-node training, full evals), scheduled check-ins, stop timers, net-zero teardown, and status/ops.md / team board. In Single-Ops-Leader mode, also splits all work. | Message sync or the user; investigate, debug, run experiments, write code; act as middleman for domain 0-GPU code edits (in Model B) |
| worker | delegate_task child of ops leader or a domain lead | One bounded part of the work, in its own worktree when editing files. | Touch other parts, message other workers or the user |
delegate_task), not top-level threads. Small team (1–2 workers, ≤ 1 day): sync may act as ops leader while keeping the no-hands-on rule.status/<lead>.md)When leads run in separate git worktrees, a worktree-local STATUS.md is invisible to other leads and sync. Solve this with one shared absolute directory (e.g. <main-repo>/<team-dir>/status/):
ops.md, infra.md, taskgen.md, kg.md, etc.) → zero write contention.Load native tools with ToolSearch (select:mcp__t3-code__<name>,...).
| action | tool | notes |
|---|---|---|
| sync launches a lead | t3_thread_launch | title, message = kickoff. Inherit runtime mode. Returns threadId and link. |
| sync → lead / lead ↔ lead | t3_thread_send | Route by threadId, mode: auto (steers running turn, starts idle thread; plain steer fails on idle). |
| lead → sync | team doc / status/<lead>.md | Never t3_thread_send to sync. |
| lead starts a worker | delegate_task | Call orchestrator_capabilities once first. mode: "async", isolation: "worktree" (when editing files), unique clientRequestId. Keep taskId & childThreadId. |
| worker reports | its final answer | Completion wakes parent lead. Read via task_status. Never poll a running worker. |
| lead continues a worker | t3_thread_send to childThreadId | Starts a fresh task with prior context; returns a new taskId. |
| stop a worker | task_cancel | Never t3_thread_interrupt on a childThreadId. |
| check-ins / stop timers | schedule_task | Bound to ops leader thread. Record scheduledTaskId; disable at close-out. |
| rotate / hand off a lead | t3_thread_transfer (fork) | Update thread addresses in the team doc afterwards. |
Runtime modes: t3_thread_send refuses targets broader than the sender (runtime_mode_escalation_denied). Launch leads in sync's runtime mode or narrower.
Hardened Antigravity / ACP fallback (acp-mcp-call): In Antigravity, MCP tools whose schema uses anyOf (delegate_task, t3_thread_launch, create_threads, schedule_task) are omitted from native mcp_t3-code_* tool lists even though T3 Code serves them. Rules:
invoke_subagent for T3 workers or cross-provider delegates.orchestrator_capabilities once first to get exact providerInstanceId, model, and options.acp-mcp-call via python3 (json.dumps + subprocess.run with ELECTRON_RUN_AS_NODE=1) instead of bash string escaping so markdown, quotes, and newlines never break JSON:import json, os, subprocess
cmd = [os.environ["T3_ACP_MCP_NODE"]]
if os.environ.get("T3_ACP_MCP_ENTRYPOINT"):
cmd.append(os.environ["T3_ACP_MCP_ENTRYPOINT"])
payload = {
"task": "<concise brief>",
"title": "<short worker title>",
"isolation": "worktree",
"mode": "async",
"clientRequestId": "<unique-id>",
"target": {"providerInstanceId": "<id>", "model": "<model>"},
}
res = subprocess.run(
cmd + ["acp-mcp-call", "delegate_task", json.dumps(payload)],
env={**os.environ, "ELECTRON_RUN_AS_NODE": "1"},
capture_output=True, text=True, check=True,
)
print(res.stdout)
isolation: "worktree" when editing files, mode: "async", a unique clientRequestId, and use task_cancel (never t3_thread_interrupt) to stop a delegate.Full paths, types, and formats: references/message-flow.md. Read it before writing a kickoff.
sync. Write to your own status/<lead>.md (and discuss with the user in your own thread if a Domain Lead).t3_thread_send (mode: auto) with explicit header [from: <lead> | kind: note|request|handoff], evidence/paths, and explicit Reply needed: yes|no.[done|ready|running|question|blocked|failed|handback]. Nobody waits (sleep / polling loops forbidden).t3_thread_transfer (fork) or launch a fresh ops leader from the team doc + status/ops.md, migrate its schedule_task check-ins, and update the team doc addresses.orchestrator_capabilities offers a smaller-context provider instance, run workers there and keep sync/leads on the default to cap prompt-cache rewrites after idle periods.threadIds and give the user their links.status/<lead>.md cards in parallel in 1 turn. Never wake leads to ask for status.decision.<shared-status-dir>/<lead>.md (≤ 20 lines).delegate_task (isolation: "worktree") workers—do not route code edits or env setup through ops leader. You may also run short, bounded GPU smoke checks (1–2 idle local/dev GPUs or a single short-lived smoke pod ≤30m) to verify env/render/1-episode sanity, provided you check nvidia-smi / status/ops.md for collisions first, tear down to net-zero immediately after, and log usage in status/<lead>.md.[from: <lead> | kind: handoff].sync.status/ops.md before dispatching.delegate_task (isolation: "worktree" for file edits), record taskId/childThreadId/worktree.schedule_task matched to job cadence (hourly for training, ~10m for queues, never every 2m).sync; do no hands-on coding/debugging; rotate context via t3_thread_transfer (fork) past ~500–1000 turns.schedule_task check-ins.Carried in every kickoff: write plan & pass/fail criteria before results (never edit criteria retroactively); stay in own worktree & assigned resources; never kill unowned processes (pkill -f forbidden); log state in the doc; report by finishing with one type header + evidence; never wait on long jobs ([running]) or decisions ([question]); hand back out-of-scope asks ([handback]).
STATUS.md inside a lead's worktree hides it from sync and other leads. Always write to the shared absolute status/<lead>.md path.invoke_subagent fallback: When delegate_task is missing in Antigravity tool lists, falling back to invoke_subagent breaks T3 thread tracking and cross-provider routing. Use acp-mcp-call via Python.scheduledTaskId and disable it at close-out.Verified on 2026-11-17 (one T3 Code installation, Claude provider): t3_thread_launch with provider/runtime mode; t3_thread_send (mode: auto steers running turn, arrives without sender wrapper; mode: steer on idle fails with thread_not_sendable; narrower→broader fails with runtime_mode_escalation_denied); delegate_task (mode: async) + task_status summary; continuing finished worker via t3_thread_send to childThreadId; schedule_task once firing after current turn.
Not verified: scheduled tasks surviving T3 restart or multi-hour intervals; worker completion waking an idle ops leader; isolation: "worktree"; task_cancel; t3_thread_transfer; cross-provider workers; smaller-window instance real context; concurrent multi-worker load. Verify what your team relies on before promising it works.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jiahao-shao1/sjh-skills --plugin sjh-skills15 skills in this plugin
/bibtex-fetchFetch BibTeX entries from arXiv / Semantic Scholar. Triggers: 'fetch bibtex', 'cite this paper', 'arXiv bibtex', '拉 bibtex', '获取引用', '引用这篇论文'. Not for citation format conversion (APA/MLA) or literature review./context-auditAudit project context management (CLAUDE.md, rules, knowledge) for progressive disclosure compliance. Checks that all knowledge files are reachable from rules, detects stale references, orphaned files, and CLAUDE.md index leakage. Triggers: 'audit context', 'check context', 'context hygiene', 'context audit', '检查 context', '审计上下文', 'knowledge 覆盖检查'. NOT for: code review, rule content correctness, or knowledge content quality./daily-summaryProduce daily/yesterday work summary (日报) by aggregating Claude Code sessions, Git commits, and Notion task data — git log alone cannot do this. Args: today (default), yesterday, 24h, YYYY-MM-DD. Triggers: 'daily summary', 'what did I do today', 'yesterday summary', '日报', '今天干了什么', '工作总结', '某天做了什么'. Not for weekly reports or summarizing files./experiment-registryManage ML experiment lifecycle via structured YAML registry — register, record results, compare runs, track status. Triggers: 'register experiment', 'compare experiments', 'experiment results', 'exp init', 'exp list', '注册实验', '对比实验', '查实验', '哪个实验最好', '记录结果'. Not for training monitoring, checkpoints, or launching jobs./handoffGenerate a structured handoff summary for the next session. Triggered when user says "handoff", "交接", or "写个交接"./init-project初始化新项目的 Claude Code 配置。用户说"初始化项目"、"init project"、"配置 Claude Code"时触发。Other plugins' skills for the same job