From ffebe900875295e3875b7d5be524df55bd70be1b Mon Sep 17 00:00:00 2001 From: rUv Date: Mon, 2 Feb 2026 06:21:21 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: optimize/claude-md-governance - Timestamp: 2026-02-02T06:21:21Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/cli/src/init/executor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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');