Initial commit
This commit is contained in:
11
commands/clean.md
Normal file
11
commands/clean.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# ブランチクリーンアップコマンド
|
||||
|
||||
mainマージ済みブランチをローカル/リモート削除。
|
||||
|
||||
## 実行
|
||||
1. `git branch --merged main`確認
|
||||
2. main・現在ブランチ除外
|
||||
3. `git branch -d <branch>`
|
||||
4. `git push origin --delete <branch>`
|
||||
|
||||
**注意**: 削除前確認・main除外・現在ブランチ除外
|
||||
15
commands/fix.md
Normal file
15
commands/fix.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# PR修正コマンド
|
||||
|
||||
直前PR、または引数で指定されたPRのreview comment確認・修正対応実行。
|
||||
|
||||
## 実行
|
||||
1. review comment確認
|
||||
2. 問題点修正
|
||||
3. コミット・プッシュ
|
||||
4. github mcpまたはghでcopilotにreviewを再依頼
|
||||
|
||||
**方針**:
|
||||
* 品質・可読性・セキュリティ向上、既存機能影響なし
|
||||
* 指摘がすべて正しいとは限らない。修正前に仕様を調査し、実施の可否を判断すること
|
||||
* 未対応の場合はその理由をコメントに書き込む
|
||||
|
||||
13
commands/merged.md
Normal file
13
commands/merged.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# マージ後クリーンアップコマンド
|
||||
|
||||
PRマージ後のクリーンアップを実行。
|
||||
|
||||
## 手順
|
||||
0. **事前確認**: github mcpで引数の(引数が無ければ自身が作成した最新)のPRがmainにmergeされていることを確認→mergeされていなければ終了
|
||||
1. **事前確認**: `git status`→変更あればstash
|
||||
2. **main更新**: `git checkout main`→`git pull`
|
||||
3. **ブランチ削除**:
|
||||
- `git branch -d <feature-branch>`
|
||||
- stash復元
|
||||
|
||||
**注意**: 冪等性保証・エラー時中断・削除済み無視
|
||||
36
commands/pr.md
Normal file
36
commands/pr.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# PR作成
|
||||
このプロジェクトのコードを下記の手順に従ってcommit, pushし、githubでPull Requestを作成してください。
|
||||
|
||||
**⚠️重要**: デフォルトブランチ(main, masterなど)で直接コミット禁止
|
||||
|
||||
## 手順
|
||||
0. **PR確認**
|
||||
- `git branch --show-current`で現在ブランチ確認
|
||||
- github mcpまたはghで現在のbranchから作成されているPRを確認
|
||||
- 既にPRが存在し、OPEN状態なら`git add` → `git commit` → `git push`して終了(日本語メッセージ)
|
||||
- 上位階層含むすべての変更をcommit
|
||||
- PRがない、またはmerge, close済みなら次へ
|
||||
|
||||
1. **ブランチ確認・切り替え**
|
||||
- デフォルトブランチの場合: 新featureブランチ作成→切り替え
|
||||
- デフォルトブランチ以外: git stash(全未コミット) → git pull origin [デフォルトブランチ](コンフリクト時は停止しユーザに報告) → stash復帰
|
||||
|
||||
2. **変更コミット**
|
||||
- `git status`→`git add`→`git commit`(日本語メッセージ)
|
||||
- 上位階層含むすべての変更をcommit
|
||||
|
||||
3. **プッシュ**
|
||||
- `git push -u origin <branch-name>`
|
||||
|
||||
4. **PR作成**
|
||||
- **ベースブランチ**:
|
||||
- オプション引数が渡された場合: そのブランチ名をPRの向き先(base branch)に指定
|
||||
- オプション引数がない場合: デフォルトブランチ(main/master)をPRの向き先に指定
|
||||
- タイトル・説明: 日本語、body: Summary+Test plan
|
||||
- **⚠️セキュリティ注意**: 機密情報(トークン、パスワード、API キー等)を含めないこと
|
||||
- body末尾に <!-- I want to review in Japanese. --> を入れる
|
||||
|
||||
## 命名規則
|
||||
- ブランチ: 英語(例: update-config)
|
||||
- github flow
|
||||
- コミット・PR: 日本語
|
||||
10
commands/review.md
Normal file
10
commands/review.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# PRレビューコマンド
|
||||
|
||||
直前PRを専門家としてレビュー。
|
||||
|
||||
## 実行
|
||||
- 問題点・改善点を指摘→「Request Changes」
|
||||
- 指摘なし→「Approve」
|
||||
|
||||
## 観点
|
||||
コード品質・セキュリティ・可読性・保守性・テストカバレッジ
|
||||
14
commands/serena.md
Normal file
14
commands/serena.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 記憶コマンド
|
||||
|
||||
開発の履歴や得られた知見を記録します。
|
||||
特に*Agentの推論や操作の失敗、コマンドの誤り、指示の誤解*などについて記録しておくことで*再発を防止*します。
|
||||
|
||||
## 実行内容
|
||||
1. AI Agentの履歴から何を行ったかを収集
|
||||
* 特に操作の失敗やユーザからの追加指示、誤解の修正などについては重点的にまとめる
|
||||
2. CLAUDE.mdの記憶の更新日時以降のgit logやファイル変更内容、claude codeのセッション履歴をもとに、知見を収集
|
||||
* 更新日時が記録されていない場合は直近のPR作成日時以降を対象とする。
|
||||
3. Serena MCPに上記の知見を記憶
|
||||
4. Serena MCPの記憶をチェックし、誤りがあれば修正、古くなっていれば削除
|
||||
5. AGENTS.mdのSerenaの利用方法を更新
|
||||
6. 記憶の更新日時をCLAUDE.mdに記録
|
||||
Reference in New Issue
Block a user