github-pr-workflow
GitHub PR lifecycle: branch, commit, open, CI, merge.
Skill by werxiao882-cell
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/werxiao882-cell-github-pr-workflow
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
github-pr-workflow- Description
- GitHub PR lifecycle: branch, commit, open, CI, merge.
- License
- MIT
- Instructions
- 356 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (5)
- SKILL.md
- ci-troubleshooting.md · references/
- conventional-commits.md · references/
- pr-body-bugfix.md · templates/
- pr-body-feature.md · templates/
SKILL.md (first lines)
# GitHub Pull Request Workflow
Complete guide for managing the PR lifecycle. Each section shows the `gh` way first, then the `git` + `curl` fallback for machines without `gh`.
## Prerequisites
- Authenticated with GitHub (see `github-auth` skill)
- Inside a git repository with a GitHub remote
### Quick Auth Detection
```bash
# Determine which method to use throughout this workflow
if command -v gh &>/dev/null && gh auth status &>/dev/null; then
AUTH="gh"
else
AUTH="git"
# Ensure we have a token for API calls
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
echo "Using: $AUTH"
```
### Extracting Owner/Repo from the Git Remote
Many `curl` commands need `owner/repo`. Extract it from the git remote:
```bash
# Works for both HTTPS and SSH remote URLs
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)
echo "Owner: $OWNER, Repo: $REPO"
```
---
## 1. Branch Creation
This part is pure `git` — identical either way:
```bash
# Make sure you're up to date
git fetch origin
git checkout main && git pull origin main
# Create and switch to a new branch
git checkout -b feat/add-user-authentication
```
Branch naming conventions:
- `feat/description` — new features
- `fix/description` — bug fixes
- `refactor/description` — code restructuring
- `docs/description` — documentation
- `ci/description` — CI/CD changes
## 2. Making Commits
Use the agent's file tools (`write_file`, `patch`) to make changes, then commit:
```bash
# Stage specific files
git add src/auth.py src/models/user.py tests/test_auth.py
# Commit with a conventional commit message
git commit -m "feat: add JWT-based user authentication
- Add login/register endpoints
- Add User model with password hashing
- Add auth middleware for protected routes
- Add unit tests for auth flow"
```
Commit message format (Conventional Commits):
```
type(scope): short description
Longer explanation if needed. Wrap at 72 characters.
```
Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`, `perf`
## 3. Pushing and Creating a PR
### Push the Branch (same either way)
```bash
git push -u origin HEAD
```
### Create the PR
**With gh:**
```bash
gh pr create \
--title "feat: add JWT-based user authentication" \
--body "## Summary
- Adds login and register API endpoints
- JWT token generation and validation
## Test Plan
- [ ] Unit tests pass
Closes #42"
```
Options: `--draft`, `--reviewer user1,user2`, `--label "enhancement"`, `--base develop`
**With git + curl:**From werxiao882-cell/NanoHermes, MIT.
More from werxiao882-cell/NanoHermes
- 0.548score
ai-agent-integration-testing
werxiao882-cell
Integration testing for AI Agent CLI systems — PTY-driven conversation simulation, tool chain verification, OpenSpec-driven test design, and real-API…
SkillCFreshness: C★ 13Claude Code +9 - 0.543score
article-extraction
werxiao882-cell
Extract web article content from WeChat MP, blogs, and other platforms, converting text, images, formatting, and tables to clean Markdown.
SkillCFreshness: C★ 13Claude Code +9 - 0.541score
kanban-orchestrator
werxiao882-cell
Decomposition playbook + anti-temptation rules for an orchestrator profile routing work through Kanban.
SkillCFreshness: C★ 13Claude Code +9 - 0.538score
kanban-worker
werxiao882-cell
Pitfalls, examples, and edge cases for Hermes Kanban workers.
SkillCFreshness: C★ 13Claude Code +9 - 0.532score
minecraft-modpack-server
werxiao882-cell
Host modded Minecraft servers (CurseForge, Modrinth).
SkillCFreshness: C★ 13Claude Code +9 - 0.532score
webhook-subscriptions
werxiao882-cell
Webhook subscriptions: event-driven agent runs.
SkillCFreshness: C★ 13Claude Code +9 - 0.528score
pokemon-player
werxiao882-cell
Play Pokemon via headless emulator + RAM reads.
SkillCFreshness: C★ 13Claude Code +9 - 0.330score
openspec-propose
openspec
Propose a new change with all artifacts generated in one step.
SkillCFreshness: C★ 13Claude Code +9 - 0.330score
openspec-explore
openspec
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements.
SkillCFreshness: C★ 13Claude Code +9 - 0.330score
openspec-apply-change
openspec
Implement tasks from an OpenSpec change.
SkillCFreshness: C★ 13Claude Code +9
Signals
- Stars
- 13
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Jul 6, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/werxiao882-cell/NanoHermes
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.614score
github-pr-workflow
m4tinbeigi-official
GitHub PR lifecycle: branch, commit, open, CI, merge.
SkillBFreshness: B★ 47Claude Code +9 - 0.322score
github-pr-workflow
AjayRajan05
GitHub PR lifecycle: branch, commit, open, CI, merge.
SkillCFreshness: C★ 10Claude Code +9 - 0.296score
github-pr-workflow
lokah1945
GitHub PR lifecycle: branch, commit, open, CI, merge.
SkillCFreshness: C★ 1Claude Code +9
More from werxiao882-cell
- 0.548score
ai-agent-integration-testing
werxiao882-cell
Integration testing for AI Agent CLI systems — PTY-driven conversation simulation, tool chain verification, OpenSpec-driven test design, and real-API…
SkillCFreshness: C★ 13Claude Code +9 - 0.543score
article-extraction
werxiao882-cell
Extract web article content from WeChat MP, blogs, and other platforms, converting text, images, formatting, and tables to clean Markdown.
SkillCFreshness: C★ 13Claude Code +9 - 0.541score
kanban-orchestrator
werxiao882-cell
Decomposition playbook + anti-temptation rules for an orchestrator profile routing work through Kanban.
SkillCFreshness: C★ 13Claude Code +9 - 0.538score
kanban-worker
werxiao882-cell
Pitfalls, examples, and edge cases for Hermes Kanban workers.
SkillCFreshness: C★ 13Claude Code +9 - 0.532score
webhook-subscriptions
werxiao882-cell
Webhook subscriptions: event-driven agent runs.
SkillCFreshness: C★ 13Claude Code +9 - 0.532score
minecraft-modpack-server
werxiao882-cell
Host modded Minecraft servers (CurseForge, Modrinth).
SkillCFreshness: C★ 13Claude Code +9
Cite this page
github-pr-workflow skill. Agent Mart. https://agentmart.dev/skills/werxiao882-cell-github-pr-workflow (last updated 2026-10-24)