kaji: Skill for Claude Code

.claude/skills/i-pr/SKILL.md

i-pr is a skill for Claude Code from apokamo/kaji. It costs 36 tokens per session (3,607 once invoked), scanned A, original, Apache-2.0.

A workflow step that creates a pull request after the final development or documentation checks. A pull request is a proposed change submitted for review and merging, and this step supports GitHub repositories.

In plain words
What is it for?
Use it after i-dev-final-check or i-doc-final-check to push the branch and open the pull request through the GitHub command-line tool.
Why use it?
It keeps pull-request creation separate from quality checks, evidence collection, merging, and branch cleanup. Local repositories stop at this step and use issue-close for merging instead.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 規約の正本: [`docs/dev/shared_skill_rules.md`](../../../docs/dev/shared_skill_rules.md) § auto close keyword 回避.

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/i-pr/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 i-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/apokamo/kaji/i-pr/github.svg)](https://agentmods.dev/skills/apokamo/kaji/i-pr)
Your own site
<a href="https://agentmods.dev/skills/apokamo/kaji/i-pr"><img src="https://agentmods.dev/badge/skills/apokamo/kaji/i-pr/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 i-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/apokamo/kaji/i-pr"><img src="https://agentmods.dev/badge/skills/apokamo/kaji/i-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,607 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 pass 7 Sept 2026
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.00036 $0.03607
Opus 5 $0.00018 $0.01803
Sonnet 5 $0.00007 $0.00721
Haiku 4.5 $0.00004 $0.00361

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

Security

Grade A, and why

i-pr 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 9d 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/i-pr/SKILL.md · 316 lines

How it starts

The opening of the file, as written. The whole thing — 316 lines — stays where its author put it; the contents beside it link to each section on GitHub.

I PR

workflow 共通の PR 作成スキル。 workflow 固有の完了判定は持たず、PR 作成そのものに責務を限定する。

いつ使うか

タイミング このスキルを使用
i-dev-final-check 完了後 ✅ 必須
i-doc-final-check 完了後 ✅ 必須
provider.type='github' 配下 ✅ 受理(gh CLI 経由)
provider.type='local' 配下 ❌ Step 0 で ABORT。代替は /issue-close(local merge)

このスキルがやらないこと

  • 品質チェック(make check)の実行 → i-dev-final-check / i-doc-final-check の責務
  • 設計書アーカイブ → i-dev-final-check の責務
  • エビデンス集約 → i-dev-final-check / i-doc-final-check の責務
  • PR マージ・ブランチ削除 → issue-close の責務

入力

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

常に注入される変数:

変数 説明
issue_id str 正規化済み Issue ID(GitHub 数値または local ID)
issue_ref str 人間可読の Issue 参照(GitHub では #<issue_id>、local では bare ID)
step_id str 現在のステップ ID
provider_type str github / local のいずれか。Step 0 のガード判定に使用
git_remote str git remote 名(provider.<type>.git_remote config から解決。未指定時のフォールバックは kaji_harness/config.py 定義)。Step 4 の git push -u 引数に使用

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

$ARGUMENTS = <issue_id>

解決ルール

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

issue_ref はハーネス経由ではプロンプトに自動注入される(prompt.py 側で provider 別に整形)。手動実行時は issue_id から導出する: GitHub 数値 ID なら #<issue_id>local-* 形式なら bare ID(# を付けない)。

pr_id / pr_ref / pr_url は本 Skill の Step 4 で kaji pr create の出力から確定する。プロンプトへの自動注入は現時点では行わない(forge 採用先確定時に再評価、draft/design/local-mode/design.md §残課題 参照)。

前提知識の読み込み

  1. docs/dev/workflow_overview.md
  2. docs/dev/shared_skill_rules.md
  3. docs/guides/git-commit-flow.md(kaji の Conventional Commits 運用、--no-ff merge 規約)

前提条件

  • /issue-start が実行済みであること
  • git absorb がインストール済みであること(任意)

共通ルール

実行手順

Step 0: provider check

本 Skill は forge provider 専用。最初に provider_type を解決し、 github 以外なら 以降のステップに進まず ABORT verdict を出力して終了 する。

Read the full file on GitHub · 316 lines

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. 9d ago First seen · 316 lines · 36 tokens per session scan A cb114ca46c78

Subscribe to this mod's changes

i-pr is a skill published in the GitHub repository apokamo/kaji (12 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 3,607 once invoked, about $0.0002 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.