Skip to content

Claude Code guide in three levels, Beginner to Advanced: hands-on lessons with checked exercises, every volatile fact cited to its source. Independent community guide.

9.3 KB
Raw Blame

Pick the model and effort

Intermediate · Lesson 3 of 8 · about 20 minutes · Needs: Turn a repeated workflow into a skill · Verified against Claude Code v2.1.308 (stable) on 2026-10-25

Goal

By the end of this lesson you can diagnose a weak result before changing models, choose model and effort settings for a real task, and give a routine skill its own settings.

You need

  • The repository where you did lesson 1, with its committed skills, and a small change you intend to make. Use a terminal in that repository for edits and Git; use your practice copy only for the final check.
  • Usage: light. You will request a short investigation and a changelog entry.

[!NOTE] On Claude Platform on AWS, Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry, haiku resolves to Haiku 4.5, which auto mode doesn't support, and a skill model that auto mode doesn't support leaves the session model in use (Model aliases, Auto mode, skill model overrides). There, give the changelog skill a model from auto mode's list for your provider.

The idea

The model aliases include sonnet for daily coding, opus for complex reasoning and haiku for simple tasks. Model choice sets the capability you start with; effort changes how much reasoning and verification Claude applies. See the model descriptions. Anthropic's guidance is to start from the model's default effort, and to look at the context you gave Claude before you turn a knob (Choosing a Claude model and effort level in Claude Code).

Before escalating, inspect the evidence:

Evidence Next experiment
A relevant file or failing example was missing Supply it and retry
Claude skipped verification despite having the context Try more effort
Context and verification were adequate, but the reasoning still failed Try a more capable model
A precise, routine change will be reviewed Try a smaller model with lower effort

Change one variable, then compare against the same success criterion. Higher effort cannot supply a missing fixture.

A skill's model: and effort: frontmatter overrides the session while it is active.

Worked example

  1. Start claude in your repository. Run /status: it shows the model. Run /effort status: it prints the effort level in force (Commands).

  2. Switch the model for this session only: run /model, move to Sonnet and press s. Run /status again to check the selected model. Your default for new sessions is unchanged (Setting your model). Stay in auto mode for this lesson.

  3. Investigate an error path in your own repository, without making an edit:

    ultrathink: read the code and tests for one error path in this repository. Identify a case the tests might miss. Cite the files you used. Do not edit files or run network requests.
    

    ultrathink requests deeper reasoning for this turn without changing the session effort setting (Use ultrathink). Open a cited file and check whether the suspected gap is real. A plausible answer alone is not evidence.

  4. Give the diagnostic skill its own effort. Add this line inside the frontmatter of .claude/skills/five-whys/SKILL.md:

    effort: high
    

    five-whys investigates a cause from evidence, where verification matters. The skill overrides the session effort while active; an effort environment variable and any effort cap still take precedence (Set the effort level). Review the skill diff and keep it for the final commit.

Your turn

A changelog entry is routine work: give it only what it needs, and keep root-cause work thorough. Decide what counts as a useful entry before you run it: the entry must describe the staged change for someone using your project.

  1. Save this partial skill as .claude/skills/changelog/SKILL.md. Its disable-model-invocation: true field keeps invocation under your control (Control who invokes a skill).

    ---
    name: changelog
    description: Adds a one-line entry for the staged changes to CHANGELOG.md. Use when the user asks for a changelog entry.
    model: TODO
    effort: TODO
    disable-model-invocation: true
    ---
    
    Read the staged changes with `git diff --staged`. Add one list item (`- `) under `## Unreleased` in CHANGELOG.md that says what changed for someone using the tool, creating the file and the heading if they don't exist. Change no other file.
    
  2. Choose the settings for a short entry whose input is an exact staged diff and whose output you will review. Set model: haiku: on the Anthropic API it resolves to Haiku 5.5, which auto mode supports. Set effort: low: medium is already Claude Code's default for Haiku 5.5 and Sonnet 5.5 (Adjust effort level). Explain why this task needs different settings from a cause investigation.

  3. Make a small intended change in your repository. In your practice copy, leave the malformed percent escape bug alone, such as a link to bad%.md: the Intermediate capstone fixes it. Review and stage only that change, keeping unrelated work out of the staged diff. Run /changelog. Review any permission request if one appears; auto mode may allow the edit without one. If the skill is unknown, run /reload-skills and retry. Read the new entry against the staged diff. If it invents a benefit or names only an internal implementation detail, correct the entry before committing.

  4. Review the complete diff. Commit it with CHANGELOG.md and both skills. Check that the commit includes the diagnostic skill's effort line too.

Check

You are done when all of these are true:

  • The committed skill picks a smaller model and a low or medium effort: git show HEAD:.claude/skills/changelog/SKILL.md | grep -E '^(model|effort):' shows both.
  • A committed CHANGELOG.md has a - entry under ## Unreleased: git show HEAD:CHANGELOG.md shows it.
  • Self-check (not tested): you checked the investigation against a cited file and the entry against the staged diff, and can explain why the tasks use different settings.

Run npm run check -- i-3 --dir <your repo> from your practice copy, or npm run check -- i-3 in the copy itself.

If the skill check says the model is larger than the task needs, revisit the precise input and reviewed output in Your turn step 2. If there's no entry, stage a change before you run /changelog, because the skill reads only staged changes.

Watch out

  • /model <alias> and /effort <level> save your choice as the default for new sessions. To change only the current session, press s in the picker or the slider.
  • A model switch makes the next request read the conversation without cache hits. Claude Code may ask you to confirm while the cache is warm (Switching models). A skill whose model: differs from the session's is a switch too, for that turn: its next request reads the whole conversation with no cache hits.

Go further


Sources: Model configuration · Models overview · Choosing a Claude model and effort level in Claude Code · Commands · Extend Claude with skills · Choose a permission mode · How Claude Code uses prompt caching

← Organize project memory and see what loaded · Intermediate index · Permissions, settings scopes and the sandbox → · Topic: Models, effort and cost · Stuck on this lesson?