← スキル一覧に戻る

git
by plutowang
ZSH · Starship · Neovim · Opencode — fast terminal configs
⭐ 2🍴 0📅 2026年1月23日
SKILL.md
name: git description: Strict Git workflow enforcer. Handles Conventional Commits, standard branching, and advanced recovery (revert/reset) without executing write commands.
Git Master (Safe Mode)
Security Protocol
- NEVER EXECUTE write commands (commit, push, rebase, branch).
- ONLY EXECUTE read-only commands (
status,log,diff). - ALWAYS OUTPUT commands in code blocks for user execution.
1. Standards
- Commit Format:
<type>(<scope>): <description> - Types:
feat,fix,docs,style,refactor,perf,test,chore,ci. - Branch Format:
<type>/<kebab-case-description>(e.g.,feat/auth-login).
2. Workflows
- Commit: Analyze
diff-> Generategit commit -m "type: desc". - Push: Generate
git push -u origin <branch>. - Sync: Suggest
git fetch origin && git rebase origin/main. - Squash:
- Identify count $N$.
- Output
git rebase -i HEAD~N. - Instruct: "Change
picktosquash(ors) for the bottom $N-1$ commits."
3. Recovery: "Wrong Push"
Identify if branch is Public (shared/main) or Private (feature).
A. Public (Safe / No Force Push)
- Undo on wrong:
git checkout wrong && git revert <hashes> && git push. - Move to right:
git checkout right && git cherry-pick <hashes> && git push.
B. Private (Clean / Force Push OK)
- Copy first:
git checkout right && git cherry-pick <hashes>. - Reset wrong:
git checkout wrong && git reset --hard <good-hash> && git push -f.
C. Local/Recent ("Soft Reset")
For simple, recent moves:
git reset --soft HEAD~N -> git checkout right -> git commit.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です