archon-cli
GitHubArchon CLI技能,用于驱动AI工作流执行、管理运行状态(审批/取消等)、配置环境及编写优化工作流。适用于通过CLI自动化处理代码库任务、审查PR或修复Issue的场景。
Trigger Scenarios
Install
npx skills add coleam00/Archon --skill archon-cli -g -y
SKILL.md
Frontmatter
{
"name": "archon-cli",
"description": "Drive Archon through its CLI: run AI workflows on a repo, manage those runs\n(inspect, approve, reject, cancel, resume), set up Archon or change its config,\nauthor new workflows, and improve workflow prompts. Use when the user says \"use archon\", \"run archon\",\n\"archon workflow\", \"fix issue #N with archon\", \"have archon review this PR\",\n\"what's running \/ check run <id>\", \"approve\/reject\/cancel\/resume that run\",\n\"set up archon\", \"configure archon\", \"change my archon config\",\n\"create a workflow\", \"author a workflow\", or asks how to write a better Archon prompt.\nNOT for: doing the coding work yourself — Archon delegates it to isolated runs.\n",
"argument-hint": "[workflow | run-id | intent]"
}
Archon CLI
Archon runs multi-step AI workflows through the archon CLI. Git projects use
isolated worktrees by default; registered folder projects run in place. This
skill has five capabilities; route by intent:
| User wants to... | Read |
|---|---|
| Run workflows on real work | running-workflows/running-workflows.md |
| Manage existing runs (inspect/approve/reject/cancel/resume) | manage-run/manage-runs.md |
| Set up Archon or change config | setup-and-config/setup-and-config.md |
| Author a new workflow | authoring-workflows/authoring-workflows.md (+ its node-reference.md) |
| Improve prompts for workflow nodes or run messages | prompting-mistakes/prompting-mistakes.md |
Routing rules:
- Intent is clear from the request ("build me a workflow for X", "run archon-ship on issue #42") → route directly. Do not ask.
- Genuinely ambiguous → ask the user which capability they want, listing these five.
- First contact with an unconfigured machine →
setup-and-config/setup-and-config.mdbefore anything else.
Quick spine: running a workflow
Most requests land here. The short version; details in the running reference:
-
Discover what exists:
archon workflow list. Map the user's intent to a workflow by reading descriptions — never assume names from memory. -
Invoke detached by default (workflows are long-running):
archon workflow run <workflow> --branch <branch-name> "<the work, as a clear message>" --detach -
Find the run id and monitor:
archon workflow runs --json, thenarchon workflow get <run-id> --json. -
When a run pauses at a gate, resolve it deliberately: see
manage-run/manage-runs.md.
Three hard rules:
- A fresh launch of an interactive-class workflow refuses
--detach. Run that launch in the foreground as a background task of your harness. Once the run pauses,resume/approve/reject/respond --detachare supported continuation actions. - Prefer
--detachif the workflow is not interactive. - One workflow per shell; multiple tasks = separate invocations, separate branches.
Gotchas
- The current directory scopes every command to that project. For a git project,
run from the repo root. Register a non-git project with
workflow run --folder. - A completed run does not mean the work succeeded. Use
workflow get <run-id> --jsonfor the normalizedoutcomeandleave_behind.artifactFiles; use a separate--verbose --jsoncall for node summaries. - Prefer
--jsonwhenever you will parse output.
Resources
running-workflows/running-workflows.md— discovery, invocation, isolation, monitoringmanage-run/manage-runs.md— every run-control verb, gate semantics, JSON shapesmanage-run/troubleshooting.md— log locations, JSONL event types, jq recipessetup-and-config/setup-and-config.md— install, doctor, config.yaml scopes, provider authauthoring-workflows/authoring-workflows.md— designing a workflow: primitives, gates, promptsprompting-mistakes/prompting-mistakes.md— common prompt mistakes, for authored nodes and for the messages you pass when invoking workflows
Version History
- dd2838c Current 2026-08-28 13:16


