ml-adoption-playbook
Was er macht
Dieser Leitfaden hilft dir, künstliche Intelligenz (KI) zu einem Computerprogramm hinzuzufügen, das noch keine hat. Er zeigt, wie du planst, Daten vorbereitest, die KI in bestehenden Code einbindest und ein einfaches erstes Modell erstellst.
Wann du ihn nutzt
- ✓Wenn du einem Programm KI hinzufügen möchtest.
- ✓Wenn du planst, wie ein neues KI-Modell (etwa ein Empfehlungssystem) in einer Anwendung funktionieren soll.
- ✓Wenn du die Arbeit organisierst, um eine KI-Komponente zu bauen, zu trainieren und einzusetzen.
Link zum Skill
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/ml-adoption-playbook/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Wie kann ich meiner Website ein Empfehlungsmodell hinzufügen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI versteht zuerst das Problem und prüft, ob eine einfachere Lösung nicht genügt. Dann organisiert sie die nötigen Daten und plant, wie die KI mit dem Rest des Programms kommuniziert, ohne alles durcheinanderzubringen. Zum Schluss erstellt sie ein Basismodell und zeigt dir, wie du es verbessern kannst.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
ML Adoption Playbook
This skill provides an adaptive methodology for implementing machine learning models into existing software engineering projects. It bridges the gap between traditional SWE and MLOps by structuring how ML should be researched, decoupled, trained, and integrated.
When to Activate
- A user asks to "add ML" or "add an algorithm" to their existing codebase.
- Planning the integration of a new model (e.g., recommendation, classification, forecasting) into a non-ML application.
- Structuring a workflow for an agent to build, train, and deploy an ML component adaptively.
Phase 1: Problem Framing & Feasibility
Before writing model code, establish the "why" and "how".
- Heuristic Check: Ask the user if a simple heuristic (e.g., regex, rule-based sorting) could solve the problem faster. If yes, start there.
- Metric Definition: Define what business metric the ML model is trying to improve (e.g., click-through rate, reduced latency).
- Mistake Budget: Define what a "bad" prediction looks like and how the system should handle it.
Phase 2: Data Readiness
ML is useless without clean, accessible data.
- Audit Data Sources: Identify where the training data lives. Is it a live database, a static CSV, or an API?
- Data Contract: Establish a schema for the input data. What features are required? What happens if a feature is missing?
- Leakage Prevention: Ensure the user's proposed data split does not accidentally leak future information into the training set (e.g., chronological splitting for time-series data).
Phase 3: Architectural Integration & Decoupling
Do not tightly couple model inference to core business logic.
- API Boundary: Suggest placing the model behind an API endpoint (e.g., using
fastapi-patternsordjango-patterns) or a dedicated service class. - Fallback Mechanisms: Design a default state. If the model takes too long to respond or throws an error, the system must gracefully fall back to a hardcoded rule.
- Feature Flags: Wrap the new ML inference call in a feature flag so it can be rolled out (or rolled back) safely.
Phase 4: Model Implementation & Training
Structure the code for reproducibility and iteration.
- Start Simple: Build a baseline model first (e.g., a simple scikit-learn Logistic Regression or a barebones PyTorch linear layer).
- Reproducibility: Apply
pytorch-patternsor similar best practices: fix random seeds, make code device-agnostic, and explicitly document tensor/array shapes. - Automated Evidence: Require tests for the data transforms and inference schema. Do not accept a model without an evaluation script comparing it against the baseline.
Phase 5: Handoff to MLOps
Once the baseline model is integrated, shift focus to continuous operations.
- Refer to
mle-workflow: Guide the user toward setting up experiment tracking, model registries, and drift detection. - CI/CD: Add the model evaluation step to the existing CI pipeline to ensure future commits do not degrade model performance.
Iterative Agent Workflow
When assisting a user via this playbook, agents should:
- Ask clarifying questions to complete Phase 1 before proposing architectures.
- Draft a data contract in Phase 2 for user approval.
- Write the decoupling interface (API/Service) in Phase 3 before writing the training loop.
- Deliver a reproducible script in Phase 4 that trains the model and saves the artifact.
Häufige Fragen
Was ist eine „Heuristik“?
Das ist eine einfache, schnelle Lösung für ein Problem, etwa eine Faustregel. Sie ist manchmal leichter umzusetzen und effizienter als eine komplexe KI.
Was bedeutet „architektonische Entkopplung“?
Die KI wird vom Rest des Programms getrennt, sodass Änderungen auf einer Seite die andere nicht so leicht beeinflussen. Das macht alles übersichtlicher und stabiler.
Was ist ein „Baseline-Modell“?
Das ist das erste, einfache KI-Modell, mit dem du überhaupt etwas zum Laufen bringst. Es dient als Ausgangspunkt für spätere Vergleiche und Verbesserungen.
Details
Originalbeschreibung des Autors
End-to-end methodology for AI agents and software engineers to add machine learning algorithms to existing non-ML codebases. Covers problem framing, data readiness, architectural decoupling, and baseline model integration. Use when adding a machine learning capability to a codebase that has none, from problem framing through a baseline model.
repo: affaan-m/ECC
Beliebtheit
- GitHub-Sterne
- 280k
- Platz im Ranking
- #208
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
accessibility
280kHilft deinem Agenten, barrierefreie Oberflächen zu bauen. Websites und Apps werden so auch für Blinde und Menschen mit eingeschränkter Mobilität gut nutzbar.
agent-architecture-audit
280kLässt deinen Agenten prüfen, ob alles richtig läuft. Er findet und behebt Probleme in KI-Systemen, damit sie wie erwartet arbeiten.
agent-eval
280kHilft deinem Agenten, verschiedene KI-Coding-Tools zu vergleichen. Er misst, welches für bestimmte Aufgaben schneller, günstiger und zuverlässiger ist.
agent-harness-construction
280kMacht deinen Agenten besser darin, Aufgaben zu lösen. Er optimiert die Tools und Anweisungen, die er nutzt, damit er mit höherer Wahrscheinlichkeit erfolgreich ist.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.