drewid74/ai_skills/github-workflow

Claude Code and agent skill by drewid74/ai_skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Expert GitHub workflow automation. Branch strategy, PR lifecycle, protected branches, Actions CI/CD, GitHub MCP tool orchestration, compound operations (PR creation → review → merge), and repository management patterns.

Install

npx vskill@latest install drewid74/ai_skills/github-workflow

SKILL.md

The same SKILL.md was published earlier as drewid74/ai_skills/github-workflow.

GitHub Workflow

Identity

Execute complete GitHub workflows — branch, commit, PR, review, merge — without stopping to ask for clarification. Default to trunk-based development. Never leave a PR open without review requested. Always set base branch explicitly.

Stack Defaults

OperationDefaultNotes
Branch modelTrunk-basedFeature branches ≤ 3 days
PR size≤ 400 lines changedSplit larger PRs
Merge strategySquash mergeClean linear history
Branch protectionRequire 1 review + CIOn main always
Commit styleConventional commitsfeat:, fix:, chore:
Issue trackingLabels + milestonesbug, feature, tech-debt

Decision Framework

IF starting new feature:
→ create_branch from main: feature/short-description
→ commits follow conventional commit format
→ PR when: tests pass, description has Why + What
ELIF reviewing PR:
→ check: tests added?, breaking change?, security impact?
→ request changes on: missing tests, hardcoded secrets, N+1 queries
→ approve on: correct logic, tested, matches ticket
ELIF merging:
→ squash merge preferred (clean history)
→ delete branch after merge
→ close linked issues with "Closes #NNN"
IF hotfix needed:
→ branch from main: hotfix/description
→ PR with [HOTFIX] prefix
→ merge → tag immediately
IF compound operation (create PR + review + merge):
→ create_branch → push_files → create_pull_request
→ add_issue_comment (review notes) → merge_pull_request

Anti-Patterns

Anti-PatternUse Instead
Long-lived feature branches (>3 days)Trunk-based with feature flags
Force-push to mainBranch protection + squash merge
PR with no descriptionTemplate: Why / What / Testing / Breaking
Merging without CI passingRequire status checks in branch protection
Secrets in commit historyGitHub Secrets + git filter-repo to purge
1000-line PRsSplit into logical atomic PRs

Quality Gates

  • [ ] Branch protection on main: require reviews + status checks
  • [ ] PR template exists (.github/pull_request_template.md)
  • [ ] Issue labels defined: bug, feature, tech-debt, blocked
  • [ ] CI runs on every PR (at minimum: lint + test)
  • [ ] No secrets in repository history
  • [ ] CODEOWNERS defined for critical paths

→ See cicd-pipeline for GitHub Actions workflow patterns → See security-engineer for supply chain hardening (branch protection, signed commits)


GitHub MCP Tool Reference

When the GitHub MCP is connected, these tools are available for compound operations:

ToolPurpose
create_branchCreate new branch from base
push_filesPush one or more files in single commit
create_pull_requestOpen PR with title, body, base, head
get_pull_requestFetch PR details, status, reviews
merge_pull_requestMerge with squash/merge/rebase strategy
create_pull_request_reviewSubmit review (APPROVE/REQUEST_CHANGES/COMMENT)
get_pull_request_filesList changed files in PR
create_issueOpen issue with labels, assignees
update_issueEdit issue state, labels, assignees
add_issue_commentComment on issue or PR
list_commitsList recent commits on branch
get_file_contentsRead file at ref/branch
search_codeFull-text search across repos
fork_repositoryFork for external contribution

Compound Operation: Full PR Lifecycle

python
# Step 1: Create branch
create_branch(repo="owner/repo", branch="feature/add-auth", from_branch="main")
# Step 2: Push changes
push_files(
repo="owner/repo",
branch="feature/add-auth",
files=[{"path": "src/auth.py", "content": "..."}],
message="feat: add JWT authentication middleware"
)
# Step 3: Open PR
pr = create_pull_request(
repo="owner/repo",
title="feat: add JWT authentication middleware",
body="""## Why
Unauthenticated endpoints are accessible. Closes #42.
## What
- JWT middleware validates tokens on protected routes
- 401 on missing/invalid tokens
- Tests cover valid, expired, and malformed tokens
## Breaking Changes
None — all existing unprotected routes unchanged.""",
head="feature/add-auth",
base="main",
draft=False
)
# Step 4: Request review
add_issue_comment(
repo="owner/repo",
issue_number=pr["number"],
body="@teammate please review auth middleware logic in `src/auth.py`"
)

Branch Protection Configuration

yaml
# Via GitHub API or UI: Settings → Branches → Add rule
branch: main
rules:
require_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_status_checks:
strict: true # Branch must be up to date
contexts:
- "ci/test"
- "ci/lint"
require_conversation_resolution: true
restrict_force_pushes: true
restrict_deletions: true

PR Template (.github/pull_request_template.md)

markdown
## Why
<!-- What problem does this solve? Link to issue: Closes #NNN -->
## What changed
<!-- Summary of changes -->
## Testing
-[ ] Unit tests added/updated
-[ ] Integration tests pass
-[ ] Manual testing steps:
## Breaking changes
<!-- List any breaking changes, or "None" -->
## Checklist
-[ ] No secrets or credentials committed
-[ ] Documentation updated (if applicable)
-[ ] `CHANGELOG.md` updated (for library releases)

GitHub Actions: Branch Trigger Patterns

yaml
# .github/workflows/pr-checks.yml
name: PR Checks
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- run: pip install -r requirements.txt
- run: pytest --tb=short -q
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install ruff
- run: ruff check .

Conventional Commits Reference

feat: New feature (minor version bump)
fix: Bug fix (patch version bump)
chore: Maintenance (no version bump)
docs: Documentation only
refactor: Code change without feature/fix
test: Test additions/changes
perf: Performance improvement
ci: CI/CD changes
build: Build system changes
BREAKING CHANGE: footer note → major version bump
Examples:
feat: add OAuth2 PKCE flow for mobile clients
fix: resolve race condition in worker pool shutdown
chore(deps): bump httpx from 0.27.0 to 0.28.1

Troubleshooting

SymptomCauseFix
PR blocked by stale reviewReview dismissed by new commitRe-request review; enable "dismiss stale reviews"
CI passes locally, fails on PREnvironment diff (secrets, OS)Use act locally to simulate GH Actions runner
Merge conflict on PRLong-lived branch divergedgit fetch && git rebase origin/main
Branch protection bypass neededEmergency hotfixTemporarily disable rule as admin; re-enable immediately
Secrets found in commitHardcoded credentialsgit filter-repo --path-regex; rotate credentials immediately
PR auto-merge not triggeringRequired checks not reportingVerify workflow name matches branch protection context string

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
Repository forks
1
7-day trend score
11

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Jun 2026, 5 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/drewid74/ai_skills/github-workflow/badge)](https://verified-skill.com/skills/drewid74/ai_skills/github-workflow)

Something wrong with this skill or its page? Tell us.