← スキル一覧に戻る
On

git
by HardlyDifficult
Cursor commands and Agent Skills
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: git description: Use for any git or GitHub operations including pull, sync, commit, push, PR, or when the user mentions git-related actions.
Git & GitHub Workflows
This skill provides workflows for common git and GitHub operations.
Quick Reference
| Action | Trigger phrases |
|---|---|
| Sync with remote | "pull", "sync", "update from main" |
| Commit changes | "commit", "save changes" |
| Create pull request | "PR it", "create a PR", "submit for review" |
Workflow Composition
The workflows build on each other:
PR → Commit → Pull
- Creating a PR first commits changes
- Committing first pulls latest from main
Pull Workflow
Pull latest changes and sync with remote.
Scope
- Single repo: If the user mentions a specific repo or is clearly working in one repo, only pull that repo
- All repos: If the user says "all" or doesn't specify, pull all git repos in the workspace
On main branch
- Clean working directory:
git pull origin main - Has uncommitted changes:
git stash && git pull origin main && git stash pop— resolve any conflicts but do NOT push
On a feature branch
- Merge latest main:
git fetch origin && git merge origin/main - Push the branch:
git push
Rules
- Never force push
- Summarize results for each repo at the end
Commit Workflow
Commit changes to the current branch.
Before Committing
- Pull latest - Sync with main using the pull workflow above
- Run checks - Run lint, format, and build/test as well as anything specific to this repository
- Fix issues - Fix all warnings and errors from any of these commands
Commit
- Stage relevant changes
- Write a clear, concise commit message focused on the "why"
- Commit the changes
PR Workflow
Create a PR against main with these changes.
Before Creating PR
- Commit changes - Apply the commit workflow above (which pulls latest and runs checks)
- Create a new branch if needed
Create the PR
- Push to remote (with
-uflag if new branch) - Create a PR using the
ghCLI - Open a browser tab to the PR's
/filespage:open <pr-url>/files - Return the PR URL as a clickable markdown link:
[PR #N](url)
Output Format
Always format URLs as clickable markdown links in your response:
- PR link:
[PR #123](https://github.com/owner/repo/pull/123) - Any other URLs mentioned should also be linked
Monitor CI
Use the gh CLI to monitor CI status. If CI fails:
- Investigate the failure
- Fix the issue
- Push the fix
- Repeat until CI passes
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です