AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Validate Claude Code Setup

skill-sennabruno-claude-skills-validate-claude-code-setup · by sennaBruno

Use when auditing or re-validating Claude Code configuration after time has passed, when suspecting outdated settings, when compaction is happening too often or too rarely, or when model/effort settings may no longer reflect current best practices

No reviews yet
0 installs
37 views
0.0% view→install

Install

$ agentstack add skill-sennabruno-claude-skills-validate-claude-code-setup

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-sennabruno-claude-skills-validate-claude-code-setup)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Validate Claude Code Setup? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Validate Claude Code Setup

Overview

Claude Code settings degrade over time as models evolve, context windows change, and community best practices shift. This skill provides a structured audit and research process to keep ~/.claude/settings.json optimized.

Core principle: Validate every setting against current docs + community consensus before changing. Don't guess — research first, then apply.


Step 1 — Read Current State

cat ~/.claude/settings.json

Extract the values for these four critical settings:

| Setting | Key | Location | |---|---|---| | Model | ANTHROPIC_MODEL | env block | | Autocompact threshold | CLAUDE_AUTOCOMPACT_PCT_OVERRIDE | env block | | Context window | Model ID suffix (e.g. sonnet[1m]) | env.ANTHROPIC_MODEL | | Effort level | effortLevel | top-level |


Step 2 — Research Latest Recommendations

Use WebSearch to validate each setting. Always search for current year.

2a. Model context window

Search: "claude sonnet [current model version] context window size 2026" and "claude opus [version] context window"

Decision matrix (as of early 2026):

| Model | Context Window | 1M suffix needed? | |---|---|---| | sonnet (no suffix) | 200K | No | | sonnet[1m] | 1M | Yes (degrades at >400K) | | opus (no suffix) | 200K | No | | opus[1m] | 1M | Yes (good up to ~800K) |

Verdict for daily coding:

  • Sonnet → stay at 200K (retrieval collapses at 1M)
  • Opus → 1M viable only for massive codebase sessions (76% retrieval at 1M vs 93% at 256K)

2b. Autocompact threshold

Search: "CLAUDE_AUTOCOMPACT_PCT_OVERRIDE best value 2026 context rot"

What the variable does:

  • LOWERS the autocompact trigger below the system default (~83-90%)
  • Values above ~83 are silently clamped (Math.min bug — search GitHub issues to verify if fixed)
  • Setting too low (e.g. 60) → compacts too often, loses useful context
  • Setting too high → context rot (model degrades from overloaded window)

Sweet spot as of early 2026: 75

| Value | Effect | |---|---| | 60 | Too early — excessive compaction | | 75 | Sweet spot — avoids rot without over-compacting | | 80 | Acceptable, slightly more context rot risk | | 83+ | At/above clamp limit — effectively same as default |

2c. Effort level

Search: "Claude Code effortLevel best default 2026"

Available values: low, medium, high (persisted); max (Opus only, session-only)

| Value | Thinking | Best for | |---|---|---| | low | Minimal | Batch, boilerplate, renaming | | medium | Selective | Daily dev — official Anthropic default | | high | Almost always | Complex arch, hard debugging | | max | Always deepest | Persistent bugs, critical decisions |

Default recommendation: "medium" — Anthropic changed Opus default from high to medium in 2026; Sonnet docs explicitly recommend medium.


Step 3 — Apply Validated Settings

After research, update only settings that are out of sync with current best practices.

Optimal baseline config (validate against research before applying):

{
  "env": {
    "CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "75",
    "ANTHROPIC_MODEL": "sonnet"
  },
  "effortLevel": "medium"
}

To temporarily override per-session:

  • Context: /model opus or ANTHROPIC_MODEL=opus[1m] before starting
  • Effort: type ultrathink in prompt or /effort high in session

Step 4 — Verify After Applying

After editing settings.json, restart Claude Code and confirm:

  1. Status line shows correct model
  2. Compaction doesn't trigger prematurely in a normal session
  3. Response quality feels appropriate for effort level

What to Re-Research When Things Feel Off

| Symptom | What to search | |---|---| | Compacting every 10 turns | CLAUDE_AUTOCOMPACT_PCT_OVERRIDE clamp bug fix + current CC version | | Slow responses / high latency | Claude Code 1M context latency [year] | | Model ignoring middle of files | Claude lost in the middle [model version] [year] | | Shallow reasoning on complex tasks | Claude Code effortLevel high vs max [year] | | Cost exploding | Claude Code token usage by effortLevel [year] |


Common Mistakes

| Mistake | Fix | |---|---| | Setting autocompact to 60 to "prevent context loss" | That makes it compact MORE. Raise to 75. | | Adding [1m] suffix to Sonnet | Retrieval collapses at 400K. Remove suffix. | | Setting effortLevel: "max" as default | max is Opus-only and session-only. Silently ignored on Sonnet. | | Not researching before changing | Best practices shift every 1-3 months as models update. Always search first. |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.