Claude frequently misconfigures Claude Code settings - Proposal to use Skill instead of agent delegation
Issue: Claude frequently misconfigures Claude Code settings - Proposal to use Skill instead of agent delegation
Problem Description
When users ask Claude to configure Claude Code settings (MCP servers, hooks, skills, etc.), Claude often provides incorrect file paths and configurations based on memory rather than consulting official documentation.
Example of the problem
User: "Where should I put my MCP server configuration?"
Claude's incorrect response:
~/.claude/settings.json ❌ (wrong)
Correct answer (per official docs):
~/.claude.json ✅ (user scope MCP config)
.mcp.json ✅ (project scope MCP config)
This happens because Claude relies on potentially outdated training data rather than fetching current documentation.
Current Mechanism: claude-code-guide agent
Claude Code provides the claude-code-guide agent specifically for answering Claude Code-related questions. However, there are issues:
Problem 1: Agent is not proactively triggered
Claude does not automatically use claude-code-guide when discussing Claude Code configuration. Users must explicitly request it, which defeats the purpose of having a specialized agent.
Problem 2: Information loss through delegation
Even when claude-code-guide is used, the information flow is:
User Question → Main Claude → Delegate to claude-code-guide agent → Agent fetches docs → Agent summarizes → Returns to Main Claude → Main Claude rephrases → User
Each step introduces potential for:
- Information loss: Key details may be omitted in summarization
- Misinterpretation: Main Claude may misunderstand the agent's response
- Context loss: The agent doesn't have full conversation context
Proposed Solution: Use a Skill instead
Skills are automatically triggered based on description keywords and inject knowledge directly into the main Claude's context, eliminating the delegation problem.
Why Skill is better for this use case
| Aspect | Agent (current) | Skill (proposed) |
|---|---|---|
| Triggering | Must be explicitly called | Auto-triggered by keywords |
| Information flow | Delegated → summarized → returned | Direct injection into main context |
| Context awareness | Separate context | Full conversation context |
| Accuracy | May lose details in transfer | No information loss |
Example Skill: claude-config-guide
We've created a working example that addresses this issue:
---
name: claude-config-guide
description: |
Query Claude Code configuration, file locations, MCP settings, and official documentation.
Use this skill proactively when the conversation involves:
- Claude Code settings, configuration, config, settings
- MCP server setup, mcp.json, mcpServers
- ~/.claude.json, .mcp.json, settings.json locations
- hooks, slash commands, skills configuration
- Claude Code features, API, SDK questions
allowed-tools: WebFetch, Read, Glob, Grep
---
# Claude Config Guide
This Skill helps you query correct Claude Code configuration information.
## Execution Steps (IMPORTANT!)
**You MUST WebFetch official documentation - never answer from memory!**
### Step 1: Query the documentation sources
**Two primary documentation sources:**
| Source | URL | Purpose |
|--------|-----|---------|
| Claude Code CLI docs | https://code.claude.com/docs/en/claude_code_docs_map.md | CLI configuration, MCP, hooks, skills |
| Claude API/SDK docs | https://platform.claude.com/llms.txt | API reference, Agent SDK, platform features |
### Step 2: Based on the question type, WebFetch the corresponding doc
**Claude Code CLI documentation:**
| Question Type | Documentation URL |
|---------------|-------------------|
| MCP config | https://code.claude.com/docs/en/mcp.md |
| Settings | https://code.claude.com/docs/en/settings.md |
| Hooks | https://code.claude.com/docs/en/hooks.md |
| Skills | https://code.claude.com/docs/en/skills.md |
| Commands | https://code.claude.com/docs/en/slash-commands.md |
**Claude API/SDK documentation:**
| Question Type | Documentation URL |
|---------------|-------------------|
| Agent SDK | https://platform.claude.com/docs/en/agent-sdk/overview.md |
| Claude API | https://platform.claude.com/llms.txt (index) |
| MCP connector (API) | https://platform.claude.com/docs/en/agents-and-tools/mcp-connector.md |
### Step 3: Parse and respond
Extract relevant information from WebFetch results and answer the user directly.
## Why not use a sub-agent?
Sub-agent responses require paraphrasing, which may cause information loss.
**Fetch the docs yourself for more direct and accurate information.**
How this Skill works
- Auto-triggered: When conversation mentions "Claude Code config", "MCP settings", "hooks", etc.
- Direct action: Main Claude executes WebFetch itself (no delegation)
- Fresh data: Always fetches current documentation, not relying on training data
- Full context: Main Claude can correlate docs with full conversation history
Recommendation
Consider either:
-
Include a similar Skill in Claude Code by default - Ship a
claude-config-guideSkill that auto-triggers for configuration questions -
Improve the agent triggering mechanism - Make
claude-code-guideagent proactively triggered when configuration topics are detected -
Add self-documentation fetching to system prompt - Instruct Claude to always WebFetch official docs before answering configuration questions
Environment
- Claude Code version: Latest
- OS: macOS
- Model: claude-opus-4-5-20250514
Related
- The
claude-code-guideagent exists but is underutilized - Users must work around this by creating custom Skills
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/11725
- https://github.com/anthropics/claude-code/issues/13734
- https://github.com/anthropics/claude-code/issues/16204
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Workaround: I published this Skill as a plugin for anyone experiencing this issue:
che-claude-plugins/claude-config-guide
Install:
/plugin marketplace add kiki830621/che-claude-plugins
/plugin install claude-config-guide@che-claude-plugins
After installation, Claude will auto-trigger this Skill and WebFetch official docs when discussing Claude Code configuration topics.
Real-world test result - After installing the Skill:
❯ user全域的mcp要設定在哪
⏺ Skill(claude-config-guide)
⎿ Successfully loaded skill · 4 tools allowed
⏺ 讓我查詢官方文檔來確認正確的 MCP 設定位置。
⏺ Fetch(https://code.claude.com/docs/en/mcp.md)
⎿ Received 37.8KB (200 OK)
⏺ 根據官方文檔,全域 MCP 設定存放在以下位置:
全域 MCP 設定檔位置
範圍: User (全域)
設定檔位置: ~/.claude.json
用途: 跨所有專案可用
────────────────────────────────────────
範圍: Local
設定檔位置: ~/.claude.json(按專案路徑組織)
用途: 僅當前專案可用
────────────────────────────────────────
範圍: Project
設定檔位置: 專案根目錄的 .mcp.json
用途: 團隊共享
設定全域 MCP 的方法
# 使用 --scope user 設定全域 MCP
claude mcp add --transport http 伺服器名稱 --url https://example.com --scope user
注意事項
──────────
1. Scope 優先級:Local > Project > User(同名伺服器時,本地設定會覆蓋全域)
2. 舊名稱對應:user 以前叫 global,local 以前叫 project
3. 環境變數支援:設定檔支援 ${VAR} 和 ${VAR:-default} 語法
Claude:
- ✅ Auto-triggered the
claude-config-guideSkill - ✅ WebFetched official docs (
https://code.claude.com/docs/en/mcp.md) - ✅ Gave correct answer:
~/.claude.jsonfor user scope MCP
Before (from memory): ❌ ~/.claude/settings.json
After (from docs): ✅ ~/.claude.json
Broader implication: This Skill-based approach could be a general pattern for any domain where Claude's training data may be outdated. Instead of relying on memory, Claude can be instructed to always fetch authoritative sources before answering domain-specific questions.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.