agentleFS
apokamoapokamo/kaji/.claude/skills/incident-fix/SKILL.md

incident-fix

Skill16 starsChanged 2 days agoApache-2.0View on GitHub

第2層。査読 RETRY の指摘に対し、追加調査・再実験・artifact 修正、または技術的根拠を示した反論で対応する。調査セッションを継続(resume)し、指摘ごとの対応表をコメント投稿する。scope 拡大はしない。

The file

Files
SKILL.md

Incident Fix(修正)

直近の査読 RETRY コメントの指摘に対応し、調査 artifact を更新する。incident.yaml では resume: investigate(調査セッションを継続)で起動される。

収束保証: 指摘対応以外の scope 拡大(新しい調査論点の追加)は行わない。

ワークフロー内の位置: review/verify(RETRY)→ fix → verify

入力

変数型説明
issue_idstr対象インシデントイシュー ID
issue_refstr人間可読の Issue 参照
step_idstr現在のステップ ID
cycle_count / max_iterationsintサイクル内ステップのため注入される

resume: investigate により直近査読 verdict の要約が prompt に注入される。手動実行時は $ARGUMENTS 第 1 トークンを issue_id とする。

共通ルール

.claude/skills/incident-investigate/SKILL.md § 全 incident-* skill 共通ルールに従う。

実行手順

Step 1: 指摘の抽出

artifact root を解決する(共通ルール参照。以降のパスはこの絶対 root 基準):

ART="$(kaji config artifacts-dir)"

直近の査読 RETRY コメント(verdict マーカー step=review または step=verify の最新)から 指摘リスト(指摘 N)を抽出する:

kaji issue view [issue_id] --comments

Step 2: 指摘への対応

各指摘に対し、以下のいずれかで対応する。

  • 追加調査・再実験・artifact 修正: 不足していた citation の追加、再現実験の再試行、 棄却仮説・不足証拠の補強、conclusion の見直し。使い捨て検証環境を使う場合は調査後に破棄する。
  • 技術的根拠を示した反論: 指摘が不当と判断する場合、根拠(citation / 再現結果)を添えて反論する。

調査 artifact($ART/[issue_id]/investigation/report.md)を更新する。新しい調査論点の 追加(scope 拡大)はしない。

Step 3: 対応表のコメント投稿

指摘ごとの対応表(対応 / 反論 / 一部対応)をコメント投稿する。指摘参照は 指摘 N 形式 (auto-close hazard 回避)。verdict マーカーを無条件付与する。

kaji issue comment [issue_id] --commit \
  --verdict-step fix --verdict-status <STATUS> \
  --body-file <対応報告 markdown>

Verdict 出力

---VERDICT--- status: PASS reason: | 査読指摘に対応し、調査 artifact を更新した evidence: | 指摘 1..N それぞれに対応 / 反論を記録。追加 citation・再現結果を artifact に反映 suggestion: | ---END_VERDICT---

status の選択基準

status条件
PASS全指摘に対応 / 反論した(verify で確認へ)
ABORT前提崩壊(対象が非インシデント等)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.