github-operations
Skill3 starsChanged 8 months agoMITArchived repositoryView on GitHub
Full contribution lifecycle: branch naming, conventional commits, GitHub issues, PRs, Actions, and releases. MCP-first with gh CLI fallback. USE FOR: commit, push, PR, branch, issue, release, GitHub operations. DO NOT USE FOR: Azure infrastructure, Bicep/Terraform code, architecture decisions.
- Reads credentials
6 other projects use a version of this.
Adopted by
Most recently taken up by
- ashleysbrain/skillstheir own version, first seen Nov 8, 2026
- wallstop/unity-helperstheir own version, first seen Oct 8, 2026
- horizon67/agent-skillstheir own version, first seen Sep 20, 2026
- pig1and1/skillstheir own version, first seen Sep 16, 2026
- GoogleMakesMeBetter/claude-skills-collectiontheir own version, first seen Feb 9, 2026
- jarosser06/drifttheir own version, first seen Dec 9, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- wallstop/unity-helpers★ 178same name
- ashleysbrain/skills★ 1same name
- GoogleMakesMeBetter/claude-skills-collection★ 1same name
- jarosser06/drift★ 1same name
- pig1and1/skills★ 1same name
- horizon67/agent-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 repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- appinsights-instrumentationSkill
- azure-adrSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-artifactsSkill
- azure-bicep-patternsSkill
- azure-cloud-migrateSkill
- azure-complianceSkill
- azure-computeSkill
- azure-cost-optimizationSkill
- azure-defaultsSkill
- azure-deploySkill
- azure-diagnosticsSkill
- azure-diagramsSkill
- azure-hosted-copilot-sdkSkill
- azure-kustoSkill
- azure-messagingSkill
- azure-prepareSkill
- azure-quotasSkill
- azure-rbacSkill
- azure-resource-lookupSkill
- azure-resource-visualizerSkill
- azure-storageSkill
- azure-validateSkill
- context-optimizerSkill
- context-shreddingSkill
- copilot-customizationSkill
- count-registrySkill
- docs-writerSkill
- drawioSkill
- entra-app-registrationSkill
- excalidrawSkill
- golden-principlesSkill
- iac-commonSkill
- make-skill-templateSkill
- mermaidSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-foundrySkill
- microsoft-skill-creatorSkill
- python-diagramsSkill
- session-resumeSkill
- terraform-patternsSkill
- terraform-search-importSkill
- terraform-testSkill
- workflow-engineSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 10 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
10
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
- Distinctive: line 29
Before any commit or PR, validate the branch name:
- Very specific: line 40
If the branch name is invalid, stop and suggest renaming: git branch -m <old-name> feat/<descriptive-name>
- Very specific: line 44
If files are out of scope, suggest feat/ or fix/ instead.
- Distinctive: line 51
Commit messages must follow Conventional Commits format (enforced by commitlint):
- Distinctive: line 73
Check whether an MCP tool exists for that operation
- Distinctive: line 74
If MCP exists, use MCP only
- Very specific: line 75
Use gh CLI only when no equivalent MCP tool is available
- Very specific: line 79
Do not run gh auth login in devcontainer workflows
- Distinctive: line 82
If MCP write tools are missing, report explicitly and provide fallback
- Very specific: line 121
Search for PR templates in .github/PULL_REQUEST_TEMPLATE/
- Distinctive: line 154
DO: Use MCP tools first for issues and PRs
- Very specific: line 155
DO: Use gh CLI for Actions, releases, repos, secrets, API
- Distinctive: line 157
DO: Search for existing issues/PRs before creating duplicates
- Distinctive: line 158
DO: Check for PR templates before creating PRs
- Distinctive: line 159
DON'T: Commit on a branch with an invalid name
- Distinctive: line 160
DON'T: Create issues/PRs without confirming repo owner and name
- Very specific: line 162
DON'T: Use gh CLI for issues/PRs when MCP tools are available
“Common” is measured: kept by at least 6 in 10 of the 5 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
GitHub Operations
Full contribution lifecycle — from branch creation to PR merge.
MCP tools preferred; gh CLI as fallback.
Contribution Lifecycle
1. Create branch (naming convention) →
2. Make changes →
3. Commit (conventional commits) →
4. Push (pre-push hooks validate branch + scope) →
5. Create PR (MCP tools) →
6. Review + MergeBranch Naming (Mandatory)
Before any commit or PR, validate the branch name:
git rev-parse --abbrev-ref HEAD| Type | Prefixes | File Scope |
| Domain-scoped | docs/, agents/, skills/, infra/, scripts/, instructions/ | Restricted to domain paths |
| Cross-cutting | feat/, fix/, chore/, ci/, refactor/, perf/, test/, build/, revert/ | Any files |
If the branch name is invalid, stop and suggest renaming:
git branch -m <old-name> feat/<descriptive-name>
For domain-scoped branches, verify changed files are within scope.
If files are out of scope, suggest feat/ or fix/ instead.
📋 Full rules: Read references/branch-strategy.md for scope tables,
validation commands, and enforcement layers.
Conventional Commits (Mandatory)
Commit messages must follow Conventional Commits format (enforced by commitlint):
<type>[optional scope]: <description>| Type | Purpose | Type | Purpose |
feat | New feature | test | Tests |
fix | Bug fix | build | Build system |
docs | Documentation | ci | CI/CD config |
refactor | Refactor | chore | Maintenance |
perf | Performance | revert | Revert |
Scopes: agents, skills, instructions, bicep, terraform, mcp, docs, scripts
📋 Full workflow: Read references/commit-conventions.md for staging,
breaking changes, best practices, and safety protocol.
MCP Priority Protocol (Mandatory)
- Identify required operation (issue, PR, search, Actions, release, etc.)
- Check whether an MCP tool exists for that operation
- If MCP exists, use MCP only
- Use
ghCLI only when no equivalent MCP tool is available
Devcontainer Reliability Rule
- Do not run
gh auth loginin devcontainer workflows GH_TOKENmust be set via VS Code User Settings (terminal.integrated.env.linux)- For PR/issue creation, rely on MCP tool authentication by default
- If MCP write tools are missing, report explicitly and provide fallback
Issues (MCP Tools)
| Tool | Purpose |
mcp_github_list_issues | List repository issues |
mcp_github_issue_read | Fetch issue details |
mcp_github_issue_write | Create/update issues |
mcp_github_search_issues | Search issues |
mcp_github_add_issue_comment | Add comments |
Creating issues — Required: owner, repo, title, body.
Title guidelines: prefix with [Bug], [Feature], [Docs]; keep under 72 chars.
Pull Requests (MCP Tools)
| Tool | Purpose |
mcp_github_create_pull_request | Create new PRs |
mcp_github_merge_pull_request | Merge PRs |
mcp_github_update_pull_request | Update PR details |
mcp_github_pull_request_review_write | Create/submit reviews |
mcp_github_request_copilot_review | Copilot code review |
mcp_github_search_pull_requests | Search PRs |
mcp_github_list_pull_requests | List PRs |
Creating PRs
Required: owner, repo, title, head (source branch), base (target branch)
Pre-flight checks (mandatory before creating):
- Validate branch name (see Branch Naming above)
- For domain branches, verify files are in scope
- Search for PR templates in
.github/PULL_REQUEST_TEMPLATE/ - Title must follow conventional commit format
Default merge method: squash unless user specifies otherwise.
📋 Smart PR Flow: Read references/smart-pr-flow.md for PR lifecycle
states, auto-labels, and auto-merge conditions.
CLI Commands (gh)
📋 Reference: Read references/detailed-commands.md for complete gh CLI
commands covering repos, Actions, releases, secrets, API, and auth.
IMPORTANT:
gh api -fdoes not support object values. Use multiple-fflags with hierarchical keys and string values instead.
Global Flags
| Flag | Description |
--repo OWNER/REPO | Target specific repository |
--json FIELDS | Output JSON with fields |
--jq EXPRESSION | Filter JSON output |
--web | Open in browser |
--paginate | Fetch all pages |
DO / DON'T
- DO: Validate branch name before committing or creating PRs
- DO: Use MCP tools first for issues and PRs
- DO: Use
ghCLI for Actions, releases, repos, secrets, API - DO: Confirm repository context before creating issues/PRs
- DO: Search for existing issues/PRs before creating duplicates
- DO: Check for PR templates before creating PRs
- DON'T: Commit on a branch with an invalid name
- DON'T: Create issues/PRs without confirming repo owner and name
- DON'T: Merge PRs without user confirmation
- DON'T: Use
ghCLI for issues/PRs when MCP tools are available - DON'T: Skip hooks (--no-verify) unless user explicitly asks
Reference Index
| Reference | File | Content |
| Branch Strategy | references/branch-strategy.md | Naming convention, scope tables, enforcement layers |
| Commit Conventions | references/commit-conventions.md | Format, types, staging workflow, safety protocol |
| Smart PR Flow | references/smart-pr-flow.md | PR lifecycle states, auto-labels, auto-merge |
| CLI Commands | references/detailed-commands.md | Repos, Actions, Releases, Secrets, API, Auth |
Smart PR Flow
Automated PR lifecycle for infrastructure deployments. Defines label-based state tracking, auto-label rules on CI pass/fail, and a watchdog pattern for the deploy agent.
For full details: Read references/smart-pr-flow.md
Quick Reference
| Condition | Label Applied |
| CI passes | infraops-ci-pass |
| CI fails | infraops-needs-fix |
| Review approved | infraops-reviewed |
| Auto-merge (all gates pass) | PR merged via MCP |
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.

