Copilot instructions
.github/instructions/go.instructions.mdCopilot instructions
Quality
77/100
Scores the file, not the repository.Length
301 words
19 headings · 8 code blocksRepository
19
— · pushed 151 days agoLast changed
3 days ago
First indexed 3 days ago.12345# Go Coding Style67> This file extends [common/coding-style.md](../common/coding-style.md) with Go specific content.89## Formatting1011- **gofmt** and **goimports** are mandatory — no style debates1213## Design Principles1415- Accept interfaces, return structs16- Keep interfaces small (1-3 methods)1718## Error Handling1920Always wrap errors with context:2122```go23if err != nil {24 return fmt.Errorf("failed to create user: %w", err)25}26```2728## Reference2930See skill: `golang-patterns` for comprehensive Go idioms and patterns.313233# Go Patterns3435> This file extends [common/patterns.md](../common/patterns.md) with Go specific content.3637## Functional Options3839```go40type Option func(*Server)4142func WithPort(port int) Option {43 return func(s *Server) { s.port = port }44}4546func NewServer(opts ...Option) *Server {47 s := &Server{port: 8080}48 for _, opt := range opts {49 opt(s)50 }51 return s52}53```5455## Small Interfaces5657Define interfaces where they are used, not where they are implemented.5859## Dependency Injection6061Use constructor functions to inject dependencies:6263```go64func NewUserService(repo UserRepository, logger Logger) *UserService {65 return &UserService{repo: repo, logger: logger}66}67```6869## Reference7071See skill: `golang-patterns` for comprehensive Go patterns including concurrency, error handling, and package organization.727374# Go Security7576> This file extends [common/security.md](../common/security.md) with Go specific content.7778## Secret Management7980```go81apiKey := os.Getenv("OPENAI_API_KEY")82if apiKey == "" {83 log.Fatal("OPENAI_API_KEY not configured")84}85```8687## Security Scanning8889- Use **gosec** for static security analysis:90```bash91 gosec ./...92```9394## Context & Timeouts9596Always use `context.Context` for timeout control:9798```go99ctx, cancel := context.WithTimeout(ctx, 5*time.Second)100defer cancel()101```102103104# Go Testing105106> This file extends [common/testing.md](../common/testing.md) with Go specific content.107108## Framework109110Use the standard `go test` with **table-driven tests**.111112## Race Detection113114Always run with the `-race` flag:115116```bash117go test -race ./...118```119120## Coverage121122```bash123go test -cover ./...124```125126## Reference127128See skill: `golang-testing` for detailed Go testing patterns and helpers.
Also in j7-dev/everything-github-copilot
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| j7-dev/everything-github-copilot.codex/AGENTS.md · 19 | AGENTS.md | securityagent-behaviour | 59/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/instructions/python.instructions.md · 19 | Copilot instructions | testlint-formatstyletypes+2 | 85/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/instructions/swift.instructions.md · 19 | Copilot instructions | testlint-formatstyletypes+2 | 81/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/instructions/typescript.instructions.md · 19 | Copilot instructions | testlint-formatstyletypes+4 | 62/100 | 3 days ago | |
| j7-dev/everything-github-copilotAGENTS.md · 19 | AGENTS.md | buildteststylearch+4 | 77/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/copilot-instructions.md · 19 | Copilot instructions | buildtestlint-formatstyle+6 | 76/100 | 3 days ago | |
| j7-dev/everything-github-copilotCLAUDE.md · 19 | CLAUDE.md | testarchagent-behaviour | 81/100 | 3 days ago | |
| j7-dev/everything-github-copilotskills/react-best-practices/AGENTS.md · 19 | AGENTS.md | buildlint-formatstylearch+8 | 64/100 | 3 days ago |
Diff against .codex/AGENTS.md Diff against .github/instructions/python.instructions.md Diff against .github/instructions/swift.instructions.md Diff against .github/instructions/typescript.instructions.md Diff against AGENTS.md Diff against .github/copilot-instructions.md Diff against CLAUDE.md Diff against skills/react-best-practices/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 3 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 3 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 24 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 3 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 3 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 3 days ago |
