Problem: Fixed workflows cannot cover the combinatorial space of real requests; orchestrators lock into rigid classification.
Solution: Meta-workflow — construct a bespoke plan from building blocks, review, execute with tracking. Each user turn can extend, adapt, or restart.
If request is trivial / one-liner AND you confirmed it is true (by checking code / instructions fallback to ask user) only then you are allowed to just directly execute it without extra complications of this skill => otherwise you must fully follow this and orchestration skills.
- large (smart, slow): claude-opus-5-5, gpt-6-luna-xhigh, gpt-6.1-sol-high, gemini-4-argon-high, gemini-3.8-flash-high, kimi-k3, glm-5.2
- medium (workhorse): claude-sonnet-5-5, gpt-6-luna-high, glm-5, kimi-k2.5, minimax-m2.5, grok-4.7
- small (fast): claude-haiku-5-5, gpt-6-luna, gpt-6-luna-medium, gemini-3.8-flash-low
Match to cognitive demand. Match to current tool.
- MUST USE SKILL
orchestration with team management, which is the core mechanism of this workflow.
- Workflow state MUST be saved to
agents/TEMP/<FEATURE>/adhoc-flow-state.md file.
Compose any of these (not limited) into plan phases/steps to build any execution workflow:
- discover-research: scan project context and KB; research external knowledge if needed; deliver summarized references
- requirements-capture: reverse-engineer or interrogate requirements; persist intent as source of truth
- reasoning-decomposition: USE SKILL
reasoning (8D) to decompose into sub-problems with decisions and trade-offs
- plan-wbs: USE SKILL
planning to build sequenced WBS
- tech-specs: USE SKILL
tech-specs to generate target technical implementation specs; makes AI to figure out entire solution, instead of discovering something as a surprise
- subagent-delegation: provide role + context/refs; route parallel/sequential; enforce focus — report back if off-plan
- delegate-but-verify: use subagent delegation, but verify both reasoning and results
- critically-review: critically review inputs, outputs, reasoning, completeness, ambiguity, results of user, subagents, tools, scripts, etc.
- execute-track: EXECUTION_CONTROLLER
next → execute → update_status; upsert to adapt mid-execution; loop
- modify-review: modify then review with different agent/model
- review-validate: review (static inspection against intent) + validate (run locally, call/use local, runtime evidence on real tasks)
- memory-learn: root-cause failures → reusable preventive rules → update AGENT MEMORY.md
- hitl-gate: present summary to user; block until explicit approval
- simulate: walk through plan with use cases; verify cognitive load and phase boundaries
- draft-improve: short core draft → improve one non-conflicting aspect at a time
- ralph-loop: execute → review → update task memory with root causes → loop
- use: use existing skills, agents, workflows
- plan-sessions: create plan (one file, with refs to per-session files) and implementation specs for each session for workhorse model (sonnet 5.5, gpt-6-luna-high, so you need to provide more details) in multiple files in order of execution, so that it can be given one-by-one in different sessions of subagents.
- Do not duplicate: existing files, instructions, protocols => instead use references "file-name:line-ranges".
- All Rosetta prep steps MUST be FULLY completed
- MUST USE SKILL
load-project-context, orchestration (with team manager, execution controller is size dependent), hitl
- MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.
- MUST use available MCPs, tools, skills and agents.
- You will FOR SURE run out of LLM context, leading to loss of information, delegate to subagents!
- If
/goal is set repeat phases 4-5 until goal is met.
- USE SKILL
reasoning if needed or LARGE.
- Use building block, sequence a plan.
- Upsert.
- Review: completeness, sequencing, dependency correctness, prompt clarity, etc.
- Subagent to query by full path to plan.json. Orchestrator to upsert fixes.
- hitl-gate — present summary, block until approved.
- Get next steps.
- Per step: delegate to subagent or execute directly.
- Adapt plan changes.
- Loop until all completed.
- Final review - validate against original intent.
- Repeat execution if not met original intent.
- Summarize to user if completed.
- Short and clear
- Use git worktrees for parallel work
- Use self-learning
- Validate incrementally
- Do not accumulate unverified work
- Prevent scope creep, always pass original intent to subagents
- Keep context lean — delegate to subagents
- Plan is a living artifact
- Provide references, not dumps
- Use subagent to build_plan for MEDIUM/LARGE requests
- Over-planning SMALL requests
- Context overload: delegate instead
- Parallel work collisions
1---2name: adhoc-flow-53description: "Workflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc."4metadata:5 source: https://skillmd.com/skills/griddynamics/adhoc-flow-56---789<adhoc_flow>1011<description_and_purpose>1213Problem: Fixed workflows cannot cover the combinatorial space of real requests; orchestrators lock into rigid classification.14Solution: Meta-workflow — construct a bespoke plan from building blocks, review, execute with tracking. Each user turn can extend, adapt, or restart.1516If request is trivial / one-liner AND you confirmed it is true (by checking code / instructions fallback to ask user) only then you are allowed to just directly execute it without extra complications of this skill => otherwise you must fully follow this and orchestration skills.1718</description_and_purpose>1920<models>2122- large (smart, slow): claude-opus-5-5, gpt-6-luna-xhigh, gpt-6.1-sol-high, gemini-4-argon-high, gemini-3.8-flash-high, kimi-k3, glm-5.223- medium (workhorse): claude-sonnet-5-5, gpt-6-luna-high, glm-5, kimi-k2.5, minimax-m2.5, grok-4.724- small (fast): claude-haiku-5-5, gpt-6-luna, gpt-6-luna-medium, gemini-3.8-flash-low2526Match to cognitive demand. Match to current tool.2728</models>2930<orchestration severity="CRITICAL">31321. MUST USE SKILL `orchestration` with team management, which is the core mechanism of this workflow.332. Workflow state MUST be saved to `agents/TEMP/<FEATURE>/adhoc-flow-state.md` file.3435</orchestration>3637<building_blocks>3839Compose any of these (not limited) into plan phases/steps to build any execution workflow:4041- **discover-research**: scan project context and KB; research external knowledge if needed; deliver summarized references42- **requirements-capture**: reverse-engineer or interrogate requirements; persist intent as source of truth43- **reasoning-decomposition**: USE SKILL `reasoning` (8D) to decompose into sub-problems with decisions and trade-offs44- **plan-wbs**: USE SKILL `planning` to build sequenced WBS45- **tech-specs**: USE SKILL `tech-specs` to generate target technical implementation specs; makes AI to figure out entire solution, instead of discovering something as a surprise46- **subagent-delegation**: provide role + context/refs; route parallel/sequential; enforce focus — report back if off-plan47- **delegate-but-verify**: use subagent delegation, but verify both reasoning and results48- **critically-review**: critically review inputs, outputs, reasoning, completeness, ambiguity, results of user, subagents, tools, scripts, etc.49- **execute-track**: EXECUTION_CONTROLLER `next` → execute → `update_status`; `upsert` to adapt mid-execution; loop50- **modify-review**: modify then review with different agent/model51- **review-validate**: review (static inspection against intent) + validate (run locally, call/use local, runtime evidence on real tasks)52- **memory-learn**: root-cause failures → reusable preventive rules → update AGENT MEMORY.md53- **hitl-gate**: present summary to user; block until explicit approval54- **simulate**: walk through plan with use cases; verify cognitive load and phase boundaries55- **draft-improve**: short core draft → improve one non-conflicting aspect at a time56- **ralph-loop**: execute → review → update task memory with root causes → loop57- **use**: use existing skills, agents, workflows58- **plan-sessions**: create plan (one file, with refs to per-session files) and implementation specs for each session for workhorse model (sonnet 5.5, gpt-6-luna-high, so you need to provide more details) in multiple files in order of execution, so that it can be given one-by-one in different sessions of subagents. 59- **Do not duplicate**: existing files, instructions, protocols => instead use references "file-name:line-ranges". 6061</building_blocks>6263<workflow_phases>6465<prerequisites phase="1" applies="ALL">66671. All Rosetta prep steps MUST be FULLY completed682. MUST USE SKILL `load-project-context`, `orchestration` (with team manager, execution controller is size dependent), `hitl`693. MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.704. MUST use available MCPs, tools, skills and agents.715. You will FOR SURE run out of LLM context, leading to loss of information, delegate to subagents!726. If `/goal` is set repeat phases 4-5 until goal is met.7374</prerequisites>7576<build_plan phase="2">77781. USE SKILL `reasoning` if needed or LARGE.792. Use building block, sequence a plan.803. Upsert.8182</build_plan>8384<review_plan phase="3" if="MEDIUM, LARGE" subagent="reviewer" role="Plan reviewer of AI automated tasks" subagent_required_model="inherit" must-be-subagent>85861. Review: completeness, sequencing, dependency correctness, prompt clarity, etc.872. Subagent to query by full path to plan.json. Orchestrator to upsert fixes.883. hitl-gate — present summary, block until approved.8990</review_plan>9192<execute_plan phase="4" loop="true">93941. Get next steps.952. Per step: delegate to subagent or execute directly.963. Adapt plan changes.974. Loop until all completed.9899</execute_plan>100101<review_and_summarize phase="5">1021031. Final review - validate against original intent.1042. Repeat execution if not met original intent.1053. Summarize to user if completed.106107</review_and_summarize>108109</workflow_phases>110111<best_practices>112113- Short and clear114- Use git worktrees for parallel work115- Use self-learning116- Validate incrementally117- Do not accumulate unverified work118- Prevent scope creep, always pass original intent to subagents119- Keep context lean — delegate to subagents120- Plan is a living artifact121- Provide references, not dumps122- Use subagent to build_plan for MEDIUM/LARGE requests123124</best_practices>125126<pitfalls>127128- Over-planning SMALL requests129- Context overload: delegate instead130- Parallel work collisions131132</pitfalls>133134</adhoc_flow>