Agent Skillscoleam00/Archon › manage-run

manage-run

GitHub

通过 archon CLI 管理项目内工作流运行,支持查看状态、启动、审批或拒绝流程。

.claude/skills/manage-run/SKILL.md coleam00/Archon

Trigger Scenarios

查询运行状态 启动后台任务 审批或拒绝流程

Install

npx skills add coleam00/Archon --skill manage-run -g -y
More Options

Non-standard path

npx skills add https://github.com/coleam00/Archon/tree/dev/.claude/skills/manage-run -g -y

Use without installing

npx skills use coleam00/Archon@manage-run

指定 Agent (Claude Code)

npx skills add coleam00/Archon --skill manage-run -a claude-code -g -y

安装 repo 全部 skill

npx skills add coleam00/Archon --all -g -y

预览 repo 内 skill

npx skills add coleam00/Archon --list

SKILL.md

Frontmatter
{
    "name": "manage-run",
    "description": "Use when: User wants to INSPECT, MONITOR, START, APPROVE, or CONTROL Archon\nworkflow RUNS in the current project — driven through the `archon` CLI over bash.\nTriggers (inspect): \"what's running\", \"list runs\", \"show recent runs\", \"run status\",\n          \"did the review pass\", \"check run <id>\", \"show me run <id>\", \"what happened in that run\".\nTriggers (control): \"approve the plan\", \"approve run <id>\", \"reject that run\", \"cancel that run\",\n          \"abandon run <id>\", \"resume run <id>\", \"continue that run\".\nTriggers (start): \"start <workflow> in the background\", \"kick off <workflow> detached\".\nCapability: Drives `archon workflow runs\/get\/status\/run --detach\/approve\/reject\/abandon\/resume`\n          with machine-readable `--json` output, scoped to the current project by cwd.\nNOT for: Authoring workflows\/commands, or Archon setup\/config — use the broader `archon` skill.\n",
    "argument-hint": "[run-id or workflow] [comment]"
}

Manage Archon Runs

A focused skill for managing workflow runs through the archon CLI. It assumes Archon is already installed and you are working inside the project repo — the current directory scopes every command to that project automatically. For authoring workflows, setup, or config, use the broader archon skill instead.

Recent runs (live)

!archon workflow runs --limit 10 2>&1 || echo "Archon CLI not installed. (This skill needs the archon CLI on PATH.)"

How output works

  • Add --json to any command for a single clean JSON object on stdout (logs are suppressed automatically in --json mode). Prefer --json when you will parse the result.
  • Without --json you get human-readable text. Diagnostics/warnings always go to stderr.
  • The current directory (cwd) determines which project's runs you see. Run from the repo.

Verbs

Goal Command
List recent runs (all statuses, this project) archon workflow runs --json
List across all projects archon workflow runs --all --json
Filter by status / cap rows archon workflow runs --status running --limit 50 --json
Show one run (status, error) archon workflow get <run-id> --json
One run with per-node detail archon workflow get <run-id> --verbose --json
Active runs only (running/paused) archon workflow status --json
Start a run, non-blocking archon workflow run <workflow> "<message>" --detach
Approve a paused gate archon workflow approve <run-id> "looks good" --json
Accept & complete a loop gate with a completed condition archon workflow approve <run-id> --json (NO comment)
Reject a paused gate archon workflow reject <run-id> "fix X first" --json
Cancel a non-terminal run archon workflow abandon <run-id> --json

There is no separate cancel verb — abandon cancels a non-terminal run by id.

Patterns

Monitor a run to completion

archon workflow runs --json                 # find the run id
archon workflow get <run-id> --json         # poll status: running | completed | failed | paused

A run is finished when status is completed, failed, or cancelled.

Start work without blocking

archon workflow run archon-assist "Investigate the flaky test" --detach
# returns immediately; the run then appears in `archon workflow runs`

--detach runs the workflow in a background child. The parent can't print the new run id (it's created in the child) — find it with archon workflow runs. If the run never appears, check the child log path printed by the command (or the logPath field in --detach --json).

Console UI note: a detached run appears in the web console's Workflow dock (the dock lists runs by project) and updates live — even though it executes in a separate process. A server-side poller tails the workflow-event table and replays new rows to the console's live feed (on PostgreSQL a NOTIFY trigger pushes them within the same second; on SQLite the poller picks them up on its short interval). No refresh is needed.

Approve or reject a paused run (two steps)

--json approve/reject/resume record the decision (the run becomes resumable) but do not execute the workflow — execution streams output that would corrupt the JSON. So:

archon workflow approve <run-id> "ship it" --json   # records the approval (resumable: true)
archon workflow resume <run-id>                      # execute it — run this as a BACKGROUND task
archon workflow get <run-id> --json                  # poll until completed/failed

If you only need to record the decision (e.g. cancel via reject) and don't need to drive the run forward, the --json step alone is enough. To approve and continue in one blocking call, drop --json: archon workflow approve <run-id> "ship it" auto-resumes (run it as a background task).

Interactive-loop gates: no comment = accept & complete

When a paused interactive loop gate met any declared completion condition (archon workflow get <run-id> --json.metadata.approval.completionSignaled is true), approving with no comment accepts the completion — on resume the node finalizes from the already-computed output with no re-run. Approving with a comment runs another iteration using it as feedback. Read the gate state first, then choose deliberately:

archon workflow get <run-id> --json | jq .metadata.approval.completionSignaled
archon workflow approve <run-id> --json          # accept & complete (finalize, no re-run)
archon workflow approve <run-id> "redo X" --json # run another iteration with feedback

(In project-scoped chat, the manage_run tool's approve action mirrors this: no message — or accept: true — finalizes; a message iterates.)

Reference

For the full flag list and JSON shapes of each verb: read references/commands.md.

Version History

  • d558cd0 Current 2026-08-20 02:56

    修正了关于聚合循环完成描述的准确性说明

  • ace0a41 2026-07-25 08:53

Same Skill Collection

.claude/skills/agent-browser/SKILL.md
.claude/skills/playwright-cli/SKILL.md
.claude/skills/release/SKILL.md
.claude/skills/remotion-best-practices/SKILL.md
.claude/skills/rulecheck/SKILL.md
.claude/skills/triage/SKILL.md
.claude/skills/archon-dev/SKILL.md
.claude/skills/archon/SKILL.md
.claude/skills/docker-extend/SKILL.md
.claude/skills/replicate-issue/SKILL.md
.claude/skills/save-task-list/SKILL.md
.claude/skills/validate-ui/SKILL.md

Metadata

Files
0
Version
d558cd0
Hash
0293c0c1
Indexed
2026-07-25 08:53

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 15:07
浙ICP备14020137号-1 $Carte des visiteurs$