antipattern-detector
Detect common technical and organizational anti-patterns in proposals, architectures, and plans. Use when strategic-cto-mentor…
Deep expertise in ML/CV model selection, training pipelines, and inference architecture. Use when designing machine learning systems, computer vision pipelines, or AI-powered features.
$ npx -y skills add alirezarezvani/claude-cto-team --skill ml-cv-specialist --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ml-cv-specialistContext preview
The summary Claude sees to decide when to auto-load this skill.
Deep expertise in ML/CV model selection, training pipelines, and inference architecture. Use when designing machine learning systems, computer vision pipelines, or AI-powered features.
name: ml-cv-specialist description: Deep expertise in ML/CV model selection, training pipelines, and inference architecture. Use when designing machine learning systems, computer vision pipelines, or AI-powered features.
Provides specialized guidance for machine learning and computer vision system design, model selection, and production deployment.
Use Case Identified
│
├─► Text/Language Tasks
│ ├─► Classification → BERT, DistilBERT, or API (OpenAI, Claude)
│ ├─► Generation → GPT-4, Claude, Llama (self-hosted)
│ ├─► Embeddings → OpenAI Ada, sentence-transformers
│ └─► Search/RAG → Vector DB + Embeddings + LLM
│
├─► Computer Vision Tasks
│ ├─► Classification → ResNet, EfficientNet, ViT
│ ├─► Object Detection → YOLOv8, DETR, Faster R-CNN
│ ├─► Segmentation → SAM, Mask R-CNN, U-Net
│ ├─► OCR → Tesseract, PaddleOCR, Cloud Vision API
│ └─► Face Recognition → InsightFace, DeepFace
│
├─► Audio Tasks
│ ├─► Speech-to-Text → Whisper, DeepSpeech, Cloud APIs
│ ├─► Text-to-Speech → ElevenLabs, Coqui TTS
│ └─► Audio Classification → PANNs, AudioSet models
│
└─► Structured Data
├─► Tabular → XGBoost, LightGBM, CatBoost
├─► Time Series → Prophet, ARIMA, Transformer-based
└─► Recommendations → Two-tower, matrix factorization---
| Factor | API Preferred | Self-Hosted Preferred | |--------|---------------|----------------------| | **Volume** | < 10K requests/month | > 100K requests/month | | **Latency** | > 500ms acceptable | < 100ms required | | **Customization** | General use case | Domain-specific fine-tuning | | **Data Privacy** | Non-sensitive data | PII, HIPAA, financial | | **Team Expertise** | No ML engineers | ML team available | | **Budget** | Predictable per-call costs | High volume justifies infra |
## API Costs (Example: OpenAI GPT-4) - Input: $0.03/1K tokens - Output: $0.06/1K tokens - Average request: 500 input + 200 output tokens - Cost per request: $0.027 - 100K requests/month: $2,700 ## Self-Hosted Costs (Example: Llama 70B) - GPU instance: $3/hour (A100 40GB) - Throughput: ~50 requests/minute = 3K/hour - Cost per request: $0.001 - 100K requests/month: $100 + $500 engineering time ## Break-even Analysis - < 50K requests: API likely cheaper - > 50K requests: Self-hosted may be cheaper - Factor in: engineering time, ops burden, model quality
---
┌─────────────────────────────────────────────────────────────┐
│ DATA LAYER │
├─────────────────────────────────────────────────────────────┤
│ Data Sources → ETL → Feature Store → Training Data │
│ (S3, DBs) (Airflow) (Feast) (Versioned) │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ TRAINING LAYER │
├─────────────────────────────────────────────────────────────┤
│ Experiment Tracking → Training Jobs → Model Registry │
│ (MLflow, W&B) (SageMaker) (MLflow, S3) │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ SERVING LAYER │
├─────────────────────────────────────────────────────────────┤
│ Model Server → Load Balancer → Monitoring │
│ (TorchServe) (K8s/ELB) (Prometheus) │
└─────────────────────────────────────────────────────────────┘| Component | Options | Recommendation | |-----------|---------|----------------| | **Feature Store** | Feast, Tecton, SageMaker | Feast (open source), Tecton (enterprise) | | **Experiment Tracking** | MLflow, Weights & Biases, Neptune | MLflow (free), W&B (best UX) | | **Training Orchestration** | Kubeflow, SageMaker, Vertex AI | SageMaker (AWS), Vertex (GCP) | | **Model Registry** | MLflow, SageMaker, custom S3 | MLflow (standard) | | **Model Serving** | TorchServe, TFServing, Triton | Triton (multi-framework) |
---
Best for: Low-latency requirements, simple integration
Client → API Gateway → Model Server → Response
│
Load Balancer
│
┌──────┴──────┐
│ │
Model Pod Model Pod**Latency targets**:
Best for: Long-running inference, batch processing
Client → API → Queue (SQS) → Worker → Result Store → Webhook/Poll
│
S3/Redis**Use when**:
Best for: Privacy, offline capability, ultra-low latency
┌─────────────────────────────────────────┐ │ EDGE DEVICE │ │ ┌─────────┐ ┌─────────────────────┐ │ │ │ Camera │───▶│ Optimized Model │ │ │ └─────────┘ │ (ONNX, TFLite) │ │ │ └─────────────────────┘ │ │ │ │ │ Local Resu
Your personal CTO Team for Claude Code - Custom AI subagents that provide strategic technical leadership, system architecture design, and brutally honest feedback on your technical decisions.
Detect common technical and organizational anti-patterns in proposals, architectures, and plans. Use when strategic-cto-mentor…
Recommend architecture patterns (monolith, microservices, serverless, modular monolith) based on scale, team size, and…
Identify and challenge implicit assumptions in plans, proposals, and technical decisions. Use when strategic-cto-mentor needs to…
Generate targeted clarifying questions (2-3 max) that challenge vague requirements and extract missing context. Use after…
Infrastructure and development cost estimation for technical projects. Use when planning budgets, evaluating build vs buy…
Transform clarified user requests into structured delegation prompts optimized for specialist agents (cto-architect,…