Communitygithub.com

ML 도입 플레이북

AI 에이전트 및 소프트웨어 엔지니어가 기존 비-ML 코드베이스에 머신러닝 알고리즘을 추가하기 위한 종합적인 방법론입니다. 문제 프레이밍, 데이터 준비, 아키텍처 분리, 베이스라인 모델 통합을 다룹니다. ML 기능이 전혀 없는 코드베이스에 머신러닝 기능을 추가할 때 사용하세요.

ML 도입 플레이북란 무엇인가요?

이 스킬은 기존 소프트웨어 엔지니어링 프로젝트에 머신러닝 모델을 구현하기 위한 적응형 방법론을 제공합니다. 전통적인 SWE와 MLOps 사이의 간극을 메워 ML을 어떻게 연구하고, 분리하고, 학습시키고, 통합할지 구조화합니다. 사용자가 'ML 추가' 또는 '알고리즘 추가'를 요청하거나, 비-ML 애플리케이션에 추천, 분류, 예측 등의 새 모델을 통합할 계획이 있을 때 활성화됩니다. 이 플레이북은 문제 프레이밍(휴리스틱 체크, 메트릭 정의, 실수 예산), 데이터 준비(데이터 소스 감사, 데이터 계약, 누수 방지), 아키텍처 통합 및 분리(API 경계, 폴백 메커니즘, 기능 플래그), 모델 구현 및 학습(단순 시작, 재현성, 자동화된 증거), MLOps로의 핸드오프(실험 추적, CI/CD)까지 5단계로 구성되어 있습니다. 주로 Claude Code, Cursor, Codex 등 AI 코딩 에이전트가 에이전트 반복 워크플로우에 따라 사용자와 협력하여 각 단계를 수행하도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/ml-adoption-playbook

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

ML 도입 플레이북은(는) 무엇을 하나요?

이 스킬은 기존 소프트웨어 엔지니어링 프로젝트에 머신러닝 모델을 구현하기 위한 적응형 방법론을 제공합니다. 전통적인 SWE와 MLOps 사이의 간극을 메워 ML을 어떻게 연구하고, 분리하고, 학습시키고, 통합할지 구조화합니다.

활성화 시점

  • 사용자가 기존 코드베이스에 "ML 추가" 또는 "알고리즘 추가"를 요청할 때
  • 비-ML 애플리케이션에 새로운 모델(예: 추천, 분류, 예측) 통합을 계획할 때
  • 에이전트가 ML 구성 요소를 적응형으로 구축, 학습, 배포하기 위한 워크플로우를 구조화할 때

1단계: 문제 프레이밍 및 타당성 검토

모델 코드를 작성하기 전에 "왜"와 "어떻게"를 확립합니다.

  • 휴리스틱 체크: 사용자에게 간단한 휴리스틱(예: 정규식, 규칙 기반 정렬)으로 문제를 더 빠르게 해결할 수 있는지 물어보세요. 그렇다면 거기서 시작하세요.
  • 메트릭 정의: ML 모델이 개선하려는 비즈니스 메트릭(예: 클릭률, 지연 시간 감소)을 정의합니다.
  • 실수 예산: "나쁜" 예측이 무엇인지 정의하고 시스템이 이를 어떻게 처리해야 하는지 정의합니다.

2단계: 데이터 준비

데이터가 깨끗하고 접근 가능하지 않으면 ML은 무용지물입니다.

  • 데이터 소스 감사: 학습 데이터가 어디에 있는지 식별합니다. 실시간 데이터베이스, 정적 CSV, API인가요?
  • 데이터 계약: 입력 데이터의 스키마를 설정합니다. 어떤 특징이 필요한가요? 특징이 누락되면 어떻게 되나요?
  • 누수 방지: 사용자가 제안한 데이터 분할이 실수로 미래 정보를 학습 세트로 유출하지 않는지 확인합니다(예: 시계열 데이터의 시간 순서 분할).

3단계: 아키텍처 통합 및 분리

모델 추론을 핵심 비즈니스 로직에 긴밀하게 결합하지 마세요.

  • API 경계: 모델을 API 엔드포인트(예: fastapi-patterns 또는 django-patterns 사용) 또는 전용 서비스 클래스 뒤에 배치할 것을 제안합니다.
  • 폴백 메커니즘: 기본 상태를 설계합니다. 모델 응답이 너무 오래 걸리거나 오류가 발생하면 시스템이 하드코딩된 규칙으로 정상적으로 폴백해야 합니다.
  • 기능 플래그: 새 ML 추론 호출을 기능 플래그로 감싸서 안전하게 롤아웃(또는 롤백)할 수 있도록 합니다.

4단계: 모델 구현 및 학습

재현성과 반복을 위해 코드를 구조화합니다.

  • 간단하게 시작: 먼저 베이스라인 모델(예: 간단한 scikit-learn Logistic Regression 또는 기본적인 PyTorch 선형 레이어)을 구축합니다.
  • 재현성: pytorch-patterns 또는 유사한 모범 사례를 적용합니다: 랜덤 시드 고정, 코드를 디바이스에 독립적으로 만들기, 텐서/배열 형태를 명시적으로 문서화.
  • 자동화된 증거: 데이터 변환 및 추론 스키마에 대한 테스트를 요구합니다. 베이스라인과 비교하는 평가 스크립트 없이 모델을 수락하지 마세요.

5단계: MLOps 핸드오프

베이스라인 모델이 통합되면 지속적인 운영에 초점을 전환합니다.

  • mle-workflow 참조: 사용자를 실험 추적, 모델 레지스트리, 드리프트 탐지 설정으로 안내합니다.
  • CI/CD: 향후 커밋이 모델 성능을 저하시키지 않도록 기존 CI 파이프라인에 모델 평가 단계를 추가합니다.

에이전트 반복 워크플로우

이 플레이북을 통해 사용자를 도울 때 에이전트는 다음을 수행해야 합니다:

  1. 아키텍처를 제안하기 전에 명확한 질문을 하여 1단계를 완료합니다.
  2. 2단계에서 사용자 승인을 위해 데이터 계약을 초안합니다.
  3. 학습 루프를 작성하기 전에 3단계에서 분리 인터페이스(API/서비스)를 작성합니다.
  4. 4단계에서 모델을 학습하고 아티팩트를 저장하는 재현 가능한 스크립트를 제공합니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

관련 스킬