Repository navigation
PR作成・canary/本番リリース用のClaude CodeスキルとPR同期ルールを追加 - #5828
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthrough複数の PR 作成ワークフロー文書を追加・更新。 変更
Sequence Diagram(s)sequenceDiagram
participant Dev as 開発者 (ローカル)
participant Repo as ローカル Git
participant CLI as gh CLI / スキル
participant GH as GitHub
Dev->>Repo: 作業・コミット(またはステージ)
Dev->>CLI: スキル実行 (create-pr / create-canary-pr / create-release-pr)
CLI->>Repo: fetch origin/<base>, origin/<head>, diff チェック
alt base == head かつ変更あり
CLI->>Repo: 一時ブランチ作成・コミット・push
end
CLI->>GH: gh pr list -> 既存 PR 判定
alt 既存 PR が存在
CLI->>GH: gh pr edit (本文再生成の一部/チェック反映)
GH-->>CLI: 既存 PR 情報 (URL)
else 既存 PR なし
CLI->>GH: gh pr create (title, body, checks)
GH-->>CLI: PR 作成結果 (URL)
end
CLI-->>Dev: PR URL と更新されたチェック項目の要約
Estimated code review effort🎯 3 (中程度) | ⏱️ ~30分 詩
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
.claude/skills/create-pr/SKILL.md (2)
93-100: テーブル前後の空行が不足しています。Markdown の可読性向上のため、テーブルの前後に空行を追加することを推奨します。
📝 空行追加の提案
各項目を独立に評価(複数該当可、大文字小文字無視・部分一致): **コミット件名ベース** + | 項目 | トリガ語句 | | ---- | ---- | | バグ修正 | `fix`, `Hotfix`, `バグ`, `修正`, `不具合` | | 新機能 | `feat`, `add`, `新機能`, `追加`, `導入`, `対応` | | リファクタリング | `refactor`, `リファクタ`, `整理`, `clean` | | ドキュメント | `docs`, `ドキュメント`, `README`, `changelog` | | CI/CD | `ci`, `cd`, `workflow`, `release`, `Bump version`, `canary release` | **変更ファイルパスベース**(コミット判定と OR) + | 項目 | パターン | | ---- | ---- | | ドキュメント | 変更が `*.md` / `docs/**` / `README*` のみ | | CI/CD | `.github/workflows/**`, `.github/**/*.yml`, `fastlane/**`, `eas.json` のいずれかを含む |Also applies to: 102-106
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/skills/create-pr/SKILL.md around lines 93 - 100, Add a blank line before and after the Markdown table that starts with the header "| 項目 | トリガ語句 |" so the table is separated from surrounding text; do the same for the other table referenced in the comment (the one around lines 102-106). Locate the table blocks by searching for the header string "| 項目 | トリガ語句 |" and ensure one empty line precedes and one follows each table to improve Markdown readability.
32-32: Markdown lint の警告は無視して問題ありません。
Hotfix:内のスペースは意図的なもので、実際のタイトルプレフィックス表記として正しいです。静的解析ツールの指摘を修正する場合:
📝 Markdown lint 対応案(任意)
-Hot fix の文脈(`head` が `hotfix/` で始まる、または件名に `Hotfix` を含む)では、タイトル先頭に ` Hotfix: ` を付ける(CLAUDE.md ルール)。 +Hot fix の文脈(`head` が `hotfix/` で始まる、または件名に `Hotfix` を含む)では、タイトル先頭に `Hotfix:` を付ける(CLAUDE.md ルール)。🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/skills/create-pr/SKILL.md at line 32, This is an intentional formatting choice: when the git context indicates a hotfix (the `head` starts with `hotfix/` or the subject contains `Hotfix`) the title prefix should be ` Hotfix: ` (space included); do not change the prefix to satisfy markdown lint. If the linter must be silenced, add a targeted markdown-lint exception for this title pattern or disable the specific rule around the `Hotfix: ` line so the `Hotfix`/`Hotfix: ` behavior remains unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.claude/skills/create-pr/SKILL.md:
- Around line 93-100: Add a blank line before and after the Markdown table that
starts with the header "| 項目 | トリガ語句 |" so the table is separated from
surrounding text; do the same for the other table referenced in the comment (the
one around lines 102-106). Locate the table blocks by searching for the header
string "| 項目 | トリガ語句 |" and ensure one empty line precedes and one follows each
table to improve Markdown readability.
- Line 32: This is an intentional formatting choice: when the git context
indicates a hotfix (the `head` starts with `hotfix/` or the subject contains
`Hotfix`) the title prefix should be ` Hotfix: ` (space included); do not change
the prefix to satisfy markdown lint. If the linter must be silenced, add a
targeted markdown-lint exception for this title pattern or disable the specific
rule around the `Hotfix: ` line so the `Hotfix`/`Hotfix: ` behavior remains
unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4736710b-2c1a-4387-9bfc-dcccba274d9a
📒 Files selected for processing (3)
.claude/skills/create-canary-pr/SKILL.md.claude/skills/create-pr/SKILL.md.gitignore
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.claude/skills/create-pr/SKILL.md:
- Line 32: The Markdown contains a code span with an extra trailing space
(`Hotfix: `) triggering markdownlint MD038; update the code span to remove the
trailing space so it reads `Hotfix:` (replace the `Hotfix: ` token with
`Hotfix:` in the SKILL.md content) to resolve the lint warning.
- Line 115: The checklist markdown uses an invalid GitHub checkbox token `- []`;
update it to the correct form `- [ ]` in SKILL.md (replace the `- []` instance
on the line containing "残りの項目は、コミット件名またはファイルパスのトリガに 1 つでも当てはまれば `- [x]`、それ以外は `-
[]`。" so it becomes `- [ ]`) and scan nearby checklist lines to ensure all
checkboxes use the consistent `- [ ]` / `- [x]` syntax (look for the exact text
snippet containing `- [x]` and `- []` to locate the spot).
- Around line 95-112: Add a blank line both before and after each Markdown table
flagged by markdownlint MD058: specifically insert an empty line before and
after the table that starts with "| 項目 | トリガ語句 |" (the trigger-phrase table),
the table under the "**変更ファイルパスベース**" section that starts with "| 項目 | パターン |",
and the final commit-subject table that also begins with "| 項目 | トリガ語句 |";
ensure there is exactly one blank line separating each table from surrounding
paragraphs/headers.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 01d75e8a-3b12-4f83-bbeb-bc1c722e9dd1
📒 Files selected for processing (1)
.claude/skills/create-pr/SKILL.md
There was a problem hiding this comment.
♻️ Duplicate comments (3)
.claude/skills/create-pr/SKILL.md (3)
117-117:⚠️ Potential issue | 🟡 Minorチェックボックス記法の例を
- [ ]に修正してください。文中の
`- []`はGitHubの有効なチェックボックス記法ではないため、`- [ ]`に統一してください。🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/skills/create-pr/SKILL.md at line 117, Update the checkbox example in .claude/skills/create-pr/SKILL.md by replacing the invalid inline code token "`- []`" with the correct GitHub checkbox notation "`- [ ]`" so the sentence reads that remaining items use `- [x]` if matched and `- [ ]` otherwise; adjust only that token in the sentence.
32-32:⚠️ Potential issue | 🟡 Minor
Hotfix:のコードスパン末尾スペースを削除してください。
markdownlint-cli2(CodeRabbit組み込みツール)の MD038 警告どおり、`Hotfix: `は`Hotfix:`にしてください。Based on learnings: TrainLCD/MobileAppのレビューでは、CodeRabbitの組み込みツールによる指摘であることを明示する。
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/skills/create-pr/SKILL.md at line 32, Change the code-span `` `Hotfix: ` `` to `` `Hotfix:` `` (remove the trailing space inside the backticks) in the SKILL.md content where the Hotfix title rule is described; also clarify the parenthetical note to explicitly state this is a CodeRabbit/markdownlint-cli2 MD038 warning by referencing the tool name (e.g., "reported by CodeRabbit's markdownlint-cli2 (MD038)") so reviewers know the lint source.
97-114:⚠️ Potential issue | 🟡 Minor各テーブルの前後に空行を追加してください(MD058)。
この3つの表(Line 97開始 / Line 104開始 / Line 110開始)は、前後の空行不足で
markdownlint-cli2(CodeRabbit組み込みツール)警告対象です。各表の前後に1行ずつ空行を入れてください。Based on learnings: TrainLCD/MobileAppのレビューでは、CodeRabbitの組み込みツールによる指摘であることを明示する。
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/skills/create-pr/SKILL.md around lines 97 - 114, The three Markdown tables that start with the header rows "| 項目 | トリガ語句 |" and the two "| 項目 | パターン |" tables are missing blank lines before and after them which triggers markdownlint MD058 (CodeRabbit); add a single empty line immediately above and below each of those three tables so there is one blank line separating the tables from surrounding paragraphs, then re-run lint to confirm the MD058 warning is resolved.
🧹 Nitpick comments (1)
.claude/skills/create-pr/SKILL.md (1)
143-143:`- `のコードスパンを MD038 非違反の表現に変更してください。
markdownlint-cli2(CodeRabbit組み込みツール)の MD038 回避のため、例えば`-` で始まる連続行のように末尾スペースをコードスパン外へ出してください。Based on learnings: TrainLCD/MobileAppのレビューでは、CodeRabbitの組み込みツールによる指摘であることを明示する。
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/skills/create-pr/SKILL.md at line 143, 該当の説明文で使われている「`- `」のコードスパンは MD038 に抵触するので、コードスパンの末尾スペースを外して表現を修正してください(例:「`-` で始まる連続行」のようにバッククォート内はハイフンのみ、続けてスペースや日本語をコードスパン外に置く)。対象は SKILL.md の該当行(現在 "冒頭の箇条書きブロック(`- ` で始まる連続行)..." とある箇所)で、文言を同様に修正しつつ「CodeRabbit組み込みツールによる指摘」であることの注記を残してください。
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In @.claude/skills/create-pr/SKILL.md:
- Line 117: Update the checkbox example in .claude/skills/create-pr/SKILL.md by
replacing the invalid inline code token "`- []`" with the correct GitHub
checkbox notation "`- [ ]`" so the sentence reads that remaining items use `-
[x]` if matched and `- [ ]` otherwise; adjust only that token in the sentence.
- Line 32: Change the code-span `` `Hotfix: ` `` to `` `Hotfix:` `` (remove the
trailing space inside the backticks) in the SKILL.md content where the Hotfix
title rule is described; also clarify the parenthetical note to explicitly state
this is a CodeRabbit/markdownlint-cli2 MD038 warning by referencing the tool
name (e.g., "reported by CodeRabbit's markdownlint-cli2 (MD038)") so reviewers
know the lint source.
- Around line 97-114: The three Markdown tables that start with the header rows
"| 項目 | トリガ語句 |" and the two "| 項目 | パターン |" tables are missing blank lines
before and after them which triggers markdownlint MD058 (CodeRabbit); add a
single empty line immediately above and below each of those three tables so
there is one blank line separating the tables from surrounding paragraphs, then
re-run lint to confirm the MD058 warning is resolved.
---
Nitpick comments:
In @.claude/skills/create-pr/SKILL.md:
- Line 143: 該当の説明文で使われている「`- `」のコードスパンは MD038
に抵触するので、コードスパンの末尾スペースを外して表現を修正してください(例:「`-`
で始まる連続行」のようにバッククォート内はハイフンのみ、続けてスペースや日本語をコードスパン外に置く)。対象は SKILL.md の該当行(現在
"冒頭の箇条書きブロック(`- ` で始まる連続行)..."
とある箇所)で、文言を同様に修正しつつ「CodeRabbit組み込みツールによる指摘」であることの注記を残してください。
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 51c0de8e-310d-4565-9d55-80218dc202ad
📒 Files selected for processing (2)
.claude/skills/create-pr/SKILL.mdAGENTS.md
✅ Files skipped from review due to trivial changes (1)
- AGENTS.md
Fixes Applied SuccessfullyFixed 1 file(s) based on 3 unresolved review comment(s). Files modified:
Commit: The latest autofix changes are on the 対応内容
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.claude/skills/create-pr/SKILL.md:
- Line 146: The inline code span containing a trailing space (the sequence `- `
in the diff) triggers markdownlint MD038; remove the trailing space inside the
backticks so the span becomes `` `-` `` (or adjust to the appropriate
punctuation/context if needed) and save the SKILL.md change so the markdownlint
warning is resolved.
- Line 147: Update the wording that currently reads "常に手順 3/5
の結果で上書き(`skip_checks` に従う)" so it accurately refers to step 4 or the
`skip_checks` parameter; replace "手順 3/5" with "手順 4" or change to "常に
`skip_checks` に従う" in the "テスト" line to reflect that test checkbox evaluation is
governed by step 4 (`skip_checks`), not step 3 or step 5.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e2e31f9e-9ad8-40a2-a669-4fca5e5a2abf
📒 Files selected for processing (1)
.claude/skills/create-pr/SKILL.md
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.claude/skills/create-release-pr/SKILL.md:
- Around line 67-69: The markdown code fence containing the release note text
(the block that currently is "```" followed by "v<version> をリリース" and closing
"```") must include a language tag to satisfy markdownlint rule MD040; update
that fence to use a language identifier such as ```bash (or ```text) and keep
the inner content unchanged so the fence becomes "```bash" ... "v<version>
をリリース" ... "```". Ensure this change is applied in the SKILL.md snippet where
the current untagged code fence appears.
- Around line 73-76: 手順中の「git add <bump
で変更されたファイル>」だと差分を取りこぼす恐れがあるので、コミット前に必ず作業ツリーを確認し(git
statusを実行)、必要な変更を確実にステージするよう文言を修正してください。具体的には SKILL.md の該当箇所(現在の "git add <bump
で変更されたファイル>")を、まず "git status で差分を確認" を入れた上で "git add -A"(または必要に応じて個別ファイルを明示して
git add <files>)を実行する手順に置き換え、続く git commit -m "v<version> をリリース" と git push -u
origin release/v<version> の流れになるよう書き換えてください。
- Around line 53-57: The command string "npx biome check --unsafe --fix ./src"
conflicts with the policy sentence "勝手に修正しない"; either remove the "--fix" flag
from the command or change the policy sentence to allow automatic fixes. Update
the SKILL.md entry that contains "npx biome check --unsafe --fix ./src" and the
adjacent policy text so they are consistent (e.g., use "npx biome check --unsafe
./src" if you want no auto-fixes, or change "勝手に修正しない" to explicitly permit
automatic fixes), ensuring the displayed command and the policy sentence match.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 854c5305-b6d7-479e-9609-946b60072a27
📒 Files selected for processing (1)
.claude/skills/create-release-pr/SKILL.md
Fixes Applied SuccessfullyFixed 1 file(s) based on 2 applied + 1 deferred (already fixed) review comment(s). Files modified:
Commit: The latest autofix changes are on the 対応内容
Deferred
|
Fixes Applied SuccessfullyFixed 1 file(s) based on 3 applied + 2 deferred (already fixed) review comment(s). Files modified:
Commit: The latest autofix changes are on the 対応内容
Deferred
|
* PR作成用のClaude Codeスキル create-pr と create-canary-pr を追加 * create-pr スキルでアプリ本体変更が無い場合にバグ修正・新機能・リファクタリングを強制OFFにする判定ルールを追加 * PR本文を差分と同期する運用ルールとcreate-prスキルの更新モードを追加 * CodeRabbitの指摘に従いcreate-prスキルのmarkdownlint警告3件を修正 * 本番リリースPR作成用のcreate-release-prスキルを追加 * PR本文同期ルールにタイトル同期も含めてAGENTS.mdとcreate-prスキルに明文化 * CodeRabbitの指摘に従いcreate-prスキルのMD038警告とテスト欄の参照手順誤りを修正 * CodeRabbitの指摘に従いcreate-release-prスキルの方針矛盾とコードフェンス言語指定とgit add手順を修正 * create-release-prスキルで本番リリース時のbiomeチェックを自動修正なしのcheck-onlyに変更
概要
TrainLCD MobileApp リポジトリでの PR 作成手順を自動化する Claude Code スキルを追加する。
create-prが PR 作成ロジック本体で、create-canary-pr(dev→canary リリース用)・create-release-pr(本番リリース用)は薄いプリセット。あわせて、新コミット push 時に PR タイトルと本文を差分に同期する運用ルールを AGENTS.md に追加する。変更の種類
変更内容
テスト
関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
リリースノート