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
- Very specific: line 6
Prefer modern Go idioms - use ALL language features and standard library additions up to and including the Go version declared in go.mod.
- Very specific: line 10
Only call t.Helper() in test helper functions whose primary purpose is making assertions or failing the test.
≈ “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
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 thancontext.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.Runsubtests over table-driven tests when the per-case body is small (≤ ~5 lines) or when cases differ structurally (different setup, different assertions, branching likeif 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 growsif tt.<bool>branches, sometimes-used fields, ortt.want != nilguards, split it into individual subtests. - Group related cases of one behavior under a single top-level
Test<Symbol>function witht.Run("case name", ...)subtests, not as separateTest<Symbol>_<case>functions. For example, preferTestDerivePhasewitht.Run("from combined status", ...)andt.Run("nil detail defaults to Created/None", ...)subtests over standaloneTestDerivePhase_FromCombinedStatusandTestDerivePhase_Nilfunctions. 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.
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.

