resume-workflow
Resume a paused flows-lite workflow run from the last completed step using bin/polymath-flow resume.
- License 许可
- MIT
- 最近更新
- 2026-10-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- resume-workflow
- description
- Resume a paused flows-lite workflow run from the last completed step using bin/polymath-flow resume.
03 SKILL.md 正文
resume-workflow
Resume a paused workflow. Pause causes include user interrupt, step failure, or a failed
mustPasscheck.
Mode: deterministic — same inputs, same output. Follow the steps and the output shape exactly; compute with the named script or tool, never by estimate; add nothing the shape does not ask for.
When to use
- The user types
/polymath-flows:resume-workflow [<run_id>]. - The
polymath-coreSessionStart hook surfaced a paused OR an in-progress (active) run — including one interrupted in a prior session, possibly flagged stale. - A
mustPassfailure paused a previous run.
Inputs
- Optional
run_id. If omitted, list paused and in-progress runs and ask which to resume.
Procedure
-
If no
run_idwas supplied, list both resumable buckets:"${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/bin/polymath-flow" list --status paused "${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/bin/polymath-flow" list --status activeSurface the combined table (
run_id+ status +last_active) and ask the user to pick one. If both are empty, say so and stop.resumecontinues an active run as-is and flips a paused run back to active. -
Resume the chosen run:
"${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/bin/polymath-flow" resume <run_id>The executable flips status from
pausedtoactiveand prints the next step JSON. -
Continue the loop exactly as
run-workflowdoes: announce step → perform work → write artifacts →complete→assertat the end.
Output
Resuming 2026-10-21T09-10-shipFeature-resilient-retries (paused: mustPass pr-draft-exists failed)
Fixed first: wrote docs/pr/resilient-retries.md
6/6 pr complete docs/pr/resilient-retries.md
assert: completed — 4/4 mustPass checks passed
Then the same per-step lines as run-workflow. With no run_id and nothing
resumable: No paused or active runs.
Anti-patterns to avoid
- Resuming without checking why it paused. If a
mustPasscheck failed, the underlying artifact must actually be fixed (e.g. the missing PRD written) before resuming — never by editing a step summary to match the gate. - Resuming a run flagged stale (≥ 2 days idle) without first checking that the branch, artifacts, and inputs it depends on still exist.
- Re-doing already-complete steps. The executable's
nextalways points to the right place; trust it.
04 同仓库更多 Skills
runbook
Write or refresh an operational runbook for an alert/symptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.
rfc
Draft a lightweight design RFC to docs/rfcs/<slug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).
editorial-pass
Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.
architecture-review-facilitation
Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.
architecture-doc
Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).
adr
Write an Architecture Decision Record (Michael Nygard format) to docs/adrs/NNNN-<slug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).