UNPKG

@versatil/sdlc-framework

Version:

๐Ÿš€ AI-Native SDLC framework with 11-MCP ecosystem, RAG memory, OPERA orchestration, and 6 specialized agents achieving ZERO CONTEXT LOSS. Features complete CI/CD pipeline with 7 GitHub workflows (MCP testing, security scanning, performance benchmarking),

336 lines (256 loc) โ€ข 7.79 kB
# ๐Ÿ“ฆ VERSATIL Framework Installation Guide Complete installation and setup guide for the VERSATIL SDLC Framework. ## ๐ŸŽฏ Prerequisites ### System Requirements - **Node.js**: 18.0.0 or higher - **npm**: 8.0.0 or higher (or yarn 1.22.0+) - **Git**: Latest version - **OS**: macOS, Linux, or Windows (WSL recommended) ### Development Environment - **IDE**: VS Code, Cursor, or compatible editor - **Terminal**: Bash, Zsh, or PowerShell - **Browser**: Chrome (for MCP integration) ## ๐Ÿš€ Installation Methods ### Method 1: NPM Global Installation (Recommended) ```bash # Install globally for system-wide access npm install -g versatil-sdlc-framework # Verify installation versatil --version # Initialize in new project mkdir my-project && cd my-project versatil init # Or initialize in existing project cd existing-project versatil init --existing ``` ### Method 2: Clone from GitHub ```bash # Clone the repository git clone https://github.com/versatil-platform/versatil-sdlc-framework.git cd versatil-sdlc-framework # Install dependencies npm install # Build the framework npm run build # Link for global usage (optional) npm link # Test installation npm test ``` ### Method 3: NPX (No Installation) ```bash # Use directly without installation npx versatil-sdlc-framework init # For existing projects cd your-project npx versatil-sdlc-framework init --existing ``` ## โš™๏ธ Configuration ### 1. Basic Setup After installation, initialize VERSATIL in your project: ```bash # Navigate to your project cd your-project # Initialize VERSATIL framework versatil init # Follow the interactive setup wizard ? Project type: (Frontend/Backend/Full-stack/ML) ? Framework: (React/Vue/Node.js/Python/Other) ? Team size: (Solo/Small/Medium/Large) ? MCP tools: (Chrome/Shadcn/GitHub/All) ``` ### 2. Framework Structure VERSATIL creates the following structure: ``` your-project/ โ”œโ”€โ”€ .versatil/ # Framework configuration โ”‚ โ”œโ”€โ”€ config.json # Main configuration โ”‚ โ”œโ”€โ”€ agents/ # Agent definitions โ”‚ โ”‚ โ”œโ”€โ”€ maria-qa.json # QA agent config โ”‚ โ”‚ โ”œโ”€โ”€ james-frontend.json # Frontend agent config โ”‚ โ”‚ โ”œโ”€โ”€ marcus-backend.json # Backend agent config โ”‚ โ”‚ โ”œโ”€โ”€ sarah-pm.json # PM agent config โ”‚ โ”‚ โ”œโ”€โ”€ alex-ba.json # BA agent config โ”‚ โ”‚ โ””โ”€โ”€ dr-ai-ml.json # ML agent config โ”‚ โ””โ”€โ”€ mcp/ # MCP tool configurations โ”‚ โ”œโ”€โ”€ chrome-mcp.json # Chrome MCP settings โ”‚ โ”œโ”€โ”€ shadcn-mcp.json # Shadcn MCP settings โ”‚ โ””โ”€โ”€ github-mcp.json # GitHub MCP settings โ”œโ”€โ”€ .cursorrules # Cursor IDE integration โ”œโ”€โ”€ CLAUDE.md # OPERA methodology guide โ””โ”€โ”€ versatil.log # Framework activity log ``` ### 3. Environment Variables Create a `.env` file in your project root: ```bash # Framework settings VERSATIL_LOG_LEVEL=info VERSATIL_AUTO_ACTIVATE=true VERSATIL_MCP_ENABLED=true # Agent settings VERSATIL_AGENT_TIMEOUT=30000 VERSATIL_CONTEXT_RETENTION=true VERSATIL_QUALITY_GATES=strict # MCP tool settings CHROME_MCP_HEADLESS=false CHROME_MCP_VIEWPORT=1920x1080 GITHUB_MCP_TOKEN=your_github_token SHADCN_MCP_REGISTRY=@shadcn/ui ``` ## ๐ŸŽจ Framework Configuration ### Agent Configuration Each agent can be customized in `.versatil/agents/`: ```json // .versatil/agents/maria-qa.json { "name": "Maria-QA", "role": "Quality Assurance Engineer", "autoActivate": true, "triggers": { "filePatterns": ["*.test.js", "*.spec.ts", "**/__tests__/**"], "keywords": ["test", "bug", "quality", "assert"], "errorPatterns": ["failed", "error", "exception"] }, "mcpTools": ["chrome_mcp", "playwright_mcp"], "collaborators": ["James-Frontend", "Marcus-Backend"], "qualityGates": { "testCoverage": 80, "accessibility": "WCAG-AA", "performance": "lighthouse > 90" } } ``` ### MCP Tool Configuration Configure MCP tools in `.versatil/mcp/`: ```json // .versatil/mcp/chrome-mcp.json { "name": "chrome_mcp", "enabled": true, "settings": { "headless": false, "viewport": { "width": 1920, "height": 1080 }, "timeout": 30000, "screenshots": true, "networkLogs": true }, "testSuites": { "smoke": ["basic-navigation", "core-functionality"], "regression": ["full-user-journey", "edge-cases"], "accessibility": ["wcag-compliance", "keyboard-navigation"] } } ``` ## ๐Ÿ”ง IDE Integration ### VS Code Setup Install the VERSATIL extension: ```bash # Install via VS Code marketplace code --install-extension versatil.versatil-sdlc # Or via settings.json { "versatil.autoActivate": true, "versatil.logLevel": "info", "versatil.mcpIntegration": true } ``` ### Cursor IDE Setup VERSATIL automatically creates `.cursorrules` for Cursor integration: ```yaml # .cursorrules - Auto-generated by VERSATIL agent_activation: frontend_files: ["*.tsx", "*.jsx", "*.vue"] agent: "James-Frontend" context: "UI/UX optimization, component design" test_files: ["*.test.*", "*.spec.*"] agent: "Maria-QA" context: "Quality assurance, automated testing" backend_files: ["*.api.*", "*.service.*"] agent: "Marcus-Backend" context: "API design, database optimization" ``` ## ๐Ÿงช Verification & Testing ### 1. Framework Health Check ```bash # Run comprehensive health check versatil health # Expected output: โœ… Framework Status: OPERATIONAL โœ… Agents: 6/6 configured โœ… MCP Tools: 3/3 connected โœ… IDE Integration: Active โœ… Context System: Ready โœ… Quality Gates: Enforced ``` ### 2. Agent Activation Test ```bash # Test agent auto-activation echo "describe('test', () => {})" > test.spec.js # Maria-QA should auto-activate # Check logs: tail -f versatil.log ``` ### 3. MCP Integration Test ```bash # Test Chrome MCP integration versatil test mcp --tool=chrome # Expected output: ๐ŸŽฏ MARIA (QA): Chrome MCP integration test ๐Ÿš€ Opening browser session... โœ… Navigation successful โœ… Snapshot captured โœ… Test execution complete ``` ## ๐Ÿšจ Troubleshooting ### Common Issues **Issue**: `versatil: command not found` ```bash # Solution: Reinstall globally npm uninstall -g versatil-sdlc-framework npm install -g versatil-sdlc-framework ``` **Issue**: Agents not auto-activating ```bash # Check configuration versatil config --validate # Reset configuration versatil init --reset ``` **Issue**: MCP tools not connecting ```bash # Check MCP status versatil mcp status # Restart MCP services versatil mcp restart ``` **Issue**: Permission errors ```bash # Fix permissions (macOS/Linux) sudo chown -R $(whoami) ~/.npm sudo chown -R $(whoami) /usr/local/lib/node_modules ``` ### Debug Mode Enable detailed logging for troubleshooting: ```bash # Set debug environment export VERSATIL_DEBUG=true export VERSATIL_LOG_LEVEL=debug # Run with verbose output versatil init --verbose # Check debug logs tail -f versatil.debug.log ``` ### Support Channels - ๐Ÿ“ง **Email**: support@versatil-platform.com - ๐Ÿ’ฌ **Discord**: [VERSATIL Community](https://discord.gg/versatil) - ๐Ÿ› **Issues**: [GitHub Issues](https://github.com/versatil-platform/versatil-sdlc-framework/issues) - ๐Ÿ“– **Docs**: [Full Documentation](https://docs.versatil-platform.com) ## ๐ŸŽ‰ Next Steps After successful installation: 1. **Read the [Quick Start Guide](../README.md#quick-start)** 2. **Explore [Agent Reference](./AGENTS.md)** 3. **Learn [MCP Integration](./MCP.md)** 4. **Try [Example Projects](../examples/)** 5. **Join the [Community](https://discord.gg/versatil)** --- **Congratulations! ๐ŸŽ‰ Your VERSATIL Framework is ready to revolutionize your development workflow.**