adhoc-flow
Workflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc.
Phase 5 Patterns of init-workspace-flow
> /plugin marketplace add griddynamics/rosetta > /plugin install rosetta@rosetta
How it fires
How this command gets triggered: by you, by Claude, or both.
/init-workspace-flow-patternsContext preview
What this command does when you run it.
Phase 5 Patterns of init-workspace-flow
name: init-workspace-flow-patterns description: "Phase 5 Patterns of init-workspace-flow" tags: ["init", "workspace", "patterns", "phase"] disable-model-invocation: true user-invocable: false baseSchema: docs/schemas/phase.md
<init_workspace_flow_patterns>
<description_and_purpose> Extract recurring code structures into explicit reusable pattern templates. Without them, agents reinvent conventions per task. Proof: docs/PATTERNS/ contains INDEX.md, per-module files, and CHANGES.md referenced by downstream coding tasks. Use workhorse model to handle large amounts of content cheaper and faster. </description_and_purpose>
<workflow_context>
</workflow_context>
<phase_steps> 1. Read state and CODEMAP 2. Execute multi-agent pattern extraction 3. Update state, log gaps </phase_steps>
<read_state step="5.1"> 1. Read `agents/init-workspace-flow-state.md` 2. Confirm Phase 3 complete and CODEMAP exists 3. Read state.mode for dual-mode behavior </read_state>
<execute_extraction step="5.2" subagent="built-in" role="Senior pattern analyst extracting reusable conventions" subagent_recommended_model="claude-sonnet-5, gpt-5.6-terra-medium, gemini-3.7-flash-high">
Act as a senior pattern architect — recovers reusable structural conventions from code. Codebases accumulate implicit recurring structures that drift without formal documentation. Extract them into explicit reusable templates so agents and contributors produce consistent code. Requires CODEMAP.md on disk.
<core_concepts>
</core_concepts>
Orchestration: Read CODEMAP, identify distinct modules; spawn built-in subagent per module scope for pattern extraction; merge subagent results into docs/PATTERNS/ structure; deduplicate patterns found across modules.
<extraction_process>
1. Read CODEMAP.md — scope extraction per module
2. Dual-mode:
3. Per pattern file (docs/PATTERNS/*.md):
4. Write docs/PATTERNS/INDEX.md — all patterns with one-line descriptions, one header per each pattern `## Pattern Name - short description` 5. Write docs/PATTERNS/CHANGES.md — created/updated/skipped, one header per each change `## [YYYY-MM-DD] Brief changes made` 6. If state.composite = true, extract per sub-repository; top-level INDEX.md references sub-repo folders
</extraction_process>
<extraction_validation_checklist>
</extraction_validation_checklist>
</execute_extraction>
<update_state step="5.3"> 1. Write Phase 5 completion to `agents/init-workspace-flow-state.md` 2. Update PATTERNS row in file inventory 3. Log gaps for Phase 8 </update_state>
<validation_checklist>
</validation_checklist>
<pitfalls>
</pitfalls>
</init_workspace_flow_patterns>
Repo: griddynamics/rosetta
Workflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc.
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED)
Phase 3 Gap & Requirements Clarification of api-aqa-flow (USER INTERACTION REQUIRED)
Phase 0 Project Config Loading of api-aqa-flow (USER INTERACTION CONDITIONALLY REQUIRED)