fiber/AGENTS.md
2025-05-23 17:40:12 +02:00

1.1 KiB
Raw Permalink Blame History

AGENTS.md

Agent Instructions

Note for the AI agent: Before running the startup script, check with go list -m -mod=readonly all whether the dependencies already exist. If it exists, skip fetching modules; otherwise proceed. This dependency-check logic is for the agents decision-making and is not part of the user-facing script.


Startup script

  • Fetch dependencies:

    go mod tidy && go mod download && go mod vendor
    
  • Install CLI tools referenced in Makefile:

    go install gotest.tools/gotestsum@latest                 # test runner
    go install golang.org/x/vuln/cmd/govulncheck@latest      # vulnerability scanner
    go install mvdan.cc/gofumpt@latest                       # code formatter
    go install github.com/tinylib/msgp@latest                # msgp codegen
    go install github.com/vburenin/ifacemaker@975a95966976eeb2d4365a7fb236e274c54da64c  # interface impls
    go install github.com/dkorunic/betteralign/cmd/betteralign@latest  # struct alignment
    go mod tidy                                              # clean up go.mod & go.sum