agentleFS
jonathan-vellajonathan-vella/apex/.github/skills/apex-github-operations/SKILL.md

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.

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
  1. Very specific:

    Use this skill for Git and GitHub contribution work in the VS Code Copilot SDK harness.

    line 16
  2. Distinctive:

    Use the active caller's authorized tools and operator/runtime-selected model.

    line 21
  3. Very specific:

    Use existing CLI credentials.

    line 25
  4. Very specific:

    If required tools, scope or authorization are missing, stop and report the blocker.

    line 27
  5. Distinctive:

    Never stage the entire worktree by default or unstage someone else's changes.

    line 52
  6. Distinctive:

    Use Conventional Commits and normal hooks.

    line 59
  7. Very specific:

    Prefer git and gh. gh api, including GraphQL, covers many operations beyond the high-level CLI.

    line 63
  8. Very specific:

    Use ask_user, not interactive shell prompts, for missing decisions.

    line 67
  9. Distinctive:

    Never report a failed push as publication or skipped/pending checks as success.

    line 83
  10. Distinctive:

    If a commit succeeds but a later authorized push fails, preserve the local commit and stop.

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 git for local operations and gh for 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 auth unless 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 returns USER_INPUT_REQUIRED.

Operation And Authorization

Identify the requested operation before loading its reference. These are separate actions, not an automatic contribution pipeline:

RequestAuthorized scope
Review, status, search or explainRead-only; no staging, commit or remote writes
CommitStage only approved files/hunks and create a local commit
PushPublish the approved branch and reviewed outgoing commits to the approved remote
Create/update a PR or issueOnly the requested repository and fields
Merge or enable auto-mergeSeparate explicit authorization for that PR and method
Run/cancel Actions, release or change repository settingsExplicit 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/ and infra/ 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 git and gh. 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

OperationLoad only the relevant reference
Branch naming, creation or scope checksBranch strategy
Staging, local commit or authorized pushCommit/push procedure
Commit format, trailers or failure recoveryCommit conventions
Issues, PR creation/update, review or mergeIssues and PRs
Repositories, Actions, releases, API or searchCLI 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.