# Setup Step 0  -  Language Selection (full contract)

> Loaded by `setup/SKILL.md` Step 0. The SKILL keeps the order (this question comes first) and the fixed-English rules; this file carries the two language axes, the exact prompt, validation, the confirmation lines and the unknown-input rule. Read it before Step 0. Pickers follow `$HOME/.claude/multi-agent-refs/picker-contract.md`.

Ask BEFORE anything else, so every subsequent setup prompt and the rest of the pipeline honour the choice. The pipeline has two language axes:

| Axis | What it controls | Configurable? |
|---|---|---|
| `promptLanguage` | Picker chrome only: the `AskUserQuestion` `header` chip, host error UI, internal contract identifiers | **No  -  fixed to `en`.** The chip is capped at 12 chars, which most Turkish equivalents overflow. |
| `outputLanguage` | The assistant's non-interactive explanations, status updates, error messages, and pipeline-generated reports rendered to the user | Yes  -  set here and changeable later via `/multi-agent:language <en\|tr>` |

`promptLanguage` is seeded as `"en"` and never offered to the user. Commits, branch names, PR title prefixes, reviewer and triage prompts and agent-log.md stay English; PR, Jira, issue and wiki bodies follow `outputLanguage` (`multi-agent-refs/rules.md`, Language Application).

#### Step 0 prompt  -  `outputLanguage`

The setup wizard asks one question (English UI per skill-prompt rules):

```
Which language should the assistant use for ITS OWN explanations,
status updates, and pipeline-generated reports?

  1) English
  2) Türkçe

Select (1-2):
```

**Rules:**

- **Already set in prefs** → skip silently. User can change later with `/multi-agent:language <en|tr>` or `/multi-agent:language output <en|tr>`.
- **New value** → validate against the schema enum (`en`, `tr`), write `prefs.global.outputLanguage` via atomic rename, force `prefs.global.promptLanguage = "en"`, then echo a confirmation in the just-chosen `outputLanguage`:
  - `en`: `outputLanguage=<Y>. promptLanguage stays "en". Commits, branch names and reviewer prompts stay English; PR, Jira and wiki bodies follow outputLanguage.`
  - `tr`: `outputLanguage=<Y>. promptLanguage "en" sabit. Commit'ler, branch adları ve review istemleri İngilizce kalır; PR, Jira ve wiki metinleri outputLanguage'i izler.`
- **Unknown input** → re-ask once, then abort setup with a hint pointing to `/multi-agent:language`.

From this point forward, every prompt in Steps 1-6 below follows the canonical
per-field matrix in `$HOME/.claude/multi-agent-refs/rules.md` ("Language Application"):
`question`, `label` and `description` render in `outputLanguage`; `header` stays
English. Wizard status and the post-setup summary follow `outputLanguage`. Commits,
branch names and agent prompts stay English; PR, Jira, issue and wiki bodies
follow `outputLanguage`.

> `promptLanguage` governs only the button and chip chrome, never the question a
> user reads. Rendering a whole prompt in English "per the fixed
> `promptLanguage`" contradicts the matrix above and produces half-English
> pickers on Turkish runs.
