---
name: majiayu000-setting-profiles
description: "Use this skill when switch model profile for kata agents (quality/balanced/budget). Triggers include \"set profile\", \"set profile\"."
license: "MIT"
metadata:
  decimalai-skill-id: "833cadc8-ff2c-438f-a215-1b3c060b5b1b"
  decimalai-version-id: "4eabe157-bf37-46b5-b795-da33999ca49d"
  decimalai-version: "1"
  decimalai-body-sha256: "7d70771ba55e9e171e32c0451814e4ac026f5b8404c723fb096f182ba47bc99b"
  decimalai-name: "majiayu000/setting-profiles"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "agent-tooling"
  decimalai-source: "https://app.decimal.ai/s/majiayu000-setting-profiles@1/SKILL.md"
---
<user_command>/kata:set-profile</user_command>


<objective>
Switch the model profile used by Kata agents. This controls which Claude model each agent uses, balancing quality vs token spend.
</objective>

<profiles>
| Profile      | Description                                                    |
| ------------ | -------------------------------------------------------------- |
| **quality**  | Opus everywhere except read-only verification                  |
| **balanced** | Opus for planning, Sonnet for execution/verification (default) |
| **budget**   | Sonnet for writing, Haiku for research/verification            |
</profiles>

<process>

## 1. Validate argument

```
if $ARGUMENTS.profile not in ["quality", "balanced", "budget"]:
  Error: Invalid profile "$ARGUMENTS.profile"
  Valid profiles: quality, balanced, budget
  STOP
```

## 2. Check for project

```bash
ls .planning/config.json 2>/dev/null
```

If no `.planning/` directory:
```
Error: No Kata project found.
Run /kata:new-project first to initialize a project.
```

## 3. Update config.json

Read current config:
```bash
cat .planning/config.json
```

Update `model_profile` field (or add if missing):
```json
{
  "model_profile": "$ARGUMENTS.profile"
}
```

Write updated config back to `.planning/config.json`.

## 4. Confirm

```
✓ Model profile set to: $ARGUMENTS.profile

Agents will now use:
[Show table from model-profiles.md for selected profile]

Next spawned agents will use the new profile.
```

</process>

<examples>

**Switch to budget mode:**
```
/kata:set-profile budget

✓ Model profile set to: budget

Agents will now use:
| Agent         | Model  |
| ------------- | ------ |
| kata-planner  | sonnet |
| kata-executor | sonnet |
| kata-verifier | haiku  |
| ...           | ...    |
```

**Switch to quality mode:**
```
/kata:set-profile quality

✓ Model profile set to: quality

Agents will now use:
| Agent         | Model  |
| ------------- | ------ |
| kata-planner  | opus   |
| kata-executor | opus   |
| kata-verifier | sonnet |
| ...           | ...    |
```

</examples>
