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

gh-elm

Copilot instructions0 starsChanged 2 months agoMITView on GitHub

This is a Go repository that builds a GitHub CLI extension for Enterprise Live Migrations (ELM) that customers will use on GHES appliances.

The file

We split this copilot-instructions.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Prefer modern Go idioms - use ALL language features and standard library additions up to and including the Go version declared in go.mod.

    line 6
  2. Very specific:

    Only call t.Helper() in test helper functions whose primary purpose is making assertions or failing the test.

    line 10

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

This is a Go repository that builds a GitHub CLI extension for Enterprise Live Migrations (ELM) that customers will use on GHES appliances.

Code Standards

  • Go code should be formatted with go fmt
  • Go code should match standards set by golangci-lint, as configured in .golangci.toml
  • Prefer modern Go idioms - use ALL language features and standard library additions up to and including the Go version declared in go.mod. Never use outdated patterns when a modern alternative is available.
  • context.Context should always be the first argument to functions that take it
  • Tests should make use of the test context t.Context() rather than context.Background()
  • Tests should make use of testify/require and testify/assert libraries for more legible tests.
  • Only call t.Helper() in test helper functions whose primary purpose is making assertions or failing the test; do not use it for setup/factory helpers.
  • Prefer individual t.Run subtests over table-driven tests when the per-case body is small (≤ ~5 lines) or when cases differ structurally (different setup, different assertions, branching like if tt.shouldError, or struct fields used by only some rows). Reach for a table only when the loop body is non-trivial and identical across cases, the cases form a true input→output matrix (parsers, validators, conversions), or the case list is exhaustive over an enum/set. If a table grows if tt.<bool> branches, sometimes-used fields, or tt.want != nil guards, split it into individual subtests.
  • Group related cases of one behavior under a single top-level Test<Symbol> function with t.Run("case name", ...) subtests, not as separate Test<Symbol>_<case> functions. For example, prefer TestDerivePhase with t.Run("from combined status", ...) and t.Run("nil detail defaults to Created/None", ...) subtests over standalone TestDerivePhase_FromCombinedStatus and TestDerivePhase_Nil functions. Subtests give a clearer test-runner hierarchy, share the parent name in failure traces, and let callers run a single case via -run TestX/case_name.

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.