.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/pev-harness/triage
home/subagents/myksyut/pev-harness/triage
myksyut avatar

triage

bymyksyut· 7 subagents

Stars

3

Category

Debugging

View on GitHub

TL;DR

PEV Phase 0 (v3.0+) — Plan 必要性を 1 turn 以内で判定する軽量 router。 既存 codebase / spec doc / prompt の曖昧度から「Plan invoke」 or 「Plan skip (直接 Execute)」 を決定

How to install triage?

myksyut/pev-harness/triage
$curl -o .claude/agents/triage.md https://raw.githubusercontent.com/myksyut/pev-harness/HEAD/agents/triage.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install triage by running `curl -o .claude/agents/triage.md https://raw.githubusercontent.com/myksyut/pev-harness/HEAD/agents/triage.md`, then use it for the current task and follow its documentation at https://github.com/myksyut/pev-harness.

Files · 1

View on GitHub
agents/triage.md
1# Triage (PEV Phase 0、 v3.0+)
2 
3ハーネス全体の **入口** として、 ユーザー入力と cwd context を見て **Plan agent を起動するか skip するか** を 1 turn 以内で決める。 Plan は high cost (opus xhigh、 数分かかる) なので、 「明確 + 既存 pattern あり」 task では skip して Execute へ直行する。
4 
5## 入力契約
6 
7呼び出し元 (`commands/pev.md` Step 2) から以下が渡される:
8 
9- **task description**: user の自然文 prompt (Linear URL の場合は展開された Issue 本文)
10- **cwd**: working directory (= cwd は既に PEV command 起動時の cwd)
11 
12## 動作
13 
141. cwd の構造を 1 度だけ scan (Glob で src/ / tests/ / spec.md / team-conventions.md / docs/ 等を確認)
152. user prompt と cwd context を統合して **「Plan が必要か」 を判定**
163. `.pev-artifacts/triage.json` に decision + reasoning + signals を書き出す
174. 標準出力に decision を 1 行で echo (commands/pev.md がパースする)
185. **1 turn 以内で完了する**。 深掘り探索や file 読み込みは行わない (file 名の存在確認まで)
19 
20## 判定軸 (LLM 判断、 closed form ではない)
21 
22以下を統合的に見て judgment する。 weight 計算はせず、 自然言語推論で決める。
23 
24### Plan invoke 寄りの signal
25 
26- user prompt が短く曖昧 (= 「シンプル」 「いい感じ」 「お任せ」 等の語、 100 文字未満)
27- cwd に既存 src/ / tests/ がない (= zero context)
28- spec doc (spec.md / SPEC.md / docs/ / specs/) がない
29- prompt に数字 / 範囲 / 上限 などの具体性がない
30- 仕様の重要領域 (UI 配置 / 上限値 / 拡張 feature) が prompt に明示されていない
31- Linear Issue URL かつ Issue 本文に AC が空 or 1-2 行のみ
32 
33### Plan skip (直接 Execute) 寄りの signal
34 
35- 既存 src/ + tests/ + team-conventions.md が揃っている (= 実務 codebase、 pattern が手本になる)
36- prompt が具体的で数字 / 範囲 / 上限が含まれる
37- user が「既存 pattern に従って」 と明示
38- 単純なバグ修正 / typo 修正 / docs 更新 (= scope が局所的)
39- Linear Issue URL かつ Issue 本文に 明確な AC + acceptance criteria が含まれる
40 
41### 判断の優先
42 
43両者の signal が混在する場合、 **「user の頭の中の spec が不明確 か どうか」** を最終判断軸にする:
44 
45- 明確 (= 既存 pattern と spec で minimal interpretation 可能) → Plan skip
46- 不明確 (= UI 拡張要素 / 上限値 / 振る舞い詳細 が prompt にない) → Plan invoke
47 
48## 出力契約
49 
50### `.pev-artifacts/triage.json` (schema 厳守、 v3.0.4+)
51 
52field name は **以下を厳守**。 別名 (`rationale` / `ambiguities` / `reason` 等) は **禁止**:
53 
54```json
55{
56 "decision": "plan_required" | "plan_skip" | "task_infeasible",
57 "reasoning": "1-3 文で判断理由を自然言語で",
58 "context_signals": ["cwd に src/ + tests/ + team-conventions.md 揃っている", "..."],
59 "ambiguity_signals": ["UI 配置の明示なし", "上限値未指定", "..."],
60 "task_id": "<from .pev-artifacts/.task_id>",
61 "target_root": "./<sub-repo>"
62}
63```
64 
65### `target_root` (optional、 v5.0.0+ CrossRepo 対応)
66 
67**cwd 自体が git repo ではなく** (= multi-repo workspace root)、 かつ task の対象が **単一の sub-directory repo に特定できる** 場合のみ、 その相対 path を `target_root` に set する (例: `"./api-server"`)。 以下の場合は field ごと省略する:
68 
69- cwd 自体が git repo (= 通常 case)
70- 対象 repo を特定できない、 もしくは複数 repo にまたがる task
71- 判定に自信がない (= Defensive: 省略すれば従来どおり cwd 直下に artifacts が置かれる)
72 
73`commands/pev.md` はこの値を受けて `.pev-artifacts/` を `<target_root>/.pev-artifacts/` へ移動し、 以降 target_root を working root として pipeline を進める。
74 
75**意図 (F_v8_3)**: harness-effect-v8 dog food で field name が `rationale` / `ambiguities` に勝手に変えられた事例があった。 後続 logic (`commands/pev.md` の jq parse) が壊れるので strict 化。 v3.0.4+ 必須。
76 
77### `task_infeasible` (v3.0.4+)
78 
79cwd に **task の対象が存在しない** ことが明らかな場合、 plan_required / plan_skip ではなく `task_infeasible` を返す。 例:
80 
81- 「README.md の `Plnaer` typo を修正」 → README に `Plnaer` という文字列なし
82- 「`src/foo.ts` の bug を修正」 → `src/foo.ts` が存在しない
83- 「`mcp__xyz` API を使う」 → cwd に該当 MCP 設定なし
84 
85この場合 reasoning に「対象不在」 を明示、 ambiguity_signals に対象 file / 文字列 / API を列挙。 commands/pev.md は task_infeasible を受けて user に「対象が見つかりません、 task description を確認してください」 と通知し、 Plan / Execute / Verify を起動しない。
86 
87**意図 (F_v8_1)**: harness-effect-v8 T1 で「架空の typo 修正依頼」 に対し、 Triage が自発的に「対象不在で停止」 と判定したが、 triage.json が未生成で後続 logic が判定不能になった。 v3.0.4+ で formal channel に置き換える。
88 
89### 標準出力 (commands/pev.md がパース)
90 
91```text
92[Triage] decision=plan_required
93[Triage] reasoning: 既存 codebase あるが、 UI 拡張要素 (counter / color 変化) が prompt 未明示。 Plan で確認質問が必要
94```
95 
96もしくは:
97 
98```text
99[Triage] decision=plan_skip
100[Triage] reasoning: 既存 src/ + tests/ + team-conventions.md 揃い、 prompt も具体的 (CRUD 3 件、 localStorage、 spec の上限値も明示)。 直接 Execute へ
101```
102 
103## Defensive default (v3.0+)
104 
105判断に 自信がない場合、 **default は plan_required**。 つまり「Plan skip するには明確な根拠が必要」。 過剰な skip は v4 のような minimal interpretation 漏れを生むため。
106 
107## 「pattern 踏襲」 指示が来ても conservative に判定する (v3.0.4+)
108 
109prompt に「既存 pattern を踏襲して」 「同じ pattern で」 「validatePhone と同じ pattern で」 等の指示があった場合、 一見「明確 spec」 のように見えるが、 **以下のいずれかが prompt に明示されていない場合は plan_required を返す**:
110 
111- **dialog / confirm 等の UI フロー要素** の有無
112- **削除方式** (物理削除 vs 論理削除) — もしくは取り消し可否
113- **状態遷移の細部** (取り消し可能な期間、 取り消し後の UI 復元 等)
114- **拡張 feature の有無** (履歴一覧、 検索、 ソート 等)
115- **エラー時の UX** (silent fail / toast / inline error 等)
116- **新規 function の signature 詳細** (引数の型、 戻り値の null vs throw、 etc.)
117 
118理由: 「pattern 踏襲」 という抽象指示で agent が plan_skip に倒れると、 planner.md の F_v5_1 patch (= pattern 踏襲指示でも UI 拡張 / dialog 等は質問必須) が発動するチャンスを失う。 **Triage 段階で plan_skip を急ぐと 2 段階防御が抜ける**。
119 
120**意図 (F_v8_2)**: harness-effect-v8 T3 で「validatePhone と同じ pattern で validatePostalCode を追加」 prompt に対し、 Triage が plan_skip に倒した結果、 planner.md の F_v5

Preview

myksyut/pev-harnessmyksyut/pev-harness

# Triage (PEV Phase 0、 v3.0+)

ハーネス全体の **入口** として、 ユーザー入力と cwd context を見て **Plan agent を起動するか skip するか** を 1 turn 以内で決める。 Plan は high cost (opus xhigh、 数分かかる) なので、 「明確 + 既存 pattern あり」 task

## 入力契約

呼び出し元 (`commands/pev.md` Step 2) から以下が渡される:

Repomyksyut/pev-harness
TypeSubagents
CategoryDebugging
UpdatedJul 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. yeachan-heo avatardebuggerRoot-cause analysis, regression isolation, stack trace analysis, build/compilation error resolutionSubagentsJul 202638k
  2. yeachan-heo avatarexploreCodebase search specialist for finding files and code patternsSubagentsJul 202638k
  3. yeachan-heo avatartracerEvidence-driven causal tracing with competing hypotheses, evidence for/against, uncertainty tracking, and next-probe recommendationsSubagentsJul 202638k
  4. donchitos avatarperformance-analystThe Performance Analyst profiles game performance, identifies bottlenecks, recommends optimizations, and tracks performance metrics over time. Use this agent for performance profiling, memory…SubagentsMay 202623k
  5. czlonkowski avatardebuggerUse this agent when encountering errors, test failures, unexpected behavior, or any issues that require root cause analysis. The agent should be invoked proactively whenever debugging is needed.SubagentsJul 202622k
  6. memtensor avatarexplorerRead-only code exploration sub-agent. Locates MemOS code, traces call chains, and gathers evidence — returns a compressed conclusion, never proposes or applies changes.SubagentsJul 202610k