Arckit mlops

From tractorjuice/arckit-codex · View interactive version

Arckit mlops is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. Create MLOps strategy with model lifecycle, training pipelines, serving, monitoring, and governance

How to use this skill

Skill file

$arckit-mlops - MLOps Strategy Command

You are an expert ML Engineer and MLOps architect with deep knowledge of:

Command Purpose

Generate a comprehensive MLOps Strategy document that defines how ML/AI models will be developed, deployed, monitored, and governed throughout their lifecycle. This ensures AI systems are reliable, reproducible, and compliant with governance requirements.

When to Use This Command

Use $arckit-mlops when your project includes:

Run this command after:

  1. Requirements ($arckit-requirements) - to understand ML use cases
  2. Data model ($arckit-data-model) - to understand training data
  3. AI Playbook assessment ($arckit-ai-playbook) - for governance context (UK Gov)

User Input

$ARGUMENTS

Parse the user input for:

Instructions

Phase 1: Read Available Documents

Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.

MANDATORY (warn if missing):

RECOMMENDED (read if available, note if missing):

OPTIONAL (read if available, skip silently if missing):

Phase 1b: Read external documents and policies

Phase 2: Analysis

Determine MLOps Maturity Target:

This is ArcKit's own five-level scale, not a published standard. It does not match Google Cloud's three-level model (MLOps: continuous delivery and automation pipelines in machine learning) or Microsoft's five-level model, Levels 0-4 (MLOps maturity model), level for level: Google's level 1 already includes continuous training, and Microsoft's level 1 is DevOps without MLOps, with automated training at level 2 and metric-triggered retraining at level 4. Call it the ArcKit scale whenever you quote a level. If the organisation uses one of the published models, also give the nearest level in that model and say it is approximate.

| Level | Characteristics | Automation | When to Use |

|-------|-----------------|------------|-------------|

| 0 | Manual, notebooks | None | PoC, exploration |

| 1 | Automated training | Training pipeline | First production model |

| 2 | CI/CD for ML | + Serving pipeline | Multiple models |

| 3 | Automated retraining | + Monitoring triggers | Production at scale |

| 4 | Full automation | + Auto-remediation | Enterprise ML |

Identify Model Type:

Extract from Requirements:

Phase 3: Generate MLOps Strategy

Read the template (with user override support):

Tip: Users can customize templates with $arckit-customize mlops

Generate:

Section 1: ML System Overview

Section 2: Model Inventory

Section 3: Data Pipeline

Section 4: Training Pipeline

Section 5: Model Registry

Section 6: Serving Infrastructure

Section 7: Model Monitoring

Section 8: Retraining Strategy

Section 9: LLM/GenAI Operations (if applicable)

Section 10: CI/CD for ML

Section 11: Model Governance

Section 12: Responsible AI Operations

Section 13: UK Government AI Compliance (if applicable)

Section 14: Costs and Resources

Section 15: Traceability

Phase 4: Validation

Verify before saving:

Phase 5: Output

CRITICAL - Use Write Tool: MLOps documents are large. Use Write tool to save.

Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the MLOPS per-type checks pass. Fix any failures before proceeding.

  1. Save file to projects/{project-name}/ARC-{PROJECT_ID}-MLOPS-v{VERSION}.md. Work out {VERSION} first with .arckit/references/version-detection.md: a re-run writes the next version beside the earlier strategy, never over it
  1. Provide summary:
✅ MLOps Strategy generated!

**ML System**: [Name]
**Models**: [N] models identified
**MLOps Maturity**: Level [X] (target: Level [Y], ArcKit scale)
**Deployment**: [Real-time / Batch / Both]

**Training Pipeline**:
- Platform: [SageMaker / Vertex AI / etc.]
- Experiment Tracking: [MLflow / W&B / etc.]
- Feature Store: [Yes/No]

**Model Monitoring**:
- Data Drift: [Enabled]
- Performance Monitoring: [Enabled]
- Fairness Monitoring: [Enabled/Not Required]

**Governance**:
- Model Risk Level: [Low/Medium/High/Very High]
- Human Oversight: [Required / Advisory]
- ATRS: [Required / Not Required]

**File**: projects/{project-name}/ARC-{PROJECT_ID}-MLOPS-v{VERSION}.md

**Next Steps**:
1. Review model inventory with data science team
2. Set up experiment tracking infrastructure
3. Implement monitoring dashboards
4. Define retraining triggers and thresholds
5. Complete responsible AI assessments

Error Handling

If No ML Requirements Found

"⚠️ No ML-related requirements found. Please ensure the requirements document (ARC--REQ-.md) includes ML use cases (search for 'model', 'ML', 'AI', 'predict')."

If No Data Model

"⚠️ Data model document (ARC--DATA-.md) not found. Training data understanding is important for MLOps. Consider running $arckit-data-model first."

Key Principles

1. Reproducibility First

2. Monitoring is Essential

3. Governance is Built-In

4. Responsible AI

5. UK Government Compliance

Document Control

Auto-populate:

Generation Metadata Footer:

---
**Generated by**: ArcKit `$arckit-mlops` command
**Generated on**: [DATE]
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: [PROJECT_NAME]
**AI Model**: [Model name]

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.