Communitygithub.com

agent-harness-construction

AI 에이전트의 액션 공간, 도구 정의, 관찰 형식을 설계 및 최적화하여 완료율을 높입니다. 에이전트를 정의하거나 개선할 때 사용하세요.

agent-harness-construction란 무엇인가요?

이 스킬은 AI 에이전트의 계획 수립, 도구 호출, 오류 복구 및 작업 완료 능력을 향상시키는 방법을 제공합니다. 에이전트의 출력 품질을 제한하는 핵심 요소인 액션 공간, 관찰 품질, 복구 품질 및 컨텍스트 예산 관리에 초점을 맞춥니다. ReAct, 함수 호출, 하이브리드 패턴을 포함한 다양한 아키텍처 접근 방식을 지원하며, 각각의 장단점을 설명합니다. 또한 중복된 도구, 불투명한 출력, 컨텍스트 과부하와 같은 안티 패턴을 피하는 방법과 완료율, 재시도 횟수, Pass@K 같은 지표를 통한 벤치마킹 방법도 다룹니다. Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 적용 가능한 실용적인 가이드라인을 제공합니다.

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

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

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

문서

Agent Harness Construction

에이전트의 계획 수립, 도구 호출, 오류 복구 및 작업 완료 능력을 개선할 때 이 스킬을 사용하세요.

핵심 모델

에이전트 출력 품질은 다음 요소에 의해 제한됩니다:

  1. 액션 공간 품질 (Action space quality)
  2. 관찰 품질 (Observation quality)
  3. 복구 품질 (Recovery quality)
  4. 컨텍스트 예산 품질 (Context budget quality)

액션 공간 설계

  1. 안정적이고 명확한 도구 이름을 사용하세요.
  2. 입력은 스키마 우선으로 유지하고 범위를 좁히세요.
  3. 결정론적 출력 형태를 반환하세요.
  4. 격리가 불가능하지 않은 한 포괄적 도구(catch-all)를 피하세요.

세분화 규칙

  • 위험도가 높은 작업(배포, 마이그레이션, 권한)에는 마이크로 도구를 사용하세요.
  • 일반적인 편집/읽기/검색 루프에는 중간 도구를 사용하세요.
  • 왕복 오버헤드가 주요 비용일 때만 매크로 도구를 사용하세요.

관찰 설계

모든 도구 응답에는 다음을 포함해야 합니다:

  • status: success|warning|error
  • summary: 한 줄 결과
  • next_actions: 실행 가능한 후속 조치
  • artifacts: 파일 경로 / ID

오류 복구 계약

모든 오류 경로에 대해 다음을 포함하세요:

  • 근본 원인 힌트
  • 안전한 재시도 지침
  • 명시적 중지 조건

컨텍스트 예산 관리

  1. 시스템 프롬프트는 최소화하고 변경하지 않도록 유지하세요.
  2. 긴 지침은 필요 시 로드되는 스킬로 옮기세요.
  3. 긴 문서를 인라인으로 포함하는 대신 파일 참조를 선호하세요.
  4. 임의의 토큰 임계값이 아닌 단계 경계에서 압축하세요.

아키텍처 패턴 가이드

  • ReAct: 경로가 불확실한 탐색적 작업에 가장 적합합니다.
  • 함수 호출: 구조화된 결정론적 흐름에 가장 적합합니다.
  • 하이브리드 (권장): ReAct 계획 수립 + 타입화된 도구 실행.

벤치마킹

추적할 항목:

  • 완료율
  • 작업당 재시도 횟수
  • pass@1 및 pass@3
  • 성공적인 작업당 비용

안티 패턴

  • 의미가 중복되는 너무 많은 도구.
  • 복구 힌트가 없는 불투명한 도구 출력.
  • 다음 단계 없이 오류만 출력.
  • 관련 없는 참조로 컨텍스트 과부하.

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.

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.

api-connector-builder

Build a new API connector or provider by matching the target repo

관련 스킬