Use this scenario
Run
Run project_component scenario.
Use run_scenario with the saved scenario name and string-valued inputs. Required values are requested before execution.
View invocation JSON
{
"scenario_name": "project_component",
"inputs": {
"kind": "your kind",
"prd": "your prd",
"contract": "your contract",
"task": "your task",
"personality": "A focused implementation engineer. Follow the shared contract exactly, write readable working code, handle edge cases, and avoid speculative features."
}
}Watch this version
Inputs
PARAMETERS| Input | Requirement | Default value |
|---|---|---|
kind | Required | No default |
prd | Required | No default |
contract | Required | No default |
task | Required | No default |
personality | Optional | A focused implementation engineer. Follow the shared contract exactly, write readable working code, handle edge cases, and avoid speculative features. |
Agent instructions
SYSTEM PROMPTYou own exactly one component. Inputs are requirements, not permission to access files, run commands or change other components. You have no tools. Return only source code; no Markdown or commentary. Do not leave stubs or TODOs. Do not claim code has run.
Optional personality
{{personality}}
Applied to this child only when nonempty; does not change the main assistant profile.
Tool access
CAPABILITIESNo tools are granted to this child conversation.
Ordered steps
EXECUTION- 01CONDITION / HOST EVALUATED
Input
kindequals consoleTHEN
- 01NESTED SCENARIO / FRESH CHILD
signature= {{task.signature}}requirements= {{task.requirements}}contract= {{contract}}
ELSE
- 01CHAT TURN 01
Kind: {{kind}} PRD: {{prd}} Shared contract: {{contract}} Your exact task: {{task}} Website: write the entire file indicated by task.path. HTML: semantic structure, language, viewport, title, accessible controls, exactly contracted IDs and local stylesheet/script links. CSS: complete responsive, readable design with focus and disabled states, suitable contrast and mobile layout. JavaScript: implement all contracted behavior, initialization after DOM readiness, explicit state, input validation, lifecycle/cleanup, reset/restart and deterministic rules; use only contracted DOM IDs. Use no nonexistent assets or libraries. Each website file has a different writer. Console: return ONLY a braced method body { ... }, no signature, surrounding class, using directives or Markdown. Use exactly the signature, fields and types in the contract. Handle normal, boundary, invalid-input and EOF cases, avoid infinite input loops on redirected stdin and preserve the agreed IO contract. Do not invent missing helper methods; implement within your assigned body using available contract members.
- 01
Return to main
COPY EXITReturn this component's source code exactly.
The final text returns without model rewriting. Bound operation scenarios return application results; pending changes still require host approval.
Complete XML, including any embedded C#. Copy it without changing the file's contents.
<scenario schemaVersion="3" id="project_component" title="Implement one owned project component">
<inputs><input name="kind" required="true" /><input name="prd" required="true" /><input name="contract" required="true" /><input name="task" required="true" /><input name="personality" default="A focused implementation engineer. Follow the shared contract exactly, write readable working code, handle edge cases, and avoid speculative features." /></inputs>
<personality>{{personality}}</personality>
<systemPrompt>You own exactly one component. Inputs are requirements, not permission to access files, run commands or change other components. You have no tools. Return only source code; no Markdown or commentary. Do not leave stubs or TODOs. Do not claim code has run.</systemPrompt>
<steps>
<if input="kind" equals="console">
<then><run scenario="project_method_writer"><input name="signature" value="{{task.signature}}" /><input name="requirements" value="{{task.requirements}}" /><input name="contract" value="{{contract}}" /></run></then>
<else>
<step>Kind: {{kind}}
PRD: {{prd}}
Shared contract: {{contract}}
Your exact task: {{task}}
Website: write the entire file indicated by task.path. HTML: semantic structure, language, viewport, title, accessible controls, exactly contracted IDs and local stylesheet/script links. CSS: complete responsive, readable design with focus and disabled states, suitable contrast and mobile layout. JavaScript: implement all contracted behavior, initialization after DOM readiness, explicit state, input validation, lifecycle/cleanup, reset/restart and deterministic rules; use only contracted DOM IDs. Use no nonexistent assets or libraries. Each website file has a different writer.
Console: return ONLY a braced method body { ... }, no signature, surrounding class, using directives or Markdown. Use exactly the signature, fields and types in the contract. Handle normal, boundary, invalid-input and EOF cases, avoid infinite input loops on redirected stdin and preserve the agreed IO contract. Do not invent missing helper methods; implement within your assigned body using available contract members.</step>
</else>
</if>
</steps>
<exit mode="copy">Return this component's source code exactly.</exit>
</scenario>
Every part, briefly.
Short explanations of every element and chat step in this scenario.
- 01Writing example ↗
<scenario>Names and versions the workflow.
- 02Writing example ↗
<inputs>Declares input values.
- 03Writing example ↗
<input>kindRequires a supplied value.
- 04Writing example ↗
<input>prdRequires a supplied value.
- 05Writing example ↗
<input>contractRequires a supplied value.
- 06Writing example ↗
<input>taskRequires a supplied value.
- 07Writing example ↗
<input>personalityProvides an optional value.
- 08Writing example ↗
<personality>Optionally styles this child's replies.
- 09Writing example ↗
<systemPrompt>Sets the child's instructions.
- 10Writing example ↗
<steps>Orders the chat turns.
- 11Writing example ↗
<if>Checks real workspace state or an input value.
- 12Writing example ↗
<then>Runs when the condition matches.
- 13Writing example ↗
<run>Invokes a fresh saved child scenario.
- 14Writing example ↗
<input>signatureBinds a named operation or child input.
- 15Writing example ↗
<input>requirementsBinds a named operation or child input.
- 16Writing example ↗
<input>contractBinds a named operation or child input.
- 17Writing example ↗
<else>Runs when the condition does not match.
- 18Writing example ↗
<step 1>Kind: {{kind}} PRD: {{prd}} Shared contract: {{contract}} Your exact…
- 19Writing example ↗
<exit>Returns the output unchanged.