workflow-review
Audit an existing Pi JavaScript workflow for topology, prompt/data flow, limits, failure handling, cancellation, resume safety, and publication compatibility. Use when reviewing or debugging a workflow script or saved run; do not use to run a standard named workflow.
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 4
- Forks
- 6
01 前言 Front Matter
- name
- workflow-review
- metadata
- { "version": "1.12.1" }
- description
- Audit an existing Pi JavaScript workflow for topology, prompt/data flow, limits, failure handling, cancellation, resume safety, and publication compatibility. Use when reviewing or debugging a workflow script or saved run; do not use to run a standard named workflow.
03 SKILL.md 正文
Workflow review
Review the workflow as an executable orchestration program, not as prose. The review is read-only unless the user explicitly asks for a fix. Report concrete failure scenarios and evidence; do not recommend extra agents merely because they are available.
Review procedure
- Identify the boundary. Read the complete script, its invocation
args, saved-workflow source if applicable, and the relevant package version. Do not infer behavior from a truncated run notification. - Map the topology. List every work unit and its stable ID. Mark each as a
direct call,
orchestratetask,parallelitem,pipelinestage, loop round, quality helper, checkpoint, or nested workflow. Draw the dependency edges and barriers in declaration order. - Trace data flow. For every downstream prompt, identify the exact input values and their bounds. Confirm that structured fields have a schema and that failed/null results remain visible in a ledger.
- Check admission. Verify finite bounds for task count, fan-out, loops,
retries, and evidence size inside the script, and that the invocation leaves
maxAgents,concurrency,tokenBudgetandagentTimeoutMsat their defaults unless the user asked for that limit — a precautionary value there removes coverage rather than cost. Check that a graph validates IDs, references, duplicate edges, and cycles before any callback runs. - Check failure policy. Distinguish recoverable child
nullfrom fatal workflow errors. For graphs, verify whether the defaultskip-dependents, explicitcontinue, orfail-fastpolicy matches the task. Ensure ordinary task retries do not silently duplicate side effects. - Check lifecycle. Verify every batch is awaited, cancellation stops owned work, checkpoints have a headless behavior, and nested workflows stay within one level and shared capacity.
- Check resume. Keep call order, labels, prompts, routing options, and inputs stable. Confirm that edited or missing calls invalidate downstream replay and that nested results use a generation-scoped boundary. Treat effectful worktree/file changes as non-replayable unless its effects are explicitly restored.
- Check publication. Confirm the literal meta envelope, no imports or nondeterministic APIs, safe relative links, current capability facts, and an appropriate changeset when shipped package files changed.
Output format
Rank findings by severity and include:
file:lineor the task ID;- the concrete input or lifecycle sequence that triggers it;
- the incorrect or risky behavior;
- the smallest safe fix;
- whether it blocks correctness, loses coverage, wastes tokens, or is only a documentation concern.
End with a short topology summary and a list of verified strengths. If no finding is reproducible, say so and state which paths were checked.
References
- Use the review checklist for the compact acceptance gate.
- Use lifecycle for pause, stop, budget, retry, and resume semantics.
- Use debugging to reduce a failure to a deterministic fake-agent reproduction.
- Use the generated capability index only when a signature or support boundary is disputed.
04 同仓库更多 Skills
workflow-patterns
Choose and run one of Pi's built-in multi-agent workflows for research, adversarial review, code review, multi-perspective analysis, or codebase auditing. Use when the request matches a named pattern; use workflow-authoring instead for a new script or custom topology.
workflow-authoring
Design, write, review, and debug Pi JavaScript workflows that coordinate multiple subagents. Use when a request needs named dependencies, bounded fan-out, per-item pipelines, quality gates, saved or nested workflows, pause/resume, or workflow progress; do not use it merely to run an existing named workflow.
pi-ralph-wiggum
Long-running iterative development loops with pacing control and verifiable progress. Use when tasks require multiple iterations, many discrete steps, or periodic reflection with clear checkpoints; avoid for simple one-shot tasks or quick fixes.