issue-start

issue-start is a skill for Claude Code from apokamo/kaji. It costs 37 tokens per session (1,817 once invoked), scanned A, original, Apache-2.0.

A setup step that creates a separate Git worktree, an additional working directory for one branch, and adds tracking information to an Issue.

In plain words
What is it for?
Use it when beginning an Issue that requires code or documentation changes, especially before committing or opening a pull request.
Why use it?
It keeps work for one Issue separated from other changes and establishes the expected branch and directory before coding starts.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/apokamo/kaji/issue-start
Any agent
npx skills add apokamo/kaji --skill issue-start
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 issue-start

README.md
[![agentmods](https://agentmods.dev/badge/skills/apokamo/kaji/issue-start.svg)](https://agentmods.dev/skills/apokamo/kaji/issue-start)
Your own site
<a href="https://agentmods.dev/skills/apokamo/kaji/issue-start"><img src="https://agentmods.dev/badge/skills/apokamo/kaji/issue-start.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,817 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00037 $0.01817
Opus 5 $0.00018 $0.00908
Sonnet 5 $0.00007 $0.00363
Haiku 4.5 $0.00004 $0.00182

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

Security

Grade A, and why

issue-start 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 6d 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/issue-start/SKILL.md · 174 lines

How it starts

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

Issue Start

イシュー対応を開始するためのworktreeをセットアップし、Issue本文にメタ情報を追記します。

いつ使うか

タイミング このスキルを使用
コード/ドキュメント変更を伴うイシュー着手 ✅ 必須
設計のみ(ファイル変更なし) ⚠️ 任意
調査・リサーチのみ ❌ 不要

重要: PRを作成する際やイシュー対応でコミットが必要な場合、git branch ではなくこのスキルを使用してください。

引数

$ARGUMENTS = <issue_id>
  • issue_id (必須): Issue番号 (例: 247 / local-pc1-3 / gh:153)

第 2 引数は 廃止 されました(issue local-p1-17)。ブランチ prefix は kaji issue context が返す branch_prefix(frontmatter branch_prefixtype:* ラベル → chore fallback の優先順)から自動決定します。

命名規則

kaji issue context <issue_id> の出力(provider.resolve_issue_context() が正本)から 取得する branch_name / worktree_dir をそのまま使います。

  • ブランチ名: <branch_prefix>/<issue_id> (例: fix/247)
  • ディレクトリ: <repo_root>/../kaji-<branch_prefix>-<issue_id> (例: ../kaji-fix-247)

実行手順

Step 0: 引数の検査

$ARGUMENTS から issue_id を取得してください。第 2 引数(旧 prefix)が 渡された場合は ABORT verdict を出して停止し、廃止アナウンスをユーザに返してください (label / frontmatter からの自動導出に一本化されているため)。

Step 1: context 正本の取得

system jq バイナリ依存を持ち込まないため、kaji issue context-q (Python jq) を使う:

PREFIX=$(kaji issue context [issue_id] -q '.branch_prefix')
BRANCH=$(kaji issue context [issue_id] -q '.branch_name')
WT=$(kaji issue context [issue_id] -q '.worktree_dir')

worktree_dir は絶対パスで返ります。以降の手順では上記 3 変数を使います。

Step 2: ブランチとWorktreeの作成

メインリポジトリのルートから実行:

MAIN_REPO=$(git rev-parse --show-toplevel)
git worktree add -b "$BRANCH" "$WT" main

Step 2.5: venv シンボリックリンク作成

main プロジェクトの .venv へのシンボリックリンクを作成:

ln -s "$MAIN_REPO/.venv" "$WT/.venv"

これにより make check が即座に実行可能になります。

Step 2.6: provider overlay (.kaji/config.local.toml) シンボリックリンク作成

.kaji/config.local.toml は gitignored のため git worktree add では worktree に転写されない。 overlay 不在の worktree では kaji CLI が .kaji/config.tomlprovider.type=github 既定値で動き、 local-* / gl:N 形式 ID が拒否される(codex 等が worktree 配下で kaji issue comment を 叩けず、レビュー判定の Issue 記録が欠落する原因)。

Read the full file on GitHub · 174 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. 6d ago First seen · 174 lines · 37 tokens per session scan A 43d695c6f74d

Subscribe to this mod's changes

issue-start is a skill published in the GitHub repository apokamo/kaji (12 stars, last pushed 5d ago), licensed Apache-2.0. It adds 37 tokens to every session and 1,817 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.