agentleFS
GitHubKnown publishergithub/gh-combine/.github/copilot-instructions.md

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

    Run make fmt before committing any changes to ensure proper code formatting

    line 15
  2. Distinctive:

    Follow Go best practices and idiomatic patterns

    line 34
  3. Distinctive:

    Use dependency injection patterns where appropriate

    line 36
  4. Distinctive:

    Write unit tests for new functionality.

    line 37
  5. Very specific:

    Document public APIs and complex logic.

    line 38
  6. Distinctive:

    When suggesting code changes, always opt for the most maintainable approach.

    line 40
  7. Distinctive:

    When writing unit tests, always strive for 100% code coverage where it makes sense.

    line 41

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

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

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/repo

Code Standards

Required Before Each Commit

  • Run make fmt before 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 executables
  • internal/: Logic related to the core functionality of the extension
  • script/: Scripts for building, testing, and releasing the extension
  • .github/: GitHub Actions workflows for CI/CD
  • vendor/: Vendor directory for Go modules (committed to the repository for reproducibility)

Key Guidelines

  1. Follow Go best practices and idiomatic patterns
  2. Maintain existing code structure and organization
  3. Use dependency injection patterns where appropriate
  4. Write unit tests for new functionality. Use table-driven unit tests when possible.
  5. Document public APIs and complex logic. Suggest changes to the docs/ folder when appropriate
  6. 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.
  7. 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.
  8. When writing unit tests, always strive for 100% code coverage where it makes sense. Try to consider edge cases as well.

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.