본문으로 건너뛰기
Skillpedia
에이전트280k · #208

ml-adoption-playbook

하는 일

이 가이드는 아직 인공지능(AI)이 없는 컴퓨터 프로그램에 AI를 추가하는 데 도움을 줍니다. 계획을 세우고, 데이터를 준비하고, AI를 기존 코드에 연결하고, 간단한 첫 모델을 만드는 방법을 보여 줍니다.

사용하는 경우

  • ✓프로그램에 AI를 추가하고 싶을 때.
  • ✓추천 모델 같은 새 AI 모델이 애플리케이션에서 어떻게 작동할지 계획할 때.
  • ✓AI 구성 요소를 만들고, 학습시키고, 사용하는 작업을 정리할 때.

스킬 링크

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/ml-adoption-playbook/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/ml-adoption-playbook/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 웹사이트에 추천 모델을 어떻게 추가할 수 있을까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 먼저 문제를 이해하고, 더 단순한 해결책으로 충분한지 확인합니다. 그다음 필요한 데이터를 정리하고, AI가 나머지 프로그램과 뒤섞이지 않으면서 통신하는 방식을 계획합니다. 마지막으로 기본 모델을 만들고 개선하는 방법을 알려 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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-patterns or django-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-patterns or 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:

  1. Ask clarifying questions to complete Phase 1 before proposing architectures.
  2. Draft a data contract in Phase 2 for user approval.
  3. Write the decoupling interface (API/Service) in Phase 3 before writing the training loop.
  4. Deliver a reproducible script in Phase 4 that trains the model and saves the artifact.
자주 묻는 질문

‘휴리스틱’이란 무엇인가요?

기본 규칙처럼 간단하고 빠른 해결책입니다. 복잡한 AI보다 더 쉽고 효율적일 수 있습니다.

‘아키텍처 분리(decoupling)’란 무엇인가요?

AI를 프로그램의 나머지 부분과 분리하는 것입니다. 한쪽을 바꿔도 다른 쪽에 쉽게 영향을 주지 않도록 해서 전체를 더 체계적이고 안정적으로 만듭니다.

‘기준 모델(baseline model)’이란 무엇인가요?

무언가를 작동하게 만들기 위해 처음 만드는 간단한 AI 모델입니다. 이후 비교와 개선의 출발점이 됩니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
280k
순위
#208
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬