agentleFS
ktaroabobonktaroabobon/agent-skills/skills/create-issue/SKILL.md

create-issue

Skill0 starsChanged 3 months agoMITView on GitHub

課題・原因・解決策・作業ブランチを構造化した GitHub Issue を gh CLI で起票する。既存ラベルから適切なものを選んで付与し、--project を渡したときだけ GitHub Projects への紐付けと Estimate 設定まで行う。「Issue を起票」「Issue を作成」「issue にして」「バグを報告」「課題を起票」「チケット切って」時に使用。新しいラベルは作らない。起票前に必ず内容を提示して承認を取る。

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use native-nostalgia-stack, software-engineering-excellence and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • frostneySkill

    software-engineering-excellence

    Applies the user's engineering standards during substantial technical work: preserve scope, use current evidence, delegate independent parts, and complete authorized outcomes. Use during substantial implementation, debugging, refactoring, or multi-part delivery work.

    Also in 3 projects that use this

  • withpiperSkill

    roadmap-review

    Audit roadmap health — issues, dependency order, spec coverage, doc freshness. Use when speccing a new initiative. Use when /phase-plan output looks suspicious. Use before /roadmap-create reruns.

    Also in 3 projects that use this

  • GoogleSkill

    implement-issue

    Implement a Site Kit GitHub issue end-to-end from its implementation brief. Use when the user asks to implement, build, or work on a GitHub issue / feature by number (e.g. "implement issue #12345", "build the feature in issue 12345", "follow the implementation brief for #12345") in the google/site-kit-wp repo.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    create-release

    Use when creating a new ASO release, including pre-checks, release notes generation, draft GitHub release creation, documentation updates, and ROADMAP changes.

    Also in 4 projects that use this

  • MicrosoftSkill

    update-pr

    Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

    Also in 3 projects that use this

The file

Files
SKILL.md

create-issue

「あとから読んで着手できる」Issue を起票する。課題だけ書かれた Issue は、書いた本人以外には調査からやり直しになる。原因と解決策まで書ききるのがこのスキルの目的。

引数:

  • --repo <owner/repo>: 対象リポジトリ。省略時は cwd のリポジトリ
  • --project <番号>: GitHub Projects の番号。渡されたときだけ紐付けと Estimate 設定を行う

Step 1: 対象リポジトリを確定する

--repo が無ければ gh repo view --json nameWithOwner -q .nameWithOwner で cwd のリポジトリを使う。cwd がリポジトリでなければ、ここで止めてユーザーに聞く。推測で別リポジトリに起票しない。

Step 2: 本文を組み立てる

次の 4 節を必ず含める。埋められない節は「調査中」と書いて残す — 節ごと消すと、何が分かっていて何が分かっていないのかが伝わらない。

## 課題
何が起きているか。エラーメッセージやログがあれば逐語で含める。

## 原因
なぜ起きているか。技術的な根本原因。分かっていなければ「調査中」と書く。

## 解決策
どう直すか。方針を番号付きリストで。

## 作業ブランチ
`feature/xxx` or `fix/xxx`

関連ファイルがあれば ## 関連ファイル を足す。path/to/file.go:42 の形式で書くと、読む側がすぐ飛べる。

タイトルは日本語で 70 文字以内。「〜がおかしい」ではなく「何がどうなるべきか」が分かる書き方にする。

Step 3: ラベルを選ぶ

gh label list --repo <owner/repo> --limit 200 --json name,description

取得した一覧の中からだけ選ぶ。 リポジトリごとにラベル体系は違うので、他のリポジトリで見た名前を当て込まない。

選び方:

  1. 種類のラベルを必ず 1 つ(bug / enhancement / feature / documentation など、そのリポジトリにあるもの)
  2. 該当する領域のラベル(backend / frontend / infra / api など)
  3. 該当する言語・技術のラベル

適切なラベルが無ければ、ラベルを付けずに起票し「<候補名> というラベルがあるとよさそうです」と報告する。

強制されること(hook)

hooks/no-new-label.sh が PreToolUse で gh コマンドを検査し、gh label create / gh label clone / gh api の POST /labels を exit 2 でブロックする。指示ではなく機械的に止まる。 Claude Code でのみ効く。Codex では指示として守る。

Step 4: 内容を提示して承認を取る(必須)

起票は他人に通知が飛ぶ外向きの操作なので、投稿前に必ず次を提示して承認を得る:

  • 対象リポジトリ
  • タイトル
  • 本文(全文)
  • 付与するラベル
  • --project 指定時は、紐付け先 Project と Estimate の値

yes 相当の返答が無いまま gh issue create を実行しない。

Step 5: 起票する

gh issue create \
  --repo <owner/repo> \
  --title "<タイトル>" \
  --label "<label1>,<label2>" \
  --body-file <本文ファイル>

本文は --body-file で渡す。heredoc をシェル引数に直接埋めると、本文中のバッククォートや $ で壊れる。

Step 6: Projects に紐付ける(--project 指定時のみ)

--project が無ければこの Step を丸ごと飛ばす。Projects を使っていないリポジトリで毎回判断させないため、既定は「やらない」にしてある。

手順とフィボナッチ見積もりの基準は references/projects.md を読む。

完了時に返すもの

  • Issue の URL
  • 付与したラベル
  • --project 指定時は、紐付け結果と設定した Estimate
  • ラベルを付けられなかった場合は、その理由と候補名

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.