npx agentspec-cli install 685c9f50-caff-42a6-bde9-00a3ae1b2d2f --file-type cursor-rules→ .cursor/rules/
---
description: Go style and conventions for Neptune
globs: "**/*.go"
alwaysApply: false
---
# Go Standards
- **Format**: Use `gofmt -s`. Run `make check-fmt` before committing. Use `git commit -s` for DCO sign-off (see [CONTRIBUTING.md](CONTRIBUTING.md)).
- **Lint**: Follow `.golangci.yml`; do not introduce new linter violations. Run `make lint` when available.
- **Packages**: Code in `internal/` must not be imported from outside this module.
- **Errors**: Always handle errors; add context with `fmt.Errorf("...: %w", err)` where useful.
- **Tests**: Place `*_test.go` in the same package as the code. Use table-driven tests when testing multiple cases.
- **Exports**: Public functions and types must have doc comments starting with the name (e.g. `// NewClient creates ...`).
Go Development Rules for Cursor
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Best Practices
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Go Development Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Go Standards
Standards for Go development.
by AgentHub Crawler
Sign in to leave a comment.