agentleFS
salmandevsalmandev/everything-gemini/skills/github-ops/SKILL.md

github-ops

Skill2 starsChanged 28 days agoApache-2.0View on GitHub

Orchestrates GitHub workflows, automated Pull Request generation, code review triage, release management, and issue automation using GitHub MCP and the gh CLI.

  • Commits and pushes

23 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 8 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 7

    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. Distinctive:

    Keep Pull Requests focused on a single logical change or feature.

    line 15
  2. Very specific:

    Use Conventional Commits (feat:, fix:, refactor:, docs:, chore:).

    line 16
  3. Distinctive:

    Always run the local test suite and lint verification before creating or updating a PR.

    line 18
  4. Distinctive:

    Never push failing code or uncommitted working trees.

    line 19
  5. Very specific:

    Every PR must link back to an issue or feature specification (Closes #123 or Refs #456).

    line 21
  6. Distinctive:

    Every release tag must be accompanied by an auto-generated or structured changelog.

    line 22
  7. Very specific:

    When interacting with GitHub, use either the configured GitHub MCP Server or the standard gh CLI.

    line 28
  8. Distinctive:

    When authoring a Pull Request on behalf of the user, follow this structured template:

    line 48
  9. Distinctive:

    When performing automated reviews on a GitHub PR:

    line 71
  10. Very specific:

    Use gh pr review <pr-number> --comment for non-blocking suggestions.

    line 83
  11. Very specific:

    Use gh pr review <pr-number> --request-changes for critical bugs or regressions.

    line 84
  12. Very specific:

    Use gh pr review <pr-number> --approve once all checks pass.

    line 85
  13. Very specific:

    Verify package.json / version files are updated.

    line 92
  14. Distinctive:

    Ensure working tree is clean (git status).

    line 93
  15. Distinctive:

    Create and push git tag:

    line 94

“Common” is measured: kept by at least 6 in 10 of the 19 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.

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

GitHub Ops & Repository Lifecycle Automation

This skill guides the agent in managing end-to-end GitHub workflows, creating production-grade Pull Requests, performing automated multi-file code reviews, orchestrating releases, and triaging issues.


1. Operating Principles

  1. Atomic & Linear Commits:
    • Keep Pull Requests focused on a single logical change or feature.
    • Use Conventional Commits (feat:, fix:, refactor:, docs:, chore:).
  2. Deterministic Verification Before PR:
    • Always run the local test suite and lint verification before creating or updating a PR.
    • Never push failing code or uncommitted working trees.
  3. Traceability:
    • Every PR must link back to an issue or feature specification (Closes #123 or Refs #456).
    • Every release tag must be accompanied by an auto-generated or structured changelog.

2. GitHub CLI (gh) & MCP Integration

When interacting with GitHub, use either the configured GitHub MCP Server or the standard gh CLI.

Essential gh Command Patterns

TaskCommand
Check Auth Statusgh auth status
Inspect Open Issuesgh issue list --limit 10
View Issue Detailsgh issue view <issue-number>
Create Pull Requestgh pr create --title "..." --body "..."
View PR Status & Checksgh pr status / gh pr checks
View PR Diffgh pr diff <pr-number>
Add PR Comment/Reviewgh pr review <pr-number> --comment -b "..."
Merge Pull Requestgh pr merge <pr-number> --squash --delete-branch
Create Release Taggh release create v1.1.0 --title "v1.1.0" --notes "..."

3. Pull Request Generation Workflow

When authoring a Pull Request on behalf of the user, follow this structured template:

## 🎯 Overview
<!-- 1-2 concise sentences summarizing the problem solved or capability introduced -->

## 🛠️ Changes Implemented
- **Component / File**: High-level explanation of modification.
- **Architectural Decision**: Rationale for design choices or trade-offs.

## 🧪 Verification & Testing
- [x] Unit / Integration tests pass (`npm test`, `pytest`, or `cargo test`).
- [x] Linters and typecheckers pass (`npm run lint`, `tsc --noEmit`).
- [x] Verified zero breaking changes to existing public APIs.

## 🔗 Related Issues
Closes #<issue-number>

4. Automated PR Review Protocol

When performing automated reviews on a GitHub PR:

  1. Fetch & Inspect Diff:
    gh pr diff <pr-number>
  2. Review Checklist:
    • Correctness: Does the code satisfy the acceptance criteria without subtle edge-case failures?
    • Security: Are there unsanitized inputs, hardcoded secrets, or privilege escalations?
    • Performance: Are there N+1 database queries, unmemoized expensive loops, or memory leaks?
    • Style & Standards: Does it adhere to the repository's established conventions?
  3. Submitting Feedback:
    • Use gh pr review <pr-number> --comment for non-blocking suggestions.
    • Use gh pr review <pr-number> --request-changes for critical bugs or regressions.
    • Use gh pr review <pr-number> --approve once all checks pass.

5. Release Automation

To publish a clean semantic release:

  1. Verify package.json / version files are updated.
  2. Ensure working tree is clean (git status).
  3. Create and push git tag:
    git tag vX.Y.Z
    git push origin vX.Y.Z
  4. Generate release notes with GitHub CLI:
    gh release create vX.Y.Z --generate-notes

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.