RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Copilot instructions/j7-dev/everything-github-copilot

Copilot instructions

.github/instructions/go.instructions.md
Copilot instructions

Quality

77/100

Scores the file, not the repository.

Length

301 words

19 headings · 8 code blocks

Repository

19

— · pushed 151 days ago

Last changed

3 days ago

First indexed 3 days ago.
j7-dev/everything-github-copilot/.github/instructions/go.instructions.mdRawGitHub
1---
2applyTo: "**/*.go"
3---
4 
5# Go Coding Style
6 
7> This file extends [common/coding-style.md](../common/coding-style.md) with Go specific content.
8 
9## Formatting
10 
11- **gofmt** and **goimports** are mandatory — no style debates
12 
13## Design Principles
14 
15- Accept interfaces, return structs
16- Keep interfaces small (1-3 methods)
17 
18## Error Handling
19 
20Always wrap errors with context:
21 
22```go
23if err != nil {
24 return fmt.Errorf("failed to create user: %w", err)
25}
26```
27 
28## Reference
29 
30See skill: `golang-patterns` for comprehensive Go idioms and patterns.
31 
32 
33# Go Patterns
34 
35> This file extends [common/patterns.md](../common/patterns.md) with Go specific content.
36 
37## Functional Options
38 
39```go
40type Option func(*Server)
41 
42func WithPort(port int) Option {
43 return func(s *Server) { s.port = port }
44}
45 
46func NewServer(opts ...Option) *Server {
47 s := &Server{port: 8080}
48 for _, opt := range opts {
49 opt(s)
50 }
51 return s
52}
53```
54 
55## Small Interfaces
56 
57Define interfaces where they are used, not where they are implemented.
58 
59## Dependency Injection
60 
61Use constructor functions to inject dependencies:
62 
63```go
64func NewUserService(repo UserRepository, logger Logger) *UserService {
65 return &UserService{repo: repo, logger: logger}
66}
67```
68 
69## Reference
70 
71See skill: `golang-patterns` for comprehensive Go patterns including concurrency, error handling, and package organization.
72 
73 
74# Go Security
75 
76> This file extends [common/security.md](../common/security.md) with Go specific content.
77 
78## Secret Management
79 
80```go
81apiKey := os.Getenv("OPENAI_API_KEY")
82if apiKey == "" {
83 log.Fatal("OPENAI_API_KEY not configured")
84}
85```
86 
87## Security Scanning
88 
89- Use **gosec** for static security analysis:
90```bash
91 gosec ./...
92```
93 
94## Context & Timeouts
95 
96Always use `context.Context` for timeout control:
97 
98```go
99ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
100defer cancel()
101```
102 
103 
104# Go Testing
105 
106> This file extends [common/testing.md](../common/testing.md) with Go specific content.
107 
108## Framework
109 
110Use the standard `go test` with **table-driven tests**.
111 
112## Race Detection
113 
114Always run with the `-race` flag:
115 
116```bash
117go test -race ./...
118```
119 
120## Coverage
121 
122```bash
123go test -cover ./...
124```
125 
126## Reference
127 
128See skill: `golang-testing` for detailed Go testing patterns and helpers.

Commands it names

  • go test -race ./...
  • go test -cover ./...
  • go test

Sections

  • Go Coding Style
  • Formatting
  • Design Principles
  • Error Handling
  • Reference
  • Go Patterns
  • Functional Options
  • Small Interfaces
  • Dependency Injection
  • Reference
  • Go Security
  • Secret Management
  • Security Scanning
  • Context & Timeouts
  • Go Testing
  • Framework
  • Race Detection
  • Coverage
  • Reference

What it covers

testlint-formatcode-styletesting-strategysecurity

Stack — with the evidence

javascript

(1.00)

eslint

(1.00)

node

(0.70)

typescript

(0.60)

github-actions

(0.60)

Glob targeting

  • **/*.go

Format

Copilot instructions

Two layers: one always-on repo file, plus optional glob-scoped instruction files. Lives under .github/ rather than the repo root, which is the tell that it is aimed at the GitHub platform surface as much as the editor.

What the corpus says about it

Repository

Owner
j7-dev
Language
—
License
—
Archived
no

All configs in this repo

Also in j7-dev/everything-github-copilot

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
j7-dev/everything-github-copilot.codex/AGENTS.md · 19AGENTS.mdjavascripteslint+3securityagent-behaviour59/1003 days ago
j7-dev/everything-github-copilot.github/instructions/python.instructions.md · 19Copilot instructionsjavascripteslint+3testlint-formatstyletypes+285/1003 days ago
j7-dev/everything-github-copilot.github/instructions/swift.instructions.md · 19Copilot instructionsjavascripteslint+3testlint-formatstyletypes+281/1003 days ago
j7-dev/everything-github-copilot.github/instructions/typescript.instructions.md · 19Copilot instructionsjavascripteslint+3testlint-formatstyletypes+462/1003 days ago
j7-dev/everything-github-copilotAGENTS.md · 19AGENTS.mdjavascripteslint+3buildteststylearch+477/1003 days ago
j7-dev/everything-github-copilot.github/copilot-instructions.md · 19Copilot instructionsjavascripteslint+3buildtestlint-formatstyle+676/1003 days ago
j7-dev/everything-github-copilotCLAUDE.md · 19CLAUDE.mdjavascripteslint+3testarchagent-behaviour81/1003 days ago
j7-dev/everything-github-copilotskills/react-best-practices/AGENTS.md · 19AGENTS.mdjavascripteslint+3buildlint-formatstylearch+864/1003 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.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63Copilot instructionstypescriptreact+7buildlint-formatstylearch+4100/1003 days ago
louislam/uptime-kuma.github/copilot-instructions.md · 90kCopilot instructionstypescriptjavascript+10setupbuildtestlint-format+9100/1003 days ago
HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17Copilot instructionsnodejavascriptsetupbuildtestlint-format+7100/1003 days ago
JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31kCopilot instructionstypescriptnode+7buildlint-formatstylearch+397/1002 days ago
bagisto/bagisto.github/copilot-instructions.md · 28kCopilot instructionsphplaravel+8setupbuildteststyle+597/1003 days ago
darkmatter/nixmac.github/copilot-instructions.md · 24Copilot instructionstypescriptrust+14setupbuildtestlint-format+896/1003 days ago
nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32Copilot instructionstypescriptnode+8setupbuildtestlint-format+1196/1003 days ago
thangaram611/second-brain.github/copilot-instructions.md · 0Copilot instructionstypescriptnode+12setupteststylearch+496/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack