xarchitecture
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Manage project configuration files, environment variables, and application settings
How it fires
How this command gets triggered: by you, by Claude, or both.
/xconfigContext preview
What this command does when you run it.
Manage project configuration files, environment variables, and application settings
description: Manage project configuration files, environment variables, and application settings tags: [configuration, environment, validation, schema, security]
Manage configuration files and settings based on the arguments provided in $ARGUMENTS.
**Basic configuration analysis:**
/xconfig
**Validate configuration files:**
/xconfig --validate
**Check for security issues:**
/xconfig --secrets
**Convert between formats:**
/xconfig --convert yaml json
If $ARGUMENTS contains "help" or "--help": Display this usage information and exit.
First, examine the project structure for configuration files: !ls -la | grep -E "(config|env|\.yml|\.yaml|\.json|\.toml)" !find . -maxdepth 2 -name "*.yml" -o -name "*.yaml" -o -name "*.json" -o -name "*.toml" -o -name ".env*" | head -10
Based on $ARGUMENTS, perform the appropriate configuration operation:
If validating configuration (--validate): !python -c "import yaml; print('YAML parser available')" 2>/dev/null || echo "Install PyYAML: pip install pyyaml" !python -c "import json; print('JSON parser available')" 2>/dev/null
Validate configuration files: @config.yml 2>/dev/null || @config.yaml 2>/dev/null || @config.json 2>/dev/null || echo "No standard config file found"
Check for:
If working with schemas (--schema, --schema-validate): !pip list | grep pydantic 2>/dev/null || echo "Install Pydantic: pip install pydantic"
For Python projects with Pydantic: !find . -name "*.py" -exec grep -l "BaseModel\|pydantic" {} \; | head -5
Validate configuration against schema:
If managing environments (--env, --dev, --staging, --production): !ls -la .env* 2>/dev/null || echo "No environment files found" !printenv | grep -E "(NODE_ENV|ENVIRONMENT|ENV)" || echo "No environment variables set"
Manage environment-specific configurations:
If generating templates (--template, --generate): Create configuration templates based on project type: !ls package.json 2>/dev/null && echo "Node.js project detected" || echo "Not a Node.js project" !ls requirements.txt setup.py pyproject.toml 2>/dev/null && echo "Python project detected" || echo "Not a Python project"
Generate appropriate configuration templates for the detected project type.
If converting formats (--convert): !python -c "import yaml, json, toml" 2>/dev/null || echo "Install required parsers: pip install pyyaml toml"
Convert between formats:
If managing secrets (--secrets, --encrypt): !grep -r "password\|secret\|key" . --include="*.yml" --include="*.yaml" --include="*.json" | grep -v "example\|template" | head -5
Check for:
Recommend:
Think step by step about configuration management best practices and provide:
Report configuration health and suggest improvements for better configuration management.
Transform Claude Code into a complete development platform with 45 AI-powered commands that automate your entire software development workflow. Now with improved git identity management!
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Continue an execution plan from where it left off across sessions
Interactive debugging support with error analysis and fix suggestions - integrates with Debug Specialist sub-agent for complex…
Automate git workflow - stage, commit with smart messages, and push to specified branch