From 6087d7454c1df58e2f0a176f5dd426799d2d878b Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 27 Jan 2026 22:16:22 +0100 Subject: [PATCH] docs(agents): include go tips [skip ci] --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 743eb1b04..fd243bad4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -70,6 +70,10 @@ After creation, tell the user where they can find the new worktree. - **Clean**: `mage build:clean` - Cleans build artifacts - **Format**: `mage fmt` - Format Go code before committing +**Go Tips:** +- To see source files from a dependency, or to answer questions about a dependency, run `go mod download -json MODULE` and use the returned `Dir` path to read the files. +- Use `go doc foo.Bar` or `go doc -all foo` to read documentation for packages, types, functions, etc. + -Development helpers under the `dev` namespace: - **Migration**: `mage dev:make-migration ` - Creates new database migration. If you omit ``, the command will prompt for it. - **Event**: `mage dev:make-event` - Create an event type