Skip to content
Back to skills

I Doc Fix

ASecurity

docs review の指摘に対応し、ドキュメントのみを修正する。コードやテストは変更しない。

  • 18 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 1, 2026
ai-agentspythonbashgitdocumentation

Works with

  • cli

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add apokamo/kaji --skill i-doc-fix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of I Doc Fix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for I Doc Fix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/apokamo-i-doc-fix/badge)](https://www.skillsdirectory.com/skills/apokamo-i-doc-fix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: docs review の指摘に対応し、ドキュメントのみを修正する。コードやテストは変更しない。
name: i-doc-fix
---

# I Doc Fix

docs review の指摘事項に対応する。このスキルでも **コード、設定、テストは変更しない**。

## いつ使うか

| タイミング | このスキルを使用 |
|-----------|-----------------|
| `i-doc-review` または `i-doc-verify` が RETRY のとき | ✅ 必須 |

**ワークフロー内の位置**: update-doc → review-doc → **fix-doc** → verify-doc

## 入力

### ハーネス経由(コンテキスト変数)

| 変数 | 型 | 説明 |
|------|-----|------|
| `issue_id` | str | 正規化済み Issue ID(GitHub 数値) |
| `issue_ref` | str | 人間可読の Issue 参照(GitHub では `#<issue_id>`) |
| `step_id` | str | 現在のステップ ID |
| `previous_verdict` | str | 前ステップの verdict |

### 手動実行(スラッシュコマンド)

```
$ARGUMENTS = <issue_id>
```

### 解決ルール

コンテキスト変数 `issue_id` が存在すればそちらを使用。
なければ `$ARGUMENTS` の第1引数を `issue_id` として使用。

`issue_ref` はハーネス経由ではプロンプトに自動注入される(`prompt.py` 側で provider 別に整形)。手動実行時は `issue_id` から `#<issue_id>` を導出する。

## 前提知識の読み込み

1. [docs/dev/documentation_update_criteria.md](../../../docs/dev/documentation_update_criteria.md)
2. [docs/dev/shared_skill_rules.md](../../../docs/dev/shared_skill_rules.md)
3. [_shared/rebuttal.md](../_shared/rebuttal.md) — 処置表・反論の条件・残件表の受け渡し(反論の扱いの正本)

## 実行手順

1. 入力(残件表)を取得する: [_shared/rebuttal.md](../_shared/rebuttal.md) § 1.2 に従い、body 1 行目が
   `step=doc-review` または `step=doc-verify` の marker 付き `RETRY` コメントのうち **最新の 1 件** の残件表だけを
   入力にする(それより前の報告は読まない。`previous_verdict` は参考にとどめる)。修正開始時の HEAD を修正前 SHA として控える
2. 残件表の行ごとに 1 件ずつ `同意` か `反論` を決め、[_shared/rebuttal.md](../_shared/rebuttal.md) に従い処置表を作る
   (書式・版・子 ID は § 1.1 / § 1.2、反論してよい条件は § 2、`反論` の行に書くことは § 3)。
   人の判断が要る指摘(未決の one-way door を含む)は反論にせず `ABORT` で返す
3. `同意` の行だけ docs を修正する(`反論` の行は修正しない)
4. 実装 / CLI / AGENTS.md / CLAUDE.md / 関連 docs との整合を再確認
5. 修正対象ファイルに絞って以下を実行:
   ```bash
   cd [worktree_dir] && python3 scripts/check_doc_links.py [changed-markdown-files...]
   ```
6. docs のみコミット(すべての行が `反論` で差分が無い場合は commit を作らない。処置表の版は同じ SHA を書く)
7. 処置表を Issue にコメント

   **verdict マーカーの無条件付与(必須)**: 判定コメントには **常に** `--verdict-step doc-fix --verdict-status <STATUS>` を付ける。`<STATUS>` は本 skill が「Verdict 出力」で返す status(`PASS` / `ABORT`)に置き換える。CLI が body 1 行目に `<!-- kaji-verdict: step=doc-fix status=<STATUS> -->` を付け、`kaji issue resolve-verdict --step doc-fix` と runner の comment fallback はこの marker で発行元 step を特定する。PASS でも省略しない(条件付きの付与は禁止。[docs/dev/shared_skill_rules.md § verdict マーカー契約](../../../docs/dev/shared_skill_rules.md#verdict-マーカー契約producer-consumer))。投稿前に判定を確定してから status を決める。末尾の `---VERDICT---` ブロックの status も `<STATUS>` と同じ値にする。

   ```bash
   kaji issue comment [issue_id] --commit \
     --verdict-step doc-fix --verdict-status <STATUS> \
     --body-file - <<'EOF'
   # docs レビュー指摘への対応報告

   ### 処置表

   - 入力: <入力にした残件表のコメント URL>
   - 版: 修正前 <SHA> → 修正後 <SHA>

   | 指摘 | 処置 | 理由 | 証跡 |
   |------|------|------|------|
   | 指摘 1: (要旨) | 同意 | (なぜ直すか) | (対象ファイル、commit SHA) |
   | 指摘 2: (要旨) | 反論 | 条件 N | 証跡: … 代わりの案: … 残るリスク: … |

   ## リンクチェック結果

   (手順 5 の `check_doc_links.py` の出力)

   ## 次のステップ

   `/i-doc-verify [issue_id]` で修正の確認をお願いします。

   ---VERDICT---
   status: <STATUS>
   reason: |
     (判定理由)
   evidence: |
     (具体的根拠)
   suggestion: |
     (次のアクション)
   ---END_VERDICT---
   EOF
   ```

## Verdict 出力

```text
---VERDICT---
status: PASS
reason: |
  docs review の指摘に対応した
evidence: |
  処置表の同意行を修正し、関連する docs と実装の整合を再確認した
suggestion: |
---END_VERDICT---
```

### status の選択基準

| status | 条件 |
|--------|------|
| PASS | 修正完了 |
| ABORT | docs 修正だけでは解決不能 |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.