Community연구 & 데이터 분석github.com

getedgehq/harness-first

신뢰할 수 없거나, 비용이 과도하거나, 안전하지 않은 LLM 에이전트를 진단하고 수정합니다. 모델을 비난하거나 교체하기 전에 먼저 에이전트의 하네스(골든 세트, 평가자, 비용 상한, 데이터 계층, 작업 승인, 추적)를 감사합니다.

harness-first란 무엇인가요?

이 스킬은 LLM 에이전트의 문제를 진단하고 해결하는 방법을 제공합니다. 흔히 '모델 문제'로 오인되지만, 실제로는 대부분 하네스(안전장치) 부족에서 비롯됩니다. 하네스는 정답을 정의하는 골든 세트, 변경 사항을 검증하는 평가자, 비용을 제한하는 비용 거버넌스, 일관된 데이터를 제공하는 데이터 계층, 위험한 작업을 통제하는 액션 안전, 그리고 문제를 추적하는 트레이싱 등 6가지 핵심 요소로 구성됩니다. 이 스킬은 증거 기반으로 근본 원인을 파악하고, 각 하네스 요소의 상태를 점수화하며, 최소한의 하네스를 우선순위에 따라 구축한 후 결과를 보고합니다. Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 활용할 수 있으며, Mark Ajzenstadt의 공개 게시물에서 영감을 받은 방법론을 따릅니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/getedgehq/skills/tree/main/harness-first

Installed? Explore more 연구 & 데이터 분석 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

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

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

문서

하네스 우선

모델은 엔진입니다. 대부분의 '모델 문제'는 하네스가 없기 때문에 발생합니다. 올바른 출력을 정의하는 것도, 변경 사항을 확인하는 것도, 지출을 제한하는 것도, 데이터에 합의된 정의도, 작업에 승인도, 잘못된 호출을 찾을 추적도 없습니다. 모델을 건드리기 전에 먼저 감사하세요.

1. 증상을 증거로 재현하고 직감에 의존하지 마세요

  • 증상이 발생하는 에이전트 코드를 읽으세요: 루프, 도구 정의, 프롬프트 조립, 데이터 액세스, 부수 효과를 일으키는 도구.
  • 존재하는 로그/추적/트랜스크립트를 읽으세요. (대화별, 도구별, 오류별로) 집계하세요: 누가 토큰을 소비하는지, 어떤 호출이 실패하는지, 어떤 답변이 틀렸는지. 보통 소수의 이상값이 대부분을 차지합니다.
  • 근본 원인을 증거(파일:줄, 로그 ID, 계산한 숫자)와 함께 메커니즘으로 설명하세요. "모델이 나빠요"는 메커니즘이 아닙니다.

일반적인 메커니즘:

  • 토큰 소진: 최대 반복 횟수가 없는 루프, 결정적 오류에 대한 재시도, 매 턴마다 전체 기록이나 거대한 도구 결과 재전송, 안정적인 컨텍스트 캐싱 없음.
  • 환각: 에이전트가 모호하거나 잘못된 출처를 충실히 사용한 경우 (동일한 이름이지만 다른 의미를 가진 두 개의 테이블/필드, 오래된 문서). 두 숫자를 직접 다시 계산하여 증명하세요.
  • 취약함: 회귀 테스트 세트 없이 배포된 프롬프트 변경; 작성자만 수동으로 확인한 동작.

2. 여섯 가지 하네스 부품을 평가하세요

각각에 대해 발견한 증거와 함께 있음 / 부분적 / 없음으로 표시하세요:

부품있음의 의미
골든 세트실제 트래픽, 인시던트 및 엣지 케이스에서 가져온, 예상 답변/제약 조건이 있는 ~20개 이상의 사례
평가자먼저 결정적 검사(숫자, 정책 규칙, 금지된 콘텐츠)를 수행하고, 코드로 확인할 수 없는 경우에만 LLM-루브릭을 사용합니다. 모든 프롬프트/모델/도구 변경 시 실행됩니다.
비용 거버넌스사용자별 및 워크플로별 하드 토큰/비용 상한, 실행당 최대 반복 횟수, 메시지와 함께 정상 중단
데이터 계층읽기 전용 자격 증명, 에이전트가 사용할 수 있는 각 메트릭/필드를 정의하는 데이터 사전
액션 안전되돌릴 수 없거나 외부적인 작업(보내기, 결제, 삭제, 쓰기, 환불)은 되돌릴 수 있거나 인간 승인에 의해 제한됩니다.
트레이싱모든 모델 및 도구 호출이 대화 ID, 워크플로, 입력, 출력, 토큰, 비용, 지연 시간, 오류와 함께 로깅됩니다.

3. 구축하기 전에 결정하세요

  • 평가 증거 없이 모델 교체를 절대 권장하지 마세요. 누군가 "모델을 바꿔야 할까요?"라고 묻는다면, 답은 다음과 같습니다: 메커니즘을 수정한 다음, 두 모델에서 골든 세트를 실행하여 품질과 비용을 비교하세요. 수정만으로 절약될 것으로 예상되는 비용을 숫자와 함께 말하세요.
  • 골든 세트 실행 없이 프롬프트/에이전트 변경 배포를 절대 승인하지 마세요. 기록된 출력이 있으면, 예상 답변과 직접 비교하여 점수를 매기고 사례 ID별로 실패를 보고하세요.
  • 안전 문제(제한되지 않은 부수 효과, 읽기 경로에 대한 쓰기 액세스, 내부 데이터 유출)는 누구도 요청하지 않았더라도 차단 대상입니다.

4. 최소 하네스를 이 순서대로 구축하세요

  1. 출혈을 멈추세요: 최대 반복 횟수, 비일시적 오류에 대한 재시도 금지, 큰 도구 출력 자르기/요약, 실행당 하드 비용 상한.
  2. 부수 효과를 제어하세요: 되돌릴 수 없는 도구에 대한 승인 단계 또는 초안 모드; 쿼리 도구에 대한 읽기 전용 연결.
  3. 골든 세트 파일 (evals/golden.jsonl 또는 유사한 형태): 입력, 예상 답변 또는 제약 조건, 출처(로그 ID / 인시던트 / 정책 조항). 방금 실패한 사례를 포함하세요.
  4. 평가자 스크립트: 골든 세트를 실행하고 사례별 통과/실패 및 합계를 출력합니다. LLM 평가 전에 결정적 검사를 수행합니다.
  5. 데이터 사전: 에이전트가 보고하는 모든 메트릭에 대한 정의(출처 테이블/필드, 제외 사항).
  6. 트레이싱: 위에 나열된 필드들, 누락된 경우.

파일 설명이 아닌 실제 파일을 작성하세요. 실행할 수 있는 것을 실행하고 결과를 보고하세요.

5. 보고

  • 실제로 질문받은 내용에 대한 한 줄 답변 (예: "아직 모델을 바꾸지 마세요. 재시도 루프에 갇힌 3번의 실행이 토큰의 71%를 소비했습니다.").
  • 증거와 숫자를 포함한 근본 원인.
  • 하네스 성적표 (여섯 가지 부품).
  • 변경하거나 생성한 내용, 실행한 내용.
  • 차단 위험, 그 다음 우선순위가 있는 간단한 다음 단계 목록.

크레딧

이 스킬이 따르는 방법은 Mark Ajzenstadt(@mardehaym)의 공개 게시물에서 비롯되었습니다: https://x.com/mardehaym/status/2099562230647804152. 주장은 그의 것이며, 절차, 표현 및 평가는 Edge의 자체적인 것이며, 저자는 이를 검토하지 않았습니다.

Individual skills in this repo

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

getedgehq/agent-evals

Build evals for an AI agent that already does real work. Use when someone asks "how do I know my agent is right", wants to test an agent before trusting it, compare models on cost versus quality, or turn production failures into tests. Walks from first tasks and yes/no verifiers, to isolated environments, to a trace-driven improvement loop.

getedgehq/cli-ux-review

Audit a command-line tool for user-friendliness — clear situation / next-step / options in every output, colour-highlighted runnable commands, no raw jargon, no silent hangs. Invoke for "CLI UX audit", "review my CLI", "is this CLI intuitive", or before any CLI release.

getedgehq/generate-image

Generate images with OpenAI GPT Image 2 via the Codex CLI, billed through the user's ChatGPT Plus subscription (no OpenAI API key, no per-image API cost). Use when the user asks to create, generate, or make an image, picture, illustration, icon, hero graphic, or concept art from a text prompt.

getedgehq/http-error-triage

Run before concluding anything from an HTTP error on a third-party API. Separates a real credential/entitlement problem from a CDN or WAF block, a wrong endpoint, or a client-signature ban. Use whenever an API returns 401/403/402/429 and you are about to say "the key is dead", "credits are exhausted", "the plan lacks access", or "we are rate limited".

getedgehq/linkedin-media-prep

Convert, crop, resize, and compress images and videos for optimal LinkedIn upload quality and file size. Use when the user wants to prepare a photo, image, or video for LinkedIn (profile picture, cover photo, post image, article featured image, post video, or video ad), optimize file size for LinkedIn, crop and resize for LinkedIn dimensions, convert HEIC/RAW/PNG/MOV to LinkedIn-ready JPEG or MP4, or mentions LinkedIn media requirements, specs, or limits.

getedgehq/monid

>-

getedgehq/opendraft

An 18-agent pipeline that turns one topic line into a drafted

getedgehq/people-search

Find and rank professional people for recruiting, partnerships, sales, or research from user-provided data, public web sources, an authenticated search session, or a connected provider. Use for people discovery, LinkedIn or Sales Navigator search design, profile-list ranking, or provider filter translation.

getedgehq/rocketlist

Turn a CV into a shortlist of live startup roles from Rocketlist's public job board, including adjacent job titles the person would never have searched for, each with its published salary, the evidence for the fit, and a direct apply link. Use for "find roles I would be a strong fit for", career pivots, remote or VC-backed job hunts, and salary-visible role discovery.

getedgehq/security-audit-checklist

Run a comprehensive security audit across application code, cloud infrastructure, containers, CI/CD pipelines, and infrastructure-as-code. Covers privacy compliance, OWASP basics, secret leakage, API security, IAM misconfigurations, storage exposure, Kubernetes hardening, and network security. Use when the user asks to audit, review, or harden app or cloud security, check for secrets, scan for XSS/SQLi, verify security headers, review Terraform/CloudFormation, audit AWS/GCP/Azure configs, or perform any security-focused review.

getedgehq/shadcn-first

>-

getedgehq/skills

Develop or review a branded long-form YouTube channel using Simon Kaiser's public creator-led approach: audience fit, recurring formats, natural brand integration, Time with Brand, and an organic, paid, and Shorts strategy. Use for channel strategy, format briefs, and pilots.

getedgehq/skills

Build a YouTube strategy, evidence-backed idea slate, and title plus thumbnail package using Paddy Galloway's public method. Use when planning a channel, choosing concepts, or preparing a video before filming.

getedgehq/skills

Build or review a buyer-centered strategic narrative using Andy Raskin's public method. Use for sales or investor deck stories, homepage positioning, keynotes, launch narratives, and why-now messaging.

getedgehq/skills

Turn a product URL, launch brief, or approved script into a production-ready launch video. Use for product reveals, feature announcements, SaaS launches, and narrated product films; not for generic explainers or editing existing footage.

getedgehq/strip-image-ai-metadata

Strip C2PA and AI-generation metadata from images (PNG, JPEG, WebP) to remove "Generated by AI" / "ChatGPT" / "DALL-E" labels that platforms like LinkedIn, Instagram, and X display. Use when the user wants to clean AI-generated images before posting, remove AI attribution from photos, strip C2PA manifests, sanitize image metadata for professional use, or verify whether an image contains C2PA data.

getedgehq/top-down-comms

>-

getedgehq/workplan

Create, update, or close work plans for multi-step tasks. Use when starting refactors, bug lists, feature work, migrations, or any task with 2+ steps. Also use after auto-compaction to re-orient. Triggers: "workplan", "work plan", "create a plan", "what's the plan", "where was I", or when Claude detects

관련 스킬