Workflow
Big-task path for work that is too large for normal turn-by-turn orchestration: system-wide changes, large migrations, repo-wide audits, high-confidence verification, and task prompts that explicitly ask for a workflow.
- In Claude Code, use the host dynamic workflow runtime.
- In Codex, run the portable workflow adapter with Codex subagents when exposed; otherwise run the same phases inline in the current thread.
- In OpenCode, run the portable workflow adapter with Task/subagent dispatch when exposed; otherwise run the same phases inline in the current session.
- In Grok, run the portable workflow adapter with
spawn_subagent when enabled; otherwise run the same phases inline in the current session.
- In Antigravity, Desktop/web bridge mode, or any host that cannot preserve the adapter phases, say so in one line and route to
/hyperflow:plan with chain-mode=auto.
Claude Code dynamic workflows require Claude Code v2.1.154 or later and can be disabled by /config, managed settings, ~/.claude/settings.json, or CLAUDE_CODE_DISABLE_WORKFLOWS=1. When disabled, use the portable adapter if the host is Codex, OpenCode, or Grok; otherwise route to /hyperflow:plan with chain-mode=auto.
Routing Rules
- Run this skill in Claude Code, Codex, OpenCode, and Grok.
- Auto-route here when triage returns
flow=deep or flow=scientific, scope=system-wide, or the user says big task, large migration, repo-wide audit, run a workflow, or dynamic workflow.
- Do not route here for moderate multi-file work, routine bug fixes, or a task that needs user sign-off between implementation stages. Big-task workflow runs should not depend on arbitrary mid-run user input; split sign-off-heavy work into separate workflows or use
spec -> scope -> dispatch.
- Do not set
/effort ultracode or xhigh automatically. The user can enable /effort ultracode manually for session-wide workflow selection.
Provider Contracts
Claude Code Native Workflow
When this skill runs, ask the Claude Code workflow runtime to create a dynamic workflow for $ARGUMENTS. The generated workflow must preserve Hyperflow's doctrine inside the worker prompts and must include these phases:
Research and planning
- Map affected files, dependency edges, tests, docs, and risk boundaries.
- Read
.hyperflow/profile.md, .hyperflow/architecture.md, .hyperflow/conventions.md, .hyperflow/testing.md, and .hyperflow/memory/index.md when present.
- Produce a concise execution graph with parallelizable units and dependencies.
Parallel implementation or investigation
- Fan out independent agents by subsystem or file family.
- Keep each agent brief specific: objective, files in scope, constraints, acceptance criteria, and test expectations.
- Use the lightest model/stage that can safely do the work when the runtime supports model routing.
Adversarial verification
- Run independent verification agents against each implementation or finding.
- For audits, verify each finding before reporting it.
- For implementation, check cross-file integration, regression risk, security-sensitive paths, and missed tests.
Quality gates and repair loop
- Run the project lint, typecheck, build, and relevant tests from
.hyperflow/testing.md or detected package scripts.
- Retry focused fixes only for verified failures.
- Never use
--no-verify; never force-push to main or master.
Final synthesis
- Return one coordinated result with completed work, verification evidence, unresolved risks, changed files, and next actions.
- For durable project learnings, identify what should be appended to
.hyperflow/memory/, but do not invent memory entries unrelated to the run.
Codex Portable Workflow Adapter
Codex does not provide Claude Code's dynamic workflow runtime. Treat /hyperflow:workflow as a custom Hyperflow workflow envelope around Codex subagents and inline fallback:
Research and planning
- Read the same
.hyperflow/ cache files listed above when present.
- Write or update
.hyperflow/tasks/<slug>.md for implementation or audit work that needs durable progress tracking.
- Build an execution graph with parallelizable units, dependencies, expected commits, and verification commands.
Parallel implementation or investigation
- If Codex subagent tools are exposed, dispatch independent searcher/worker/writer units together and collect their results before review.
- Map implementation and writing tasks to worker subagents; map codebase research to explorer/search subagents.
- If subagents are unavailable, run each unit inline with explicit worker and reviewer labels.
Adversarial verification
- Run a separate verification pass for each completed unit before reporting it.
- Use Codex thinking defaults for verification and final integration review.
Quality gates and commits
- Run the detected lint, typecheck, build, and relevant tests.
- Commit each accepted unit separately using conventional commits.
- Never use
--no-verify; never request xhigh.
Final synthesis
- Return changed files, verification evidence, unresolved risks, and next actions.
OpenCode Portable Workflow Adapter
OpenCode does not provide Claude Code's dynamic workflow runtime. Treat /hyperflow:workflow as a custom Hyperflow workflow envelope around OpenCode's task/subagent facilities and inline fallback:
Research and planning
- Read the same
.hyperflow/ cache files listed above when present.
- Write or update
.hyperflow/tasks/<slug>.md for implementation or audit work that needs durable progress tracking.
- Build an execution graph with parallelizable units, dependencies, expected commits, and verification commands.
Parallel implementation or investigation
- If OpenCode exposes Task/subagent dispatch, send independent implementation or investigation units through that path.
- Keep each subtask bounded by objective, files in scope, constraints, acceptance criteria, and tests.
- If task dispatch is unavailable, run each unit inline with explicit worker and reviewer labels.
Adversarial verification
- Run a separate verification pass for each completed unit before reporting it.
- Run verification and the final integration review as decision-agent passes on the current session model.
Quality gates and commits
- Run the detected lint, typecheck, build, and relevant tests.
- Commit each accepted unit separately using conventional commits.
- Never use
--no-verify.
Final synthesis
- Return changed files, verification evidence, unresolved risks, and next actions.
Grok Portable Workflow Adapter
Grok does not provide Claude Code's dynamic workflow runtime. Treat /hyperflow:workflow as a custom Hyperflow workflow envelope around Grok spawn_subagent and inline fallback:
Research and planning
- Read the same
.hyperflow/ cache files listed above when present.
- Write or update
.hyperflow/tasks/<slug>.md for implementation or audit work that needs durable progress tracking.
- Build an execution graph with parallelizable units, dependencies, expected commits, and verification commands.
Parallel implementation or investigation
- If
spawn_subagent is available and subagents are not disabled (GROK_SUBAGENTS / config), dispatch independent units together:
- implementer/writer →
subagent_type: general-purpose
- searcher/research →
subagent_type: explore
- Collect results before review; spawn independent siblings in parallel when the runtime allows.
- If subagents are unavailable, run each unit inline with explicit worker and reviewer labels.
Adversarial verification
- Run a separate verification pass for each completed unit before reporting it.
- Run verification and the final integration review as decision-agent passes on the current session model.
Quality gates and commits
- Run the detected lint, typecheck, build, and relevant tests.
- Commit each accepted unit separately using conventional commits.
- Never use
--no-verify.
Final synthesis
- Return changed files, verification evidence, unresolved risks, and next actions.
Claude Code Prompt Skeleton
Use this shape when handing the task to the workflow runtime:
Create a dynamic workflow for this Hyperflow big-task run.
Task:
<user task>
Doctrine:
- Preserve Hyperflow autonomy: execute reversible work without invented confirmations.
- Ask only for genuine ambiguity after codebase research.
- Keep plans, task decompositions, audits, and memory under .hyperflow/ when files are needed.
- Use conventional commits, one distinct task per commit.
- Never use --no-verify and never force-push to main/master.
- Respect the Hyperflow security blocklist in skills/hyperflow/security.md.
Required phases:
1. Research and planning.
2. Parallel implementation or investigation.
3. Adversarial verification.
4. Quality gates and focused repair loop.
5. Final synthesis.
Acceptance:
- Every substantive result is independently checked before being reported.
- Quality gates run or are explicitly marked unavailable with the command attempted.
- The final answer includes evidence, changed files, unresolved risks, and next actions.
Save For Reuse
When a run succeeds and the user will repeat it, mention that Claude Code can save the generated workflow from /workflows with s. Project workflows save under .claude/workflows/; personal workflows save under ~/.claude/workflows/. Do not create those files directly from this skill because plugin packaging does not currently ship .claude/workflows/ as a first-class component.
Codex, OpenCode, and Grok adapters are not saved through /workflows; repeatable behavior comes from this skill, .hyperflow/tasks/, project memory, and provider-specific subagent/task configuration.
Source: jeremylongshore/claude-code-plugins-plus-skills → plugins/ai-agency/hyperflow/skills/workflow/SKILL.md
1---
2name: workflow-2
3description: "| Use when a task is too large for turn-by-turn orchestration and should run through the big-task workflow lane: system-wide changes, large migrations, repo-wide audits, high-confidence verification, or tasks explicitly asking to run a workflow. Claude Code uses native dynamic workflows; Codex, OpenCode, and Grok use the portable workflow adapter. Trigger with /hyperflow:workflow, \"run a workflow\", \"dynamic workflow\", \"big task\", \"large migration\", \"repo-wide audit\"."
4allowed-tools: "Read, Glob, Grep, AskUserQuestion, Skill"
5category: ai-agents-and-harness
6source_repo: jeremylongshore/claude-code-plugins-plus-skills
7source_path: "plugins/ai-agency/hyperflow/skills/workflow/SKILL.md"
8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/plugins/ai-agency/hyperflow/skills/workflow/SKILL.md
9---
10
11
12# Workflow
13
14Big-task path for work that is too large for normal turn-by-turn orchestration: system-wide changes, large migrations, repo-wide audits, high-confidence verification, and task prompts that explicitly ask for a workflow.
15
16- In Claude Code, use the host dynamic workflow runtime.
17- In Codex, run the portable workflow adapter with Codex subagents when exposed; otherwise run the same phases inline in the current thread.
18- In OpenCode, run the portable workflow adapter with Task/subagent dispatch when exposed; otherwise run the same phases inline in the current session.
19- In Grok, run the portable workflow adapter with `spawn_subagent` when enabled; otherwise run the same phases inline in the current session.
20- In Antigravity, Desktop/web bridge mode, or any host that cannot preserve the adapter phases, say so in one line and route to `/hyperflow:plan` with `chain-mode=auto`.
21
22Claude Code dynamic workflows require Claude Code v2.1.154 or later and can be disabled by `/config`, managed settings, `~/.claude/settings.json`, or `CLAUDE_CODE_DISABLE_WORKFLOWS=1`. When disabled, use the portable adapter if the host is Codex, OpenCode, or Grok; otherwise route to `/hyperflow:plan` with `chain-mode=auto`.
23
24## Routing Rules
25
26- Run this skill in Claude Code, Codex, OpenCode, and Grok.
27- Auto-route here when triage returns `flow=deep` or `flow=scientific`, `scope=system-wide`, or the user says `big task`, `large migration`, `repo-wide audit`, `run a workflow`, or `dynamic workflow`.
28- Do not route here for moderate multi-file work, routine bug fixes, or a task that needs user sign-off between implementation stages. Big-task workflow runs should not depend on arbitrary mid-run user input; split sign-off-heavy work into separate workflows or use `spec -> scope -> dispatch`.
29- Do not set `/effort ultracode` or `xhigh` automatically. The user can enable `/effort ultracode` manually for session-wide workflow selection.
30
31## Provider Contracts
32
33### Claude Code Native Workflow
34
35When this skill runs, ask the Claude Code workflow runtime to create a dynamic workflow for `$ARGUMENTS`. The generated workflow must preserve Hyperflow's doctrine inside the worker prompts and must include these phases:
36
371. Research and planning
38 - Map affected files, dependency edges, tests, docs, and risk boundaries.
39 - Read `.hyperflow/profile.md`, `.hyperflow/architecture.md`, `.hyperflow/conventions.md`, `.hyperflow/testing.md`, and `.hyperflow/memory/index.md` when present.
40 - Produce a concise execution graph with parallelizable units and dependencies.
41
422. Parallel implementation or investigation
43 - Fan out independent agents by subsystem or file family.
44 - Keep each agent brief specific: objective, files in scope, constraints, acceptance criteria, and test expectations.
45 - Use the lightest model/stage that can safely do the work when the runtime supports model routing.
46
473. Adversarial verification
48 - Run independent verification agents against each implementation or finding.
49 - For audits, verify each finding before reporting it.
50 - For implementation, check cross-file integration, regression risk, security-sensitive paths, and missed tests.
51
524. Quality gates and repair loop
53 - Run the project lint, typecheck, build, and relevant tests from `.hyperflow/testing.md` or detected package scripts.
54 - Retry focused fixes only for verified failures.
55 - Never use `--no-verify`; never force-push to main or master.
56
575. Final synthesis
58 - Return one coordinated result with completed work, verification evidence, unresolved risks, changed files, and next actions.
59 - For durable project learnings, identify what should be appended to `.hyperflow/memory/`, but do not invent memory entries unrelated to the run.
60
61### Codex Portable Workflow Adapter
62
63Codex does not provide Claude Code's dynamic workflow runtime. Treat `/hyperflow:workflow` as a custom Hyperflow workflow envelope around Codex subagents and inline fallback:
64
651. Research and planning
66 - Read the same `.hyperflow/` cache files listed above when present.
67 - Write or update `.hyperflow/tasks/<slug>.md` for implementation or audit work that needs durable progress tracking.
68 - Build an execution graph with parallelizable units, dependencies, expected commits, and verification commands.
69
702. Parallel implementation or investigation
71 - If Codex subagent tools are exposed, dispatch independent searcher/worker/writer units together and collect their results before review.
72 - Map implementation and writing tasks to worker subagents; map codebase research to explorer/search subagents.
73 - If subagents are unavailable, run each unit inline with explicit worker and reviewer labels.
74
753. Adversarial verification
76 - Run a separate verification pass for each completed unit before reporting it.
77 - Use Codex thinking defaults for verification and final integration review.
78
794. Quality gates and commits
80 - Run the detected lint, typecheck, build, and relevant tests.
81 - Commit each accepted unit separately using conventional commits.
82 - Never use `--no-verify`; never request `xhigh`.
83
845. Final synthesis
85 - Return changed files, verification evidence, unresolved risks, and next actions.
86
87### OpenCode Portable Workflow Adapter
88
89OpenCode does not provide Claude Code's dynamic workflow runtime. Treat `/hyperflow:workflow` as a custom Hyperflow workflow envelope around OpenCode's task/subagent facilities and inline fallback:
90
911. Research and planning
92 - Read the same `.hyperflow/` cache files listed above when present.
93 - Write or update `.hyperflow/tasks/<slug>.md` for implementation or audit work that needs durable progress tracking.
94 - Build an execution graph with parallelizable units, dependencies, expected commits, and verification commands.
95
962. Parallel implementation or investigation
97 - If OpenCode exposes Task/subagent dispatch, send independent implementation or investigation units through that path.
98 - Keep each subtask bounded by objective, files in scope, constraints, acceptance criteria, and tests.
99 - If task dispatch is unavailable, run each unit inline with explicit worker and reviewer labels.
100
1013. Adversarial verification
102 - Run a separate verification pass for each completed unit before reporting it.
103 - Run verification and the final integration review as decision-agent passes on the current session model.
104
1054. Quality gates and commits
106 - Run the detected lint, typecheck, build, and relevant tests.
107 - Commit each accepted unit separately using conventional commits.
108 - Never use `--no-verify`.
109
1105. Final synthesis
111 - Return changed files, verification evidence, unresolved risks, and next actions.
112
113### Grok Portable Workflow Adapter
114
115Grok does not provide Claude Code's dynamic workflow runtime. Treat `/hyperflow:workflow` as a custom Hyperflow workflow envelope around Grok `spawn_subagent` and inline fallback:
116
1171. Research and planning
118 - Read the same `.hyperflow/` cache files listed above when present.
119 - Write or update `.hyperflow/tasks/<slug>.md` for implementation or audit work that needs durable progress tracking.
120 - Build an execution graph with parallelizable units, dependencies, expected commits, and verification commands.
121
1222. Parallel implementation or investigation
123 - If `spawn_subagent` is available and subagents are not disabled (`GROK_SUBAGENTS` / config), dispatch independent units together:
124 - implementer/writer → `subagent_type: general-purpose`
125 - searcher/research → `subagent_type: explore`
126 - Collect results before review; spawn independent siblings in parallel when the runtime allows.
127 - If subagents are unavailable, run each unit inline with explicit worker and reviewer labels.
128
1293. Adversarial verification
130 - Run a separate verification pass for each completed unit before reporting it.
131 - Run verification and the final integration review as decision-agent passes on the current session model.
132
1334. Quality gates and commits
134 - Run the detected lint, typecheck, build, and relevant tests.
135 - Commit each accepted unit separately using conventional commits.
136 - Never use `--no-verify`.
137
1385. Final synthesis
139 - Return changed files, verification evidence, unresolved risks, and next actions.
140
141## Claude Code Prompt Skeleton
142
143Use this shape when handing the task to the workflow runtime:
144
145```text
146Create a dynamic workflow for this Hyperflow big-task run.
147
148Task:
149<user task>
150
151Doctrine:
152- Preserve Hyperflow autonomy: execute reversible work without invented confirmations.
153- Ask only for genuine ambiguity after codebase research.
154- Keep plans, task decompositions, audits, and memory under .hyperflow/ when files are needed.
155- Use conventional commits, one distinct task per commit.
156- Never use --no-verify and never force-push to main/master.
157- Respect the Hyperflow security blocklist in skills/hyperflow/security.md.
158
159Required phases:
1601. Research and planning.
1612. Parallel implementation or investigation.
1623. Adversarial verification.
1634. Quality gates and focused repair loop.
1645. Final synthesis.
165
166Acceptance:
167- Every substantive result is independently checked before being reported.
168- Quality gates run or are explicitly marked unavailable with the command attempted.
169- The final answer includes evidence, changed files, unresolved risks, and next actions.
170```
171
172## Save For Reuse
173
174When a run succeeds and the user will repeat it, mention that Claude Code can save the generated workflow from `/workflows` with `s`. Project workflows save under `.claude/workflows/`; personal workflows save under `~/.claude/workflows/`. Do not create those files directly from this skill because plugin packaging does not currently ship `.claude/workflows/` as a first-class component.
175
176Codex, OpenCode, and Grok adapters are not saved through `/workflows`; repeatable behavior comes from this skill, `.hyperflow/tasks/`, project memory, and provider-specific subagent/task configuration.
177
178---
179
180**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `plugins/ai-agency/hyperflow/skills/workflow/SKILL.md`