Skip to content

Arrange Workspace Flow

Availability

OSS

TL;DR

When To Use This Workflow

When Not To Use This Workflow

Before You Start

For shared setup and installation details, use the Usage Guide and Overview.

How To Start

/arrange-workspace-flow Arrange this workspace, I have reference code in another repo
/arrange-workspace-flow Help me document missing business and technical context
/arrange-workspace-flow This is a modernization project, help me set it up

How Rosetta Shapes This Workflow

Rosetta provides the instructions for this workflow. The coding agent acts on those instructions. Rosetta itself does not see user requests, code, or project data.

In practice, that changes the user experience in three ways:

Workflow At A Glance

Phase Applies What happens Main gate or result
1. Choose workspace layout All Show Single Repo / Composite+Submodules / Composite+gitignore verbatim; guide the chosen option’s setup actions Layout recorded in arrange-state.md; Option 2/3 requires the large-workspace-handling skill
2. Reference source code Single Repo Workspace only Identify and validate existing refsrc/ entries; ask for and onboard additional read-only reference code refsrc/, refsrc/INDEX.md, .gitignore updated, or explicit skip reason
3. Business context All Interview about what’s missing in docs/CONTEXT.md using starter topics Confirmed answers → docs/CONTEXT.md (≤100 lines); inferences → docs/ASSUMPTIONS.md
4. Technical context All Interview about what’s missing in docs/ARCHITECTURE.md using starter topics Confirmed answers → docs/ARCHITECTURE.md (≤100 lines); inferences → docs/ASSUMPTIONS.md
5. Modernization Only if the goal is modernization Interview on modernization topics, capture old-code location Extended docs/CONTEXT.md/docs/ARCHITECTURE.md/docs/PATTERNS/, or explicit skip reason
6. Configure ecosystem All Show MCP/CLI/plugin guidance verbatim; guide install only on request Guidance shown; any install noted in docs/CONTEXT.md, never installed by the agent

Workflow Overview

flowchart TD
    A["Arrange request"] --> B["1. Choose workspace layout<br/>present Option 1/2/3 verbatim"]
    B --> C{"Layout chosen"}
    C -- "Option 1: Single Repo" --> D["2. Reference source code<br/>onboard into refsrc/"]
    C -- "Option 2/3: Composite" --> E["Phase 2 skipped<br/>large-workspace-handling skill engaged"]
    D --> F["3. Business context<br/>interview about what's missing"]
    E --> F
    F --> G["4. Technical context<br/>interview about what's missing"]
    G --> H{"Goal is modernization?"}
    H -- "Yes" --> I["5. Modernization<br/>extend CONTEXT/ARCHITECTURE/PATTERNS"]
    H -- "No" --> J["Phase 5 skipped"]
    I --> K["6. Configure ecosystem<br/>show guidance verbatim"]
    J --> K
    K --> L["Demand new chat session + next-step examples"]

Interaction Flow

sequenceDiagram
    participant U as User
    participant A as Agent
    participant F as Workspace files

    U->>A: /arrange-workspace-flow ...
    A->>U: Present layout Option 1/2/3 verbatim
    U-->>A: Pick a layout
    A->>F: Record layout in arrange-state.md
    alt Option 1 - Single Repo Workspace
        A->>U: Ask about reference codebases
        U-->>A: Provide repo URLs/paths, or none
        A->>F: Update refsrc/, refsrc/INDEX.md, .gitignore
    else Option 2/3 - Composite
        A->>F: Record skip reason
    end
    A->>U: Interview about missing business context topics
    U-->>A: Answers
    A->>F: Update docs/CONTEXT.md, inferences to docs/ASSUMPTIONS.md
    A->>U: Interview about missing technical context topics
    U-->>A: Answers
    A->>F: Update docs/ARCHITECTURE.md, inferences to docs/ASSUMPTIONS.md
    alt Modernization goal confirmed
        A->>U: Interview on modernization topics + old-codebase location
        U-->>A: Answers
        A->>F: Extend docs/CONTEXT.md, docs/ARCHITECTURE.md, docs/PATTERNS/
    else Not modernization
        A->>F: Record skip reason
    end
    A->>U: Show MCP/CLI/plugin guidance verbatim
    U-->>A: Optionally request install guidance
    A->>U: Demand new chat session, show next-step slash-command examples

Phases

1. Choose Workspace Layout

Goal: help you pick the workspace shape before anything else gets set up, since it determines whether Phase 2 applies.

2. Reference Source Code

Applies to: Single Repo Workspace (Option 1) only. Composite layouts skip this phase with a recorded skip reason.

3. Business Context

Goal: gather missing business context into docs/CONTEXT.md by interviewing you using starter topics.

4. Technical Context

Goal: gather missing technical context into docs/ARCHITECTURE.md by interviewing you using starter topics.

5. Modernization

Applies to: projects whose goal is modernization, confirmed by you. Otherwise this phase is skipped with a recorded reason.

6. Configure Ecosystem

Goal: point you at recommended MCPs, CLIs, and plugins without turning it into an interview.

How To Review Results

Workflow-Specific Customization

Artifacts You Will Get

Common Mistakes

Source Files