Skip to content

notdabob/ai-codeassist-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Code Assist Boilerplate

A comprehensive template for setting up development environments optimized for AI-assisted coding with tools like Claude, Gemini, and GitHub Copilot.

πŸš€ Quick Start

One-Click Installation

To install all dependencies and tools automatically, use one of the following commands based on your platform:

macOS/Linux (bash/sh)

sh scripts/install.sh

macOS/Linux (zsh)

zsh scripts/install.zsh

Any platform with PowerShell (macOS, Linux, Windows)

pwsh scripts/install.ps1

These scripts will:

  • Install PowerShell if missing (on macOS/Linux)
  • Install Poetry if missing
  • Install all Python dependencies
  • Set up pre-commit hooks
  • Create virtual environment
  • Configure development tools

Manual Setup

# Initialize project and dependencies
python init.py

# Activate virtual environment
source .venv/bin/activate  # Unix/macOS
.\.venv\Scripts\activate   # Windows

# Install dependencies and set up development environment
poetry install
pre-commit install

πŸ› οΈ Development Workflow

Essential Commands

# Testing
pytest                                    # Run all tests
pytest --cov=src --cov-report=term-missing  # Run with coverage
pytest -m unit                           # Unit tests only

# Code Quality
black .          # Format code
mypy src/        # Type checking
pre-commit run --all-files  # Run all hooks

# Dependency Management
poetry add package_name      # Add new dependency
poetry update               # Update dependencies

PowerShell Modules

# Import and use cross-platform Python runner
Import-Module ./scripts/Run-Python.psm1
Run-Python "your_script.py"

# Fetch AI provider models
Import-Module ./scripts/Get-ProviderModels.psm1
Get-ProviderModels -Provider "claude" -OutputPath "./configs/claude_models.json"

πŸ—οΈ Project Architecture

Directory Structure

β”œβ”€β”€ src/                    # Python source code packages
β”œβ”€β”€ tests/                  # Test suite (pytest)
β”œβ”€β”€ scripts/                # Cross-platform installation and utility scripts
β”œβ”€β”€ configs/                # YAML configuration files for tools and AI services
β”œβ”€β”€ .github/                # GitHub workflows and Copilot instructions
β”œβ”€β”€ .claude/                # Claude-specific configuration and commands
└── docs/                   # Additional documentation

Key Technologies

  • Language: Python (β‰₯3.8.1, <4.0)
  • Package Manager: Poetry for dependency management
  • Testing: pytest with coverage reporting
  • Code Quality: Black formatter, MyPy type checker
  • Cross-Platform: PowerShell 7.0+ scripts
  • AI Integration: Claude, Gemini, GitHub Copilot

πŸ€– AI Integration

Supported AI Tools

  • Claude: Anthropic's AI assistant for code analysis and generation
  • Gemini: Google's AI model for development assistance
  • GitHub Copilot: AI pair programming with custom instructions

Configuration

  1. Copy .env.example to .env
  2. Add your API keys:
    CLAUDE_API_KEY=your_claude_key
    GEMINI_API_KEY=your_gemini_key
    
  3. AI tools are configured via YAML files in configs/

πŸ“‹ Development Standards

Python Code Requirements

  • Type hints required for all functions and methods
  • Google/NumPy style docstrings for documentation
  • Black formatting enforced via pre-commit hooks
  • Testing with pytest and coverage reporting
  • Import order: standard library, third-party, then local

Testing Standards

  • Write tests for all new functionality
  • Maintain code coverage above configured threshold
  • Use test markers: @pytest.mark.unit, @pytest.mark.integration, @pytest.mark.slow
  • Test files should mirror source structure

Cross-Platform Compatibility

  • PowerShell 7.0+ for all scripts
  • Use pathlib.Path for file operations
  • Test on multiple platforms when possible

πŸ”§ Configuration

Environment Variables

Required environment variables (set in .env):

CLAUDE_API_KEY=your_claude_api_key
GEMINI_API_KEY=your_gemini_api_key

Configuration Files

  • configs/ai-tools.yaml - AI service configurations
  • configs/code-stack.yaml - Development stack settings
  • pyproject.toml - Poetry dependencies and project metadata
  • pytest.ini - Test configuration with coverage settings

πŸš€ Getting Started with Development

  1. Clone and Setup:

    git clone <repository-url>
    cd ai-codeassist-boilerplate
    sh scripts/install.sh  # or use PowerShell script
  2. Activate Environment:

    source .venv/bin/activate
  3. Start Developing:

    • Add your code to src/ directory
    • Write tests in tests/ directory
    • Use AI tools to assist with coding
    • Run tests frequently: pytest
    • Format code: black .
  4. Quality Assurance:

    pytest --cov=src
    mypy src/
    pre-commit run --all-files

πŸ“š Additional Resources

  • See SETUP.md for detailed setup instructions
  • Check .github/copilot-instructions.md for GitHub Copilot configuration
  • Review configs/ directory for AI tool configurations
  • Explore .claude/ directory for Claude-specific commands

πŸ“„ License

[License details here - see LICENSE file]


Note: This is a template project designed to be cloned and customized. Remove this note and update the README with your specific project details.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •