一键导入
util-delegated-cli-task-ops
Queue and run delegated repo tasks inside tmux-managed worker sessions using external coding CLIs such as Copilot or OpenCode.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Queue and run delegated repo tasks inside tmux-managed worker sessions using external coding CLIs such as Copilot or OpenCode.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Index Logseq markdown into SQLite, query the index quickly, and synchronize markdown updates back into the database.
Publish or update a Copilot CLI plugin in a repository marketplace by wiring marketplace metadata, source paths, README guidance, and install instructions.
Add custom agents, reusable skills, and MCP configuration to a Copilot CLI plugin while keeping the manifest and documentation aligned.
Create a new GitHub Copilot CLI plugin skeleton with a manifest, starter documentation, agent files, skill directories, and optional MCP wiring.
Perform safe, auditable open, close, create, move, and edit operations on KeePass databases via a local Python helper script.
Register repo memory and manage tmux-backed delegated worker sessions for external coding CLIs.
| name | util-delegated-cli-task-ops |
| description | Queue and run delegated repo tasks inside tmux-managed worker sessions using external coding CLIs such as Copilot or OpenCode. |
Use this skill when the user wants to delegate a repo task to a managed tmux session instead of having the current conversation execute the work directly.
This skill uses plugins/util-skills/scripts/tmux_cli_orchestrator.py for queueing and scheduling and plugins/util-skills/scripts/tmux_cli_worker.py for execution inside the tmux worker pane.
python3.tmux installed and available on PATH.PATH:
copilotopencodeBefore enqueuing a task, verify the repo and session state:
python3 plugins/util-skills/scripts/tmux_cli_orchestrator.py \
status-show \
--repo-root <repo-root>
If the repo is not registered yet, register it first with util-tmux-session-admin.
Create the full task prompt text. For lengthy or structured prompts, save the prompt to a temporary file and pass the file path to the helper.
Use one of these forms:
python3 plugins/util-skills/scripts/tmux_cli_orchestrator.py \
task-enqueue \
--repo-root <repo-root> \
--cli <copilot|opencode> \
--prompt "<delegated task prompt>"
python3 plugins/util-skills/scripts/tmux_cli_orchestrator.py \
task-enqueue \
--repo-root <repo-root> \
--cli <copilot|opencode> \
--prompt-file /tmp/delegated-task.md
Optional controls:
--title <title> for a short label--session-id <session-id> to prefer a specific worker session--execution-mode queue to serialize work on the main checkout (default)--execution-mode worktree to isolate the task in a git worktree--agent <agent-name> or --model <model-name> to pass through adapter-specific preferencesDefault behavior is conservative:
queue task runs against the main checkout at a timequeue tasks remain queued until the current main-checkout task finishesworktree tasks can run concurrently when the repo is a git repo and an idle worker session existsIf worktree mode is requested for a non-git repo, stop and surface the error instead of silently downgrading.
Use the helper to show the queue or one specific task:
python3 plugins/util-skills/scripts/tmux_cli_orchestrator.py \
task-list \
--repo-root <repo-root>
python3 plugins/util-skills/scripts/tmux_cli_orchestrator.py \
task-show \
--repo-root <repo-root> \
--task-id <task-id>
When a task finishes, the worker updates tmux state, writes the final summary into the log, and sends a best-effort OS notification.
If a queued task should not run:
python3 plugins/util-skills/scripts/tmux_cli_orchestrator.py \
task-cancel \
--repo-root <repo-root> \
--task-id <task-id>
Running task cancellation is intentionally manual because the live CLI process is inside tmux.
| Subcommand | Description |
|---|---|
task-enqueue | Queue a task and start it immediately when safe and possible. |
task-start-next | Start any queued task that is eligible to run now. |
task-list | List delegated tasks for the repo. |
task-show | Show one delegated task in detail. |
task-cancel | Cancel a queued task before execution. |
queue mode unless the user clearly wants isolated concurrent work and the repo can support git worktrees.copilot, opencode) or missing tmux as explicit errors.Reply with:
Task: <task-id> - <title>
Status: <queued|running|completed|failed|cancelled>
CLI: <copilot|opencode>
Mode: <queue|worktree>
Session: <session-id or pending>
Log: <log-file or pending>
Tmux: <tmux-session-name>
Next: <attach command or queue note>