Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

conduct

БесплатноЗапускает вложенные скриптыНе проверен

Coordinate registered Claude and Codex sessions for bounded reviews, design questions, and task handoffs. One Conductor, one shared protocol and helper on…

BaseInfinityот BaseInfinity★ 54 звезды на GitHub

Об этом скилле

Conduct — Claude adapter

This is the Claude-side adapter for Conduct protocol v1. The Codex wizard ships the Codex-side adapter. Both use the same envelope and the same helper:

  • references/protocol.md: the protocol. Read it before dispatching.
  • scripts/conduct.cjs: the only writer of .brain/ state.

Both files are vendored byte-identical from codex-sdlc-wizard, and tests/test-conduct.sh pins their hashes. Never edit them here. Change them upstream, then re-vendor.

<skill-root> below means the directory that holds this SKILL.md.

Envelope

There are exactly eight keys. The receiver owns model, effort, permissions and escalation, so those never go in the envelope.

{
  "v": 1,
  "id": "req-001",
  "from": "claude:<session-uuid>",
  "to": "codex:<thread-uuid>",
  "type": "review",
  "prompt": "Review the proposed change.",
  "cwd": "/absolute/repo/path",
  "ref": null
}
  • Request types are task, review, design and question, with ref: null.
  • A response has type: result and ref: <request id>.

Addresses

Use stable IDs, never display names.

Session Address
This Claude session in iTerm2 claude:<uuid>, the part of $ITERM_SESSION_ID after the colon
Claude session listed by ListAgents claude:<name exactly as ListAgents prints it>
Codex session codex:<thread uuid>

If two targets share a name, ask for the UUID. Do not guess.

A sender may address this session by another stable ID, such as its Claude session ID. Accept it. When you reply, copy the request's to verbatim into --from.

Commands

conduct list

Discover targets from every surface, then merge the results by stable ID:

  1. Run the ListAgents tool. It lists local, Desktop, cloud and Remote Control Claude sessions.
  2. Run it2api list-sessions. It lists visible iTerm2 panes, which can hold either agent.
  3. Use any Codex thread UUID the user or a Codex envelope supplied.

Report each target as address | kind | transport | status. A target with no verified send route is visible, not reachable.

conduct send <target> <message>

Never put message text in a shell command. Some of these commands run with the sandbox off, so a $(...), backtick, quote or heredoc terminator inside a message would execute. Put the text in a file without a shell, then pass the file as "$(cat FILE)"; the shell does not parse its output again.

Message files: seed, Read, Edit. Some installs deny the Write tool on any brand-new non-test file, which includes $SCRATCH/msg.txt. So create the file from a fixed literal, printf 'CONDUCT_PLACEHOLDER\n' > "$SCRATCH/msg.txt", which holds no message text. Read it, then use the Edit tool to replace CONDUCT_PLACEHOLDER with the message. An edit to an existing file passes that gate, and the text never touches a shell.

  1. Pick one run ID per conversation thread and reuse it, for example live-002. Give each send or reply its own private scratch directory, so concurrent runs never collide and no other user can pre-create the path: mktemp -d "${TMPDIR:-/tmp}/conduct.XXXXXX". Use the absolute directory it prints as $SCRATCH below.

  2. Put the message in $SCRATCH/msg.txt by seed, Read, Edit. Then record the request before you deliver it:

    node <skill-root>/scripts/conduct.cjs emit \
      --root <repo> --run <run-id> --box outbox --id <req-id> \
      --from <my-address> --to <target-address> \
      --type <task|review|design|question> \
      --prompt "$(cat "$SCRATCH/msg.txt")" --cwd <repo> --transport <route>
    
  3. Build the delivery file $SCRATCH/delivery.txt. Its first line is the run header, and the rest is the unchanged contents of <repo>/.brain/runs/<run-id>/outbox/<req-id>.json. The command holds only IDs and paths, never message text:

    { printf 'conduct run=%s root=%s request=outbox/%s.json\n' \
        "<run-id>" "<repo>" "<req-id>"
      cat "<repo>/.brain/runs/<run-id>/outbox/<req-id>.json"
    } > "$SCRATCH/delivery.txt"
    

    The header tells the receiver where to record its result. It is transport metadata, so the envelope stays exactly eight keys. Helper stdout is a wrapper object, so never send stdout.

  4. Record what the transport observed, without touching the envelope:

    node <skill-root>/scripts/conduct.cjs mark \
      --root <repo> --run <run-id> --id <req-id> --status <sent|delivered|failed>
    

    Transport acceptance is sent. It does not prove the receiver ran anything.

  5. Wait for exactly one response. Before you write a result, reread the ledger and validate any result in inbox that references the request. If a valid correlated result already exists, reuse it, even when the courier exited nonzero, and emit no duplicate. Report that exit as a transport note, not as a request failure. An invalid existing result is never trusted, overwritten or marked answered. Otherwise r

Полный SKILL.md на GitHub

Установить conduct в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/protocol.mdscripts/claude-desktop.pyscripts/claude-desktop.shscripts/codex-thread.pyscripts/conduct.cjsscripts/handoff.cjsscripts/prompts.cjsscripts/status.cjs

FAQ

Что делает скилл conduct?

Coordinate registered Claude and Codex sessions for bounded reviews, design questions, and task handoffs. One Conductor, one shared protocol and helper on both ends. Use when the user asks to consult, dispatch to, review with, or coordinate another Claude or Codex session (CLI now; desktop once an adapter exposes it).

Как установить скилл conduct?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл conduct запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить conduct с