← Back to list

git-operations
by M6saw0
A Slack-driven system that triggers Codex CLI on a local machine and relays progress, commits, and PRs via MCP.
⭐ 0🍴 0📅 Jan 1, 2026
SKILL.md
name: git-operations description: >- Workflow for using GitHub MCP + git to create private repos, sync main via git switch, branch safely, push without touching main, and open PRs. Use for any task that needs Git branching/publishing guidance.
Git Operations Skill
Use this skill to standardize operations with GitHub MCP and local git. All required
steps are documented here.
Prerequisites
- You can call GitHub MCP
create_repository(PAT configured). git switchis available locally (usegit checkouton older Git).- Never push directly to
main. Always use acodex/<task>branch.
Flow Overview
- Create a repository (if needed)
- Use GitHub MCP
create_repository/github__create_repositoryand always setprivate: true:{ "name": "project-name", "description": "...", "private": true } - After creation, run
git remote add origin <repo-url>locally. Public repos are not allowed.
- Use GitHub MCP
- Sync main
git fetch origin git switch main # use checkout on older Git git status # ensure clean git pull --ff-only origin main - Branch handling
- If an existing branch is not merged, continue with
git switch <branch>and edit there. - If merged into main, create a new branch with
git switch -c codex/<task-name>(e.g.codex/git-ops-skill). Usegit checkout -b ...on older Git.
- If an existing branch is not merged, continue with
- Edit and sync
git add <files> git commit -m "type: summary" git fetch origin git rebase origin/main # or git merge origin/main - Push & PR
git push -u origin codex/<task>- Do not push to
main. Create the PR via GitHub MCPcreate_pull_requestand include purpose/changes/tests.
- Do not push to
- After completion
git switch main git pull --ff-only origin main git branch -d codex/<task>
Checklist
- Repository is private
- main is up to date at start
- Branch name follows
codex/<task> - Push is only from the working branch (
mainforbidden) - PR link is shared in Slack
Additional Notes
- If rebase is difficult,
git merge origin/mainis acceptable, but resolve conflicts locally before pushing. - Use
git push --force-with-leaseonly after rebase and with reviewer agreement.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon