Generate $HOME/.claude/CLAUDE.md with AI-driven environment detection and advanced configuration options
Creates a personalized CLAUDE.md configuration file through interactive environment detection and user preferences.
/plugin marketplace add fradser/dotclaude/plugin install claude-config@frad-dotclaudeinit-config/Goal: Understand the user's technology stack by detecting installed languages, tools, and package managers.
Actions:
Goal: Collect developer name and email for personalized configuration.
Actions: Ask for developer name and email using AskUserQuestion with 2 questions:
Question 1: "What is your name?"
{"label": "Skip name", "description": "Don't include name in configuration"}Question 2: "What is your email address?"
{"label": "Skip email", "description": "Don't include email in configuration"}Important: Only provide the "Skip" option. The "Other" option is automatically provided for direct text input.
Goal: Determine if Test-Driven Development requirements should be included in the configuration.
Actions: Ask if TDD should be included using AskUserQuestion:
{"label": "Include TDD (Recommended)", "description": "Add mandatory TDD workflow"}{"label": "Exclude TDD", "description": "Generate without TDD requirements"}Store the user's choice (true/false) for use in Phase 7.
Goal: Select technology stacks and preferred package managers for each language.
Actions:
Select Technology Stacks
multiSelect: trueSelect Package Managers (if multiple detected for selected languages)
Goal: Optionally search for and append latest 2026 best practices for selected technologies.
Actions: Ask if web search should be performed using AskUserQuestion:
{"label": "Search and append (Recommended)", "description": "Find 2026 best practices"}{"label": "Skip search", "description": "Use only base template"}If enabled, search and extract 2-3 key sentences for each technology:
Goal: Determine emoji usage preference for the generated configuration.
Actions: Ask emoji preference using AskUserQuestion:
{"label": "No Emojis (Recommended)", "description": "Professional, text-only formatting"}{"label": "Use Emojis", "description": "Add visual indicators using emojis"}Goal: Assemble final configuration content from template fragments, developer profile, and technology sections.
Actions:
Assemble template using script:
${CLAUDE_PLUGIN_ROOT}/scripts/assemble-template.sh "${CLAUDE_PLUGIN_ROOT}/assets/claude-template-no-tdd.md" "<tdd_choice>" "<temp_output_file>" "${CLAUDE_PLUGIN_ROOT}"<tdd_choice> is "true" if TDD was selected in Phase 3, "false" otherwisePrepare Developer Profile Section
## Developer Profile
- **Name**: [User's Name or "Developer"]
- **Email**: [User's Email or omit if skipped]
Generate Tech Stack Sections
Assemble Final Content
Goal: Validate that the generated configuration meets optimal length requirements (1,500-3,000 words).
Actions:
Validate content length
${CLAUDE_PLUGIN_ROOT}/scripts/validate-length.shHandle results:
Goal: Write the final configuration to the user's home directory with comprehensive summary reporting.
Actions:
Write final file to $HOME/.claude/CLAUDE.md
$HOME/.claude/CLAUDE.md exists$HOME/.claude/CLAUDE.md.bak if needed$HOME/.claude/ exists$HOME/.claude/CLAUDE.mdReport summary
$HOME/.claude/CLAUDE.md