Agent skill
claude-config-levels
Use when asked to add rules, commands, skills, or config to Claude Code in this dotfiles repo. Two levels exist and scope may be ambiguous.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/claude-config-levels
SKILL.md
Claude Config Levels in Dotfiles
This dotfiles repo has two Claude Code config locations with different purposes.
The Two Levels
| Path | Symlinked To | Scope | Use For |
|---|---|---|---|
claude/ |
~/.claude/ |
Global (all projects) | Personal preferences, commit format, work style, API rules |
.claude/ |
(not symlinked) | This project only | Dotfiles-specific rules, audit command, file naming conventions |
Decision Guide
Goes in claude/ (global):
- Communication preferences
- Work style (ADHD, collaboration style)
- Commit message format and types
- API lookup rules
- Anything that applies to all your projects
Goes in .claude/ (project-local):
- Dotfiles-specific conventions (file naming, scopes table)
- Commands like
/audit - Rules scoped to specific dotfiles (e.g., git-dashboard rule)
- Anything specific to managing dotfiles
When Ambiguous, Ask
If the user asks to add a rule and the level isn't clear, ask:
"Should this rule apply globally (all projects) or just to dotfiles?"
Examples of ambiguous requests:
- "Add a rule about X" - which level?
- "Create a command for Y" - global or local?
- "Remember that I prefer Z" - sounds global, but confirm
File Structure
dotfiles/
├── claude/ # → ~/.claude/ (GLOBAL)
│ ├── CLAUDE.md # Global rules
│ └── rules/ # Global file-scoped rules
│ └── *.md
│
└── .claude/ # PROJECT-LOCAL
├── CLAUDE.md # Dotfiles-specific rules
├── commands/
│ └── audit.md # /audit command
├── rules/
│ └── git-dashboard.md # Scoped to fish/git-dashboard.fish
└── skills/
└── claude-config-levels/ # This skill
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?