Communitygithub.com

SamuelChien/mega-skills-collection

프로파일링, 작업 부하 분산, 비용 인식 오케스트레이션을 통해 다중 에이전트 시스템을 최적화합니다. 에이전트 성능, 처리량 또는 안정성을 향상시킬 때 사용하세요.

mega-skills-collection란 무엇인가요?

이 스킬은 다중 에이전트 시스템의 성능, 처리량, 안정성을 종합적으로 최적화하기 위한 고급 AI 기반 프레임워크를 제공합니다. 핵심 기능으로는 지능형 다중 에이전트 조정, 성능 프로파일링 및 병목 식별, 적응형 최적화 전략을 포함하며, 데이터베이스, 애플리케이션, 프론트엔드 등 여러 도메인에 걸친 최적화를 지원합니다. 특히 Claude Code, Cursor, Codex와 같은 AI 에이전트 플랫폼에서 활용 가능하며, 컨텍스트 윈도우 최적화, 병렬 실행 최적화, 비용 관리 및 지연 시간 감소 기법을 통해 효율성을 극대화합니다. 사용자는 반드시 기준 지표를 설정하고 점진적으로 변경 사항을 적용하며, 회귀 테스트를 통해 검증해야 합니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/agent-orchestration-multi-agent-optimize

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

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

문서

다중 에이전트 최적화 툴킷

이 스킬을 사용해야 하는 경우

  • 다중 에이전트 조정, 처리량 또는 지연 시간 개선
  • 에이전트 워크플로우 프로파일링을 통한 병목 식별
  • 복잡한 워크플로우를 위한 오케스트레이션 전략 설계
  • 비용, 컨텍스트 사용량 또는 도구 효율성 최적화

이 스킬을 사용하지 말아야 하는 경우

  • 단일 에이전트 프롬프트만 조정하면 되는 경우
  • 측정 가능한 지표나 평가 데이터가 없는 경우
  • 작업이 다중 에이전트 오케스트레이션과 관련 없는 경우

지침

  1. 기준 지표와 목표 성능 목표를 설정합니다.
  2. 에이전트 워크로드를 프로파일링하고 조정 병목을 식별합니다.
  3. 오케스트레이션 변경 사항과 비용 제어를 점진적으로 적용합니다.
  4. 반복 가능한 테스트와 롤백을 통해 개선 사항을 검증합니다.

안전

  • 회귀 테스트 없이 오케스트레이션 변경 사항을 배포하지 마십시오.
  • 시스템 전반의 회귀를 방지하기 위해 변경 사항을 점진적으로 롤아웃하십시오.

역할: AI 기반 다중 에이전트 성능 엔지니어링 전문가

컨텍스트

다중 에이전트 최적화 도구는 지능적이고 조정된 에이전트 기반 최적화를 통해 시스템 성능을 종합적으로 개선하도록 설계된 고급 AI 기반 프레임워크입니다. 최첨단 AI 오케스트레이션 기술을 활용하여 이 도구는 여러 도메인에 걸친 포괄적인 성능 엔지니어링 접근 방식을 제공합니다.

핵심 기능

  • 지능형 다중 에이전트 조정
  • 성능 프로파일링 및 병목 식별
  • 적응형 최적화 전략
  • 도메인 간 성능 최적화
  • 비용 및 효율성 추적

인수 처리

이 도구는 유연한 입력 매개변수로 최적화 인수를 처리합니다.

  • $TARGET: 최적화할 기본 시스템/애플리케이션
  • $PERFORMANCE_GOALS: 특정 성능 지표 및 목표
  • $OPTIMIZATION_SCOPE: 최적화 깊이 (퀵윈, 종합)
  • $BUDGET_CONSTRAINTS: 비용 및 리소스 제한 사항
  • $QUALITY_METRICS: 성능 품질 임계값

1. 다중 에이전트 성능 프로파일링

프로파일링 전략

  • 시스템 레이어 전체에 걸친 분산 성능 모니터링
  • 실시간 지표 수집 및 분석
  • 지속적인 성능 시그니처 추적

프로파일링 에이전트

  1. 데이터베이스 성능 에이전트

    • 쿼리 실행 시간 분석
    • 인덱스 활용도 추적
    • 리소스 소비 모니터링
  2. 애플리케이션 성능 에이전트

    • CPU 및 메모리 프로파일링
    • 알고리즘 복잡도 평가
    • 동시성 및 비동기 작업 분석
  3. 프론트엔드 성능 에이전트

    • 렌더링 성능 지표
    • 네트워크 요청 최적화
    • 핵심 웹 바이탈 모니터링

프로파일링 코드 예제

def multi_agent_profiler(target_system):
    agents = [
        DatabasePerformanceAgent(target_system),
        ApplicationPerformanceAgent(target_system),
        FrontendPerformanceAgent(target_system)
    ]

    performance_profile = {}
    for agent in agents:
        performance_profile[agent.__class__.__name__] = agent.profile()

    return aggregate_performance_metrics(performance_profile)

2. 컨텍스트 윈도우 최적화

최적화 기술

  • 지능형 컨텍스트 압축
  • 의미론적 관련성 필터링
  • 동적 컨텍스트 윈도우 크기 조정
  • 토큰 예산 관리

컨텍스트 압축 알고리즘

def compress_context(context, max_tokens=4000):
    # 임베딩 기반 잘라내기를 사용한 의미론적 압축
    compressed_context = semantic_truncate(
        context,
        max_tokens=max_tokens,
        importance_threshold=0.7
    )
    return compressed_context

3. 에이전트 조정 효율성

조정 원칙

  • 병렬 실행 설계
  • 최소 에이전트 간 통신 오버헤드
  • 동적 작업 부하 분산
  • 내결함성 에이전트 상호 작용

오케스트레이션 프레임워크

class MultiAgentOrchestrator:
    def __init__(self, agents):
        self.agents = agents
        self.execution_queue = PriorityQueue()
        self.performance_tracker = PerformanceTracker()

    def optimize(self, target_system):
        # 조정된 최적화를 통한 병렬 에이전트 실행
        with concurrent.futures.ThreadPoolExecutor() as executor:
            futures = {
                executor.submit(agent.optimize, target_system): agent
                for agent in self.agents
            }

            for future in concurrent.futures.as_completed(futures):
                agent = futures[future]
                result = future.result()
                self.performance_tracker.log(agent, result)

4. 병렬 실행 최적화

주요 전략

  • 비동기 에이전트 처리
  • 작업 부하 분할
  • 동적 리소스 할당
  • 최소 차단 작업

5. 비용 최적화 전략

LLM 비용 관리

  • 토큰 사용량 추적
  • 적응형 모델 선택
  • 캐싱 및 결과 재사용
  • 효율적인 프롬프트 엔지니어링

비용 추적 예제

class CostOptimizer:
    def __init__(self):
        self.token_budget = 100000  # 월별 예산
        self.token_usage = 0
        self.model_costs = {
            'gpt-5': 0.03,
            'claude-4-sonnet': 0.015,
            'claude-4-haiku': 0.0025
        }

    def select_optimal_model(self, complexity):
        # 작업 복잡도와 예산에 따른 동적 모델 선택
        pass

6. 지연 시간 감소 기술

성능 가속화

  • 예측 캐싱
  • 에이전트 컨텍스트 사전 워밍
  • 지능형 결과 메모이제이션
  • 왕복 통신 감소

7. 품질 대 속도 트레이드오프

최적화 스펙트럼

  • 성능 임계값
  • 허용 가능한 성능 저하 마진
  • 품질 인식 최적화
  • 지능형 절충 선택

8. 모니터링 및 지속적 개선

관찰 가능성 프레임워크

  • 실시간 성능 대시보드
  • 자동화된 최적화 피드백 루프
  • 머신 러닝 기반 개선
  • 적응형 최적화 전략

참조 워크플로우

워크플로우 1: 전자상거래 플랫폼 최적화

  1. 초기 성능 프로파일링
  2. 에이전트 기반 최적화
  3. 비용 및 성능 추적
  4. 지속적 개선 주기

워크플로우 2: 엔터프라이즈 API 성능 향상

  1. 종합 시스템 분석
  2. 다계층 에이전트 최적화
  3. 반복적 성능 개선
  4. 비용 효율적인 확장 전략

주요 고려 사항

  • 최적화 전후 항상 측정합니다.
  • 최적화 중 시스템 안정성을 유지합니다.
  • 성능 향상과 리소스 소비의 균형을 유지합니다.
  • 점진적이고 되돌릴 수 있는 변경 사항을 구현합니다.

제한 사항

  • 위에서 설명한 범위와 작업이 명확히 일치하는 경우에만 이 스킬을 사용하십시오.
  • 출력물을 환경별 검증, 테스트 또는 전문가 검토를 대체하는 것으로 간주하지 마십시오.
  • 필요한 입력, 권한, 안전 경계 또는 성공 기준이 누락된 경우 중단하고 명확히 설명을 요청하십시오.

Individual skills in this repo

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

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

관련 스킬