Examples and Use Cases

Real-world examples of using create-ai-context in different scenarios

Real-world examples of using create-ai-context in different scenarios.

⚛️ New React Project

New Project React + TypeScript Interactive Mode

Setting up AI context for a new React TypeScript project:

# Create new project
mkdir my-react-app
cd my-react-app

# Initialize with npm
npm init -y
npm install react react-dom typescript

# Generate AI context
npx create-ai-context
Result: Tool detects React/TypeScript, provides smart defaults, creates complete AI documentation structure.

🐍 Existing Python Project

Existing Project Python + Django Safe Mode

Adding AI context to an existing Django project:

# Navigate to existing project
cd existing-django-project

# Generate AI context (safe mode)
npx create-ai-context
Interactive Flow:
  1. Tool detects Python/Django from requirements.txt
  2. Warns about existing README.md
  3. Offers options: overwrite, skip, or choose individually
  4. Creates missing AI context files only

🔄 CI/CD Automation

Automation Direct Mode GitHub Actions

Automated setup in CI/CD pipeline for consistent documentation:

# In your GitHub Actions workflow
- name: Setup AI Context
  run: |
    npx create-ai-context --agent claude --path ./
    git add *.md docs/
    git commit -m "docs: add AI context files"
Result: Ensures all repositories have consistent AI documentation structure.

🏢 Enterprise Microservices

Microservices Node.js Standardization

Standardizing documentation across multiple microservices:

# For each service
cd user-service
npx create-ai-context --agent cursor --path ./

cd payment-service
npx create-ai-context --agent cursor --path ./

cd notification-service
npx create-ai-context --agent cursor --path ./
Result: Consistent documentation structure across all services, easier for AI assistants to understand the entire system.

🧠 AI-First Development

AI-First Claude Code Planning Phase

Starting a new project with AI assistance from day one:

# Create project directory
mkdir ai-powered-app
cd ai-powered-app

# Generate AI context first
npx create-ai-context --agent claude --path ./

# Load context into Claude Code
/memory add PROJECT_RULES.md
/memory add DEVELOPMENT_PLAN.md
cat ai-instructions.md
AI Development Flow:
  1. Generate base documentation templates
  2. Use AI to analyze requirements and populate templates
  3. AI creates detailed architecture based on project rules
  4. Begin coding with full AI context understanding
  5. Clean up ai-instructions.md when setup is complete

📱 Mobile App Development

React Native Cross-platform Team Collaboration

Setting up documentation for a React Native mobile app:

# Initialize React Native project
npx react-native init MyMobileApp
cd MyMobileApp

# Add AI context for better team collaboration
npx create-ai-context

# Share with team
git add *.md docs/
git commit -m "docs: add AI-optimized project documentation"
git push
Result: Team members and AI assistants have clear understanding of mobile app architecture, development guidelines, and project structure.

🔧 Legacy Code Documentation

Legacy Code Documentation Debt Modernization

Adding modern documentation to legacy codebases:

# Navigate to legacy project
cd legacy-php-app

# Generate modern documentation structure
npx create-ai-context

# Use AI to analyze and document existing code
cat ai-instructions.md
# Follow AI guidance to populate architecture docs
Result: Legacy project gets modern documentation structure, making it easier for new developers and AI assistants to understand and maintain.

🎯 Best Practices from Examples

📊 Success Metrics

Teams using create-ai-context report: