원클릭으로
github-workflow
Complete GitHub workflow: repo management, issues, PR lifecycle, and code review via gh CLI or REST API.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Complete GitHub workflow: repo management, issues, PR lifecycle, and code review via gh CLI or REST API.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
macOS-specific automation: iMessage/SMS messaging and desktop control (screenshots, clicks, keyboard input).
Messaging platform integrations: email (IMAP/SMTP via Himalaya), X/Twitter (xurl CLI), and Yuanbao groups (@mentions, DMs).
Control creative software programmatically: ComfyUI (AI image/video generation via REST/WebSocket API) and TouchDesigner (real-time visual programming via MCP).
Systematic engineering disciplines: debugging (root cause investigation), TDD (test-first development), and exploratory QA (web app testing).
Creative coding: p5.js sketches, Manim animations, Pretext text layouts.
Create, read, edit .pptx decks, slides, notes, templates.
SOC 직업 분류 기준
| name | github-workflow |
| description | Complete GitHub workflow: repo management, issues, PR lifecycle, and code review via gh CLI or REST API. |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["GitHub","PRs","Issues","Code-Review","Repositories","Git","CI/CD"]}} |
Unified skill for all GitHub operations. Covers repository management, issue tracking, PR lifecycle, and code review. Each section shows the gh way first, then the git + curl fallback.
if command -v gh &>/dev/null && gh auth status &>/dev/null; then
AUTH="gh"
else
AUTH="git"
if [ -z "$GITHUB_TOKEN" ]; then
if [ -f ~/.hermes/.env ] && grep -q "^GITHUB_TOKEN=" ~/.hermes/.env; then
GITHUB_TOKEN=$(grep "^GITHUB_TOKEN=" ~/.hermes/.env | head -1 | cut -d= -f2 | tr -d '\n\r')
elif grep -q "github.com" ~/.git-credentials 2>/dev/null; then
GITHUB_TOKEN=$(grep "github.com" ~/.git-credentials 2>/dev/null | head -1 | sed 's|https://[^:]*:\([^@]*\)@.*|\1|')
fi
fi
fi
REMOTE_URL=$(git remote get-url origin)
OWNER_REPO=$(echo "$REMOTE_URL" | sed -E 's|.*github\.com[:/]||; s|\.git$||')
OWNER=$(echo "$OWNER_REPO" | cut -d/ -f1)
REPO=$(echo "$OWNER_REPO" | cut -d/ -f2)
Clone/create/fork repos, manage settings, branch protection, secrets, releases, and GitHub Actions.
git clone https://github.com/owner/repo-name.git
git clone --depth 1 https://github.com/owner/repo-name.git # shallow
gh repo clone owner/repo-name
gh repo create my-project --public --clone
# curl: POST https://api.github.com/user/repos with JSON body
gh repo fork owner/repo --clone
git fetch upstream && git merge upstream/main # keep fork in sync
gh release create v1.0.0 --generate-notes
gh release list
# curl: POST https://api.github.com/repos/$OWNER/$REPO/releases
gh secret set API_KEY --body "value"
gh secret list
# curl requires encryption with repo's public key — prefer gh
gh workflow list
gh run list --limit 10
gh run rerun <ID> --failed
gh workflow run ci.yml --ref main
# curl: GET/POST https://api.github.com/repos/$OWNER/$REPO/actions/...
# curl: PUT https://api.github.com/repos/$OWNER/$REPO/branches/main/protection
Create, search, triage, label, assign, and manage GitHub issues.
gh issue list
gh issue list --label "bug"
gh issue view 42
# curl: GET /repos/$OWNER/$REPO/issues
gh issue create --title "Bug title" --body "Description" --label "bug" --assignee "user"
# curl: POST /repos/$OWNER/$REPO/issues
gh issue edit 42 --add-label "priority:high"
gh issue edit 42 --add-assignee user
gh issue comment 42 --body "Comment text"
gh issue close 42
gh issue reopen 42
# curl: POST/DELETE/PATCH /repos/$OWNER/$REPO/issues/42/...
gh issue list --label "needs-triage"Branch, commit, create PR, monitor CI, auto-fix failures, and merge.
git fetch origin
git checkout main && git pull origin main
git checkout -b feat/add-feature
gh pr create --title "feat: add feature" --body "Summary\n\nCloses #42"
# curl: POST /repos/$OWNER/$REPO/pulls
gh pr checks --watch
# curl: GET /repos/$OWNER/$REPO/commits/$SHA/status
gh run view <ID> --log-failedgit add . && git commit && git pushgh pr merge --squash --delete-branch
gh pr merge --auto --squash --delete-branch # auto-merge
# curl: PUT /repos/$OWNER/$REPO/pulls/N/merge
Review local changes (pre-push) or PRs on GitHub with inline comments.
git diff main...HEAD --stat # scope
git diff main...HEAD # full diff
# Check for: debug statements, secrets, merge conflicts, large files
gh pr view N, gh pr diff N --name-onlygit fetch origin pull/N/head:pr-N && git checkout pr-Ngh pr comment N --body "Summary"
gh pr review N --approve --body "LGTM"
gh pr review N --request-changes --body "See inline comments"
# curl: POST /repos/$OWNER/$REPO/pulls/N/reviews with inline comments
## Code Review Summary
### 🔴 Critical — [blocking issues]
### ⚠️ Warnings — [should fix]
### 💡 Suggestions — [non-blocking]
### ✅ Looks Good — [positive findings]
'pull_request' not in igh secret setgit diff main...HEAD (triple dot) for PR-scoped diffs, not git diff main HEAD