agentleFS
ArangoGutierrezArangoGutierrez/claude-toolkit/.cursor/rules/go.mdc

claude-toolkit / rules

Cursor rule4 starsChanged 3 months agoMITView on GitHub

Go standards for K8s projects

We split this go.mdc into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run all three before claiming implementation is complete.

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
go.mdc
---
description: Go standards for K8s projects
globs: ["**/*.go"]
---
# Go
chain:gofmt→vet→golangci-lint→test
doc:≤80ch|pkg-comment req for public
pattern:accept-interface,return-struct|fmt.Errorf("%w",err)|ctx 1st|defer Close()
naming:Export=Pascal|unexport=camel|acronym-consistent(URL/Url)
error:never _=f()|wrap+ctx|sentinel sparingly
concurrency:mutex/chan for shared|goroutine exit strategy|ctx cancel
test:table-driven|t.Parallel() safe|*_test.go
k8s:graceful(SIGTERM/INT)|json-log|probes|no-hardcoded-secrets

## Security Scans (verify phase)
- `govulncheck ./...` — Go vulnerability check
- `gosec ./...` — Go security linter
- `trivy fs .` — filesystem/dependency vulnerability scan
Run all three before claiming implementation is complete.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.