Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.
Skill Test Spec: /settings
Skill Summary
/settings shows and changes project configuration. It has four forms:
/settings (view-all: every effective setting with its source), /settings <key> (view-one), /settings <key>=<value> (write to project.yaml) and
/settings --local <key>=<value> (write a personal override to the gitignored
project.local.yaml). Anything else, including an empty key or value, prints
the usage block. It runs on the Sonnet model and reads every value through
yaml-helper.sh (resolve_setting, get_yaml_key, is_locally_overridable,
validate_enum_value), so a value the modes.rigor preset supplies is shown as
(derived from rigor: <level>) rather than "(not set)".
Every write is validated against the schema enums first, then confirmed with an
AskUserQuestion approval gate ([A] Yes, write / [B] No, cancel). A
project.yaml write is a schema_changes decision, so it is confirmed even in
autonomous mode. --local refuses a key that is not on the local-override
whitelist. A setting that .claude/docs/effects-map.md marks with a
> ### RESERVED banner is stored when asked, but every form says nothing reads
it. The skill gives no verdict: it prints and writes configuration. No director
gates apply.
Static Assertions (Structural)
Checked against the SKILL.md by /skill-test spec — no fixture needed.
- Has required frontmatter fields:
name,description,argument-hint,user-invocable,allowed-tools - Has ≥2 phase headings
- No verdict keyword is required: the output is configuration, not a judgement (
/skill-test staticCheck 3 gives a WARN, never a FAIL, for this skill) - Both write phases ask for approval with
AskUserQuestionbefore theEditorWrite - The reserved set is derived from
effects-map.md's> ### RESERVEDheadings, not hardcoded - Points to
.claude/docs/settings-guidance.mdfor which value to choose
Director Gate Checks
None. /settings is a configuration utility. No director gates apply.
Fixture Defaults
Every case's project.yaml sets modes.rigor: minimal and
modes.automation: collaborative, with no project.local.yaml, unless its own
Fixture says otherwise. Rules: studio-tests/CLAUDE.md §
Fixture defaults.
Test Cases
Case 1: Happy Path — view-all shows derived values, a local override and the legend
Fixture:
project.yaml:framework: version: 1.2.0 modes: rigor: full automation: collaborative docs: density: terse engine: name: Godotproject.local.yaml:modes: automation: autonomous
Input: /settings
Expected behavior:
- Reports both files present and
Schema validation: ok - Lists every file leaf, then appends the rigor family the files do not set:
modes.workflow,qa.level,modes.story_granularity,modes.review_modeandteam.size, each annotated(derived from rigor: full, …) docs.density: terseis annotated(project.yaml, locked)— the explicit value wins over thethoroughthatrigor: fullwould supplymodes.automation: autonomousis annotated(LOCAL OVERRIDE — yaml has: collaborative)- Leaves are grouped by top-level section (
modes:,docs:,qa:, …), not by the file they came from - Below the block, the two-line legend:
lockedmeans it cannot be overridden inproject.local.yaml, and does not mean fixed - No file is written
Assertions:
- All five rigor-derived knobs appear with real values, none as "(not set)"
- The explicit
docs.densityshows its own value and source, not the preset's - The local override names the
project.yamlvalue it shadows - The
lockedlegend is printed, and says a derived value can still be set explicitly - Nothing is written
Case 2: View-one — a rigor-derived key says how to set it
Fixture:
project.yamlsetsmodes.rigor: standardand noqa.level
Input: /settings qa.level
Expected behavior:
- Prints
Effective value: standardandSource: derived from rigor: standard - Adds the line
Set explicitly with: /settings qa.level=<value> (an explicit value wins over rigor) Locally overridden: no; the whitelist line readslocked — project-wide
Assertions:
- The value comes from the rigor expansion, not "(not set)"
- The "Set explicitly with" line is shown for a derived value
- Nothing is written
Case 3: Set-yaml — changing modes.rigor reports the six knobs it moves
Fixture:
project.yaml:modes: rigor: minimal automation: collaborative docs: density: thorough- The user answers
[A] Yes, write
Input: /settings modes.rigor=standard
Expected behavior:
validate_enum_value modes.rigor standardpassesAskUserQuestionasksSet `modes.rigor=standard` in `project.yaml`?with[A] Yes, write/[B] No, cancel- The
Editanchors on themodes:line plus therigor: minimalline and changes only that value; no secondmodes:block is added - Confirms
Set `modes.rigor=standard` in `project.yaml`.and lists what the six knobs resolve to now, re-read withresolve_setting:modes.workflow: standard,qa.level: standard,modes.story_granularity: balanced,modes.review_mode: lean,team.size: individual(each derived from rigor: standard) anddocs.density: thorough(project.yaml— explicit, unchanged)
Assertions:
- Approval is asked before the file is edited
-
project.yamlstill has exactly onemodes:block, withrigor: standard - The six-knob list shows the explicit
docs.densityas unchanged, not asbalanced - No other line of
project.yamlchanges
Case 4: Invalid value — rejected before any question
Fixture:
project.yamlsetsmodes.review_mode: lean
Input: /settings modes.review_mode=chaotic
Expected behavior:
validate_enum_valuereturns 1; its message is shown verbatim:Invalid value 'chaotic' for 'modes.review_mode'. Allowed: ...- The skill exits: no approval question, no write
Assertions:
- The helper's error line is shown as it is, naming the allowed values
- No
AskUserQuestionis asked -
project.yamlis unchanged
Case 5: --local on a locked key — refused with the team-wide route
Fixture:
project.yamlsetsengine.name: Godot; noproject.local.yaml
Input: /settings --local engine.name=Unity
Expected behavior:
is_locally_overridable engine.namereturns 1- One line:
engine.name cannot be locally overridden — it's a project-wide setting. Use `/settings engine.name=Unity` (no `--local`) to change it for the whole team. - The skill exits without writing
Assertions:
- The refusal names the
/settings <key>=<value>route - No approval question is asked
- No
project.local.yamlis created
Case 6: --local on a whitelisted key — creates the override file
Fixture:
project.yamlexists withmodes.automation: collaborative; noproject.local.yaml- The user answers
[A] Yes, write
Input: /settings --local modes.automation=autonomous
Expected behavior:
- The whitelist and enum checks pass
AskUserQuestionasksSet `modes.automation=autonomous` in `project.local.yaml` (your personal override, gitignored)?project.local.yamlis created with the value inside itsmodes:parent block- Confirms
Set `modes.automation=autonomous` in `project.local.yaml` (your override).
Assertions:
- Approval is asked before the file is created
- The new file nests the key under
modes:, not as a dotted top-level line -
project.yamlis unchanged
Case 7: Reserved setting — stored on request, flagged on every form
Fixture:
.claude/docs/effects-map.mdis the live file; pick a key whose section carries the> ### RESERVEDbanner (accessibility.targetwhen this spec was written — re-derive it with the skill's own grep)project.yamldoes not set that key; the user answers[A] Yes, write
Input: /settings accessibility.target=standard, then /settings, then
/settings accessibility.target
Expected behavior:
- The write prints, before the approval question: "Note:
accessibility.targetis RESERVED — no skill or hook reads it, so setting it will not change any behaviour. Your value is stored either way." - On yes the value is written — the skill never refuses a reserved key
- View-all annotates the leaf with
, reservedand prints the reserved legend below the block - View-one prints "
accessibility.targetis RESERVED — nothing reads it." above the value block, not under it
Assertions:
- The warning comes before the approval question
- The value is written after a yes
- View-all and view-one both mark the key reserved
- A key that only mentions the banner in prose (
platform.cert_tier) is not marked reserved
Case 8: Shadowed write and autonomous mode — still asked, with the shadow named
Fixture:
project.yamlsetsmodes.review_mode: leanandmodes.automation: autonomousproject.local.yamlsetsmodes.review_mode: solo- The user answers
[A] Yes, write
Input: /settings modes.review_mode=full
Expected behavior:
- Before the approval question: "Note: this setting is currently locally
overridden in
project.local.yaml(value:solo). Writing toproject.yamlwill not change your effective value." - The approval question is asked even though
modes.automationisautonomous: aproject.yamlwrite is aschema_changesdecision, which is on the default always-ask list project.yamlgetsreview_mode: full;project.local.yamlis unchanged
Assertions:
- The shadow note names the local value and comes before the question
- Autonomous mode does not skip the approval question
- Only
project.yamlis edited
Case 9: Malformed operand — usage, no write
Fixture:
project.yamlexists
Input: /settings --local modes.automation= (and, separately,
/settings =full)
Expected behavior:
- The empty value (or empty key) routes to Phase 6
- The usage block is printed with its four forms and three examples
- Nothing is validated, asked or written
Assertions:
- Both inputs print the usage block
- No approval question is asked and no file changes
Protocol Compliance
- Every write is preceded by an
AskUserQuestionapproval gate;[B] No, cancelleaves both files unchanged - Values are validated with
validate_enum_valuebefore the approval question - Values are read with
resolve_setting, so derived values show with their rigor source -
--localwrites only whitelisted keys, and never createsproject.local.yamlwithout aproject.yaml - Reserved keys are flagged on view-all, view-one and both write paths
- Every helper call runs from the project root in the same Bash command that sources
yaml-helper.sh
Coverage Notes
- View-all with schema errors in one or both files, Phase 4's Case D (no clean insertion point) and a session started in a subfolder are not separately fixture-tested.
- The missing-
project.yamlstops (view-all, and--localwith no base file) and a missingyaml-helper.share not separately fixture-tested.