github-cli-workflow
Skill18 starsChanged 3 months agoMITView on GitHub
HOW — GitHub CLI (gh): push branch, create draft PR with title/body from template or file;
- Commits and pushes
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- reviewSkill
- mcp-auditSkill
- owasp-agentic-reviewSkill
- supply-chain-auditSkill
- threat-modelingSkill
- architecture-diagramSkill
- c4-modelSkill
- aws-well-architected-reviewSkill
- cloud-design-patternsSkill
- assistantSkill
- dev-companionSkill
- onboardingSkill
- output-handshakeSkill
- pr-fallbackSkill
- projectSkill
- workspace-knowledge-syncSkill
- workspaceSkill
- dbt-validationSkill
- snowflake-validationSkill
- adrSkill
- agreementSkill
- bugSkill
- decision-logSkill
- development-workflowSkill
- epicSkill
- incidentSkill
- management-unit-assessmentSkill
- meeting-minutesSkill
- planningSkill
- prdSkill
- project-assessment-evidenceSkill
- project-assessmentSkill
- spikeSkill
- taskSkill
- technical-unit-assessmentSkill
- trdSkill
- user-storySkill
- workflow-client-bootstrapSkill
- workflow-generic-projectSkill
- work-itemSkill
- bragSkill
- brag-slimSkill
- design-assessmentSkill
- design-improvementSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-implement-designSkill
- figmaSkill
- frontend-design-reviewSkill
- frontend-designSkill
- web-design-guidelinesSkill
- fix-merge-conflictsSkill
- gh-address-commentsSkill
- gh-contribution-plannerSkill
- gh-fix-ciSkill
- gitlab-cli-workflowSkill
- worktreeSkill
- clickup-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Use this skill when the remote is GitHub and you need to push and open a draft pull request.
- Distinctive: line 19
Ensure the working branch tracks the remote: push with upstream as usual for the repo.
- Distinctive: line 21
Create a draft PR:
- Distinctive: line 27
If the repo expects a base branch other than the default:
- Very specific: line 33
If --draft is rejected by gh, retry once without --draft and state in chat that the PR could not be created as draft via CLI.
- Distinctive: line 37
Keep titles within team conventions (often including ticket keys).
- Very specific: line 42
Write an untracked file PR_DESCRIPTION_<WORK_ITEM_ID>.md in the repo root or /tmp with title + body ready to paste.
- Distinctive: line 48
Do not expose tokens or paste secrets into PR bodies.
- Distinctive: line 49
Do not force-push shared default branches unless the user explicitly requests it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub CLI — draft PR (HOW)
Use this skill when the remote is GitHub and you need to push and open a draft pull request. Workflow skills delegate here; this skill does not replace Jira or ClickUp procedures.
Prerequisites
ghauthenticated (gh auth status).- Branch pushed to
origin(or the remote your team uses).
Recommended flow
- Ensure the working branch tracks the remote: push with upstream as usual for the repo.
- Prefer the repository PR template for the body: use
--body-filepointing at a generated file that includes template sections, or paste from.github/pull_request_template.mdwhen required. If no template exists in the repo, usepr-fallback(WHAT) to build the body andoutput-handshaketo confirm where the file lives and that a human will review beforegh pr create. - Create a draft PR:
gh pr create --draft --title "YOUR_TITLE" --body-file /path/to/body.mdIf the repo expects a base branch other than the default:
gh pr create --draft --base develop --title "YOUR_TITLE" --body-file /path/to/body.md- If
--draftis rejected bygh, retry once without--draftand state in chat that the PR could not be created as draft via CLI.
Title and body
- Keep titles within team conventions (often including ticket keys).
- Validate title and body with the user before calling the step complete.
Fallback (CLI failure)
- Write an untracked file
PR_DESCRIPTION_<WORK_ITEM_ID>.mdin the repo root or/tmpwith title + body ready to paste. - Do not
git addthis file. - Give manual steps: open the compare URL on GitHub and create a draft PR from the branch, pasting from the file.
Safety
- Do not expose tokens or paste secrets into PR bodies.
- Do not force-push shared default branches unless the user explicitly requests it.
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.

