git-github-workflow
Skill2 starsChanged 9 days agoMITView on GitHub
Orchestrates the full git-to-merge lifecycle: validate → commit → check issues → create PR → monitor ALL GitHub Actions (including pre-existing failures) → fix via swarm/web research → merge with strategy selection → post-merge validate. Use this skill when the user asks to ship changes end-to-end, manage a PR through CI, or handle the complete commit-to-merge workflow — even if they just say "push it" or "ship it". Not for simple one-off git operations (revert, squash, cherry-pick), isolated tasks (just review, just test, just lint), or secret lifecycle work such as rotation and revocation (use secrets-management).
4 other projects use a version of this.
Adopted by
Most recently taken up by
- TidalPaladin/skillstheir own version, first seen Nov 8, 2026
- HyperVon/agent-guidance-kittheir own version, first seen Nov 1, 2026
- Flairstech-AIMY/coolify-skillstheir own version, first seen Sep 19, 2026
- yiweiwan/skillstheir own version, first seen May 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- HyperVon/agent-guidance-kit★ 1same name
- TidalPaladin/skills★ 1same name
- yiweiwan/skills★ 1same name
- Flairstech-AIMY/coolify-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository63 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/avoid-ai-writing/AGENTS.mdAGENTS.md
- .agents/skills/do-web-doc-resolver/AGENTS.mdAGENTS.md
- .agents/skills/skill-evaluator/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- accessibility-auditorSkill
- agent-browserSkill
- agentic-abstentionSkill
- agents-mdSkill
- api-design-firstSkill
- architecture-diagramSkill
- avoid-ai-writingSkill
- cicd-pipelineSkill
- cloudflare-worker-apiSkill
- codacySkill
- codeberg-apiSkill
- code-review-assistantSkill
- css-render-performanceSkill
- database-devopsSkill
- debuggerSkill
- delegateSkill
- dependency-upgradesSkill
- dist-channel-selectionSkill
- docs-hookSkill
- document-rendering-and-locatorsSkill
- dogfoodSkill
- dora-reportSkill
- do-web-doc-resolverSkill
- durable-objectsSkill
- eu-ai-act-complianceSkill
- goap-agentSkill
- implementerSkill
- intent-classifierSkill
- iterative-refinementSkill
- jules-delegatorSkill
- learnSkill
- lifecycle-managementSkill
- local-context-sanitizationSkill
- memory-contextSkill
- migration-refactoringSkill
- nested-build-isolationSkill
- privacy-firstSkill
- progressive-deliverySkill
- pwa-offline-syncSkill
- reader-ui-uxSkill
- readme-best-practicesSkill
- secrets-managementSkill
- secure-invite-and-accessSkill
- security-code-auditorSkill
- shell-script-qualitySkill
- skill-creatorSkill
- skill-evaluatorSkill
- static-analysisSkill
- testing-strategySkill
- test-runnerSkill
- triz-solverSkill
- turso-dbSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 17 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Run quality gate with zero warnings policy
- Distinctive: line 34
Verify not on protected branch (main/master)
- Distinctive: line 35
Check gh CLI authentication
- Distinctive: line 41
Create atomic commit with conventional format
- Distinctive: line 48
Check issue relevance to current changes
- Distinctive: line 55
Create comprehensive PR with commit summary and context
- Distinctive: line 61
CRITICAL: ALL GitHub Actions must pass, including pre-existing
- Very specific: line 63
Check ALL repository workflows (gh run list)
- Distinctive: line 66
Wait for ALL checks green or timeout
- Distinctive: line 75
If ANY check fails:
- Distinctive: line 77
Use available skills to fix issues
- Distinctive: line 83
Verify ALL checks passing and merge state
- Distinctive: line 85
Delete feature branch (optional)
- Distinctive: line 91
Verify ALL files present
- Distinctive: line 93
Run final quality gate
- Distinctive: line 177
STRICT MODE (default): ALL checks must pass, including pre-existing.
- Distinctive: line 179
If pre-existing failures found: document → web research → apply fix → re-run checks → merge only when ALL green.
- Distinctive: line 189
After merge: checkout main, pull latest, verify all files present, validate docs, run quality gate, check repo integrity.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git-GitHub Workflow Skill
Unified atomic state-machine workflow: validate → commit → check issues → create PR → monitor ALL Actions → fix (swarm/web research) → merge (strategy selection) → post-merge validate
When to Use
- User asks to commit code, create a PR, push changes, or merge
- Need to manage the full git lifecycle from commit to merge
- Even if they just say "push it" or "ship it"
Overview
Orchestrates complete code submission as a state machine with swarm agent coordination and 8 phases. See references/SWARM.md for agents and references/HANDOFF.md for coordination.
Workflow Phases
Phase 0: PRE_COMMIT (Validation)
- Run quality gate with zero warnings policy
- Scan for secrets in staged changes
- Verify not on protected branch (main/master)
- Check gh CLI authentication
- Failure: Abort immediately, no changes made
Phase 1: ATOMIC COMMIT (Agent: commit-agent)
- Stage ALL changes (
git add -A) - Create atomic commit with conventional format
- Auto-detect commit type from changed files
- Generate meaningful commit message
Phase 2: CHECK GITHUB ISSUES (Agent: issue-agent)
- List open issues in repository
- Check issue relevance to current changes
- Identify blocking issues (labeled "blocking"/"critical")
- Determine if issues need fixing before merge
Phase 3: CREATE PR (Agent: pr-agent)
- Push to new feature branch (auto-generated or custom name)
- Create comprehensive PR with commit summary and context
- Link related issues in PR body
- Auto-detect existing PR for the branch
Phase 4: MONITOR ALL ACTIONS (Agent: monitor-agent)
CRITICAL: ALL GitHub Actions must pass, including pre-existing
- Monitor PR checks continuously (
gh pr checks) - Check ALL repository workflows (
gh run list) - Distinguish pre-existing vs new issues
- Detect warnings (configurable fail-on-warning)
- Wait for ALL checks green or timeout
- Branch protection awareness
- Watch mode (absorbed from
github-pr-sentinel): for long-running PRs, poll withscripts/gh_pr_watch.py --pr <n> --watchuntil merged, green, or blocked; loop back to Phase 5 on actionable review feedback before retrying flaky checks. Details:references/PR_WATCH_*.md.
Phase 5: ISSUE RESOLUTION (Agent: fix-agent) [Conditional]
If ANY check fails:
- Trigger web research (web-search-researcher + doc-resolver)
- Use available skills to fix issues
- Re-run checks after fixes
- Retry up to N times (configurable)
Phase 6: MERGE (Agent: merge-agent)
- Verify ALL checks passing and merge state
- Merge with configurable strategy (squash/merge/rebase)
- Delete feature branch (optional)
- Close related issues (optional)
Phase 7: POST-MERGE VALIDATION (Agent: validate-agent)
- Checkout main branch
- Verify ALL files present
- Validate documentation complete
- Run final quality gate
- Check repository integrity
Quality Gates
| Phase | Check | Failure Action |
| PRE_COMMIT | Quality gate zero warnings | Abort |
| PRE_COMMIT | No secrets in staged changes | Abort |
| PRE_COMMIT | Not on protected branch | Abort |
| COMMIT | Valid conventional format | Rollback |
| PRE_PUSH | Remote accessible | Rollback |
| PUSH | SHA verification | Rollback |
| PR_CREATE | gh CLI authenticated | Rollback |
| VERIFY | All CI checks green, zero warnings | Rollback |
Commit Format
type(scope): Brief description (72 chars max)
- Why not what - user perspective
- Reference issues: Fixes #123
- Types: feat, fix, docs, style, refactor, perf, test, ci, chore
- Auto-detection: CI→ci | Test→test | Docs→docs | New→feat | Mod→fix
Auto-Merge Strategies
| Method | Command | Description |
squash | gh pr merge --squash | Combine into single commit (default) |
merge | gh pr merge --merge | Create merge commit |
rebase | gh pr merge --rebase | Fast-forward after rebase |
Error Codes
| Code | Meaning | Phase |
| 0 | Success | - |
| 1 | General error | - |
| 2 | Quality gate failed | PRE_COMMIT |
| 3 | Commit failed | COMMIT |
| 4 | GitHub issues blocking | ISSUES |
| 5 | PR creation failed | PR |
| 6 | Actions checks failed | MONITOR |
| 7 | Max retries / timeout | FIX |
| 8 | Merge failed | MERGE |
| 9 | Post-merge validation failed | VALIDATE |
Usage
# Full workflow
bash .agents/skills/git-github-workflow/run.sh --message "feat: implement feature"
# Partial modes
bash .agents/skills/git-github-workflow/run.sh --check-issues-only
bash .agents/skills/git-github-workflow/run.sh --validate-main-onlyArguments
| Argument | Description | Default |
--message, -m | Commit message | auto-generated |
--merge-method | merge/squash/rebase | squash |
--branch-name | Custom branch name | auto-generated |
--rebase / --no-rebase | Auto-rebase if behind | true |
--check-all-actions | Monitor repo-wide Actions | true |
--fail-on-warning | Treat warnings as errors | true |
--cleanup-branch | Delete branch after merge | false |
--fix-issues | Auto-fix issues | false |
--close-issues | Close related issues on merge | false |
--strict-validation | ALL checks must pass | true |
--skip-issue-check | Skip GitHub issues check | false |
--skip-ci | Skip CI verification (emergency) | false |
--post-merge-validate | Validate after merge | true |
--auto-research | Web research on failures | true |
--dry-run | Simulate without executing | false |
--max-retries | Max fix attempts | 3 |
--timeout | Actions timeout (seconds) | 3600 |
--base-branch | Target branch for PR | main |
Pre-existing Issue Handling
STRICT MODE (default): ALL checks must pass, including pre-existing. No exceptions.
If pre-existing failures found: document → web research → apply fix → re-run checks → merge only when ALL green.
NON-STRICT (--no-strict-validation): Distinguishes pre-existing vs new issues. New failures block merge; only pre-existing can merge. Reports all issues clearly.
Web Research Integration
On ANY failure: launch web-search-researcher → query failure → do-web-doc-resolver → get official docs → apply fix → re-run checks → retry (default max 3).
Post-Merge Validation
After merge: checkout main, pull latest, verify all files present, validate docs, run quality gate, check repo integrity.
Configuration
GIT_GITHUB_WORKFLOW_TIMEOUT=3600
GIT_GITHUB_WORKFLOW_MAX_RETRIES=3
GIT_GITHUB_WORKFLOW_STRICT_VALIDATION=1
GIT_GITHUB_WORKFLOW_AUTO_RESEARCH=1
GIT_GITHUB_WORKFLOW_POST_MERGE_VALIDATE=1
GIT_GITHUB_WORKFLOW_CLOSE_ISSUES=0
GIT_GITHUB_WORKFLOW_MERGE_METHOD=squash
GIT_GITHUB_WORKFLOW_REBASE=1
GIT_GITHUB_WORKFLOW_FAIL_ON_WARNING=1
GIT_GITHUB_WORKFLOW_CHECK_ALL_ACTIONS=1
GIT_GITHUB_WORKFLOW_CLEANUP_BRANCH=0Success Criteria
Workflow succeeds when:
- ✓ Quality gate passed (zero warnings)
- ✓ Atomic commit with valid conventional format
- ✓ GitHub issues checked (none blocking or resolved)
- ✓ PR created and pushed to feature branch
- ✓ ALL GitHub Actions passing (pre-existing fixed)
- ✓ Issues resolved via web research (if needed)
- ✓ Merged to main with configured strategy
- ✓ Post-merge validation passes
Rationalizations
| Rationalization | Reality |
| "I'll skip the quality gate, it's a tiny change" | Small changes cause most production incidents. |
| "Rollback is too complex, I'll fix forward" | Fix-forward creates tangled history. |
| "Post-merge validation is redundant" | Ensures merge didn't introduce integration issues. |
| "Pre-existing failures aren't my problem" | They still block your PR's merge status. |
| "I'll merge now and fix CI later" | Broken CI contaminates main for all contributors. |
Red Flags
- Bypassing the quality gate for "trivial" changes
- Merging on a green
gh pr checksrollup without listing workflow runs; failed runs can be absent from it - Ignoring pre-existing CI failures as "not my problem"
- Disabling rollback on failure
- Skipping post-merge validation on main
See Also
references/SWARM.md- Agent definitions and coordinationreferences/HANDOFF.md- Handoff protocolreferences/IMPLEMENTATION_ATOMIC_COMMIT.md- State machine, rollback matrix, secret patterns (migrated)references/IMPLEMENTATION_GITHUB_WORKFLOW.md- GitHub API, merge strategies, troubleshooting (migrated)run.sh- Workflow implementation scriptevals/README.md- Consolidated test scenarios
Voice & Context
- Default:
professional+blog - Reference:
voice-profilesskill for definitions and auto-detection.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

