diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts index 9215a34ce4..5cde164f74 100644 --- a/v3/@claude-flow/cli/src/init/executor.ts +++ b/v3/@claude-flow/cli/src/init/executor.ts @@ -1531,9 +1531,9 @@ async function writeClaudeMd( return; } - // Use minimal version for minimal init, full version otherwise - const isMinimal = !options.components.commands && !options.components.agents; - const content = isMinimal ? generateMinimalClaudeMd(options) : generateClaudeMd(options); + // Determine template: explicit option > infer from components > 'standard' + const inferredTemplate = (!options.components.commands && !options.components.agents) ? 'minimal' : undefined; + const content = generateClaudeMd(options, inferredTemplate); fs.writeFileSync(claudeMdPath, content, 'utf-8'); result.created.files.push('CLAUDE.md');