v2/src/cli/simple-commands/init/README.md
This directory contains the modular implementation of the claude-flow init command, which initializes Claude Code integration files for projects.
init/
├── README.md # This file
├── index.js # Main entry point for init command
├── help.js # Help text and documentation
├── executable-wrapper.js # Creates local executable wrappers
├── sparc-structure.js # SPARC environment setup
├── templates/ # Template files
│ ├── claude-md.js # CLAUDE.md templates
│ ├── memory-bank-md.js # memory-bank.md templates
│ ├── coordination-md.js # coordination.md templates
│ └── readme-files.js # README templates for directories
├── sparc/ # SPARC-specific configuration
│ ├── roomodes-config.js # .roomodes configuration
│ ├── workflows.js # SPARC workflow templates
│ └── roo-readme.js # .roo directory README
└── claude-commands/ # Claude Code slash commands
├── slash-commands.js # Main slash command creator
├── sparc-commands.js # SPARC-specific commands
└── claude-flow-commands.js # Claude-Flow specific commands
--sparc flag:Claude Code Configuration:
CLAUDE.md - SPARC-enhanced project instructions.claude/ directory structure.claude/commands/ - Slash commands for Claude Code.claude/logs/ - Conversation logs directoryMemory System:
memory-bank.md - Memory system documentationmemory/ directory structurememory/agents/ - Agent-specific memorymemory/sessions/ - Session storagememory/claude-flow-data.json - Persistence databaseCoordination System:
coordination.md - Agent coordination documentationcoordination/ directory structureSPARC Environment:
.roomodes - SPARC mode configurations (17+ modes).roo/ directory with templates and workflowsSlash Commands Created:
/sparc - Main SPARC command/sparc-<mode> - Individual mode commands (architect, code, tdd, etc.)/claude-flow-help - Help command/claude-flow-memory - Memory system command/claude-flow-swarm - Swarm coordination commandLocal Executable:
./claude-flow (Unix/Mac/Linux)claude-flow.cmd (Windows)--minimal flag:Creates minimal versions of all configuration files without SPARC features.
--force flag:Overwrites existing files if they already exist.
# Recommended first-time setup with SPARC
npx claude-flow@latest init --sparc
# Minimal setup
npx claude-flow init --minimal
# Force overwrite existing files
npx claude-flow init --force
.claude/ directory structure