Skip to content
Back to skills

Workflow Authoring

ASecurity

Guidance for writing, editing, reviewing, and debugging JavaScript workflow code for pi-dynamic-workflows. Use when authoring or changing workflow scripts; not for merely running an existing workflow.

  • 554 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added August 30, 2026
ai-agentsjavascriptjavadebugging

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned October 7, 2026

npx -y skills add QuintinShaw/pi-dynamic-workflows --skill workflow-authoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Workflow Authoring?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Workflow Authoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/quintinshaw-workflow-authoring/badge)](https://www.skillsdirectory.com/skills/quintinshaw-workflow-authoring)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: workflow-authoring
description: Guidance for writing, editing, reviewing, and debugging JavaScript workflow code for pi-dynamic-workflows. Use when authoring or changing workflow scripts; not for merely running an existing workflow.
metadata:
  version: "3.14.0"
---

# Workflow authoring

Load this skill when workflow JavaScript changes. Running an existing workflow needs no authoring reference.

## Choose a branch

Read only what the task needs:

- **Write or edit:** start with [runtime](references/runtime.md). Add [pattern selection](references/pattern-selection.md) for topology, [lifecycle](references/lifecycle.md) for limits or resume, and [focused recipes](references/focused-recipes.md) for the matching concern.
- **Helper task:** read [quality helpers](references/quality-helpers.md) only for `verify` or `judgePanel`, the [retry helper](references/retry-helper.md) only for `retry`, and [specialized helpers](references/specialized-helpers.md) only for `completenessCheck`, `loopUntilDry`, `gate`, or `checkpoint`.
- **Review:** use the [review checklist](references/review.md), plus only the matching [quality](references/quality-helpers.md) or [specialized](references/specialized-helpers.md) helper contracts.
- **Debug:** use the [debugging map](references/debugging.md).
- **Routing:** read [registry ownership](references/registry-ownership.md) before using `model`, `tier`, phase models, or `agentType`; use environment-specific names only when context supplies them.
- **Exact lookup or portability:** start with the generated [capability index](references/capabilities.md). Follow its exhaustive-facts pointer only for constraints or support boundaries. Use [versions](references/versions.md) when moving scripts between installations.

## Invariants

- Start with literal `export const meta = { name, description }`; declare phases as an array of used `{ title }` objects and enter each named phase.
- Call `agent()` at least once, give every call a short unique `label`, and return plain JSON data explicitly.
- Pair ordered results with stable work IDs before filtering. When one agent consumes another's selected result, include both its stable ID and actual data in the downstream prompt. Treat recoverable `null` as missing coverage and report it.
- Bound fan-out, loops, retries, agents, and concurrency to the task. Treat invocation-level token and time caps as opt-in user constraints, not defaults.
- Use `log()` for new code; `console` is compatibility-only.
- Write plain JavaScript without imports or filesystem modules. Pass nondeterminism through `args`; `Date.now()`, `Math.random()`, and no-argument `new Date()` are unavailable.

Files in this skill

  • SKILL.md2.6 KB
  • examples/adversarial-verification.js2.2 KB
  • examples/bounded-semantic-retry.js1.9 KB
  • examples/classify-and-act.js2.4 KB
  • examples/defensive-json-parsing.js2.6 KB
  • examples/fan-out-and-synthesize.js1.7 KB
  • examples/generate-and-filter.js2.5 KB
  • examples/loop-until-done.js2 KB
  • examples/phased-budgets.js2.6 KB
  • examples/saved-nested-workflows.js1.9 KB
  • examples/structured-output.js1.3 KB
  • examples/tournament.js2.9 KB
  • examples/validated-gate.js2 KB
  • references/capabilities.md5 KB
  • references/capability-details.md17.1 KB
  • references/common-helpers.md160 B
  • references/debugging.md2.9 KB
  • references/focused-recipes.md1.7 KB
  • references/helpers.md577 B
  • references/lifecycle.md5.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…