RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/phuhao00/greatestworks

Cursor rule

.cursor/rules/p.mdc

Go项目开发规则 - 遵循Go最佳实践,不使用checkout和reset命令

Cursor rules

Quality

34/100

Scores the file, not the repository.

Length

68 words

7 headings · 0 code blocks

Repository

286

— · pushed 274 days ago

Last changed

3 days ago

First indexed 3 days ago.
phuhao00/greatestworks/.cursor/rules/p.mdcRawGitHub
1---
2description: Go项目开发规则 - 遵循Go最佳实践,不使用checkout和reset命令
3globs: ["**/*.go", "**/go.mod", "**/go.sum", "**/*.yaml", "**/*.yml"]
4alwaysApply: true
5---
6 
7# Go项目开发规则
8 
9## 代码规范
10- 遵循Go官方代码规范
11- 使用gofmt格式化代码
12- 变量命名使用驼峰命名法
13- 常量使用大写字母和下划线
14- 包名使用小写字母,简短有意义
15 
16## 错误处理
17- 始终检查错误返回值
18- 使用errors.New()或fmt.Errorf()创建错误
19- 避免使用panic,除非是程序启动时的致命错误
20- 使用defer进行资源清理
21 
22## 并发编程
23- 使用goroutine处理并发任务
24- 使用channel进行goroutine间通信
25- 避免共享内存,使用通信来共享内存
26- 使用sync包进行同步控制
27 
28## 性能优化
29- 避免不必要的内存分配
30- 使用对象池复用对象
31- 合理使用缓存
32- 避免在循环中进行重复计算
33 
34 
35## 项目结构
36- 遵循标准Go项目布局
37- 按功能模块组织代码
38- 使用internal包限制内部代码访问
39- 合理使用接口和依赖注入
40 
41## 禁止使用的命令
42- 不使用git checkout命令
43- 不使用git reset命令
44- 使用git switch切换分支
45- 使用git restore恢复文件
46 

Sections

  • Go项目开发规则
  • 代码规范
  • 错误处理
  • 并发编程
  • 性能优化
  • 项目结构
  • 禁止使用的命令

What it covers

lint-format

Stack — with the evidence

go

(1.00)

docker

(1.00)

kubernetes

(0.60)

Glob targeting

  • **/*.go
  • **/go.mod
  • **/go.sum
  • **/*.yaml
  • **/*.yml

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
phuhao00
Language
—
License
—
Archived
no

All configs in this repo

Also in phuhao00/greatestworks

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
phuhao00/greatestworks.github/instructions/gw.instructions.md · 286Copilot instructionsgodocker+1testlint-formatgit67/1003 days ago
Diff against .github/instructions/gw.instructions.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126Cursor rulesgobiome+4buildlint-formatstylearch+396/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/task-context-loading.mdc · 126Cursor rulesgobiome+4archtypesdatabasedo-not+193/1003 days ago
pr-pm/prpm.cursor/rules/github-actions-testing.mdc · 121Cursor rulestypescriptnode+17setupbuildstylearch+493/1003 days ago
pr-pm/prpm.cursor/rules/creating-agents-md.mdc · 121Cursor rulestypescriptnode+16testlint-formatstylearch+792/1003 days ago
coollabsio/coolify.cursor/rules/coolify-ai-docs.mdc · 60kCursor rulesjavascriptphp+6buildteststylearch+592/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