harness-orchestration
The harness-orchestration skill generates on-demand HTML scorecards and terminal summaries showing which AI backends (Claude, Codex, Cursor) were used during a session or project, with usage counts and lifetime totals. Use it when asked to display backend usage statistics, orchestration metrics, or to showcase the distribution of work across available backends.
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness /tmp/harness-orchestration && cp -r /tmp/harness-orchestration/opencode/skills/harness-orchestration ~/.claude/skills/harness-orchestrationSKILL.md
# Harness Orchestration Scorecard
このセッション/プロジェクトの backend 活用度(Claude=ホスト / Codex / Cursor への委譲)を可視化する read-only スキル。
記録の正本は `.claude/state/orchestration-ledger.jsonl`(companion が委譲ごとに追記、Phase 90.1.1)と
`.claude/state/orchestration-totals.json`(セッション終了/完了時に冪等 roll up、Phase 90.1.2)。
> 表示は on-demand のみ。作業中は出さず、見たい時にこのスキルで出す。
> 全タスク完了時の 1 回だけは task-completed が自動でターミナルサマリを出す(このスキルとは別経路)。
## Quick Reference
- 「**オーケストレーション活用度見せて**」→ HTML スコアカードを生成して開く
- 「**どのバックエンド使った**」「**Codex/Cursor どれだけ**」→ ターミナルサマリ
- 「**累計見せて**」「**自慢できるやつ**」→ HTML スコアカード(lifetime totals が主役)
## Deliverables
| 出力 | 生成物 |
|------|--------|
| HTML スコアカード | `scripts/orchestration-scorecard.sh --format html-data` → `scripts/render-html.sh --template orchestration` で単一 HTML |
| ターミナルサマリ | `scripts/orchestration-scorecard.sh --format terminal`(3-5 行) |
tri-state: `used`(count>0)/ `available`(設定済み未使用)/ `not-configured`(binary 不在=中立、壊れではない)。
委譲ゼロなら "no delegations observed" に degrade。
## Execution
helper script は plugin bundle root から呼ぶ:
```bash
HARNESS_PLUGIN_ROOT="${HARNESS_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"
```
### ターミナルサマリ(`--terminal`)
```bash
bash "${HARNESS_PLUGIN_ROOT}/scripts/orchestration-scorecard.sh" --format terminal
```
3-5 行を要約してそのまま提示する。
### HTML スコアカード(既定 / `--out` / `--no-open`)
```bash
OUT="${1:-.claude/state/orchestration-scorecard.html}" # --out <path> で上書き
bash "${HARNESS_PLUGIN_ROOT}/scripts/orchestration-scorecard.sh" --format html-data \
| bash "${HARNESS_PLUGIN_ROOT}/scripts/render-html.sh" --template orchestration --data - --out "$OUT"
```
- `--no-open` 指定がなければ生成後にパスを提示し、ブラウザで開くよう案内する(自動 open は環境依存なのでパス提示を基本とする)
- redaction は使わない: scorecard データは構造的に非機密(カウント + backend 名 + repo basename + 時刻のみ)。no-secret 保証は上流の ledger 契約が担保する
## Related Skills
- `harness-progress` — 進捗ダッシュボード(タスク進捗。本スキルは backend 活用度に特化)
- `harness-work` / `breezing` — 実装(backend を実際に使う側)executor が返した advisor-request.v1 に対して方針だけ返す非実行 advisor
sprint-contract と review artifact を基準に verdict を返す read-only reviewer
実装、preflight 自己点検、検証、commit 準備を 1 タスク単位で進める統合ワーカー
Browser automation through the repo agent-browser CLI. Explicit helper for navigation, forms, screenshots, scraping, and web-app checks. Prefer Browser Use or Playwright when available. Do NOT load for: sharing URLs, embedding links, or editing screenshot files.
Explicit helper for authentication and payment implementation with Clerk, Supabase Auth, or Stripe. Do NOT load for: general UI work, database design, or non-auth features.
Team execution mode — backward-compatible alias for harness-work with team orchestration. Composer/composer 2.5 maps to the cursor backend.
Validates brainstormed ideas with Cursor PM, updates Plans.md, then handoff back. Cursor ↔ Claude Code 2-Agent workflow support. Use when user mentions Cursor PM handoff, 2-agent plan validation, CC-Cursor round trip, or brainstorm review. Do NOT load for: implementation work, single-agent tasks, or direct coding.
Quality guardrail for Claude/Codex update integration. Detects doc-only Feature Table additions and requires implementation or explicit planning. Internal use only.