version: "1.0.0"
name: "Claude Force Project Templates"
description: "Curated templates for quick project initialization"

templates:

  # Full-stack template
  - id: fullstack-web
    name: "Full-Stack Web Application"
    description: "Complete web application with frontend, backend, and database"
    category: web
    difficulty: intermediate
    estimated_setup_time: "5-10 minutes"

    agents:
      - frontend-architect
      - backend-architect
      - database-architect
      - ui-components-expert
      - python-expert
      - code-reviewer
      - security-specialist

    workflows:
      - full-stack-feature
      - frontend-only
      - backend-only

    skills:
      - api-design
      - test-generation
      - code-review
      - git-workflow

    keywords:
      - web
      - fullstack
      - react
      - api
      - postgres
      - mongodb
      - nextjs
      - frontend
      - backend

    tech_stack:
      frontend: ["React", "Next.js", "TypeScript", "Tailwind CSS"]
      backend: ["Python", "FastAPI", "Node.js"]
      database: ["PostgreSQL", "MongoDB"]
      deployment: ["Vercel", "Docker"]

    use_cases:
      - "SaaS applications"
      - "E-commerce platforms"
      - "Admin dashboards"
      - "Content management systems"

  # ML Project template
  - id: ml-project
    name: "Machine Learning Project"
    description: "ML model training, evaluation, and deployment pipeline"
    category: ai-ml
    difficulty: advanced
    estimated_setup_time: "10-15 minutes"

    agents:
      - ai-engineer
      - data-engineer
      - python-expert
      - code-reviewer

    workflows:
      - ai-ml-development
      - data-pipeline

    skills:
      - test-generation
      - git-workflow

    keywords:
      - ml
      - ai
      - pytorch
      - tensorflow
      - training
      - deployment
      - model
      - machine learning
      - scikit-learn

    tech_stack:
      ml_frameworks: ["PyTorch", "TensorFlow", "scikit-learn"]
      data_processing: ["pandas", "numpy", "polars"]
      experiment_tracking: ["MLflow", "Weights & Biases"]
      deployment: ["FastAPI", "Docker", "TorchServe"]

    use_cases:
      - "Image classification"
      - "NLP applications"
      - "Predictive models"
      - "Recommendation systems"

  # LLM Application template
  - id: llm-app
    name: "LLM-Powered Application"
    description: "RAG systems, chatbots, and semantic search with LLMs"
    category: ai-ml
    difficulty: advanced
    estimated_setup_time: "10-15 minutes"

    agents:
      - prompt-engineer
      - ai-engineer
      - backend-architect
      - security-specialist
      - python-expert
      - code-reviewer

    workflows:
      - llm-integration

    skills:
      - api-design
      - test-generation

    keywords:
      - llm
      - rag
      - chatbot
      - openai
      - claude
      - embeddings
      - semantic search
      - langchain
      - vector database

    tech_stack:
      llm_providers: ["Anthropic Claude", "OpenAI"]
      frameworks: ["LangChain", "LlamaIndex"]
      vector_databases: ["Pinecone", "Weaviate", "Qdrant", "ChromaDB"]
      backend: ["FastAPI", "Python"]

    use_cases:
      - "Customer support chatbots"
      - "Document Q&A systems"
      - "Semantic search engines"
      - "AI assistants"

  # Data Pipeline template
  - id: data-pipeline
    name: "Data Engineering Pipeline"
    description: "ETL pipelines, data warehousing, and analytics"
    category: data
    difficulty: advanced
    estimated_setup_time: "10-15 minutes"

    agents:
      - data-engineer
      - database-architect
      - python-expert
      - code-reviewer

    workflows:
      - data-pipeline

    skills:
      - test-generation
      - git-workflow

    keywords:
      - etl
      - airflow
      - spark
      - bigquery
      - snowflake
      - data
      - warehouse
      - pipeline
      - dbt

    tech_stack:
      orchestration: ["Apache Airflow", "Prefect", "Dagster"]
      transformation: ["dbt", "Spark", "pandas"]
      warehouses: ["Snowflake", "BigQuery", "Redshift"]
      quality: ["Great Expectations", "dbt tests"]

    use_cases:
      - "Data warehouse building"
      - "ETL automation"
      - "Analytics pipelines"
      - "Data quality monitoring"

  # REST API template
  - id: api-service
    name: "REST API Service"
    description: "Backend API with database and authentication"
    category: backend
    difficulty: intermediate
    estimated_setup_time: "5-10 minutes"

    agents:
      - backend-architect
      - database-architect
      - security-specialist
      - python-expert
      - code-reviewer

    workflows:
      - backend-only

    skills:
      - api-design
      - test-generation
      - dockerfile

    keywords:
      - api
      - rest
      - graphql
      - backend
      - microservice
      - fastapi
      - authentication

    tech_stack:
      framework: ["FastAPI", "Flask", "Express.js"]
      database: ["PostgreSQL", "MongoDB"]
      auth: ["JWT", "OAuth2"]
      documentation: ["OpenAPI", "Swagger"]

    use_cases:
      - "Microservices"
      - "API backends"
      - "Authentication services"
      - "Data APIs"

  # Frontend SPA template
  - id: frontend-spa
    name: "Frontend Single-Page Application"
    description: "React/Vue/Angular SPA with state management"
    category: frontend
    difficulty: intermediate
    estimated_setup_time: "5-10 minutes"

    agents:
      - frontend-architect
      - ui-components-expert
      - frontend-developer
      - code-reviewer

    workflows:
      - frontend-only

    skills:
      - test-generation
      - git-workflow

    keywords:
      - frontend
      - react
      - vue
      - angular
      - spa
      - ui
      - components
      - typescript

    tech_stack:
      framework: ["React", "Next.js", "Vue", "Angular"]
      state_management: ["Redux", "Zustand", "Pinia", "NgRx"]
      styling: ["Tailwind CSS", "styled-components", "CSS Modules"]
      testing: ["Vitest", "Jest", "Playwright"]

    use_cases:
      - "Admin dashboards"
      - "User portals"
      - "Progressive web apps"
      - "Single-page applications"

  # Mobile App template
  - id: mobile-app
    name: "Mobile Application"
    description: "React Native or Flutter cross-platform mobile app"
    category: mobile
    difficulty: advanced
    estimated_setup_time: "10-15 minutes"

    agents:
      - frontend-architect
      - ui-components-expert
      - backend-architect
      - code-reviewer

    workflows:
      - full-stack-feature

    skills:
      - test-generation
      - api-design

    keywords:
      - mobile
      - react-native
      - flutter
      - ios
      - android
      - expo
      - app

    tech_stack:
      framework: ["React Native", "Flutter", "Expo"]
      navigation: ["React Navigation", "Flutter Navigator"]
      state: ["Redux", "Provider", "Riverpod"]
      backend: ["FastAPI", "Firebase"]

    use_cases:
      - "Mobile applications"
      - "Cross-platform apps"
      - "Native features"
      - "Mobile-first products"

  # Infrastructure template
  - id: infrastructure
    name: "Infrastructure & DevOps"
    description: "Docker, Kubernetes, CI/CD, and cloud deployment"
    category: infrastructure
    difficulty: advanced
    estimated_setup_time: "10-15 minutes"

    agents:
      - devops-architect
      - google-cloud-expert
      - deployment-integration-expert
      - security-specialist
      - code-reviewer

    workflows:
      - infrastructure

    skills:
      - dockerfile
      - git-workflow

    keywords:
      - devops
      - kubernetes
      - docker
      - terraform
      - aws
      - gcp
      - azure
      - infrastructure
      - iac

    tech_stack:
      containers: ["Docker", "Docker Compose"]
      orchestration: ["Kubernetes", "Helm"]
      iac: ["Terraform", "Pulumi", "CloudFormation"]
      ci_cd: ["GitHub Actions", "GitLab CI", "CircleCI"]

    use_cases:
      - "Container deployment"
      - "Kubernetes clusters"
      - "Infrastructure as code"
      - "CI/CD pipelines"

  # Claude Code System template
  - id: claude-code-system
    name: "Claude Code Multi-Agent System"
    description: "Build custom agents, workflows, and governance systems"
    category: claude-code
    difficulty: expert
    estimated_setup_time: "15-20 minutes"

    agents:
      - claude-code-expert
      - python-expert
      - document-writer-expert
      - code-reviewer

    workflows:
      - claude-code-system

    skills:
      - create-agent
      - create-skill
      - test-generation
      - git-workflow

    keywords:
      - claude-code
      - agents
      - orchestration
      - governance
      - multi-agent
      - workflow
      - automation

    tech_stack:
      framework: ["Claude Code", "Python"]
      orchestration: ["AgentOrchestrator"]
      governance: ["Hooks", "Validators", "Contracts"]

    use_cases:
      - "Custom agent systems"
      - "Workflow automation"
      - "Agent governance"
      - "System extensibility"

  # Crypto Trading Bot template
  - id: crypto-trading-bot
    name: "Cryptocurrency Trading Bot"
    description: "Production-grade crypto trading bot with risk management, backtesting, and Telegram integration"
    category: finance-ai
    difficulty: expert
    estimated_setup_time: "20-30 minutes"

    agents:
      - crypto-trading-architect
      - risk-engine-architect
      - trading-strategy-expert
      - crypto-data-engineer
      - exchange-integration-specialist
      - execution-optimization-expert
      - infrastructure-reliability-expert
      - crypto-security-auditor
      - telegram-bot-specialist
      - liquidation-monitor
      - python-expert
      - database-architect
      - code-reviewer
      - qc-automation-expert

    workflows:
      - crypto-trading-bot

    skills:
      - crypto-trading-patterns
      - telegram-bot-patterns
      - crypto-backtesting
      - exchange-api-integration
      - risk-management-framework
      - high-availability-patterns
      - order-execution-patterns
      - state-management-patterns
      - secrets-management-production

    keywords:
      - cryptocurrency
      - trading-bot
      - crypto
      - bitcoin
      - ethereum
      - binance
      - trading
      - algorithmic-trading
      - backtesting
      - telegram
      - risk-management
      - ccxt
      - exchange
      - arbitrage
      - market-making
      - quant
      - quantitative-finance

    tech_stack:
      language: ["Python 3.11+"]
      exchange_integration: ["CCXT", "CCXT Pro"]
      databases:
        hot_data: ["QuestDB"]
        warm_analytics: ["ClickHouse"]
        transactional: ["PostgreSQL"]
        caching: ["Redis", "Redis Streams"]
        archival: ["Parquet", "S3"]
      telegram: ["python-telegram-bot"]
      async_framework: ["asyncio", "aiohttp"]
      secrets_management: ["AWS Secrets Manager", "AWS KMS", "CloudHSM"]
      monitoring: ["Prometheus", "Grafana", "CloudWatch"]
      testing: ["pytest", "pytest-asyncio", "pytest-mock"]
      backtesting: ["pandas", "numpy", "scipy"]
      deployment: ["Docker", "Docker Compose", "Kubernetes"]
      high_availability: ["Redis Leader Election", "Active-Passive HA"]

    use_cases:
      - "Automated cryptocurrency trading"
      - "Arbitrage trading bots"
      - "Market making strategies"
      - "Grid trading systems"
      - "Statistical arbitrage"
      - "Funding rate arbitrage"
      - "Portfolio rebalancing"
      - "Algorithmic trading strategies"

    architecture_highlights:
      - "Multi-database hybrid architecture (QuestDB + ClickHouse + PostgreSQL)"
      - "Active-passive HA with <30s failover"
      - "99.99% uptime target"
      - "Pre-trade risk validation (6+ checks)"
      - "Circuit breakers for exchange failures"
      - "Position reconciliation on failover"
      - "Idempotent order management"
      - "TWAP/VWAP execution algorithms"
      - "Real-time margin monitoring"
      - "CloudHSM for cold wallet keys"
      - "Comprehensive audit logging (7-year retention)"

    security_features:
      - "AWS Secrets Manager + CloudHSM"
      - "NO withdrawal permissions on API keys"
      - "IP whitelisting on all exchanges"
      - "3-tier wallet architecture (cold/warm/hot)"
      - "MFA for sensitive Telegram commands"
      - "User whitelist for bot access"
      - "Encrypted communication channels"
      - "Audit logging to S3 WORM storage"

    risk_management:
      - "Max 2% position size per trade"
      - "Max 20% concentration in single asset"
      - "5% daily loss limit triggers circuit breaker"
      - "20% max drawdown limit"
      - "Max 3x leverage"
      - "Margin buffer minimum 30%"
      - "Correlation exposure monitoring"
      - "Fat finger detection"

    performance_targets:
      - "Data freshness: <5 seconds"
      - "Order execution latency: <200ms"
      - "WebSocket reconnection: <2 seconds"
      - "Database query latency: <5ms (QuestDB)"
      - "Backtest data load: <30 seconds"
      - "Failover time: <30 seconds"

    timeline:
      phase_1_infrastructure: "Weeks 1-4 (QuestDB, ClickHouse, Redis, PostgreSQL)"
      phase_2_core_engine: "Weeks 5-12 (Exchange connectors, order management, WebSocket)"
      phase_3_risk_system: "Weeks 13-20 (Pre-trade validation, circuit breakers, limits)"
      phase_4_strategies: "Weeks 21-28 (Arbitrage, grid trading, backtesting)"
      phase_5_telegram_ui: "Weeks 29-32 (Commands, notifications, MFA)"
      phase_6_ha_production: "Weeks 33-40 (Leader election, failover, monitoring)"
      total_duration: "9-12 months to production-ready"

categories:
  - id: web
    name: "Web Development"
    description: "Full-stack and web applications"

  - id: ai-ml
    name: "AI & Machine Learning"
    description: "ML models, LLM applications, and AI systems"

  - id: data
    name: "Data Engineering"
    description: "ETL pipelines and data warehousing"

  - id: backend
    name: "Backend Development"
    description: "APIs and backend services"

  - id: frontend
    name: "Frontend Development"
    description: "UI and frontend applications"

  - id: mobile
    name: "Mobile Development"
    description: "iOS and Android applications"

  - id: infrastructure
    name: "Infrastructure & DevOps"
    description: "Cloud infrastructure and deployment"

  - id: claude-code
    name: "Claude Code Systems"
    description: "Multi-agent orchestration systems"

  - id: finance-ai
    name: "Financial AI & Trading"
    description: "Cryptocurrency trading bots and quantitative finance systems"
