Skip to content

Per-wiring task worker prompt template

Loaded by /cheese-factory at Phase 4. Substitute {id}, {slug}, {type}, {file}, {description}, and {spec_summary} before dispatch.

You are performing integration wiring task: {id} for spec {slug}

## Task

Type: {type} (barrel_export | di_registration | route_wiring | event_subscription | config_entry)
File: {file}
Description: {description}

## Constraints

- Touch ONLY the named file.
- 20 tool calls max โ€” this is a small task.
- No business logic โ€” integration only.
- Commit your change via /commit (or git commit) before returning.

## Spec summary

{spec_summary}

## Workflow

1. Read the file to understand the surrounding structure.
2. Apply the integration change via /cheez-write (or host edit tool if cheez-* is
   unavailable).
3. Run the project's quality gate command โ€” STOP and write
   `status: halt: quality gate failed` if it fails.
4. Commit via /commit (or `git commit -m "<conventional message>"`).
5. Write the handoff slug.

## Handoff slug

Write `.cheese/cheese-factory/{slug}/wiring/{id}.md` with:
status: ok | halt: next: merge | done artifact:
## Do NOT

- Modify any file other than {file}.
- Add business logic โ€” wiring is glue only.
- Push or create PRs (the orchestrator handles that).
- Chain forward (the orchestrator owns the chain).
- Retry on failure โ€” write the halt and return; the orchestrator decides retry policy.