Communitygithub.com

벤치마크 최적화 루프

사용자가 '더 빠르게' 만들기, 다양한 변형 시도, 반복 최적화 실행, 지연 시간/처리량/비용 벤치마킹 또는 반복 측정 테스트를 통해 최상의 구현을 선택하도록 요청할 때 사용합니다.

벤치마크 최적화 루프란 무엇인가요?

이 스킬은 '20배 더 빠르게' 또는 '50회 반복 최적화 시도'와 같은 모호한 성능 요청을 체계적이고 측정 가능한 최적화 루프로 변환합니다. 사용자는 최적화 대상 작업, 정확성 게이트, 측정 지표(벽 시간, p95 지연 시간, 행/초, 비용/실행, 메모리, 오류율), 현재 기준, 검색 예산(최대 변형 수, 최대 시간, 최대 비용, 최대 데이터 영향)을 먼저 정의해야 합니다. 루프는 기준 측정, 병목 식별, 가설 기반 변형 생성 및 동일 입력으로 실행, 정확성/안전성/재현성 실패 변형 거부, 가장 빠른 안전 변형 승격, 승리 경로 코드화, 기준 대비 델타 확인 단계로 구성됩니다. 변형 테이블을 통해 각 변형의 가설, 명령어, 시간, 정확성, 비고를 추적하며, 반복 검색 시 모든 실행을 원장에 기록하고 이전 승자와 비교하며, 정확성 테스트 통과, 성능 델타 반복/설명, 롤백 용이성, 소스 제어 기록을 조건으로 승격합니다. 이 스킬은 Claude Code, Cursor, Codex 등 AI 에이전트 도구에서 실행 가능하며, SKILL.md 문서에 상세히 설명된 대로 어디서나 동일한 원칙을 적용할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/benchmark-optimization-loop

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

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

문서

벤치마크 최적화 루프은(는) 무엇을 하나요?

이 스킬을 사용하여 '20배 더 빠르게' 또는 '50회 반복 최적화 시도'를 실제로 시스템을 개선할 수 있는 제한된 측정 루프로 변환하세요.

필수 기준

다음이 존재할 때까지 최적화하지 마세요:

  • 최적화 대상 작업;
  • 반드시 통과해야 하는 정확성 게이트;
  • 지표: 벽 시간, p95 지연 시간, 행/초, 비용/실행, 메모리, 오류율;
  • 현재 기준;
  • 검색 예산: 최대 변형 수, 최대 시간, 최대 비용, 최대 데이터 영향.

사용자가 비현실적인 목표를 요청하더라도 야망은 유지하되 루프를 제한적이고 측정 가능하게 만드세요.

루프

  1. 기준을 측정합니다.
  2. 증거를 바탕으로 병목 현상을 식별합니다.
  3. 각각 하나의 가설을 테스트하는 변형을 생성합니다.
  4. 동일한 입력 형태로 변형을 실행합니다.
  5. 정확성, 안전성 또는 재현성에 실패한 변형은 거부합니다.
  6. 가장 빠른 안전 변형을 승격합니다.
  7. 승리 경로를 스크립트, 명령어, 테스트, 구성 또는 문서로 코드화합니다.
  8. 기준과 승자를 다시 실행하여 델타를 확인합니다.

변형 테이블

이와 같이 변형을 추적합니다:

변형 | 가설 | 명령어 | 시간 | 정확? | 비고
baseline | 현재 경로 | npm run job | 120초 | 예 | 안정적
batch-500 | 왕복 횟수 감소 | npm run job -- --batch 500 | 42초 | 예 | 승자
parallel-8 | 워커 증가 | npm run job -- --workers 8 | 31초 | 아니오 | 속도 제한

반복 검색

반복 또는 하이퍼파라미터 작업의 경우:

  • 모든 실행을 원장에 영구 기록합니다;
  • 이전 실행뿐만 아니라 이전에 승인된 승자와 비교합니다;
  • 홀드아웃 또는 재생성 검사를 유지합니다;
  • 개선이 잡음 수준 이내이거나, 정확성에 실패하거나, 비용이 예산을 초과하거나, 검색이 설명할 수 있는 것보다 더 많은 변수를 변경하기 시작하면 중지합니다.

검색 공간이 실제로 완전 탐색되지 않는 한 '전역 최적점' 대신 '측정된 가장 빠른 안전 변형'과 같은 표현을 사용하세요.

승격 게이트

변형은 다음 조건이 충족될 때까지 새로운 기본값이 될 수 없습니다:

  • 정확성 테스트 통과;
  • 성능 델타가 반복되거나 설명됨;
  • 롤백이 명확함;
  • 변경 사항이 소스 제어 또는 내구성 있는 런북에 기록됨;
  • 최종 요약에 정확한 명령어와 측정값이 포함됨.

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/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

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.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

관련 스킬