CODITECT Workflow Definitions
Version: 1.0.0 Last Updated: December 12, 2025 Audience: All users, automation architects Scope: AI/ML, Data Engineering, Automation, Analytics, Infrastructure
Overview
This document defines 50 production-ready H.P.006-WORKFLOWS across AI/ML Development, Data Engineering, Automation & Integration, Analytics & Reporting, and Infrastructure & DevOps categories. Each workflow includes triggers, complexity ratings, QA integration requirements, component dependencies, and step-by-step execution plans.
Relationship to COOKBOOK:
- COOKBOOK - Quick-start recipes for common tasks (15 recipes)
- WORKFLOW-DEFINITIONS - Detailed automation H.P.006-WORKFLOWS for specialized domains (50 H.P.006-WORKFLOWS)
Usage:
- Identify the workflow matching your goal
- Review complexity and duration
- Check dependencies (H.P.001-AGENTS/H.P.002-COMMANDS needed)
- Follow step-by-step execution plan
- Apply QA integration as specified
Quick Reference
| Category | Workflows | Page |
|---|---|---|
| AI/ML Development | 10 H.P.006-WORKFLOWS | Model training, evaluation, deployment, monitoring |
| Data Engineering | 10 H.P.006-WORKFLOWS | ETL, data quality, migration, real-time streaming |
| Automation & Integration | 10 H.P.006-WORKFLOWS | API integration, webH.P.005-HOOKS, scheduled jobs, error handling |
| Analytics & Reporting | 10 H.P.006-WORKFLOWS | Dashboards, KPI tracking, forecasting, anomaly detection |
| Infrastructure & DevOps | 10 H.P.006-WORKFLOWS | Server provisioning, CI/CD, monitoring, disaster recovery |
AI/ML Development
1. model-training-pipeline
- Description: Complete supervised learning model training pipeline from data ingestion to model artifact storage with experiment tracking and hyperparameter optimization.
- Trigger:
/train-modelor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: ml-engineer, data-scientist, testing-specialist
- Commands: /run-experiment, /validate-model, /save-model
- Steps:
- Data validation - data-scientist - Verify training data quality, schema, and distributions
- Feature engineering - ml-engineer - Create/transform features, handle missing values, encode categoricals
- Train/test split - ml-engineer - Stratified split with reproducible random seed
- Model training - ml-engineer - Train model with hyperparameter optimization (grid/random/bayesian)
- Experiment tracking - ml-engineer - Log metrics, parameters, and artifacts to MLflow/Weights&Biases
- Model validation - testing-specialist - Validate on holdout set, check for overfitting
- Model artifact save - ml-engineer - Serialize model and metadata to versioned storage
- Quality review - testing-specialist - Final accuracy/F1/AUC review against acceptance criteria
- Tags: ml, training, supervised-learning, mlops
2. dataset-preparation
- Description: Automated dataset preparation including data collection, cleaning, labeling, augmentation, and splitting for ML model training.
- Trigger:
/prepare-datasetor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-scientist, ml-engineer
- Commands: /clean-data, /augment-data, /split-data
- Steps:
- Data collection - data-scientist - Aggregate raw data from sources (API, database, files)
- Data cleaning - data-scientist - Handle missing values, remove duplicates, fix inconsistencies
- Data labeling - data-scientist - Apply labels (manual or semi-automated)
- Data augmentation - ml-engineer - Generate synthetic samples if needed (SMOTE, image transforms)
- Statistical analysis - data-scientist - Descriptive stats, distribution checks, outlier detection
- Dataset splitting - ml-engineer - Train/validation/test split with stratification
- Metadata documentation - data-scientist - Document schema, statistics, and versioning
- Validation - data-scientist - Verify split ratios, class balance, and data integrity
- Tags: ml, data-prep, preprocessing, etl
3. feature-engineering-pipeline
- Description: Systematic feature engineering including selection, transformation, encoding, scaling, and dimensionality reduction with feature importance analysis.
- Trigger:
/engineer-featuresor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-scientist, ml-engineer
- Commands: /select-features, /transform-features, /scale-features
- Steps:
- Feature discovery - data-scientist - Identify candidate features from raw data
- Feature encoding - data-scientist - One-hot, label, target encoding for categoricals
- Feature scaling - ml-engineer - StandardScaler, MinMaxScaler, or RobustScaler
- Feature transformation - data-scientist - Log, sqrt, polynomial, interaction features
- Feature selection - ml-engineer - Mutual info, LASSO, tree-based importance
- Dimensionality reduction - ml-engineer - PCA, t-SNE, UMAP if high-dimensional
- Feature validation - data-scientist - Check for leakage, multicollinearity, variance
- Feature documentation - data-scientist - Document feature definitions and transformations
- Tags: ml, feature-engineering, preprocessing
4. model-evaluation
- Description: Comprehensive model evaluation using cross-validation, multiple metrics, confusion matrices, ROC/PR curves, and performance comparison against baselines.
- Trigger:
/evaluate-modelor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: ml-engineer, testing-specialist
- Commands: /cross-validate, /compute-metrics, /plot-curves
- Steps:
- Cross-validation - ml-engineer - K-fold CV with stratification
- Metrics computation - ml-engineer - Accuracy, precision, recall, F1, AUC-ROC, AUC-PR
- Confusion matrix - ml-engineer - Analyze TP, FP, TN, FN distributions
- ROC/PR curves - ml-engineer - Plot and analyze curve shapes
- Baseline comparison - ml-engineer - Compare against dummy classifier/regressor
- Error analysis - testing-specialist - Identify patterns in misclassifications
- Performance report - testing-specialist - Generate comprehensive evaluation report
- Acceptance review - testing-specialist - Validate against business requirements
- Tags: ml, evaluation, validation, metrics
5. ab-testing-setup
- Description: Design and implement A/B test for model comparison including experimental design, traffic splitting, statistical power analysis, and significance testing.
- Trigger:
/setup-ab-testor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: ml-engineer, data-scientist, testing-specialist
- Commands: /design-experiment, /split-traffic, /analyze-results
- Steps:
- Hypothesis definition - data-scientist - Define null/alternative hypotheses
- Power analysis - data-scientist - Calculate required sample size for significance
- Experimental design - ml-engineer - Design randomization and stratification strategy
- Traffic splitting - ml-engineer - Implement 50/50 or weighted split with consistent hashing
- Metric instrumentation - ml-engineer - Track primary and secondary metrics
- Guardrail setup - testing-specialist - Define acceptable metric boundaries
- Statistical testing - data-scientist - Run t-test, chi-square, or Mann-Whitney U
- Results analysis - data-scientist - Interpret p-values, effect sizes, confidence intervals
- Tags: ml, ab-testing, experimentation, statistics
6. model-deployment
- Description: Deploy trained ML model to production including containerization, API endpoint creation, load balancing, versioning, and rollback capability.
- Trigger:
/deploy-modelor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer, ml-engineer, security-specialist
- Commands: /containerize-model, /deploy-to-production, /setup-monitoring
- Steps:
- Model serialization - ml-engineer - Pickle/joblib/ONNX export with version tag
- Containerization - devops-engineer - Create Docker image with model and dependencies
- API creation - ml-engineer - FastAPI/Flask endpoint with input validation
- Load testing - testing-specialist - Stress test with expected QPS
- Security review - security-specialist - Check for vulnerabilities, secrets exposure
- Deployment - devops-engineer - Deploy to Kubernetes/GCP/AWS with blue-green strategy
- Smoke testing - testing-specialist - Verify deployment with sample requests
- Rollback plan - devops-engineer - Document rollback procedure and triggers
- Tags: ml, deployment, mlops, production
7. model-monitoring-drift-detection
- Description: Set up continuous monitoring for deployed models including data drift detection, concept drift detection, performance degradation alerts, and automated retraining triggers.
- Trigger:
/monitor-modelor scheduled - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: ml-engineer, devops-engineer
- Commands: /setup-drift-detection, /H.P.009-CONFIGure-alerts, /setup-retraining
- Steps:
- Baseline capture - ml-engineer - Capture training data statistics (mean, std, distributions)
- Data drift detection - ml-engineer - PSI, KL divergence, Kolmogorov-Smirnov tests
- Concept drift detection - ml-engineer - Monitor prediction distribution shifts
- Performance monitoring - ml-engineer - Track accuracy, latency, throughput metrics
- Alert H.P.009-CONFIGuration - devops-engineer - Set thresholds for drift and performance degradation
- Visualization dashboard - devops-engineer - Grafana/Tableau dashboards for metrics
- Retraining triggers - ml-engineer - Define conditions for automated retraining
- Incident response - devops-engineer - Document escalation and remediation procedures
- Tags: ml, monitoring, drift-detection, mlops
8. prompt-engineering-workflow
- Description: Systematic prompt engineering for LLMs including prompt design, few-shot examples, chain-of-thought prompting, evaluation, and version control.
- Trigger:
/engineer-promptor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: ml-engineer, testing-specialist
- Commands: /test-prompt, /optimize-prompt, /version-prompt
- Steps:
- Task definition - ml-engineer - Define clear input/output specification
- Prompt design - ml-engineer - Write initial prompt with instructions and constraints
- Few-shot examples - ml-engineer - Add 3-5 representative examples
- Chain-of-thought - ml-engineer - Add reasoning steps if complex task
- Prompt testing - testing-specialist - Test on diverse examples, edge cases
- Iterative refinement - ml-engineer - Adjust based on failure modes
- Prompt versioning - ml-engineer - Version control in git with metadata
- Performance evaluation - testing-specialist - Measure accuracy, cost, latency
- Tags: ml, llm, prompt-engineering, nlp
9. model-fine-tuning
- Description: Fine-tune pre-trained models on custom datasets including transfer learning, learning rate scheduling, early stopping, and model comparison.
- Trigger:
/fine-tune-modelor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: ml-engineer, data-scientist
- Commands: /load-pretrained, /fine-tune, /save-checkpoint
- Steps:
- Base model selection - ml-engineer - Choose pre-trained model (BERT, ResNet, etc.)
- Data preparation - data-scientist - Format data for fine-tuning
- Layer freezing - ml-engineer - Freeze early layers, unfreeze later layers
- Learning rate schedule - ml-engineer - Use learning rate warmup and decay
- Fine-tuning - ml-engineer - Train with small LR, monitor validation loss
- Early stopping - ml-engineer - Stop when validation loss plateaus
- Checkpoint saving - ml-engineer - Save best model based on validation metric
- Comparison - data-scientist - Compare fine-tuned vs. base model performance
- Tags: ml, fine-tuning, transfer-learning, deep-learning
10. rag-pipeline-setup
- Description: Build end-to-end Retrieval-Augmented Generation pipeline including document ingestion, chunking, embedding, vector store, retrieval, and LLM integration.
- Trigger:
/setup-ragor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: ml-engineer, backend-architect
- Commands: /ingest-documents, /create-embeddings, /setup-vector-store
- Steps:
- Document ingestion - ml-engineer - Load PDFs, docs, web pages
- Text chunking - ml-engineer - Split into overlapping chunks (512-1024 tokens)
- Embedding generation - ml-engineer - Use OpenAI/Cohere/sentence-transformers
- Vector store setup - backend-architect - Configure Pinecone/Weaviate/ChromaDB
- Indexing - ml-engineer - Store embeddings with metadata in vector DB
- Retrieval testing - ml-engineer - Test semantic search with sample queries
- LLM integration - ml-engineer - Combine retrieved context with LLM (GPT-4, Claude)
- End-to-end testing - testing-specialist - Verify accuracy of generated answers
- Tags: ml, rag, llm, vector-search, nlp
Data Engineering
1. etl-pipeline-creation
- Description: Design and implement Extract-Transform-Load pipeline with error handling, incremental loading, idempotency, and monitoring for batch data processing.
- Trigger:
/create-etlor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-engineer, backend-architect, testing-specialist
- Commands: /extract-data, /transform-data, /load-data
- Steps:
- Source analysis - data-engineer - Identify data sources (databases, APIs, files)
- Extract logic - data-engineer - Implement extraction with pagination, rate limiting
- Transform logic - data-engineer - Data cleaning, type conversion, business rules
- Load strategy - backend-architect - Choose full/incremental, upsert/replace
- Error handling - data-engineer - Implement retry logic, dead letter queue
- Idempotency - data-engineer - Ensure rerunnable without duplicates
- Testing - testing-specialist - Unit tests for each stage, integration tests
- Monitoring - data-engineer - Log progress, errors, row counts, duration
- Tags: data-engineering, etl, pipeline, batch-processing
2. data-quality-checks
- Description: Implement comprehensive data quality validation including schema validation, null checks, range checks, uniqueness constraints, and referential integrity.
- Trigger:
/check-data-qualityor scheduled - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-engineer, testing-specialist
- Commands: /validate-schema, /check-constraints, /generate-report
- Steps:
- Schema validation - data-engineer - Check column names, data types, order
- Completeness checks - data-engineer - Identify null values, missing records
- Uniqueness checks - data-engineer - Validate primary keys, unique constraints
- Range checks - data-engineer - Validate numeric ranges, date ranges
- Format checks - data-engineer - Regex validation for emails, phone numbers, etc.
- Referential integrity - data-engineer - Check foreign key relationships
- Statistical profiling - data-engineer - Compute min, max, mean, stddev, percentiles
- Report generation - testing-specialist - Generate data quality scorecard
- Tags: data-engineering, data-quality, validation, testing
3. schema-management
- Description: Database schema version control, migration generation, rollback capability, and schema documentation for evolving data models.
- Trigger:
/manage-schemaor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: database-architect, data-engineer
- Commands: /generate-migration, /apply-migration, /rollback-migration
- Steps:
- Schema design - database-architect - Design new tables, columns, indexes
- Migration generation - data-engineer - Generate SQL migration (Alembic, Flyway, Liquibase)
- Migration review - database-architect - Review for performance, safety
- Backward compatibility - database-architect - Ensure safe migration (add before remove)
- Testing - data-engineer - Test migration on copy of production data
- Migration application - data-engineer - Apply migration with transaction
- Rollback testing - data-engineer - Verify rollback script works
- Documentation - database-architect - Update schema docs, ERD diagrams
- Tags: data-engineering, schema, migration, database
4. data-migration
- Description: Migrate data between systems/databases including extraction, transformation, validation, incremental sync, and cutover planning.
- Trigger:
/migrate-dataor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-engineer, database-architect, testing-specialist
- Commands: /extract-source, /transform-data, /validate-migration
- Steps:
- Source assessment - data-engineer - Analyze source schema, volume, constraints
- Target design - database-architect - Design target schema, mappings
- Migration strategy - database-architect - Choose big-bang vs. phased approach
- Extract logic - data-engineer - Export from source with checkpointing
- Transform logic - data-engineer - Map source to target schema
- Load logic - data-engineer - Bulk load with batch processing
- Validation - testing-specialist - Row count, checksum, sampling validation
- Cutover plan - database-architect - Document cutover steps, rollback, downtime
- Tags: data-engineering, migration, database, etl
5. api-data-integration
- Description: Integrate external API as data source including authentication, pagination, rate limiting, error handling, and incremental sync.
- Trigger:
/integrate-apior manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: backend-architect, data-engineer
- Commands: /H.P.009-CONFIGure-api-client, /sync-api-data, /handle-errors
- Steps:
- API exploration - backend-architect - Review API docs, authentication, endpoints
- Authentication setup - backend-architect - Implement OAuth, API key, JWT
- Client implementation - backend-architect - Create API client with retry logic
- Pagination handling - data-engineer - Implement cursor/offset pagination
- Rate limiting - backend-architect - Respect API rate limits with backoff
- Incremental sync - data-engineer - Track last sync timestamp, fetch new records
- Error handling - data-engineer - Handle 4xx/5xx errors, network failures
- Testing - backend-architect - Mock API responses, test edge cases
- Tags: data-engineering, api, integration, etl
6. data-warehouse-management
- Description: Manage data warehouse including star/snowflake schema design, fact/dimension tables, SCD handling, and OLAP optimization.
- Trigger:
/manage-warehouseor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: database-architect, data-engineer
- Commands: /design-schema, /create-tables, /optimize-queries
- Steps:
- Dimensional modeling - database-architect - Identify facts, dimensions, measures
- Schema design - database-architect - Design star or snowflake schema
- SCD strategy - database-architect - Choose SCD Type 1, 2, or 3 for dimensions
- Fact table design - database-architect - Additive, semi-additive, non-additive measures
- Dimension table design - database-architect - Slowly changing dimensions
- Indexing strategy - database-architect - Bitmap indexes, partitioning
- Aggregation tables - data-engineer - Pre-aggregate for performance
- Query optimization - database-architect - Optimize common OLAP queries
- Tags: data-engineering, data-warehouse, olap, dimensional-modeling
7. real-time-streaming-pipeline
- Description: Build real-time data streaming pipeline using Kafka/Kinesis including producers, consumers, stream processing, and exactly-once semantics.
- Trigger:
/setup-streamingor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-engineer, backend-architect, devops-engineer
- Commands: /setup-kafka, /create-producer, /create-consumer
- Steps:
- Streaming platform setup - devops-engineer - Deploy Kafka/Kinesis cluster
- Topic/stream creation - data-engineer - Create topics with partitions
- Producer implementation - backend-architect - Implement event producers
- Serialization - data-engineer - Choose Avro, Protobuf, JSON with schema registry
- Consumer implementation - backend-architect - Implement consumer groups
- Stream processing - data-engineer - Kafka Streams/Flink for transformations
- Exactly-once semantics - data-engineer - Implement idempotent producers, transactions
- Monitoring - devops-engineer - Monitor lag, throughput, error rates
- Tags: data-engineering, streaming, kafka, real-time
8. data-governance-setup
- Description: Implement data governance framework including data catalog, lineage tracking, access control, PII detection, and compliance policies.
- Trigger:
/setup-governanceor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-engineer, security-specialist, database-architect
- Commands: /create-catalog, /track-lineage, /H.P.009-CONFIGure-access
- Steps:
- Data catalog - data-engineer - Deploy Amundsen/DataHub/Alation
- Metadata management - data-engineer - Document tables, columns, owners, descriptions
- Lineage tracking - data-engineer - Track data flow from source to consumption
- PII detection - security-specialist - Scan for sensitive data (SSN, credit cards)
- Access control - security-specialist - Implement RBAC, column-level security
- Data classification - data-engineer - Tag data as public, internal, confidential
- Compliance policies - security-specialist - GDPR, HIPAA, CCPA compliance
- Audit logging - security-specialist - Log all data access and changes
- Tags: data-engineering, governance, compliance, security
9. backup-and-recovery
- Description: Implement automated backup and disaster recovery including full/incremental backups, point-in-time recovery, backup testing, and restoration procedures.
- Trigger:
/setup-backupor scheduled - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer, database-architect
- Commands: /H.P.009-CONFIGure-backup, /test-restore, /schedule-backup
- Steps:
- Backup strategy - database-architect - Define RPO/RTO requirements
- Full backup - devops-engineer - Schedule daily/weekly full backups
- Incremental backup - devops-engineer - Schedule hourly/daily incremental backups
- Backup storage - devops-engineer - Store backups in S3/GCS with versioning
- Encryption - security-specialist - Encrypt backups at rest and in transit
- Retention policy - devops-engineer - Define retention (daily 7d, weekly 30d, monthly 1y)
- Restore testing - devops-engineer - Monthly restore test to verify backups
- Documentation - devops-engineer - Document backup and restore procedures
- Tags: data-engineering, backup, disaster-recovery, devops
10. data-performance-optimization
- Description: Optimize data pipeline and query performance including indexing, partitioning, caching, query tuning, and infrastructure scaling.
- Trigger:
/optimize-data-performanceor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: database-architect, data-engineer, devops-engineer
- Commands: /analyze-queries, /create-indexes, /partition-tables
- Steps:
- Performance profiling - database-architect - Identify slow queries, bottlenecks
- Query analysis - database-architect - Analyze execution plans (EXPLAIN)
- Index optimization - database-architect - Create, modify, or remove indexes
- Partitioning - database-architect - Partition large tables by date/range
- Materialized views - database-architect - Pre-compute expensive aggregations
- Caching layer - data-engineer - Implement Redis/Memcached for hot data
- Query tuning - database-architect - Rewrite inefficient queries
- Infrastructure scaling - devops-engineer - Vertical/horizontal scaling if needed
- Tags: data-engineering, performance, optimization, database
Automation & Integration
1. workflow-automation-setup
- Description: Design and implement business process automation including workflow orchestration, task scheduling, dependency management, and error recovery.
- Trigger:
/automate-workflowor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: automation-specialist, backend-architect
- Commands: /create-workflow, /schedule-tasks, /setup-orchestration
- Steps:
- Process mapping - automation-specialist - Document current manual process
- Workflow design - automation-specialist - Design DAG with tasks and dependencies
- Orchestration setup - backend-architect - Configure Airflow/Prefect/Temporal
- Task implementation - backend-architect - Implement each task as function/script
- Dependency management - automation-specialist - Define task dependencies, triggers
- Error handling - backend-architect - Implement retry logic, alerting
- Testing - testing-specialist - Test workflow end-to-end with mock data
- Monitoring - automation-specialist - Track execution status, duration, failures
- Tags: automation, workflow, orchestration, airflow
2. api-integration-framework
- Description: Build reusable API integration framework with authentication, request/response handling, rate limiting, circuit breaker, and monitoring.
- Trigger:
/build-api-frameworkor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: backend-architect, automation-specialist
- Commands: /create-api-client, /setup-retry, /H.P.009-CONFIGure-circuit-breaker
- Steps:
- Client abstraction - backend-architect - Create base API client class
- Authentication - backend-architect - Support OAuth, API key, JWT, basic auth
- Request builder - backend-architect - Fluent interface for building requests
- Response parsing - backend-architect - Parse JSON/XML, handle errors
- Retry logic - automation-specialist - Exponential backoff, max retries
- Circuit breaker - automation-specialist - Prevent cascading failures
- Rate limiting - backend-architect - Client-side rate limiter
- Logging/monitoring - automation-specialist - Log requests, responses, errors
- Tags: automation, api, integration, framework
3. webhook-event-handler
- Description: Implement webhook receiver with signature verification, event processing, idempotency, queuing, and failure recovery.
- Trigger:
/setup-webhookor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: backend-architect, security-specialist
- Commands: /create-endpoint, /verify-signature, /process-event
- Steps:
- Endpoint creation - backend-architect - Create POST endpoint for webhook
- Signature verification - security-specialist - Verify HMAC/JWT signature
- Event parsing - backend-architect - Parse webhook payload
- Idempotency - backend-architect - Use event ID to prevent duplicate processing
- Queue integration - backend-architect - Push to queue (SQS, RabbitMQ) for async processing
- Event processing - backend-architect - Implement business logic for event types
- Error handling - backend-architect - Return 200, handle errors asynchronously
- Monitoring - automation-specialist - Track webhook deliveries, processing time, errors
- Tags: automation, webhook, event-driven, integration
4. scheduled-job-orchestration
- Description: Set up cron-based or interval-based job scheduling with dependency management, concurrency control, and execution history.
- Trigger:
/schedule-jobsor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: devops-engineer, automation-specialist
- Commands: /create-schedule, /H.P.009-CONFIGure-concurrency, /monitor-jobs
- Steps:
- Job inventory - automation-specialist - List all jobs, schedules, dependencies
- Scheduler selection - devops-engineer - Choose cron, Airflow, Celery Beat, APScheduler
- Schedule definition - automation-specialist - Define cron expressions or intervals
- Dependency management - automation-specialist - Define job dependencies (job B after job A)
- Concurrency control - devops-engineer - Prevent overlapping executions
- Execution logging - automation-specialist - Log start time, end time, status, output
- Alerting - devops-engineer - Alert on failure, long duration, missed schedule
- History retention - devops-engineer - Store execution history for 90 days
- Tags: automation, scheduling, cron, orchestration
5. error-handling-framework
- Description: Build comprehensive error handling system with retry strategies, circuit breakers, dead letter queues, and error analytics.
- Trigger:
/setup-error-handlingor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: backend-architect, automation-specialist
- Commands: /H.P.009-CONFIGure-retry, /setup-dlq, /track-errors
- Steps:
- Error classification - backend-architect - Classify errors (transient, permanent, user)
- Retry strategy - automation-specialist - Exponential backoff, max attempts, jitter
- Circuit breaker - automation-specialist - Open circuit after threshold, half-open retry
- Dead letter queue - backend-architect - Route failed messages to DLQ
- Error logging - backend-architect - Structured logging with context
- Alerting - automation-specialist - Alert on error rate spikes, circuit open
- Error analytics - automation-specialist - Track error trends, common failures
- Recovery procedures - automation-specialist - Document manual intervention steps
- Tags: automation, error-handling, reliability, resilience
6. notification-system-setup
- Description: Implement multi-channel notification system (email, SMS, webhook) with templating, scheduling, and delivery tracking.
- Trigger:
/setup-notificationsor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: backend-architect, automation-specialist
- Commands: /H.P.009-CONFIGure-channels, /create-H.P.008-TEMPLATES, /send-notification
- Steps:
- Channel setup - backend-architect - Configure email (SMTP), SMS (Twilio), webH.P.005-HOOKS
- Template system - backend-architect - Create reusable H.P.008-TEMPLATES with variables
- Notification queue - backend-architect - Queue notifications for async delivery
- Delivery logic - backend-architect - Implement send logic for each channel
- Retry logic - automation-specialist - Retry failed deliveries
- Delivery tracking - automation-specialist - Track sent, delivered, failed, bounced
- User preferences - backend-architect - Allow users to H.P.009-CONFIGure notification preferences
- Testing - testing-specialist - Test each channel with sample notifications
- Tags: automation, notification, email, sms, integration
7. multi-system-sync
- Description: Synchronize data across multiple systems with conflict resolution, eventual consistency, change detection, and sync monitoring.
- Trigger:
/sync-systemsor scheduled - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-engineer, backend-architect, automation-specialist
- Commands: /detect-changes, /resolve-conflicts, /sync-data
- Steps:
- Sync strategy - data-engineer - Define master source, sync direction, frequency
- Change detection - data-engineer - Track changes via timestamps, version fields, CDC
- Delta extraction - data-engineer - Extract only changed records
- Conflict detection - data-engineer - Detect conflicting updates in same record
- Conflict resolution - backend-architect - Apply resolution rules (latest wins, manual review)
- Sync execution - automation-specialist - Apply changes to target systems
- Validation - data-engineer - Verify record counts, checksums, sampling
- Monitoring - automation-specialist - Track sync lag, failures, conflicts
- Tags: automation, sync, integration, data-engineering
8. batch-processing-pipeline
- Description: Implement large-scale batch processing with chunking, parallel execution, checkpointing, and progress tracking.
- Trigger:
/process-batchor scheduled - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-engineer, backend-architect
- Commands: /chunk-data, /process-parallel, /track-progress
- Steps:
- Input preparation - data-engineer - Load batch data, validate format
- Chunking - data-engineer - Split data into chunks (1000-10000 records)
- Parallel execution - backend-architect - Process chunks in parallel (threads/processes)
- Processing logic - backend-architect - Apply transformations, business rules
- Error handling - backend-architect - Isolate failed records, continue processing
- Checkpointing - data-engineer - Save progress after each chunk
- Aggregation - data-engineer - Aggregate results from all chunks
- Progress tracking - automation-specialist - Track processed/failed/remaining records
- Tags: automation, batch-processing, parallel, etl
9. queue-management-system
- Description: Set up message queue system with topic-based routing, consumer groups, priority queues, and visibility timeout management.
- Trigger:
/setup-queueor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: backend-architect, devops-engineer
- Commands: /create-queue, /H.P.009-CONFIGure-consumers, /monitor-queue
- Steps:
- Queue selection - backend-architect - Choose RabbitMQ, SQS, Redis, or Kafka
- Queue creation - devops-engineer - Create queues with appropriate H.P.009-CONFIGuration
- Topic routing - backend-architect - Implement topic-based message routing
- Priority queues - backend-architect - Separate queues or priority field
- Consumer groups - backend-architect - Implement consumer groups for scaling
- Visibility timeout - backend-architect - Set appropriate timeout for message processing
- Dead letter queue - backend-architect - Route failed messages after max retries
- Monitoring - devops-engineer - Track queue depth, processing time, error rate
- Tags: automation, queue, messaging, rabbitmq, sqs
10. monitoring-automation-setup
- Description: Implement automated monitoring with health checks, metric collection, alerting rules, and incident automation.
- Trigger:
/setup-monitoringor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: devops-engineer, automation-specialist
- Commands: /H.P.009-CONFIGure-health-checks, /setup-alerts, /create-dashboards
- Steps:
- Health check implementation - devops-engineer - Implement /health endpoints
- Metric collection - devops-engineer - Instrument code with Prometheus, StatsD
- Log aggregation - devops-engineer - Configure ELK, Loki, or CloudWatch Logs
- Alerting rules - automation-specialist - Define alert conditions (error rate, latency, uptime)
- Alert routing - automation-specialist - Configure PagerDuty, Opsgenie, or email
- Dashboard creation - devops-engineer - Build Grafana/Datadog dashboards
- Incident automation - automation-specialist - Auto-restart, auto-scale, runbook automation
- Testing - devops-engineer - Test alerts by simulating failures
- Tags: automation, monitoring, observability, alerting
Analytics & Reporting
1. dashboard-creation
- Description: Build interactive dashboards with KPIs, charts, filters, drill-down capability, and automatic refresh using BI tools.
- Trigger:
/create-dashboardor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: recommended, review: recommended
- Dependencies:
- Agents: data-analyst, data-engineer
- Commands: /connect-data-source, /design-visualizations, /publish-dashboard
- Steps:
- Requirements gathering - data-analyst - Identify KPIs, metrics, audience
- Data source connection - data-engineer - Connect to database, data warehouse, API
- Data modeling - data-engineer - Create views, aggregations for dashboard
- Chart selection - data-analyst - Choose appropriate chart types (line, bar, pie, scatter)
- Dashboard design - data-analyst - Arrange charts, add filters, date pickers
- Drill-down setup - data-analyst - Enable drill-down from summary to detail
- Auto-refresh - data-engineer - Configure automatic data refresh schedule
- Publishing - data-analyst - Publish dashboard, set permissions
- Tags: analytics, dashboard, bi, visualization
2. kpi-tracking-system
- Description: Set up automated KPI tracking with data collection, calculation, trend analysis, target monitoring, and alerting on deviations.
- Trigger:
/track-kpisor scheduled - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-analyst, data-engineer
- Commands: /define-kpis, /calculate-metrics, /setup-alerts
- Steps:
- KPI definition - data-analyst - Define KPIs with formulas, data sources
- Data collection - data-engineer - Extract required data for KPI calculation
- Calculation logic - data-engineer - Implement KPI calculation (daily, weekly, monthly)
- Historical tracking - data-engineer - Store KPI values over time
- Target setting - data-analyst - Define target values, acceptable ranges
- Trend analysis - data-analyst - Calculate moving averages, trend lines
- Alerting - data-engineer - Alert when KPI crosses threshold
- Reporting - data-analyst - Generate KPI reports, dashboards
- Tags: analytics, kpi, metrics, tracking
3. ad-hoc-analysis-workflow
- Description: Enable data analysts to perform ad-hoc analysis with data access, SQL/Python notebooks, visualization tools, and sharing capabilities.
- Trigger:
/ad-hoc-analysisor manual - Complexity: simple
- Duration: 5-15m
- QA Integration: validation: recommended, review: none
- Dependencies:
- Agents: data-analyst
- Commands: /launch-notebook, /query-data, /export-results
- Steps:
- Tool selection - data-analyst - Choose Jupyter, Databricks, Mode, or SQL client
- Data access - data-analyst - Connect to data sources with read-only credentials
- Exploratory analysis - data-analyst - Write SQL queries or Python/R code
- Visualization - data-analyst - Create charts using matplotlib, plotly, seaborn
- Interpretation - data-analyst - Analyze results, identify insights
- Documentation - data-analyst - Document findings, methodology
- Sharing - data-analyst - Export to PDF, share notebook, or present
- Iteration - data-analyst - Refine analysis based on feedback
- Tags: analytics, ad-hoc, analysis, exploration
4. automated-reporting
- Description: Automate report generation and distribution with scheduling, templating, data refresh, export to multiple formats, and email delivery.
- Trigger:
/automate-reportor scheduled - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-analyst, automation-specialist
- Commands: /create-report-template, /schedule-report, /distribute-report
- Steps:
- Report design - data-analyst - Design report layout, sections, metrics
- Template creation - data-analyst - Create template in BI tool, Jupyter, or LaTeX
- Data query - data-analyst - Define SQL/API queries for report data
- Parameterization - automation-specialist - Add date ranges, filters as parameters
- Scheduling - automation-specialist - Set daily, weekly, monthly schedule
- Export - automation-specialist - Export to PDF, Excel, CSV
- Distribution - automation-specialist - Email to recipients, upload to shared drive
- Monitoring - automation-specialist - Track report generation, delivery success
- Tags: analytics, reporting, automation, scheduling
5. data-visualization-library
- Description: Build reusable visualization component library with consistent styling, interactivity, responsiveness, and accessibility.
- Trigger:
/create-viz-libraryor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: recommended, review: recommended
- Dependencies:
- Agents: data-analyst, frontend-react-typescript-expert
- Commands: /create-components, /style-charts, /test-visualizations
- Steps:
- Chart inventory - data-analyst - Identify commonly used chart types
- Library selection - frontend-react-typescript-expert - Choose D3, Chart.js, Recharts, Plotly
- Component creation - frontend-react-typescript-expert - Create React/Vue components for each chart
- Styling - frontend-react-typescript-expert - Apply consistent color scheme, fonts
- Interactivity - frontend-react-typescript-expert - Add tooltips, zoom, pan, click events
- Responsiveness - frontend-react-typescript-expert - Make charts responsive to screen size
- Accessibility - frontend-react-typescript-expert - Add ARIA labels, keyboard navigation
- Documentation - data-analyst - Document usage, props, examples
- Tags: analytics, visualization, component-library, frontend
6. cohort-analysis
- Description: Perform cohort analysis to understand user behavior over time including cohort definition, metric calculation, retention analysis, and visualization.
- Trigger:
/analyze-cohortsor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-analyst, data-engineer
- Commands: /define-cohorts, /calculate-retention, /visualize-cohorts
- Steps:
- Cohort definition - data-analyst - Define cohorts (by signup week, feature usage, etc.)
- Event data extraction - data-engineer - Extract user events from database
- Cohort assignment - data-analyst - Assign users to cohorts based on criteria
- Retention calculation - data-analyst - Calculate retention by cohort (Day 1, 7, 30, 90)
- Metric aggregation - data-engineer - Calculate revenue, engagement per cohort
- Cohort comparison - data-analyst - Compare cohorts to identify trends
- Visualization - data-analyst - Create cohort retention heatmap
- Insights - data-analyst - Identify high-value cohorts, retention drivers
- Tags: analytics, cohort, retention, user-behavior
7. funnel-analysis
- Description: Analyze conversion funnels to identify drop-off points including funnel definition, step tracking, conversion calculation, and optimization recommendations.
- Trigger:
/analyze-funnelor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: data-analyst, data-engineer
- Commands: /define-funnel, /track-conversions, /identify-dropoffs
- Steps:
- Funnel definition - data-analyst - Define funnel steps (e.g., view → add to cart → checkout → purchase)
- Event tracking - data-engineer - Ensure events are tracked for each step
- Data extraction - data-engineer - Extract user journey data
- Conversion calculation - data-analyst - Calculate conversion rate for each step
- Drop-off analysis - data-analyst - Identify steps with highest drop-off
- Segmentation - data-analyst - Segment by user attributes (device, source, location)
- Visualization - data-analyst - Create funnel chart showing drop-offs
- Recommendations - data-analyst - Suggest improvements for low-converting steps
- Tags: analytics, funnel, conversion, optimization
8. attribution-modeling
- Description: Build marketing attribution model to understand channel contribution including multi-touch attribution, model comparison, and ROI calculation.
- Trigger:
/model-attributionor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-analyst, data-scientist
- Commands: /extract-touchpoints, /apply-model, /calculate-roi
- Steps:
- Touchpoint extraction - data-engineer - Extract all user touchpoints (ads, emails, organic)
- Conversion tracking - data-engineer - Link touchpoints to conversions
- Model selection - data-scientist - Choose model (first-touch, last-touch, linear, time-decay, data-driven)
- Attribution calculation - data-scientist - Apply attribution model to assign credit
- Model comparison - data-scientist - Compare results across different models
- ROI calculation - data-analyst - Calculate ROI by channel
- Visualization - data-analyst - Visualize attribution results
- Recommendations - data-analyst - Optimize marketing spend based on attribution
- Tags: analytics, attribution, marketing, roi
9. forecasting-pipeline
- Description: Build time series forecasting pipeline including data preparation, model selection, training, validation, and automated forecast generation.
- Trigger:
/forecastor scheduled - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-scientist, data-engineer
- Commands: /prepare-timeseries, /train-forecast-model, /generate-forecast
- Steps:
- Data preparation - data-engineer - Extract historical time series data
- Stationarity check - data-scientist - Check for stationarity, apply differencing if needed
- Seasonality detection - data-scientist - Detect seasonal patterns, trends
- Model selection - data-scientist - Choose ARIMA, Prophet, LSTM, or XGBoost
- Train/test split - data-scientist - Time-based split (train on historical, test on recent)
- Model training - data-scientist - Train forecasting model
- Validation - data-scientist - Validate on test set, calculate MAPE, RMSE
- Forecast generation - data-scientist - Generate forecasts for next N periods
- Tags: analytics, forecasting, time-series, prediction
10. anomaly-detection-system
- Description: Implement automated anomaly detection for metrics and KPIs using statistical methods, ML models, alerting, and root cause analysis.
- Trigger:
/detect-anomaliesor scheduled - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: data-scientist, data-engineer
- Commands: /train-anomaly-detector, /detect-anomalies, /alert-anomalies
- Steps:
- Baseline creation - data-scientist - Calculate normal ranges from historical data
- Method selection - data-scientist - Choose statistical (Z-score, IQR) or ML (Isolation Forest, Autoencoders)
- Model training - data-scientist - Train anomaly detection model
- Real-time detection - data-engineer - Apply model to incoming data
- Anomaly scoring - data-scientist - Score anomalies by severity
- Alerting - data-engineer - Alert on high-severity anomalies
- Root cause analysis - data-analyst - Investigate potential causes
- Feedback loop - data-scientist - Incorporate feedback to reduce false positives
- Tags: analytics, anomaly-detection, monitoring, ml
Infrastructure & DevOps
1. server-provisioning
- Description: Automate server provisioning with infrastructure-as-code, H.P.009-CONFIGuration management, security hardening, and idempotency.
- Trigger:
/provision-serveror manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer, security-specialist
- Commands: /create-terraform, /apply-H.P.009-CONFIGuration, /verify-setup
- Steps:
- Requirements definition - devops-engineer - Define OS, specs, network, storage
- IaC template - devops-engineer - Create Terraform/CloudFormation template
- Network setup - devops-engineer - Configure VPC, subnets, security groups
- Server creation - devops-engineer - Provision EC2/GCE/Azure VM
- Configuration management - devops-engineer - Apply Ansible/Chef/Puppet H.P.009-CONFIGuration
- Security hardening - security-specialist - Disable root login, H.P.009-CONFIGure firewall, install updates
- Verification - devops-engineer - Verify SSH access, services running
- Documentation - devops-engineer - Document access, credentials, H.P.009-CONFIGurations
- Tags: infrastructure, devops, provisioning, iac
2. container-orchestration
- Description: Deploy containerized applications with Kubernetes including cluster setup, deployment manifests, service discovery, and auto-scaling.
- Trigger:
/deploy-k8sor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer, backend-architect
- Commands: /create-cluster, /deploy-app, /H.P.009-CONFIGure-scaling
- Steps:
- Cluster provisioning - devops-engineer - Provision GKE/EKS/AKS cluster
- Namespace creation - devops-engineer - Create namespaces for environments
- Deployment manifest - backend-architect - Create Kubernetes Deployment YAML
- Service creation - backend-architect - Create Service for internal/external access
- ConfigMap/Secret - devops-engineer - Store H.P.009-CONFIGuration and secrets
- Ingress setup - devops-engineer - Configure Ingress for external traffic
- Auto-scaling - devops-engineer - Configure HPA based on CPU/memory
- Monitoring - devops-engineer - Deploy Prometheus, Grafana for monitoring
- Tags: infrastructure, kubernetes, containers, orchestration
3. cicd-pipeline-setup
- Description: Build CI/CD pipeline with automated testing, building, deployment, rollback capability, and deployment gates.
- Trigger:
/setup-cicdor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer, testing-specialist
- Commands: /create-pipeline, /H.P.009-CONFIGure-stages, /setup-deployment
- Steps:
- Pipeline design - devops-engineer - Define stages (test, build, deploy)
- CI H.P.009-CONFIGuration - devops-engineer - Configure GitHub Actions/GitLab CI/Jenkins
- Test stage - testing-specialist - Run unit, integration, e2e tests
- Build stage - devops-engineer - Build Docker image, tag with commit SHA
- Push to registry - devops-engineer - Push to Docker Hub/GCR/ECR
- Deploy to staging - devops-engineer - Auto-deploy to staging environment
- Manual approval - devops-engineer - Require approval for production deploy
- Deploy to production - devops-engineer - Blue-green or canary deployment
- Tags: infrastructure, cicd, deployment, automation
4. monitoring-observability-stack
- Description: Deploy full observability stack with metrics (Prometheus), logs (Loki), traces (Jaeger), and dashboards (Grafana).
- Trigger:
/setup-observabilityor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer
- Commands: /deploy-prometheus, /deploy-loki, /deploy-jaeger, /create-dashboards
- Steps:
- Prometheus deployment - devops-engineer - Deploy Prometheus for metrics
- Exporter setup - devops-engineer - Configure node exporter, app exporters
- Loki deployment - devops-engineer - Deploy Loki for log aggregation
- Promtail setup - devops-engineer - Configure Promtail to ship logs
- Jaeger deployment - devops-engineer - Deploy Jaeger for distributed tracing
- Application instrumentation - devops-engineer - Add OpenTelemetry to apps
- Grafana deployment - devops-engineer - Deploy Grafana for visualization
- Dashboard creation - devops-engineer - Create dashboards for RED metrics
- Tags: infrastructure, monitoring, observability, metrics
5. log-aggregation-pipeline
- Description: Set up centralized logging with log collection, parsing, indexing, searching, and retention policies.
- Trigger:
/setup-loggingor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: recommended
- Dependencies:
- Agents: devops-engineer
- Commands: /deploy-elk, /H.P.009-CONFIGure-shippers, /setup-retention
- Steps:
- Stack selection - devops-engineer - Choose ELK, Loki, CloudWatch Logs
- Log shipper deployment - devops-engineer - Deploy Filebeat/Fluentd/Promtail
- Log parsing - devops-engineer - Configure grok patterns for parsing
- Index creation - devops-engineer - Create Elasticsearch indexes
- Retention policy - devops-engineer - Set retention (hot 7d, warm 30d, cold 90d)
- Search setup - devops-engineer - Configure Kibana for log searching
- Alerting - devops-engineer - Create alerts on error patterns
- Dashboard - devops-engineer - Build log volume, error rate dashboards
- Tags: infrastructure, logging, elk, observability
6. backup-automation
- Description: Automate infrastructure and database backups with scheduling, encryption, versioning, and restore testing.
- Trigger:
/automate-backupsor scheduled - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer, database-architect
- Commands: /H.P.009-CONFIGure-backup, /schedule-backup, /test-restore
- Steps:
- Backup strategy - devops-engineer - Define RPO/RTO, full/incremental schedule
- Database backup - database-architect - Configure automated database backups
- File system backup - devops-engineer - Configure file system snapshots
- Encryption - security-specialist - Encrypt backups at rest
- Storage - devops-engineer - Store in S3/GCS with versioning
- Scheduling - devops-engineer - Set daily/weekly/monthly schedules
- Restore testing - devops-engineer - Monthly restore test
- Monitoring - devops-engineer - Alert on backup failures
- Tags: infrastructure, backup, disaster-recovery, automation
7. scaling-policies
- Description: Implement auto-scaling policies with horizontal and vertical scaling, load-based triggers, and cost optimization.
- Trigger:
/H.P.009-CONFIGure-scalingor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: devops-engineer, cloud-architect
- Commands: /setup-autoscaling, /H.P.009-CONFIGure-triggers, /test-scaling
- Steps:
- Baseline metrics - devops-engineer - Establish normal CPU, memory, request load
- Scaling strategy - cloud-architect - Choose horizontal (add instances) vs. vertical (bigger instances)
- Trigger H.P.009-CONFIGuration - devops-engineer - Set CPU/memory thresholds (scale at 70%)
- Horizontal scaling - devops-engineer - Configure ASG/GCE MIG with min/max instances
- Vertical scaling - cloud-architect - Configure VPA for Kubernetes
- Cooldown periods - devops-engineer - Set cooldown to prevent flapping
- Load testing - testing-specialist - Test scaling behavior under load
- Cost optimization - cloud-architect - Right-size instances, use spot instances
- Tags: infrastructure, scaling, autoscaling, optimization
8. security-hardening
- Description: Apply security best practices to infrastructure including OS hardening, firewall H.P.009-CONFIGuration, secret management, and compliance scanning.
- Trigger:
/harden-securityor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: security-specialist, devops-engineer
- Commands: /audit-security, /apply-hardening, /scan-vulnerabilities
- Steps:
- OS hardening - security-specialist - Disable unnecessary services, apply patches
- Firewall H.P.009-CONFIGuration - security-specialist - Configure iptables/Security Groups (deny all, allow specific)
- SSH hardening - security-specialist - Disable root login, use key-based auth, change port
- Secret management - security-specialist - Use Vault, AWS Secrets Manager, or GCP Secret Manager
- TLS/SSL - security-specialist - Configure HTTPS with valid certificates
- Intrusion detection - security-specialist - Deploy OSSEC, fail2ban
- Vulnerability scanning - security-specialist - Run Nessus, OpenVAS, Trivy
- Compliance - security-specialist - Verify CIS benchmarks, SOC 2 compliance
- Tags: infrastructure, security, hardening, compliance
9. cost-optimization
- Description: Analyze and optimize cloud infrastructure costs with rightsizing, reserved instances, spot instances, and resource cleanup.
- Trigger:
/optimize-costsor manual - Complexity: moderate
- Duration: 15-30m
- QA Integration: validation: recommended, review: recommended
- Dependencies:
- Agents: cloud-architect, devops-engineer
- Commands: /analyze-costs, /rightsize-instances, /cleanup-resources
- Steps:
- Cost analysis - cloud-architect - Analyze current spending by service, environment
- Rightsizing - cloud-architect - Identify over-provisioned instances
- Reserved instances - cloud-architect - Purchase RIs for predictable workloads (1-3 year)
- Spot instances - devops-engineer - Use spot instances for batch, non-critical workloads
- Storage optimization - cloud-architect - Move infrequently accessed data to cold storage
- Resource cleanup - devops-engineer - Delete unused instances, snapshots, load balancers
- Tagging - devops-engineer - Tag resources for cost allocation
- Budget alerts - devops-engineer - Set budget alerts in AWS/GCP
- Tags: infrastructure, cost-optimization, cloud, finops
10. disaster-recovery-plan
- Description: Implement comprehensive disaster recovery strategy with backup sites, failover procedures, RTO/RPO targets, and regular DR drills.
- Trigger:
/setup-disaster-recoveryor manual - Complexity: complex
- Duration: 30m+
- QA Integration: validation: required, review: required
- Dependencies:
- Agents: cloud-architect, devops-engineer, database-architect
- Commands: /H.P.009-CONFIGure-failover, /setup-replication, /test-dr
- Steps:
- RTO/RPO definition - cloud-architect - Define recovery time and point objectives
- Backup site - cloud-architect - Provision standby environment (hot, warm, or cold)
- Data replication - database-architect - Configure cross-region database replication
- Failover mechanism - devops-engineer - Implement DNS failover, load balancer failover
- Runbook creation - devops-engineer - Document step-by-step recovery procedures
- Automated failover - devops-engineer - Configure automated failover for critical services
- DR testing - devops-engineer - Conduct quarterly DR drills
- Post-mortem - cloud-architect - Document lessons learned from drills
- Tags: infrastructure, disaster-recovery, failover, business-continuity
Workflow Usage Guidelines
Complexity Ratings
- Simple (1-5m): Single-step H.P.006-WORKFLOWS with minimal dependencies
- Moderate (5-30m): Multi-step H.P.006-WORKFLOWS with some coordination required
- Complex (30m+): Multi-agent H.P.006-WORKFLOWS requiring careful orchestration
QA Integration
- Validation Required: Automated validation must pass before completion
- Validation Recommended: Manual validation suggested but not blocking
- Review Required: Human review mandatory before production deployment
- Review Recommended: Peer review suggested for quality assurance
- Review None: No review needed for low-risk changes
Triggering Workflows
- Command-based: Use
/command-namein Claude Code - Manual: Invoke via Task tool with specific agent
- Scheduled: Configure cron/Airflow for automated execution
Customizing Workflows
- Copy workflow definition as template
- Adjust steps to match your requirements
- Add/remove H.P.001-AGENTS based on team availability
- Modify complexity/duration based on experience
- Document customizations in project-specific workflow docs
Integration with CODITECT Framework
Workflow → Agent Mapping
All H.P.006-WORKFLOWS reference H.P.001-AGENTS from the CODITECT agent catalog. Verify agent availability:
python3 H.P.004-SCRIPTS/update-component-activation.py list --type agent
Workflow → Command Mapping
Commands referenced in H.P.006-WORKFLOWS are defined in H.P.002-COMMANDS/ directory. Activate as needed:
python3 H.P.004-SCRIPTS/update-component-activation.py activate command COMMAND_NAME
Workflow Execution Pattern
User: "I need to [goal]"
↓
Consult: WORKFLOW-DEFINITIONS.md (find matching workflow)
↓
Activate: Required H.P.001-AGENTS/H.P.002-COMMANDS
↓
Execute: Follow step-by-step workflow
↓
Validate: Apply QA integration requirements
↓
Complete: Document outcomes
Appendix: Workflow Categories
AI/ML Development (10 H.P.006-WORKFLOWS)
Focus: End-to-end ML lifecycle from training to production monitoring
Data Engineering (10 H.P.006-WORKFLOWS)
Focus: Data pipelines, quality, governance, and optimization
Automation & Integration (10 H.P.006-WORKFLOWS)
Focus: System integration, workflow automation, and reliability
Analytics & Reporting (10 H.P.006-WORKFLOWS)
Focus: Data analysis, visualization, and business intelligence
Infrastructure & DevOps (10 H.P.006-WORKFLOWS)
Focus: Cloud infrastructure, deployment, monitoring, and reliability
Version History:
- v1.0.0 (Dec 12, 2025) - Initial 50 workflow definitions
Maintained by: CODITECT Framework Team License: Proprietary - AZ1.AI INC