Community研究&データ分析github.com

getedgehq/harness-first

信頼性が低く、コストがかかる、または安全でないLLMエージェントを診断し修正する。モデルを非難したり交換する前に、まずハーネス(ゴールデンセット、評価器、コスト制限、データ層、アクション承認、トレーシング)を監査する。エージェントが「トークンを浪費している」、「幻覚を起こしている」、「脆い」、一貫性のない回答をしている、より安価/優れたモデルへの切り替えを検討している、またはエージェントやプロンプトの変更を顧客に出荷したいと言う場合に使用する。

harness-first とは?

このスキルは、LLMエージェントの問題をモデル交換ではなく、まず「ハーネス」の監査から始めるための体系的な手順を提供します。多くの「モデルの問題」は、実は正しい出力を定義するもの、変更をチェックするもの、コストを制限するもの、データの定義、アクションの承認、トレースの欠如など、ハーネスの不足に起因するという原則に基づいています。スキルは、症状の再現、6つのハーネス部品(ゴールデンセット、評価器、コストガバナンス、データ層、アクション安全性、トレーシング)のスコアリング、証拠に基づく意思決定、最小限のハーネスの構築、そして最終的なレポート作成を導きます。このアプローチは、Claude Code、Cursor、CodexなどのAIエージェントプラットフォームで利用でき、エージェントの信頼性向上、コスト削減、安全性強化を目指すエンジニアに役立ちます。

対応~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つのテーブル/フィールド、古いドキュメント)。両方の数値を自分で再計算して証明する。
  • 脆さ: リグレッションセットなしで出荷されたプロンプト変更;作成者のみが手動でチェックした動作。

2. 6つのハーネス部品をスコアリングする

各部分について、見つけた証拠とともに存在 / 部分的 / 欠如 をマークする:

部品存在するとは…
ゴールデンセット実際のトラフィック、インシデント、エッジケースから抽出した約20以上のケースと期待される回答/制約
評価器最初に決定論的チェック(数値、ポリシールール、禁止コンテンツ)、コードでチェックできない場合のみLLMルーブリック;すべてのプロンプト/モデル/ツール変更時に実行
コストガバナンスユーザーおよびワークフローごとのハードなトークン/コスト上限、実行ごとの最大反復回数、メッセージ付きの正常停止
データ層読み取り専用の認証情報、エージェントが使用する各メトリック/フィールドを定義するデータ辞書
アクション安全性不可逆的または外部へのアクション(送信、支払い、削除、書き込み、返金)は元に戻せるか、人間の承認によってゲートされる
トレーシングすべてのモデルとツールコールが会話ID、ワークフロー、入力、出力、トークン、コスト、レイテンシ、エラーとともにログに記録される

3. 構築前に判断する

  • 評価証拠なしにモデル交換を推奨しないでください。 「モデルを切り替えるべきですか?」と聞かれた場合、答えは:メカニズムを修正し、両方のモデルでゴールデンセットを実行し、品質とコストを比較する。修正だけで期待される節約額を数値で示してください。
  • ゴールデンセットの実行なしにプロンプト/エージェントの変更を出荷することを承認しないでください。 記録された出力が存在する場合、それらを期待される回答に対して自分でスコアリングし、ケースIDごとに失敗を報告してください。
  • 安全性のギャップ(ゲートされていない副作用、読み取りパスでの書き込みアクセス、内部データの漏洩)は、誰もそれについて尋ねていなくても、ブロッキングとみなされます。

4. この順序で最小限のハーネスを構築する

  1. 出血を止める: 最大反復回数、非一時的エラーでのリトライなし、大きなツール出力の切り詰め/要約、実行ごとのハードなコスト上限。
  2. 副作用をゲートする: 不可逆的ツールのための承認ステップまたはドラフトモード;クエリツールのための読み取り専用接続。
  3. ゴールデンセットファイル (evals/golden.jsonl または類似):入力、期待される回答または制約、ソース(ログID / インシデント / ポリシー条項)。ちょうど失敗したケースを含める。
  4. 評価スクリプト でゴールデンセットを実行し、ケースごとの合格/不合格と合計を出力する。LLM評価の前に決定論的チェックを行う。
  5. データ辞書 エージェントが報告するすべてのメトリックに対して(定義、ソーステーブル/フィールド、除外条件)。
  6. トレーシング 上記のフィールド(欠けている場合)。

ファイルの説明ではなく、実際のファイルを書く。実行できるものを実行し、結果を報告する。

5. 報告

  • 実際に尋ねられた質問に対する1行の回答(例:「まだモデルを切り替えないでください:3回の実行がリトライループに陥り、トークンの71%を消費しました」)。
  • 証拠と数値を伴う根本原因。
  • ハーネスのスコアカード(6つの部品)。
  • 変更または作成したもの、および実行したもの。
  • ブロッキングリスク、その後の優先順位付けされた次のステップの短いリスト。

クレジット

このスキルが従う方法は、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

関連スキル