Skip to content

patrick-fu/parallel-goal-workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Goal Workflows

中文说明

A pencil sketch showing scattered notes becoming a coordinated workflow and final report

parallel-goal-workflows is a guidance skill for complex multi-agent work. It helps the main conversation stay clean while a delegated workflow runs through planning, focused execution, review, repair, acceptance, and a concise final handoff.

Invoke it explicitly when a task is too broad, noisy, or risk-sensitive for the main agent to both coordinate and execute directly.

Install

npx skills add patrick-fu/parallel-goal-workflows

Update later:

npx skills update

Quick Use

This is a user-invoked skill. Invoke it with a slash command or $ command, then describe the task clearly:

$parallel-goal-workflows

Audit this repository's authentication flow. I want independent exploration,
implementation-risk review, and a final report with evidence, open risks, and
recommended fixes.

Mention the goal, scope, constraints, expected evidence, and anything that requires approval.

What It Does

The skill turns a broad request into an owned workflow:

  • keeps coordination noise out of the main conversation;
  • delegates focused work to agents or helpers when useful;
  • routes important findings through review and repair;
  • checks whether the result satisfies the original goal;
  • returns a concise report with evidence and remaining risks.

The workflow can be small. It does not force parallelism when a single focused agent is enough.

When To Use It

Good fits include:

  • codebase audits or cross-checked research;
  • multi-step implementation work that needs independent review;
  • long-running tasks where intermediate logs would flood the main context;
  • review and repair loops where the final decision matters more than every intermediate detail;
  • broad tasks that benefit from multiple focused agents working under one workflow owner.

Avoid it for quick edits, simple research, ordinary code review, or tasks where you want to stay directly in the main conversation.

How It Works

Internally, each agent has a clear job:

  • Main Agent: stays user-facing, interprets the raw request, turns it into a clear task contract, starts one Workflow Owner, observes progress, and relays the final handoff.
  • Workflow Owner: owns decomposition, execution coordination, review, repair, acceptance, and final judgment.
  • Focused agents or helpers: own local goals only, work from the task packet they receive, and report evidence, verification, risks, or decisions back to the Workflow Owner.

Child agent roles are examples, not a fixed type list. A workflow may use workers, reviewers, verifiers, researchers, explorers, implementers, domain specialists, or other focused helpers as the task warrants.

The Main Agent and Workflow Owner should send compiled task packets, not raw user prompts. Every delegated task should carry a local goal, relevant context, boundaries, expected deliverable, verification needs, and pause conditions. The Main Agent waits on workflow state, not output volume, and steps in only on blocked or needs-human signals instead of reclaiming work because a task is quiet.

Workflow Shapes

The Workflow Owner chooses the shape that fits the task. These are examples, not scripts.

Review And Repair

flowchart LR
  User["User"] --> Main["Main Agent<br/>conversation boundary"]
  Main --> Owner["Workflow Owner<br/>task owner"]
  Owner --> Worker["Worker goal"]
  Worker --> Review["Independent review"]
  Review --> Decision{"Good enough?"}
  Decision -- "No" --> Repair["Repair goal"]
  Repair --> Review
  Decision -- "Yes" --> Acceptance["Acceptance / verification"]
  Acceptance --> Report["Acceptance-ready report"]
  Report --> Main
  Main --> User
Loading

Parallel Synthesis

flowchart LR
  User["User"] --> Main["Main Agent<br/>conversation boundary"]
  Main --> Owner["Workflow Owner<br/>task owner"]
  Owner --> A["Worker A goal"]
  Owner --> B["Worker B goal"]
  Owner --> C["Worker C goal"]
  A --> S["Synthesis goal"]
  B --> S
  C --> S
  S --> Decision{"Conflict or gap?"}
  Decision -- "Yes" --> Followup["Targeted follow-up goal"]
  Followup --> S
  Decision -- "No" --> Acceptance["Acceptance / report"]
  Acceptance --> Main
  Main --> User
Loading

Nested Helpers

flowchart LR
  User["User"] --> Main["Main Agent<br/>conversation boundary"]
  Main --> Owner["Workflow Owner<br/>task owner"]
  Owner --> W["Worker goal"]
  W --> Decision{"Needs deeper help?"}
  Decision -- "Yes" --> A["Helper A goal"]
  Decision -- "Yes" --> B["Helper B goal"]
  A --> S["Worker synthesis"]
  B --> S
  Decision -- "No" --> Direct["Worker result"]
  S --> Review["Review / acceptance"]
  Direct --> Review
  Review --> Report["Final report"]
  Report --> Main
  Main --> User
Loading

Requirements

The best experience uses a host that supports explicit skill invocation, goals, and subagents.

  • Claude Code: invoke with /parallel-goal-workflows. The skill sets disable-model-invocation: true so Claude Code should not select it automatically or preload it into subagents. Nested subagents are supported in Claude Code v2.1.172 and newer, up to 5 levels deep.
  • OpenAI Codex: invoke with $parallel-goal-workflows. The bundled agents/openai.yaml sets policy.allow_implicit_invocation: false so Codex should not select it implicitly. Codex supports agents.max_depth for nested spawned agents.

A practical Codex configuration is:

[agents]
max_threads = 50
max_depth = 5

[features]
multi_agent = true
goals = true

For more detail, see references/codex-nested-subagents.md.

More Skills

For more reusable agent skills, see Awesome Skills.

About

Goal-driven workflows for orchestrated multi-agent delegation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages