gh-combine
Copilot instructions27 starsChanged 12 months agoMITView on GitHub
This is a Go based repository that provide a gh cli extension to combine multiple pull requests into one for a given repository(or multiple repos at once). It is designed to be used with the GitHub CLI and is intended to be a simple and easy to use tool for developers who want to combine multiple pull requests into one. Here is the the very basic usage of the gh-combine extension:
The file
We split this copilot-instructions.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run make fmt before committing any changes to ensure proper code formatting
- Distinctive: line 34
Follow Go best practices and idiomatic patterns
- Distinctive: line 36
Use dependency injection patterns where appropriate
- Distinctive: line 37
Write unit tests for new functionality.
- Very specific: line 38
Document public APIs and complex logic.
- Distinctive: line 40
When suggesting code changes, always opt for the most maintainable approach.
- Distinctive: line 41
When writing unit tests, always strive for 100% code coverage where it makes sense.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
gh-combine GitHub Copilot Guidelines
This is a Go based repository that provide a gh cli extension to combine multiple pull requests into one for a given repository(or multiple repos at once). It is designed to be used with the GitHub CLI and is intended to be a simple and easy to use tool for developers who want to combine multiple pull requests into one.
Here is the the very basic usage of the gh-combine extension:
gh combine owner/repoCode Standards
Required Before Each Commit
- Run
make fmtbefore committing any changes to ensure proper code formatting - This will run gofmt on all Go files to maintain consistent style
Development Flow
- Test:
go test -v -cover ./... - Lint:
go fmt ./... && go mod tidy && golangci-lint run --fix - Build:
go build -v ./cmd/gh-combine
Repository Structure
cmd/gh-combine: Main cli entry points and executablesinternal/: Logic related to the core functionality of the extensionscript/: Scripts for building, testing, and releasing the extension.github/: GitHub Actions workflows for CI/CDvendor/: Vendor directory for Go modules (committed to the repository for reproducibility)
Key Guidelines
- Follow Go best practices and idiomatic patterns
- Maintain existing code structure and organization
- Use dependency injection patterns where appropriate
- Write unit tests for new functionality. Use table-driven unit tests when possible.
- Document public APIs and complex logic. Suggest changes to the
docs/folder when appropriate - When responding to code refactoring suggestions, function suggestions, or other code changes, please keep your responses as concise as possible. We are capable engineers and can understand the code changes without excessive explanation. If you feel that a more detailed explanation is necessary, you can provide it, but keep it concise.
- When suggesting code changes, always opt for the most maintainable approach. Try your best to keep the code clean and follow DRY principles. Avoid unnecessary complexity and always consider the long-term maintainability of the code.
- When writing unit tests, always strive for 100% code coverage where it makes sense. Try to consider edge cases as well.
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.

