niels-kwg/toolkit/claude-code-config-advanced
Claude Code and agent skill by niels-kwg/toolkit
- community
Checking that the SKILL.md file is still in the repository.
Path-specific CLAUDE.md rules with YAML frontmatter globs, plan mode vs direct execution decision framework, and iterative refinement patterns. Maps to CCA Domain 3.
Install
npx vskill@latest install niels-kwg/toolkit/claude-code-config-advancedSKILL.md
The same SKILL.md was published earlier as niels-kwg/toolkit/claude-code-config-advanced.
Claude Code Advanced Configuration
Overview
Advanced configuration techniques for Claude Code: scoping instructions to specific file paths using glob patterns, choosing between plan mode and direct execution, and structured iteration patterns for complex tasks.
Path-Specific Rules with YAML Frontmatter
Glob Scoping in CLAUDE.md
Rules in CLAUDE.md can be scoped to specific file paths using YAML frontmatter:
Glob Pattern Reference
| Pattern | Matches | |
|---|---|---|
src/**/*.ts | All .ts files under src/ recursively | |
*.config.{js,ts} | Config files in root with .js or .ts extension | |
!**/node_modules/** | Exclude node_modules | |
src/api/** | Everything under src/api/ | |
migrations/*.sql | SQL files directly in migrations/ |
Layered CLAUDE.md
Claude Code merges instructions from multiple CLAUDE.md files:
Rules closer to the working file take precedence. Use this for monorepo structures where different packages have different conventions.
Plan Mode vs Direct Execution
Decision Framework
| Criterion | Plan Mode | Direct Execution | |
|---|---|---|---|
| Files affected | >3 files | 1-3 files | |
| Familiarity | Unfamiliar codebase | Well-known codebase | |
| Risk | Cross-cutting change | Isolated change | |
| Reversibility | Hard to undo | Easy to revert | |
| Dependencies | Multiple interacting systems | Single module |
Using Plan Mode
When to Skip Plan Mode
- Single file bug fixes with a clear root cause
- Adding a new test for existing code
- Updating a config value
- Formatting or linting fixes
Iterative Refinement Patterns
The Interview Pattern
Use when requirements are ambiguous. Claude asks clarifying questions before acting.
Test-Driven Iteration
This gives Claude a tight feedback loop. Each iteration is verifiable.
Validation-Retry Loop
Progressive Complexity
For large tasks, start simple and layer complexity:
Each round builds on verified working code.
When to Use
- Setting up a new project with path-specific coding standards
- Deciding whether to use plan mode for a given task
- Breaking down a large feature into iterative Claude interactions
- Configuring monorepo CLAUDE.md hierarchies
Common Mistakes
- Glob too broad:
**/*matches everything and dilutes the rule — scope narrowly - Conflicting rules: Two CLAUDE.md files giving opposite instructions for the same path — the closer file wins, but confusion remains
- Always using plan mode: For trivial changes, plan mode adds overhead without value
- Never using plan mode: For cross-cutting changes, skipping planning leads to partial implementations and missed files
- No verification step: Iterative refinement without running tests or validation between rounds accumulates errors
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude-code-config-advanced/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/niels-kwg/toolkit/claude-code-config-advanced)