threads
БесплатноЗапускает вложенные скриптыНе проверенUse when the user explicitly asks for $threads, Codex-native subagents, 开几个子 agent, or a GitHub issue/PR queue needing parallel lanes, worktrees, review/merge…
от majiayu000★ 301 звезда на GitHubОб этом скилле
Threads
Use this skill to turn a broad request into controlled Codex-native subthreads with explicit lanes, file ownership, review gates, and verifiable closure.
Native Codex threads are short-lived parallel work lines inside the Codex workflow. They are not the same as OMX/tmux workers. If native subagent tools are not visible, discover them with tool search. If no native subagent capability is available, produce the thread prompt pack and execution plan instead of pretending threads were launched.
Quick Path
- Classify the request:
single_agent,plan_only,execute_direct,review_only,research_spec, orclarify_first. - If the user explicitly asked for threads, record
intent_contractandthread_dispatch_gate, write arun_phase: preflightrecord, and passappend_run_log.py --validate-onlybefore spawning. - For GitHub queues, fetch remote state in the coordinator lane, then write
queue_gate,queue_ledger,issue_to_pr_map, and the validatedqueue_bounds. - Write a lane map with file ownership, verification owner, stop conditions, context budget, and output firewall.
- Route large command output to artifacts before dispatch; the parent reads only summaries, short tails, targeted greps, and evidence paths.
- Dispatch only bounded native lanes with disjoint writable scopes or read-only roles.
- Collect, wait, and close spawned agents; do not count the coordinator as a spawned thread.
- Run fresh verification tied to the current head or artifact.
- End with a compact final report and
threads_run_log; write durable JSONL for queue, multi-lane, push, comment, or merge-capable runs.
Do Not Use For
Do not use this skill for generic uses of "thread" unless the user explicitly means Codex workflow orchestration:
- operating-system threads, language concurrency, or async programming models
- chat, email, forum, Slack, GitHub discussion, or comment threads
- OpenAI Assistants API threads or other product APIs
- ordinary single-agent repo work where there are no independent lanes
Decision
Choose one mode:
- single_agent: handle a small, well-scoped task locally with the same evidence gates.
- plan_only: map issues, PRs, risks, and parallelization without edits.
- execute_direct: run one or more bounded implementation lanes after planning.
- review_only: launch independent reviewers for PRs, diffs, or risky code.
- research_spec: split exploration by angle, then synthesize docs/spec/issues.
- clarify_first: ask only when repo, target queue, permission, or done-when is missing.
Use single_agent only for one-file fixes, simple questions, or tasks where the next step depends on one immediate result. If the user explicitly asks for threads, subagents, or a GitHub issue/PR queue and native subagents are available, do not silently choose single_agent; record a concrete no_spawn_reason before implementation work begins.
For any implementation mode, start with a lane map before spawning workers. For GitHub issue/PR queues, complete the Capability Gate and Queue Gate first; do not create worker lanes until capability_gate, queue_gate, queue_ledger, and issue_to_pr_map are written.
Explicit Thread Dispatch Gate
When the user explicitly asks for threads, subagents, "开几个子 agent", or a GitHub issue/PR queue that the skill classifies as plan_only, execute_direct, review_only, or research_spec, native dispatch is required whenever native subagent tools are available.
Record this gate before implementation, review, or merge work:
thread_dispatch_gate:
- explicit_thread_request: yes | no
- native_subagents: available | unavailable
- spawn_requirement: required | optional | unavailable
- fallback_mode: single_agent | prompt_pack_only | none
- planned_native_threads:
- id:
role:
target:
write_scope: read_only | disjoint_writable | none
spawn_status: planned | spawned | skipped
no_spawn_reason:
- native_thread_evidence:
user_requested_native_threads: yes | no
spawned_agents:
- lane_id:
spawn_tool:
agent_id_or_thread_id:
wait_evidence:
close_evidence:
result_collected: yes | no
fallback_reason:
- no_spawn_reason:
Rules:
- If
explicit_thread_request: yes,native_subagents: available, andspawn_requirement: required, spawn at least one bounded native subagent before claiming the run is using threads. native_subagents: availableplusfallback_mode: noneis valid only whennative_thread_evidence.spawned_agentscontains at least one real agent/thread ID.- Every
planned_native_threadslane must have a matchingnative_thread_evidence.spawned_agents[].lane_idor a lane-levelno_spawn_reason; spawning one native thread does not justify running the remaining planned lanes serially. - A main-thread lane is a coordinator lane, not a native thread. Do not count the coordinator as
native_thread_evidence.spawned_agents. - If no n
Установить threads в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл threads?
Use when the user explicitly asks for $threads, Codex-native subagents, 开几个子 agent, or a GitHub issue/PR queue needing parallel lanes, worktrees, review/merge gates, and closure audit. Do not use for OS/language threads, chat/email/forum threads, or Assistants product threads unless Codex workflow orchestration is explicit.
Как установить скилл threads?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл threads запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic