# Claude Flow Project Structure ## ๐Ÿ“ Root Directory The root directory has been cleaned and organized to contain only essential files: ### Configuration Files - **package.json** - NPM package configuration - **jest.config.js** - Jest testing configuration - **tsconfig.json** - TypeScript configuration - **.gitignore** - Git ignore rules - **.npmignore** - NPM publish ignore rules - **docker-compose.yml** - Docker configuration ### Core Files - **README.md** - Main project documentation - **LICENSE** - MIT license - **CHANGELOG.md** - Version history - **CLAUDE.md** - Claude Code integration instructions (required in root) - **cli.js** - Main CLI entry point - **claude-flow** - Executable wrapper script - **start-web-ui.js** - WebUI launcher ## ๐Ÿ“š Documentation Structure (docs/) All documentation has been organized into logical categories: ``` docs/ โ”œโ”€โ”€ api/ โ”‚ โ””โ”€โ”€ api-reference.md โ”œโ”€โ”€ deployment/ โ”‚ โ””โ”€โ”€ docker.md โ”œโ”€โ”€ development/ โ”‚ โ””โ”€โ”€ implementation-summary.md โ”œโ”€โ”€ integrations/ โ”‚ โ””โ”€โ”€ github.md โ”œโ”€โ”€ technical/ โ”‚ โ”œโ”€โ”€ mcp-integration-summary.md โ”‚ โ”œโ”€โ”€ neural-patterns.md โ”‚ โ””โ”€โ”€ webui-implementation.md โ”œโ”€โ”€ testing/ โ”‚ โ”œโ”€โ”€ mcp-qa-report.md โ”‚ โ”œโ”€โ”€ qa-final-report.md โ”‚ โ”œโ”€โ”€ testing-guide.md โ”‚ โ””โ”€โ”€ validation-report.md โ”œโ”€โ”€ troubleshooting/ โ”‚ โ””โ”€โ”€ corrected-usage.md โ”œโ”€โ”€ migration-guide.md โ”œโ”€โ”€ project-structure.md (this file) โ”œโ”€โ”€ setup.md โ”œโ”€โ”€ troubleshooting.md โ”œโ”€โ”€ usage-guide.md โ””โ”€โ”€ webui-instructions.md ``` ## ๐Ÿงช Test Structure (tests/) All tests have been consolidated into a single organized structure: ``` tests/ โ”œโ”€โ”€ unit/ # Unit tests for individual components โ”œโ”€โ”€ integration/ # Integration tests for component interactions โ”œโ”€โ”€ e2e/ # End-to-end tests for complete workflows โ”œโ”€โ”€ performance/ # Performance and load tests โ”œโ”€โ”€ manual/ # Manual test scenarios โ”‚ โ”œโ”€โ”€ cli-tests/ โ”‚ โ”œโ”€โ”€ init-tests/ โ”‚ โ””โ”€โ”€ tool-tests/ โ”œโ”€โ”€ scripts/ # Test automation scripts โ”œโ”€โ”€ fixtures/ # Test data and fixtures โ”œโ”€โ”€ mocks/ # Mock objects and services โ”œโ”€โ”€ utils/ # Test utilities and helpers โ””โ”€โ”€ results/ # Test execution results ``` ## ๐Ÿ—‚๏ธ Other Key Directories - **src/** - Source code - **dist/** - Build output - **flow-2-init/** - Claude Flow v2 initialization templates - **.claude/** - Claude Code configuration - **.roo/** - MCP configuration - **scripts/** - Utility scripts - **assets/** - Static assets - **examples/** - Usage examples ## ๐ŸŽฏ Benefits of This Structure 1. **Clean Root** - Only essential files in root directory 2. **Organized Docs** - Easy to find documentation by topic 3. **Unified Tests** - All tests in one place with clear categories 4. **Better Navigation** - Logical grouping makes finding files easier 5. **Easier Maintenance** - Clear structure for contributors ## ๐Ÿ“ Notes for Contributors - Keep documentation in the appropriate `docs/` subdirectory - Place all tests in the `tests/` directory using the appropriate category - Don't add unnecessary files to the root directory - Use the existing structure when adding new features