This project provides a comprehensive setup script that automatically configures your development environment for optimal AI coding assistant integration. The script detects and configures six major AI coding assistants with their native rule systems, best practices, and professional-grade templates.
🚀 Key Features
Universal AI Assistant Configuration
GitHub Copilot - Instructions files, prompt files, and VS Code integration
Cline - Rules-based system with contextual activation
Cursor - MDC rules with auto-attachment and templates
Windsurf - Memories & rules system with XML formatting
Augment - Rules & Guidelines with Always/Manual/Auto modes
Roo Code - Hierarchical custom instructions with mode-specific rules
Professional Development Templates
Requirements documentation with EARS syntax
Technical design specifications
Implementation task management
Testing standards and templates
Security best practices
Framework-specific guidelines
Team Collaboration Ready
Version-controlled rules and guidelines
Consistent coding standards across team members
Project-specific customization capabilities
Organization-wide best practices
Enhanced Script Features (v2.0)
Robust Error Handling - Comprehensive validation and graceful error recovery
Dry-Run Mode - Preview changes before applying them
Dependency Checking - Automatic validation of required tools and versions
Command Line Interface - Full CLI support with help, version, and options
Signal Handling - Proper cleanup on interruption or errors
Cross-Platform - Improved portability across different systems
Professional Output - Color-coded messages with clear status indicators
🎯 Quick Start
One-Command Setup
hljs language-bash
chmod +x setup.sh
./setup.sh
Command Line Options
hljs language-bash
# Interactive setup (recommended)
./setup.sh
# Show help and all available options
./setup.sh --help# Setup specific AI assistant directly
./setup.sh --assistant cursor
# Preview changes without applying them
./setup.sh --dry-run
# Run without colored output
./setup.sh --no-color
# Show version information
./setup.sh --version
The setup script will:
Detect your AI coding assistant preference (GitHub Copilot, Cline, Cursor, Windsurf, Augment, Roo Code)
Automatically configure the chosen assistant with professional rules and templates
Create project templates with best practices and documentation standards
Validate environment and check dependencies before making changes
What Gets Configured
AI Assistant Rules & Guidelines
Each AI assistant gets configured with its native rule system:
GitHub Copilot: .github/copilot-instructions.md, prompt files, and VS Code settings
Cline: .clinerules/ folder with contextual activation system
Cursor: .cursor/rules/ with MDC format and auto-attachment
Windsurf: .windsurf/rules/ with XML formatting and memory integration
Augment: .augment/rules/ with Always/Manual/Auto activation modes
Roo Code: .roo/rules/ with hierarchical global/workspace structure
The project also includes a structured development methodology based on requirements-driven design and EARS (Easy Approach to Requirements Syntax):
Requirements (src/requirements.md): Define what the system must do using User Stories and EARS syntax
Design (src/design.md): Create a technical blueprint for how the system will be built
Implementation Plan (src/tasks.md): Break the design into actionable tasks with requirement traceability
Execution: Follow the structured approach with AI assistant guidance
🛠️ Detailed Usage
Interactive Setup Process
The setup script provides a user-friendly, interactive experience:
AI Assistant Selection
hljs language-sql
Which AI coding assistant are you using?
1) GitHub Copilot
2) Cline (formerly Claude Dev)
3) Roo Code
4) Cursor5) Augment
6) Windsurf
7) None/Skip AI setup
Automatic Configuration
Installs necessary extensions (VS Code/Cursor)
Creates rule files and directories
Sets up templates and examples
Configures settings and preferences
Advanced Usage with start.sh
For project scaffolding, use the interactive menu script:
hljs language-bash
chmod +x start.sh
./start.sh
Option 1: Create a new project
Prompts for project name
Runs setup.sh to create structured template
Sets up documentation, prompts, and source directories
Option 2: Start a task in existing project
Prompts for project directory path
Runs start_task.sh for development workflow
Begins requirements-driven development process
📁 Project Structure
The setup script creates a comprehensive development environment with AI assistant configurations:
Each AI assistant gets a rules bank for easy activation:
clinerules-bank/ - Cline rule templates
cursor-rules-bank/ - Cursor rule templates
windsurf-rules-bank/ - Windsurf rule templates
augment-rules-bank/ - Augment rule templates
roo-rules-bank/ - Roo Code rule templates
Legacy Project Structure (start.sh)
hljs language-perl
my-new-project/
├── .gdn/ # General coding standards and instructions
├── docs/ # Project documentation
│ ├── instructions.md # High-level instructions for the AI
│ ├── requirements.md # The project's requirements (what to build)
│ └── design.md # The technical design (how to build it)
├── prompts/ # Step-by-step prompts for the AI
│ └── 01-phase-one-setup.md
├── src/ # Application source code
├── master_plan.md # The phased implementation plan (the to-do list)
└── package.json
🎨 AI Assistant Features Breakdown
GitHub Copilot Configuration
✅ Instructions Files - Custom coding standards and project guidelines
✅ Prompt Files - Reusable prompts for code review and test generation
✅ VS Code Integration - Automatic extension installation and settings
✅ File-Specific Rules - Different instructions for TypeScript, Python, etc.
✅ Commit Message Templates - Conventional commit format automation
Cline (Claude Dev) Configuration
✅ Rules System - .clinerules/ folder with contextual activation
✅ Rules Bank - Repository of framework and context-specific rules
✅ Contextual Switching - Easy activation of relevant rules per project phase
✅ Team Collaboration - Version-controlled rules for consistent standards
✅ Comprehensive Templates - Coding, testing, documentation, and debugging rules
Cursor Configuration
✅ MDC Format Rules - Metadata + content format with frontmatter
✅ Auto-Attachment - Rules automatically apply based on file patterns
✅ Template Integration - Referenced template files for components and APIs
Security Rules - Enhance security best practices and guidelines
📄 License
This project is open source and available under the MIT License.
🙏 Acknowledgments
AI Assistant Teams - For creating excellent documentation and rule systems
Community Contributors - For feedback and improvements
Open Source Community - For the tools and frameworks that make this possible
� Troubleshooting
Common Issues
Permission Errors
hljs language-bash
# Make script executablechmod +x setup.sh
# Check write permissions in current directoryls -la .
Bash Version Issues
hljs language-bash
# Check your Bash version (requires 4.0+)
bash --version
# On macOS, install newer Bash via Homebrew
brew install bash
Dependency Issues
hljs language-bash
# Use dry-run to check what would be installed
./setup.sh --dry-run
# Check for missing dependencies
./setup.sh --help# Shows requirements
Script Debugging
hljs language-bash
# Run with verbose output
bash -x ./setup.sh
# Check script syntax
bash -n ./setup.sh
# Use dry-run mode to preview changes
./setup.sh --dry-run --assistant cursor
Getting Help
hljs language-bash
# Show all available options
./setup.sh --help# Show version and system information
./setup.sh --version
# Preview changes without applying
./setup.sh --dry-run
�📞 Support
Issues - Report bugs or request features via GitHub Issues
Discussions - Join community discussions for questions and ideas
Documentation - Refer to individual AI assistant documentation for specific features
Script Help - Use ./setup.sh --help for built-in documentation