← スキル一覧に戻る

commit
by lqxc-org
Collects Application [WIP]
⭐ 1🍴 0📅 2026年1月23日
SKILL.md
name: commit description: "Stage changes, create Conventional Commits, push branches, open GitHub pull requests with gh, and manage PR checks/auto-merge. Use when a user asks to commit, push, open a PR, enable auto-merge, or shepherd CI checks to green."
Commit
Overview
Automate the end-to-end git + GitHub CLI flow: branch creation, staging, Conventional Commit message, PR creation, and PR check monitoring/merge prompts.
Workflow
-
Inspect repo state.
- Run
git status -sbandgit branch --show-current. - If there are no changes, ask the user what to commit.
- Run
-
Ensure a non-main branch.
- If current branch is
main, create a new branch namedfeat-<summary>. - Prefer generating
<summary>withjust scripts::commit-branch-name "<summary>"(createsfeat-<summary>automatically). - If the summary is unclear or the user has a preference, ask for a branch name instead of guessing.
- If current branch is
-
Stage changes.
- Stage tracked changes with
git add -A. - If there are untracked files that are likely unintended, ask before staging.
- Stage tracked changes with
-
Generate a Conventional Commit message.
- Choose
typebased on change intent:feat,fix,refactor,docs,chore, etc. - Pick
scopefrom the most affected top-level area (e.g.,services,cli,ui). - Write:
<type>(<scope>): <imperative summary>. - If unsure, ask the user to confirm the type/scope.
- Choose
-
Commit and handle hook failures.
- Run
git commit -m "<message>". - If hooks fail due to permissions or sandboxing (e.g.,
/dev/ptmx), re-run the same commit command with escalated permissions instead of bypassing hooks. - If hooks fail due to lint/test errors, fix issues, re-stage, and retry.
- Do not disable or bypass hooks unless the user explicitly approves it.
- If commit signing fails (GPG), ask the user whether to retry with signing fixed or proceed with
--no-gpg-sign.
- Run
-
Push and create PR.
- Push with
git push -u origin <branch>. - Create PR with
just scripts::commit-pr-create "<title>" [body-path]. - If
body-pathis omitted, the script auto-fills the PR body from recent changes. - Use
references/pr-body.mdwhen you want full manual control (update testing list based on what ran). - If PR creation fails due to missing remote branch, push then retry.
- Push with
-
Ask about auto-merge.
- After PR creation, ask: "Enable auto-merge?" and only proceed on explicit approval.
- If approved, run
just scripts::commit-pr-auto-merge <pr-url>.
-
Monitor checks.
- Use
just scripts::commit-pr-checks <pr-url>to monitor status. - If checks fail, inspect failures, apply fixes, commit/push, and re-check until green.
- After checks pass, ask whether to merge if auto-merge is not enabled.
- Use
-
Sync with main before merge.
- If the user requests it, fetch and rebase onto
origin/mainbefore merging. - Force-push with lease after rebase:
git push --force-with-lease. - Re-check PR status after the rebase.
- If the user requests it, fetch and rebase onto
Resources
scripts/
- The repo-level
scripts/commit.tsusesbunto call theghCLI for branch naming and PR operations. - Use the dedicated Just recipes:
scripts::commit-branch-name,scripts::commit-pr-create,scripts::commit-pr-auto-merge,scripts::commit-pr-checks,scripts::commit-pr-open,scripts::commit-pr-url,scripts::commit-pr-status,scripts::commit-pr-draft,scripts::commit-pr-ready,scripts::commit-pr-comment,scripts::commit-pr-close.
references/
references/pr-body.mdprovides the PR body template.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です