Available Tools
claude-rules-doctor
CLI that detects dead
.claude/rules/ files by checking if glob patterns match actual files in your repoClaudeCTX
Switch your entire Claude Code configuration with a single command
claude-rules-doctor
Validate your Claude Code rules configuration to catch silent failures and ensure rules apply correctly.Key Features
Dead Rule Detection
Identifies rules with
paths: globs that don’t match any files in your repositoryCI Integration
CI mode exits with code 1 when dead rules are found, perfect for automated checks
JSON Output
Machine-readable output format for integration with other tools
Verbose Mode
Show which files are matched by each rule for debugging
Common Issues Detected
Renamed Directories
Renamed Directories
When you rename a directory but forget to update the glob patterns in your rules:claudeclaude-rules-doctor will detect this rule never applies.
Typos in Glob Patterns
Typos in Glob Patterns
Typographical errors in path specifications:The rule silently fails to apply, but claude-rules-doctor catches it.
Deleted Files
Deleted Files
Rules pointing to files or directories that no longer exist:
Usage Examples
Workflow Integration
Integrate claude-rules-doctor into your development workflow:ClaudeCTX
Quickly switch between different Claude Code configurations for different projects or contexts.Key Features
Single Command
Switch entire configuration with one command
Configuration Sets
Manage multiple complete configuration sets
Fast Switching
Instant context changes without manual file editing
Project Isolation
Keep configurations separate per project or workflow
Use Cases
Multi-Project Development
Multi-Project Development
Switch between different project configurations:
- Frontend project with React-specific rules
- Backend project with API development rules
- Data science project with notebook-specific settings
Different Work Modes
Different Work Modes
Adapt your configuration to your current task:
- Development mode: Full features enabled
- Review mode: Focused on code review rules
- Documentation mode: Writing and editing docs
- Debugging mode: Specialized debugging tools
Team Configurations
Team Configurations
Share and switch between team-standardized configurations:
- Team A’s coding standards
- Team B’s workflow preferences
- Company-wide defaults
- Personal customizations
Experimentation
Experimentation
Test new configurations without losing your working setup:
- Create experimental configuration
- Switch to test new rules/commands
- Easily revert to stable configuration
Typical Workflow
Best Practices
Regular Validation
Run claude-rules-doctor regularly, especially after:
- Directory restructuring
- Large refactoring
- Adding new rules
- Merging branches
Configuration Versioning
Keep your configuration sets in version control:
- Track changes over time
- Share with team members
- Rollback if needed
Documentation
Document your configuration sets:
- What each config is for
- When to use it
- Special considerations
Automated Checks
Automate configuration validation:
- CI pipeline checks
- Pre-commit hooks
- Scheduled audits
Integration Example
Combine both tools for robust configuration management:Troubleshooting
Rules Not Applying
Rules Not Applying
Use claude-rules-doctor to check if:
- Glob patterns match actual files
- File paths are correct
- Rules are in the right location
Configuration Conflicts
Configuration Conflicts
When switching with ClaudeCTX:
- Ensure configurations don’t overlap unexpectedly
- Check for conflicting rules
- Verify MCP server compatibility
Silent Rule Failures
Silent Rule Failures
Common causes detected by claude-rules-doctor:
- Renamed directories
- Typos in paths
- Deleted files
- Case sensitivity issues