kaji: Skill for Claude Code

.claude/skills/incident-fix/SKILL.md

incident-fix is a skill for Claude Code from apokamo/kaji. It costs 81 tokens per session (940 once invoked), scanned A, original, Apache-2.0.

A repair step for an incident investigation after a review returns RETRY. It continues the investigation and updates the report in response to each review finding.

In plain words
What is it for?
Use it to address each finding from an incident review, add citations or reproduction results, revise the report when needed, and post a response table.
Why use it?
It provides a focused way to fill evidence gaps, repeat experiments, correct the investigation artifact, or justify a disagreement without expanding the investigation's scope.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is apokamo/kaji's own configuration. It tells Claude Code how to work on kaji itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kaji configures →

Reuse

Borrowing it

Nothing to install: this file belongs to apokamo/kaji. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/apokamo/kaji/main/.claude/skills/incident-fix/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/apokamo/kaji

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for incident-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/apokamo/kaji/incident-fix/github.svg)](https://agentmods.dev/skills/apokamo/kaji/incident-fix)
Your own site
<a href="https://agentmods.dev/skills/apokamo/kaji/incident-fix"><img src="https://agentmods.dev/badge/skills/apokamo/kaji/incident-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for incident-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/apokamo/kaji/incident-fix"><img src="https://agentmods.dev/badge/skills/apokamo/kaji/incident-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 940 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 29
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.00940
Opus 5 $0.00041 $0.00470
Sonnet 5 $0.00016 $0.00188
Haiku 4.5 $0.00008 $0.00094

Measured 10d ago against content hash d7118bd23e40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

incident-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/incident-fix/SKILL.md · 87 lines

What it actually says

Incident Fix(修正)

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

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

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

入力

変数 説明
issue_id str 対象インシデントイシュー ID
issue_ref str 人間可読の Issue 参照
step_id str 現在のステップ ID
cycle_count / max_iterations int サイクル内ステップのため注入される

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 前提崩壊(対象が非インシデント等)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 87 lines · 81 tokens per session scan A d7118bd23e40

Subscribe to this mod's changes

incident-fix is a skill published in the GitHub repository apokamo/kaji (12 stars, last pushed 2d ago), licensed Apache-2.0. It adds 81 tokens to every session and 940 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.