WAZA evaluate copilot customizations
個人(~/.copilot)、現在のワークスペース、または任意パスの Copilot customization files を対象に、Waza 評価プロジェクトのセットアップ、static/runtime 評価、gate 単体実行、結果要約、report 更新を行う。
Scope
- 既定の評価対象:
$HOME\.copilot(instructions / skills / agents) - ワークスペース評価対象の例:
<workspace>\.github - 任意評価対象の例: instruction / agent / skill を含むディレクトリまたは単一ファイル
- 既定の Waza 評価プロジェクト:
~/waza-copilot-customization-evals - 既定の static eval:
evals\copilot-customizations\eval.yaml - 既定の runtime eval:
evals\copilot-customizations\runtime-eval.yaml - 既定の結果 JSON:
results\customizations-eval.json - 既定の runtime 結果 JSON:
results\runtime-customizations-eval.json - 既定の report:
reports\YYYY-MM-DD-copilot-customizations-waza-report.md
Setup Links
- Setup guide: https://github.com/aktsmm/Agent-Customization/blob/master/docs/waza-copilot-customizations-setup.md
- Template: https://github.com/aktsmm/Agent-Customization/tree/master/templates/waza-copilot-customization-evals
この skill だけをコピーした場合は、まず setup guide を開く。evalProject が無い場合は template から始める。
引数
skill には入力変数の仕組みがない。依頼文と argument-hint から次の値を読み取り、指定がなければ既定を使う。
targetScope:personal(~/.copilot) /workspace/custom。既定はpersonaltargetPath:customのときは必須。workspaceで空なら<workspace>\.github、personalで空なら$HOME\.copilotevalProject: 空なら~/waza-copilot-customization-evalsaction:setup/run/runtime/gate/report/full。既定はfullexecutionMode:static/runtime/both。既定はstaticgateMode:metadata/agent-structure/token-budget/all。actionがgateのときだけ使う。既定はall(3 モードを順次実行する論理指定)maxFileTokens: 既定は 5000maxTotalTokens: 既定はpersonalが 130000、workspace/customが 60000runtimePrompt:runtimeのときに実行・記録する prompt。空なら target を要約する smoke prompt を使うruntimeModel: runtime / copilot-sdk 用 model。空なら、現在の環境で使える model 名を確認して選ぶruntimeTaskStrategy:template/record。既定はtemplate
Operating Rules
- 評価対象の instruction / agent / skill 本体は、この skill では変更しない。
- 修正はユーザーが明示した場合だけ行う。評価だけなら Waza project 配下の eval 資産、結果 JSON、report だけ更新してよい。
- secret、認証情報、個人アカウント値は report に書かない。問題がある場合はファイル名と観点だけを書く。
- PowerShell 前提で、コマンドは非対話・単発・timeout 付きで実行する。
- 結果の出力が長い場合は、summary、failed gate、issue、warning、next fix candidates だけを抽出して報告する。
action=setupまたはaction=fullでは、必要なら Waza project 側の.waza.yaml、static/runtime eval、task、grader script、report script、results/、reports/` を作成または更新してよい。action=reportは既存の結果 JSON / report を優先して読み、無ければrunを実行してから report を作る。runtimeはcopilot-sdk前提。必要ならwaza models、copilot login状態、モデル名を確認する。runtimeで target 自体の実挙動を検証したい場合、既定ではwrite-runtime-task.ps1で deterministic task を作る。waza new task from-promptは exploratory には便利だが、一時パスや特定文面に過剰適合した grader を生成しやすい。既定では使わず、使う場合も生成後に task を必ず見直す。runtimePromptが空欄でも、target path と出力フォーマットを含む smoke prompt を自動生成してよい。- runtime task には未展開変数名(例:
$resolvedTarget,$targetName)を残さず、解決済みの target path と basename が literal に入っていることを確認する。 - runtime 実行前に task ファイルを一度読み、target path、期待見出し、grader の厳しさが意図どおりかを確認する。
Workflow
evalProjectが空欄ならJoin-Path $HOME 'waza-copilot-customization-evals'を使う。targetScopeとtargetPathから評価対象を決める。personalまたは空欄:targetPathが空なら$HOME\.copilotworkspace:targetPathが空なら<workspace>\.githubcustom:targetPathを必須として扱う- 単一ファイルもディレクトリも可
maxTotalTokensが空なら、全個人資産を含むpersonalは130000、読み込み単位を想定するworkspace / customは60000を使う
- 評価対象が存在するか確認する。存在しない場合は、候補パスを出して停止する。
actionを決める。setup: Waza project の存在確認と不足資産の作成/更新だけ行うrun: static eval を実行し、結果 JSON と report を更新するruntime:copilot-sdkで runtime task を記録・実行し、結果 JSON と report を更新するgate: 指定 gate だけ実行するreport: 既存結果の要約と report 更新を行う。必要なら実行を補完するfullまたは空欄: setup -> static run -> optional runtime -> report を順に行う
- 評価プロジェクトが存在するか確認する。
.waza.yamlevals\copilot-customizations\eval.yamlevals\copilot-customizations\runtime-eval.yamlevals\copilot-customizations\scripts\grade-copilot-customizations.ps1evals\copilot-customizations\scripts\write-copilot-customizations-report.ps1- 見つからない場合は、公開 repo の setup guide / companion template を案内し、template から初期化する案を優先する
action=setupまたはfullのとき、不足している資産を作成または更新する。.waza.yamlevals\copilot-customizations\eval.yamlevals\copilot-customizations\runtime-eval.yamlevals\copilot-customizations\tasks\customization-static.yamlevals\copilot-customizations\runtime-tasks\evals\copilot-customizations\scripts\grade-copilot-customizations.ps1evals\copilot-customizations\scripts\write-copilot-customizations-report.ps1results\reports\
- Waza standalone が使えるか確認する。
waza --versionGet-Command waza
- 評価対象を
$env:WAZA_CUSTOMIZATIONS_TARGETに入れる。 action=runまたはfullのとき static eval を実行する。waza run evals\copilot-customizations\eval.yaml --output results\customizations-eval.json --no-update-check -v
action=runtime、またはaction=fullかつexecutionMode=runtime/bothのとき runtime task を作成・実行する。
- 既定の
runtimeTaskStrategy=templateではwrite-runtime-task.ps1を使う runtimePromptが空なら target を要約・制約抽出する smoke prompt を組み立てるwrite-runtime-task.ps1 -TargetPath <target> -OutputPath evals\copilot-customizations\runtime-tasks\runtime-target.yaml- task 生成後、
runtime-target.yamlを読み、literal な target path とPurpose:/Guardrails:/Usage:が入っていることを確認する runtimeTaskStrategy=recordのときだけwaza new task from-prompt ... --overwriteを使うrecordを使った場合は task ファイルを読み、path_pattern 固定や過剰に厳しいcontains_csを緩めてから実行するwaza run evals\copilot-customizations\runtime-eval.yaml --output results\runtime-customizations-eval.json --no-update-check -v
action=gateのときgateModeに応じて必要な gate だけ実行する。
metadataagent-structuretoken-budgetall: grader にMode allを渡さず、上記3モードを1回ずつ順次実行する
- 結果 JSON を読み、summary を抽出する。
- total tests
- succeeded / failed / errors
- success rate
- aggregate score
- 失敗 gate がある場合、または
action=gateのとき、同じ$env:WAZA_CUSTOMIZATIONS_TARGETを指定したまま必要な個別 gate を単体実行して詳細を取る。 action=reportまたはrun/runtime/fullのあと、write-copilot-customizations-report.ps1を使ってreports\YYYY-MM-DD-copilot-customizations-waza-report.mdを作成または更新する。
- Date
- Model: GitHub Copilot
- Action
- Evaluated source
- Commands run
- Waza summary
- Gate results
- Findings
- Next fix candidates
- 最終回答では、action、execution mode、評価対象、結果、赤 gate、警告、次の一手を簡潔に出す。
Command Reference
代表的な static eval。workspace / custom target は Workflow の target 解決規則に従って $env:WAZA_CUSTOMIZATIONS_TARGET だけを変える。
$project = Join-Path $HOME 'waza-copilot-customization-evals'
Set-Location $project
$env:WAZA_CUSTOMIZATIONS_TARGET = Join-Path $HOME '.copilot'
waza run evals\copilot-customizations\eval.yaml --output results\customizations-eval.json --no-update-check -v- runtime、record、個別 gate、report のコマンドは
Workflow手順10〜14を正本とする。 recordでは生成taskを実行前に読み、固定された一時pathや過剰に厳しいcontains_csを修正する。- setup / repair では手順5の必須資産を
Test-Pathで確認し、不足分だけtemplateから復元する。
Final Response Format
## 結果
- Action: <setup/run/gate/report/full>
- Execution mode: <static/runtime/both>
- Target: <path>
- Waza eval: pass/fail
- Success rate: <value>
- Aggregate score: <value>
- Result JSON: <path>
- Report: <path>
## 赤 Gate
- <gate>: <issue>
## 警告
- <warning>
## 次の一手
1. <action>
2. <action>赤 Gate や 警告 がない場合も、なし と明記する。