claude-flow-novice 1.3.1 โ†’ 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,88 @@
1
+ # Agent Coordination System
2
+
3
+ ## Overview
4
+ The Claude-Flow coordination system manages multiple AI agents working together on complex tasks. It provides intelligent task distribution, resource management, and inter-agent communication.
5
+
6
+ ## Agent Types and Capabilities
7
+ - **Researcher**: Web search, information gathering, knowledge synthesis
8
+ - **Coder**: Code analysis, development, debugging, testing
9
+ - **Analyst**: Data processing, pattern recognition, insights generation
10
+ - **Coordinator**: Task planning, resource allocation, workflow management
11
+ - **General**: Multi-purpose agent with balanced capabilities
12
+
13
+ ## Task Management
14
+ - **Priority Levels**: 1 (lowest) to 10 (highest)
15
+ - **Dependencies**: Tasks can depend on completion of other tasks
16
+ - **Parallel Execution**: Independent tasks run concurrently
17
+ - **Load Balancing**: Automatic distribution based on agent capacity
18
+
19
+ ## Coordination Commands
20
+ ```bash
21
+ # Agent Management
22
+ npx claude-flow agent spawn <type> --name <name> --priority <1-10>
23
+ npx claude-flow agent list
24
+ npx claude-flow agent info <agent-id>
25
+ npx claude-flow agent terminate <agent-id>
26
+
27
+ # Task Management
28
+ npx claude-flow task create <type> <description> --priority <1-10> --deps <task-ids>
29
+ npx claude-flow task list --verbose
30
+ npx claude-flow task status <task-id>
31
+ npx claude-flow task cancel <task-id>
32
+
33
+ # System Monitoring
34
+ npx claude-flow status --verbose
35
+ npx claude-flow monitor --interval 5000
36
+ ```
37
+
38
+ ## Workflow Execution
39
+ Workflows are defined in JSON format and can orchestrate complex multi-agent operations:
40
+ ```bash
41
+ npx claude-flow workflow examples/research-workflow.json
42
+ npx claude-flow workflow examples/development-config.json --async
43
+ ```
44
+
45
+ ## Advanced Features
46
+ - **Circuit Breakers**: Automatic failure handling and recovery
47
+ - **Work Stealing**: Dynamic load redistribution for efficiency
48
+ - **Resource Limits**: Memory and CPU usage constraints
49
+ - **Metrics Collection**: Performance monitoring and optimization
50
+
51
+ ## Configuration
52
+ Coordination settings in `claude-flow.config.json`:
53
+ ```json
54
+ {
55
+ "orchestrator": {
56
+ "maxConcurrentTasks": 10,
57
+ "taskTimeout": 300000,
58
+ "defaultPriority": 5
59
+ },
60
+ "agents": {
61
+ "maxAgents": 20,
62
+ "defaultCapabilities": ["research", "code", "terminal"],
63
+ "resourceLimits": {
64
+ "memory": "1GB",
65
+ "cpu": "50%"
66
+ }
67
+ }
68
+ }
69
+ ```
70
+
71
+ ## Communication Patterns
72
+ - **Direct Messaging**: Agent-to-agent communication
73
+ - **Event Broadcasting**: System-wide notifications
74
+ - **Shared Memory**: Common information access
75
+ - **Task Handoff**: Seamless work transfer between agents
76
+
77
+ ## Best Practices
78
+ - Start with general agents and specialize as needed
79
+ - Use descriptive task names and clear requirements
80
+ - Monitor system resources during heavy workloads
81
+ - Implement proper error handling in workflows
82
+ - Regular cleanup of completed tasks and inactive agents
83
+
84
+ ## Troubleshooting
85
+ - Check agent health with `npx claude-flow status`
86
+ - View detailed logs with `npx claude-flow monitor`
87
+ - Restart stuck agents with terminate/spawn cycle
88
+ - Use `--verbose` flags for detailed diagnostic information
@@ -0,0 +1,58 @@
1
+ # Memory Bank Configuration
2
+
3
+ ## Overview
4
+ The Claude-Flow memory system provides persistent storage and intelligent retrieval of information across agent sessions. It uses a hybrid approach combining SQL databases with semantic search capabilities.
5
+
6
+ ## Storage Backends
7
+ - **Primary**: JSON database (`./memory/claude-flow-data.json`)
8
+ - **Sessions**: File-based storage in `./memory/sessions/`
9
+ - **Cache**: In-memory cache for frequently accessed data
10
+
11
+ ## Memory Organization
12
+ - **Namespaces**: Logical groupings of related information
13
+ - **Sessions**: Time-bound conversation contexts
14
+ - **Indexing**: Automatic content indexing for fast retrieval
15
+ - **Replication**: Optional distributed storage support
16
+
17
+ ## Commands
18
+ - `npx claude-flow memory query <search>`: Search stored information
19
+ - `npx claude-flow memory stats`: Show memory usage statistics
20
+ - `npx claude-flow memory export <file>`: Export memory to file
21
+ - `npx claude-flow memory import <file>`: Import memory from file
22
+
23
+ ## Configuration
24
+ Memory settings are configured in `claude-flow.config.json`:
25
+ ```json
26
+ {
27
+ "memory": {
28
+ "backend": "json",
29
+ "path": "./memory/claude-flow-data.json",
30
+ "cacheSize": 1000,
31
+ "indexing": true,
32
+ "namespaces": ["default", "agents", "tasks", "sessions"],
33
+ "retentionPolicy": {
34
+ "sessions": "30d",
35
+ "tasks": "90d",
36
+ "agents": "permanent"
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ ## Best Practices
43
+ - Use descriptive namespaces for different data types
44
+ - Regular memory exports for backup purposes
45
+ - Monitor memory usage with stats command
46
+ - Clean up old sessions periodically
47
+
48
+ ## Memory Types
49
+ - **Episodic**: Conversation and interaction history
50
+ - **Semantic**: Factual knowledge and relationships
51
+ - **Procedural**: Task patterns and workflows
52
+ - **Meta**: System configuration and preferences
53
+
54
+ ## Integration Notes
55
+ - Memory is automatically synchronized across agents
56
+ - Search supports both exact match and semantic similarity
57
+ - Memory contents are private to your local instance
58
+ - No data is sent to external services without explicit commands
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow-novice",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Standalone Claude Flow for beginners - AI agent orchestration made easy. Enhanced init command creates complete agent system, MCP configuration with 30 essential tools, and automated hooks. Fully standalone with zero external dependencies, all memory leaks eliminated, complete project setup in one command.",
5
5
  "mcpName": "io.github.ruvnet/claude-flow",
6
6
  "main": ".claude-flow-novice/dist/index.js",
@@ -200,6 +200,7 @@
200
200
  "src/cli/simple-commands/",
201
201
  "src/swarm-fullstack/",
202
202
  "src/npx/",
203
+ "src/language/",
203
204
  "examples/",
204
205
  "wiki/",
205
206
  "CLAUDE.md",
@@ -0,0 +1,503 @@
1
+ # Claude Flow Language Detection & CLAUDE.md Auto-Generation System
2
+
3
+ A comprehensive system for intelligent language detection and automatic CLAUDE.md generation with contextual best practices.
4
+
5
+ ## ๐Ÿš€ Overview
6
+
7
+ This system automatically analyzes your project to detect programming languages, frameworks, and dependencies, then generates a tailored CLAUDE.md file with:
8
+
9
+ - Language-specific concurrent execution patterns
10
+ - Framework-specific best practices
11
+ - Testing and deployment guidelines
12
+ - Project-specific recommendations
13
+ - Intelligent template substitution
14
+
15
+ ## ๐Ÿ“ Architecture
16
+
17
+ ```
18
+ src/language/
19
+ โ”œโ”€โ”€ language-detector.js # Core detection engine
20
+ โ”œโ”€โ”€ claude-md-generator.js # CLAUDE.md generation system
21
+ โ”œโ”€โ”€ integration-system.js # Project initialization & management
22
+ โ”œโ”€โ”€ cli.js # Command-line interface
23
+ โ”œโ”€โ”€ example.js # Usage examples and demos
24
+ โ””โ”€โ”€ README.md # This file
25
+
26
+ src/templates/claude-md-templates/
27
+ โ”œโ”€โ”€ base-template.md # Base CLAUDE.md template
28
+ โ”œโ”€โ”€ javascript-template.md # JavaScript-specific patterns
29
+ โ”œโ”€โ”€ typescript-template.md # TypeScript-specific patterns
30
+ โ”œโ”€โ”€ python-template.md # Python-specific patterns
31
+ โ”œโ”€โ”€ react-template.md # React-specific patterns
32
+ โ”œโ”€โ”€ express-template.md # Express.js patterns
33
+ โ”œโ”€โ”€ django-template.md # Django patterns
34
+ โ”œโ”€โ”€ flask-template.md # Flask patterns
35
+ โ””โ”€โ”€ nextjs-template.md # Next.js patterns
36
+
37
+ .claude-flow-novice/preferences/
38
+ โ”œโ”€โ”€ generation.json # User preferences
39
+ โ”œโ”€โ”€ integration.json # Integration settings
40
+ โ””โ”€โ”€ language-configs/ # Language-specific configurations
41
+ โ””โ”€โ”€ javascript.json # JavaScript configuration
42
+ ```
43
+
44
+ ## ๐Ÿ” Language Detection Features
45
+
46
+ ### Supported Languages
47
+ - **JavaScript** (.js, .mjs, .cjs)
48
+ - **TypeScript** (.ts, .tsx)
49
+ - **Python** (.py, .pyx, .pyw)
50
+ - **Java** (.java)
51
+ - **Go** (.go)
52
+ - **Rust** (.rs)
53
+
54
+ ### Framework Detection
55
+ - **Frontend**: React, Next.js, Vue.js, Angular
56
+ - **Backend**: Express.js, Fastify, Django, Flask, FastAPI, Spring Boot
57
+ - **Testing**: Jest, Vitest, pytest, Mocha, Jasmine
58
+
59
+ ### Detection Methods
60
+ 1. **File Extension Analysis**: Scans file extensions
61
+ 2. **Package File Analysis**: Analyzes package.json, requirements.txt, etc.
62
+ 3. **Content Pattern Matching**: Regex patterns for language constructs
63
+ 4. **Dependency Analysis**: Framework detection via dependencies
64
+ 5. **Project Structure Analysis**: Directory patterns and conventions
65
+ 6. **Build Tool Detection**: webpack, vite, rollup, etc.
66
+
67
+ ## ๐Ÿ“ CLAUDE.md Generation
68
+
69
+ ### Template System
70
+ - **Base Template**: Core Claude Code configuration
71
+ - **Language Templates**: Language-specific patterns and best practices
72
+ - **Framework Templates**: Framework-specific configurations
73
+ - **Smart Merging**: Preserves existing custom sections
74
+
75
+ ### Generated Sections
76
+ - **Concurrent Execution Patterns**: Language-specific agent coordination
77
+ - **File Organization Rules**: Project structure guidelines
78
+ - **Best Practices**: Language and framework-specific recommendations
79
+ - **Testing Patterns**: Testing framework configurations and examples
80
+ - **Build Configuration**: Build tool and deployment settings
81
+
82
+ ### Template Variables
83
+ - `{{PROJECT_TYPE}}`: Detected project type
84
+ - `{{PRIMARY_LANGUAGE}}`: Primary programming language
85
+ - `{{PRIMARY_FRAMEWORK}}`: Main framework detected
86
+ - `{{PACKAGE_MANAGER}}`: Package manager (npm, pip, cargo, etc.)
87
+ - `{{BUILD_TOOLS}}`: Build tools and bundlers
88
+ - `{{LANGUAGES_LIST}}`: Comma-separated list of languages
89
+ - `{{FRAMEWORKS_LIST}}`: Comma-separated list of frameworks
90
+
91
+ ## ๐Ÿ› ๏ธ CLI Usage
92
+
93
+ ### Installation
94
+ ```bash
95
+ # Make CLI executable
96
+ chmod +x src/language/cli.js
97
+
98
+ # Or run with Node.js
99
+ node src/language/cli.js --help
100
+ ```
101
+
102
+ ### Basic Commands
103
+
104
+ #### Language Detection
105
+ ```bash
106
+ # Detect languages in current directory
107
+ node src/language/cli.js detect
108
+
109
+ # Detect with JSON output
110
+ node src/language/cli.js detect --json
111
+
112
+ # Detect in specific directory
113
+ node src/language/cli.js detect -p /path/to/project
114
+
115
+ # Verbose output with dependencies
116
+ node src/language/cli.js detect --verbose
117
+ ```
118
+
119
+ #### CLAUDE.md Generation
120
+ ```bash
121
+ # Generate CLAUDE.md for current project
122
+ node src/language/cli.js generate
123
+
124
+ # Force regeneration even if file exists
125
+ node src/language/cli.js generate --force
126
+
127
+ # Skip backup creation
128
+ node src/language/cli.js generate --no-backup
129
+
130
+ # Use custom template
131
+ node src/language/cli.js generate -t /path/to/custom/template
132
+ ```
133
+
134
+ #### Project Initialization
135
+ ```bash
136
+ # Initialize project with auto-detection
137
+ node src/language/cli.js init
138
+
139
+ # Interactive setup
140
+ node src/language/cli.js init --interactive
141
+
142
+ # Skip validation
143
+ node src/language/cli.js init --skip-validation
144
+ ```
145
+
146
+ #### Update Detection
147
+ ```bash
148
+ # Check for new technologies
149
+ node src/language/cli.js update
150
+
151
+ # Check only, don't update
152
+ node src/language/cli.js update --check-only
153
+ ```
154
+
155
+ #### Project Analysis
156
+ ```bash
157
+ # Generate comprehensive report
158
+ node src/language/cli.js report
159
+
160
+ # Save report to file
161
+ node src/language/cli.js report -o project-report.json
162
+
163
+ # JSON output
164
+ node src/language/cli.js report --json
165
+ ```
166
+
167
+ #### Validation
168
+ ```bash
169
+ # Validate project structure
170
+ node src/language/cli.js validate
171
+
172
+ # JSON output
173
+ node src/language/cli.js validate --json
174
+ ```
175
+
176
+ #### Configuration Management
177
+ ```bash
178
+ # Show current configuration
179
+ node src/language/cli.js config show
180
+
181
+ # Set configuration value
182
+ node src/language/cli.js config set autoGenerate true
183
+
184
+ # Set nested configuration
185
+ node src/language/cli.js config set languages.javascript.enabled false
186
+ ```
187
+
188
+ #### Maintenance
189
+ ```bash
190
+ # Clean up old files (30 days default)
191
+ node src/language/cli.js cleanup
192
+
193
+ # Clean up files older than 7 days
194
+ node src/language/cli.js cleanup --days 7
195
+ ```
196
+
197
+ ## ๐Ÿ”ง Programming API
198
+
199
+ ### Language Detector
200
+ ```javascript
201
+ import { LanguageDetector } from './src/language/language-detector.js';
202
+
203
+ const detector = new LanguageDetector('/path/to/project');
204
+ const results = await detector.detectProject();
205
+
206
+ console.log(`Project type: ${results.projectType}`);
207
+ console.log(`Confidence: ${results.confidence}`);
208
+ console.log('Languages:', results.languages);
209
+ console.log('Frameworks:', results.frameworks);
210
+ ```
211
+
212
+ ### CLAUDE.md Generator
213
+ ```javascript
214
+ import { ClaudeMdGenerator } from './src/language/claude-md-generator.js';
215
+
216
+ const generator = new ClaudeMdGenerator('/path/to/project', {
217
+ backupExisting: true,
218
+ preserveCustomSections: true
219
+ });
220
+
221
+ const content = await generator.generateClaudeMd();
222
+ console.log(`Generated ${content.length} characters`);
223
+ ```
224
+
225
+ ### Integration System
226
+ ```javascript
227
+ import { IntegrationSystem } from './src/language/integration-system.js';
228
+
229
+ const integration = new IntegrationSystem('/path/to/project');
230
+
231
+ // Initialize project
232
+ const initResult = await integration.initialize();
233
+
234
+ // Validate project
235
+ const validation = await integration.validateProject();
236
+
237
+ // Generate report
238
+ const report = await integration.generateProjectReport();
239
+
240
+ // Check for updates
241
+ const updateResult = await integration.updateForNewTechnology();
242
+ ```
243
+
244
+ ## โš™๏ธ Configuration
245
+
246
+ ### User Preferences (.claude-flow-novice/preferences/generation.json)
247
+ ```json
248
+ {
249
+ "autoGenerate": true,
250
+ "includeFrameworkSpecific": true,
251
+ "includeBestPractices": true,
252
+ "includeTestingPatterns": true,
253
+ "backupExisting": true,
254
+ "preserveCustomSections": true,
255
+ "confidenceThreshold": 0.3,
256
+ "languages": {
257
+ "javascript": {
258
+ "enabled": true,
259
+ "includeConcurrentPatterns": true
260
+ },
261
+ "typescript": {
262
+ "enabled": true,
263
+ "includeStrictConfig": true
264
+ }
265
+ }
266
+ }
267
+ ```
268
+
269
+ ### Integration Settings (.claude-flow-novice/preferences/integration.json)
270
+ ```json
271
+ {
272
+ "autoDetect": true,
273
+ "autoGenerate": true,
274
+ "backupExisting": true,
275
+ "watchForChanges": false,
276
+ "includeFrameworkSpecific": true,
277
+ "includeBestPractices": true,
278
+ "includeTestingPatterns": true,
279
+ "createdAt": "2025-09-24T00:00:00.000Z"
280
+ }
281
+ ```
282
+
283
+ ## ๐ŸŽฏ Example Outputs
284
+
285
+ ### Detection Results
286
+ ```
287
+ ๐Ÿ” Detection Results:
288
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
289
+
290
+ ๐ŸŽฏ Project Type: react-typescript
291
+ ๐Ÿ“ˆ Confidence: 87.3%
292
+
293
+ ๐Ÿ’ป Languages:
294
+ typescript โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 95.2%
295
+ javascript โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“ 64.1%
296
+
297
+ ๐Ÿš€ Frameworks:
298
+ react โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 91.7%
299
+ nextjs โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“ 34.5%
300
+
301
+ ๐Ÿ’ก Recommended Tools:
302
+ Linting: ESLint, Prettier
303
+ Testing: Jest, React Testing Library
304
+ Building: Vite, Create React App
305
+ ```
306
+
307
+ ### Generated CLAUDE.md Preview
308
+ ```markdown
309
+ # Claude Code Configuration - react-typescript Development Environment
310
+
311
+ ## ๐Ÿšจ CRITICAL: CONCURRENT EXECUTION & FILE MANAGEMENT
312
+
313
+ **ABSOLUTE RULES**:
314
+ 1. ALL operations MUST be concurrent/parallel in a single message
315
+ 2. **NEVER save working files, text/mds and tests to the root folder**
316
+ 3. ALWAYS organize files in appropriate subdirectories
317
+ 4. **USE CLAUDE CODE'S TASK TOOL** for spawning agents concurrently
318
+
319
+ ## Project Overview
320
+
321
+ **Project Type**: react-typescript
322
+ **Primary Language**: typescript
323
+ **Primary Framework**: react
324
+ **Package Manager**: npm
325
+
326
+ ## ๐Ÿš€ Concurrent Execution Patterns
327
+
328
+ ### React/TypeScript Patterns
329
+ ```javascript
330
+ // โœ… CORRECT: React development with concurrent agents
331
+ [Single Message]:
332
+ Task("React Developer", "Build reusable components with hooks", "coder")
333
+ Task("State Manager", "Implement Redux/Context state management", "system-architect")
334
+ Task("Test Engineer", "Write React Testing Library tests", "tester")
335
+ ```
336
+ ```
337
+
338
+ ## ๐Ÿ”— Integration Examples
339
+
340
+ ### Package.json Scripts
341
+ ```json
342
+ {
343
+ "scripts": {
344
+ "claude:detect": "node src/language/cli.js detect",
345
+ "claude:generate": "node src/language/cli.js generate",
346
+ "claude:init": "node src/language/cli.js init",
347
+ "claude:update": "node src/language/cli.js update",
348
+ "claude:report": "node src/language/cli.js report",
349
+ "postinstall": "node src/language/cli.js update --check-only"
350
+ }
351
+ }
352
+ ```
353
+
354
+ ### Git Hooks (.git/hooks/pre-commit)
355
+ ```bash
356
+ #!/bin/sh
357
+ echo "๐Ÿ” Checking for new technologies..."
358
+ node src/language/cli.js update --check-only
359
+ if [ $? -eq 1 ]; then
360
+ echo "โš ๏ธ New technologies detected. Run 'npm run claude:update' to update CLAUDE.md"
361
+ fi
362
+ ```
363
+
364
+ ### GitHub Actions
365
+ ```yaml
366
+ name: Claude Flow Integration
367
+ on: [push, pull_request]
368
+ jobs:
369
+ claude-flow:
370
+ runs-on: ubuntu-latest
371
+ steps:
372
+ - uses: actions/checkout@v3
373
+ - uses: actions/setup-node@v3
374
+ - run: npm install
375
+ - run: npm run claude:detect
376
+ - run: npm run claude:validate
377
+ - run: npm run claude:report -- --json > claude-report.json
378
+ - uses: actions/upload-artifact@v3
379
+ with:
380
+ name: claude-report
381
+ path: claude-report.json
382
+ ```
383
+
384
+ ## ๐Ÿ“Š Performance Characteristics
385
+
386
+ - **Detection Speed**: ~50-200ms for typical projects
387
+ - **Generation Speed**: ~100-500ms for CLAUDE.md generation
388
+ - **Memory Usage**: <50MB for most projects
389
+ - **File Support**: Handles projects with 10,000+ files efficiently
390
+ - **Accuracy**: 85-95% confidence for well-structured projects
391
+
392
+ ## ๐Ÿงช Testing
393
+
394
+ Run the example script to test all functionality:
395
+
396
+ ```bash
397
+ # Run full demo
398
+ node src/language/example.js
399
+
400
+ # Show CLI usage examples
401
+ node src/language/example.js --usage
402
+
403
+ # Show integration examples
404
+ node src/language/example.js --integration
405
+ ```
406
+
407
+ ## ๐Ÿ› ๏ธ Development
408
+
409
+ ### Adding New Languages
410
+ 1. Add language patterns to `language-detector.js`
411
+ 2. Create template file in `src/templates/claude-md-templates/`
412
+ 3. Add configuration in `.claude-flow-novice/preferences/language-configs/`
413
+ 4. Update the generator to include the new language
414
+
415
+ ### Adding New Frameworks
416
+ 1. Add framework patterns to `language-detector.js`
417
+ 2. Create framework-specific template
418
+ 3. Update template loading in `claude-md-generator.js`
419
+ 4. Add framework-specific best practices
420
+
421
+ ### Extending Templates
422
+ Templates use Mustache-style placeholders:
423
+ - `{{VARIABLE_NAME}}` for simple substitution
424
+ - Template sections are automatically merged
425
+ - Custom sections are preserved during updates
426
+
427
+ ## ๐Ÿ”ง Troubleshooting
428
+
429
+ ### Common Issues
430
+
431
+ **Detection Confidence Low**:
432
+ - Ensure project has package.json or equivalent
433
+ - Add more source files
434
+ - Check file extensions are correct
435
+
436
+ **Generation Fails**:
437
+ - Verify write permissions
438
+ - Check template files exist
439
+ - Ensure no syntax errors in templates
440
+
441
+ **CLI Not Working**:
442
+ - Check Node.js version (requires Node 14+)
443
+ - Verify file permissions
444
+ - Run with `node src/language/cli.js` instead of direct execution
445
+
446
+ ### Debug Mode
447
+ Set environment variable for verbose logging:
448
+ ```bash
449
+ DEBUG=claude-flow:* node src/language/cli.js detect
450
+ ```
451
+
452
+ ## ๐Ÿ“š API Reference
453
+
454
+ ### LanguageDetector
455
+ - `detectProject()`: Main detection method
456
+ - `scanPackageFiles()`: Analyze package management files
457
+ - `scanSourceFiles()`: Analyze source code files
458
+ - `getRecommendations()`: Get tool recommendations
459
+
460
+ ### ClaudeMdGenerator
461
+ - `generateClaudeMd()`: Generate complete CLAUDE.md
462
+ - `loadTemplates()`: Load template files
463
+ - `updateForNewTechnology()`: Update for specific tech
464
+ - `mergeWithExisting()`: Merge with existing content
465
+
466
+ ### IntegrationSystem
467
+ - `initialize()`: Full system initialization
468
+ - `updateForNewTechnology()`: Check and update for changes
469
+ - `validateProject()`: Validate project structure
470
+ - `generateProjectReport()`: Create comprehensive report
471
+
472
+ ## ๐Ÿ”„ Changelog
473
+
474
+ ### v1.0.0 (2025-09-24)
475
+ - Initial release
476
+ - Language detection for 6+ languages
477
+ - Framework detection for 10+ frameworks
478
+ - Template system with 9 templates
479
+ - CLI interface with 15+ commands
480
+ - Integration system with validation
481
+ - Comprehensive configuration management
482
+
483
+ ## ๐Ÿ“„ License
484
+
485
+ This system is part of the Claude Flow Novice project and follows the same licensing terms.
486
+
487
+ ## ๐Ÿค Contributing
488
+
489
+ Contributions welcome! Please:
490
+ 1. Add tests for new features
491
+ 2. Update documentation
492
+ 3. Follow existing code patterns
493
+ 4. Test with multiple project types
494
+
495
+ ---
496
+
497
+ **๐Ÿš€ Ready to get started?**
498
+
499
+ ```bash
500
+ node src/language/cli.js init --interactive
501
+ ```
502
+
503
+ This will set up language detection and generate your first CLAUDE.md file!