apex-github-operations
Skill220 starsChanged 2 months agoMITView on GitHub
**WORKFLOW SKILL** — Scoped Git/GitHub operations: branches, commits, push, issues, PRs, Actions, releases. WHEN: "commit", "push", "open PR", "create branch", "create issue", "cut release", "GitHub operation". Uses git/gh CLI first; discover MCP only for unavailable CLI capabilities. DO NOT USE FOR: Azure deployment or architecture. Loading never authorizes writes.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- apex-agent-authoringSkill
- apex-azure-adrSkill
- apex-azure-artifactsSkill
- apex-azure-bicep-patternsSkill
- apex-azure-cloud-migrateSkill
- apex-azure-complianceSkill
- apex-azure-computeSkill
- apex-azure-cost-optimizationSkill
- apex-azure-defaultsSkill
- apex-azure-deploySkill
- apex-azure-diagnosticsSkill
- apex-azure-governance-discoverySkill
- apex-azure-kubernetesSkill
- apex-azure-kustoSkill
- apex-azure-prepareSkill
- apex-azure-quotasSkill
- apex-azure-rbacSkill
- apex-azure-reliabilitySkill
- apex-azure-resourcesSkill
- apex-azure-storageSkill
- apex-azure-upgradeSkill
- apex-azure-validateSkill
- apex-context-managementSkill
- apex-debug-log-exportSkill
- apex-entra-app-registrationSkill
- apex-golden-principlesSkill
- apex-iac-commonSkill
- apex-mermaidSkill
- apex-microsoft-docsSkill
- apex-python-diagramsSkill
- apex-rfi-rfpSkill
- apex-terraform-patternsSkill
- apex-terraform-search-importSkill
- apex-terraform-testSkill
- apex-unslopSkill
- apex-vendor-promptingSkill
- apex-workflow-engineSkill
- apex-workflow-startSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
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
- Very specific: line 16
Use this skill for Git and GitHub contribution work in the VS Code Copilot SDK harness.
- Distinctive: line 21
Use the active caller's authorized tools and operator/runtime-selected model.
- Very specific: line 25
Use existing CLI credentials.
- Very specific: line 27
If required tools, scope or authorization are missing, stop and report the blocker.
- Distinctive: line 52
Never stage the entire worktree by default or unstage someone else's changes.
- Distinctive: line 59
Use Conventional Commits and normal hooks.
- Very specific: line 63
Prefer git and gh. gh api, including GraphQL, covers many operations beyond the high-level CLI.
- Very specific: line 67
Use ask_user, not interactive shell prompts, for missing decisions.
- Distinctive: line 83
Never report a failed push as publication or skipped/pending checks as success.
- Distinctive: line 84
If a commit succeeds but a later authorized push fails, preserve the local commit and stop.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 Operations
Use this skill for Git and GitHub contribution work in the VS Code Copilot SDK harness.
Invoke /apex-github-operations with the operation and scope, or request it in natural language.
Prerequisites
- Use the active caller's authorized tools and operator/runtime-selected model. This skill does not select an agent/model, grant permissions, or require model attestation.
- Require
gitfor local operations andghfor GitHub operations; verify the repository, branch, remote and requested scope before writes. Local commits do not require GitHub authentication. - Use existing CLI credentials. Do not run
gh authunless explicitly asked to troubleshoot authentication. Never print tokens, request secrets through chat, or switch identity implicitly. - If required tools, scope or authorization are missing, stop and report the blocker.
The interactive parent owns
ask_user; a delegated worker returnsUSER_INPUT_REQUIRED.
Operation And Authorization
Identify the requested operation before loading its reference. These are separate actions, not an automatic contribution pipeline:
| Request | Authorized scope |
| Review, status, search or explain | Read-only; no staging, commit or remote writes |
| Commit | Stage only approved files/hunks and create a local commit |
| Push | Publish the approved branch and reviewed outgoing commits to the approved remote |
| Create/update a PR or issue | Only the requested repository and fields |
| Merge or enable auto-merge | Separate explicit authorization for that PR and method |
| Run/cancel Actions, release or change repository settings | Explicit authorization for that operation and target |
A user may explicitly authorize several actions together; record each action's scope. A commit request alone never authorizes push, PR creation or merge. Skill invocation, successful checks, deployment success and an existing PR do not supply authorization. Decline does not approve; cancellation stops. Never infer approval from silence.
Safety Rules
- Inspect the full existing index and preserve unrelated work and partially staged files. Never stage the entire worktree by default or unstage someone else's changes.
- Exclude
agent-output/andinfra/from inferred commit scope. Include them only when the user explicitly includes those paths; existing artifact, review and IaC rules still apply. There are no plugin-specific branch exceptions. - Refuse commit/push from
main, the repository default branch, or detached HEAD. Validate contributor branch naming and file scope before commit/push/PR operations. Propose a rename when needed; do not rename a branch without authorization. - Use Conventional Commits and normal hooks. Do not bypass hooks, force-push, amend, reset, rebase, remove files or modify Git configuration implicitly.
- Inspect hook results and any generated changes; do not automatically publish or stage additional files. Report failures and the actual local/remote outcome.
- Prefer
gitandgh.gh api, including GraphQL, covers many operations beyond the high-level CLI. Discover actual MCP tools only when a required CLI capability is unavailable; never assume a server/tool name or treat MCP as an authentication bypass. - Bound command output and inspect large diffs/logs in targeted sections.
Use
ask_user, not interactive shell prompts, for missing decisions.
Reference Index
| Operation | Load only the relevant reference |
| Branch naming, creation or scope checks | Branch strategy |
| Staging, local commit or authorized push | Commit/push procedure |
| Commit format, trailers or failure recovery | Commit conventions |
| Issues, PR creation/update, review or merge | Issues and PRs |
| Repositories, Actions, releases, API or search | CLI commands |
Output And Stop Rules
Report the operation, repository/branch, included and excluded scope, checks performed, commit hash or GitHub URL when created, and any actions not performed. Never report a failed push as publication or skipped/pending checks as success. If a commit succeeds but a later authorized push fails, preserve the local commit and stop. Missing authorization, ambiguous scope, unrelated staged changes, failed hooks/checks, credential mismatch or stale approval require a blocker, not a success-shaped fallback.
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.

