Skip to content

Coding Agents Prompting Flow

TL;DR

Use Coding Agents Prompting Flow to author or adapt prompts for AI coding agents under explicit phase contracts and approval gates. The workflow stays thin on purpose: it discovers context, approves a Prompt Brief, designs a Blueprint, runs draft and hardening loops, simulates realistic usage, then validates the final prompt set against the original intent. It produces state plus prompt-authoring artifacts such as Discovery Notes, Reference Set, Prompt Brief, Blueprint, Draft Prompt Set, Prompt Set, Simulation Notes, and a Validation Pack. The hard approvals are the Prompt Brief gate and the final approval before persistence.

When To Use This Workflow

When Not To Use This Workflow

Before You Start

How To Start

Create a coding workflow prompt for our internal AI agent.
Adapt this Claude coding-agent prompt for Cursor and preserve the approval model.
Write prompts for our onboarding automation agent and include validation artifacts before persistence.
Review this prompt family, harden it, simulate realistic runs, and return a final prompt set plus validation pack.

How Rosetta Shapes This Workflow

Rosetta provides instructions. Coding agents act on them. Rosetta itself does not see your prompt files, source code, or project data.

For this workflow, the always-active Rosetta behavior changes the UX in visible ways:

Workflow At A Glance

Phase What you provide What agents do What you get Review gate
1. Discover Request, optional source prompt, local references Discover prompt-family context and required references Discovery Notes, Reference Set, updated state HITL only if context conflicts with intent or critical references are missing
2. Extract and Intake Request, optional source prompt, discovery artifacts, clarifications Extract requirements and create the operating contract for the rest of the flow Prompt Brief, Open Questions, updated state Explicit approval of Prompt Brief
3. Blueprint Approved Prompt Brief Design structure, actors, contracts, and boundaries for the target prompt set Blueprint, updated state HITL if blueprint tradeoffs stay ambiguous
4. Draft Loop Approved Prompt Brief, Blueprint Draft target prompts Draft Prompt Set, optional change-log.md, updated state HITL only if intent becomes unclear or the loop stalls
5. Hardening and Edit Loop Approved brief, blueprint, draft prompt set, prompt-family info Review and harden each prompt until pass criteria or a HITL stop Prompt Set, optional change-log.md, updated state HITL if conflicts appear or the loop stalls
6. Simulate Prompt Brief, Prompt Set Simulate realistic runs and inspect context and cognitive load Simulation Notes, updated state HITL if simulation exposes major behavioral risk
7. Validate Prompt Brief, Blueprint, candidate prompt set, simulation notes Validate against intent, contracts, failure modes, and traceability Final Prompt Set, Validation Pack, completed state Final approval before persistence

Workflow Overview

flowchart TD
    A["Start prompt authoring request"] --> B["Phase 1<br/>Discover"]
    B --> C["Discovery Notes + Reference Set"]
    C --> D["Phase 2<br/>Extract and Intake"]
    D --> E{"Prompt Brief approved?"}
    E -- "No" --> D
    E -- "Yes" --> F["Phase 3<br/>Blueprint"]
    F --> G{"Blueprint ambiguity or tradeoff stop?"}
    G -- "Yes" --> F
    G -- "No" --> H["Phase 4<br/>Draft Loop"]
    H --> I["Phase 5<br/>Hardening and Edit Loop"]
    I --> J{"Loop stalled or conflicts unresolved?"}
    J -- "Yes" --> I
    J -- "No" --> K["Phase 6<br/>Simulate"]
    K --> L{"Major behavior risk?"}
    L -- "Yes" --> I
    L -- "No" --> M["Phase 7<br/>Validate"]
    M --> N{"Final approval before persistence?"}
    N -- "No" --> I
    N -- "Yes" --> O["Persist final prompt set"]

    style A fill:#dbeafe,stroke:#1d4ed8,color:#0f172a
    style B fill:#dcfce7,stroke:#16a34a,color:#14532d
    style C fill:#dcfce7,stroke:#16a34a,color:#14532d
    style D fill:#dbeafe,stroke:#1d4ed8,color:#0f172a
    style E fill:#fef3c7,stroke:#d97706,color:#78350f
    style F fill:#dbeafe,stroke:#1d4ed8,color:#0f172a
    style G fill:#fef3c7,stroke:#d97706,color:#78350f
    style H fill:#dcfce7,stroke:#16a34a,color:#14532d
    style I fill:#dcfce7,stroke:#16a34a,color:#14532d
    style J fill:#fef3c7,stroke:#d97706,color:#78350f
    style K fill:#dbeafe,stroke:#1d4ed8,color:#0f172a
    style L fill:#fef3c7,stroke:#d97706,color:#78350f
    style M fill:#dbeafe,stroke:#1d4ed8,color:#0f172a
    style N fill:#fef3c7,stroke:#d97706,color:#78350f
    style O fill:#dcfce7,stroke:#16a34a,color:#14532d

Interaction Flow

sequenceDiagram
    actor U as User
    participant R as Rosetta Instructions
    participant O as Coding Agent / Orchestrator
    participant D as Discoverer
    participant P as Prompt Engineer
    participant A as Workflow Artifacts

    U->>O: Request prompt authoring or adaptation
    R->>O: Load workflow and phase contracts
    O->>D: Phase 1 discover
    D->>A: Write Discovery Notes + Reference Set
    O->>P: Phase 2 extract and intake
    P->>A: Write Prompt Brief + Open Questions
    O->>U: Request explicit Prompt Brief approval
    U-->>O: Approve or request changes
    O->>P: Phase 3 blueprint
    P->>A: Write Blueprint
    O->>P: Phase 4 draft loop
    P->>A: Write Draft Prompt Set
    O->>P: Phase 5 hardening and edit loop
    P->>A: Write Prompt Set
    O->>P: Phase 6 simulate
    P->>A: Write Simulation Notes
    O->>P: Phase 7 validate
    P->>A: Write Final Prompt Set + Validation Pack
    O->>U: Request final approval before persistence
    U-->>O: Approve persistence or request changes

Phases

Phase 1. Discover

Goal

Collect prompt-family context and only the references the rest of the workflow will actually need.

What you provide

What the agent does

Artifacts

Phase 2. Extract and Intake

Goal

Turn the request into an explicit operating contract for the rest of the workflow.

What you provide

What the agent does

Artifacts

Phase 3. Blueprint

Goal

Define the structure, actors, contracts, and boundaries of the target prompt set before drafting begins.

What you provide

What the agent does

Artifacts

Phase 4. Draft Loop

Goal

Produce the first draft of each target prompt from the approved brief and blueprint.

What you provide

What the agent does

Artifacts

Phase 5. Hardening and Edit Loop

Goal

Review and refine each draft prompt until it either passes or hits an explicit stop condition.

What you provide

What the agent does

Artifacts

Phase 6. Simulate

Goal

Test the prompt chain under realistic execution traces before final validation.

What you provide

What the agent does

Artifacts

Phase 7. Validate

Goal

Prove that the final prompt set matches the original intent and carries explicit failure-mode and traceability evidence.

What you provide

What the agent does

Artifacts

How To Review Results

Review this workflow like a prompt-systems owner, not like a casual editor.

Workflow-Specific Customization

Artifacts You Will Get

Common Mistakes

Source Files