AgentSkillsCN

kata-set-profile

为Kata代理切换模型配置(质量型/均衡型/预算型)。触发词包括:“设置配置”、“设定配置”。

SKILL.md
--- frontmatter
name: kata-set-profile
description: Switch model profile for kata agents (quality/balanced/budget). Triggers include "set profile", "set profile".
metadata:
  version: "0.1.0"
user-invocable: true
disable-model-invocation: false
allowed-tools:
  - Read
  - Write
  - Bash
<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

code
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:

code
Error: No Kata project found.
Run /kata: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

code
✓ 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:

code
/kata: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:

code
/kata: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>