Skip to content

Add AGENTS.md and golangci-lint Make target#1429

Merged
andygrunwald merged 2 commits into
mainfrom
andygrunwald/agents-md-and-go-lint-target
May 5, 2026
Merged

Add AGENTS.md and golangci-lint Make target#1429
andygrunwald merged 2 commits into
mainfrom
andygrunwald/agents-md-and-go-lint-target

Conversation

@andygrunwald

Copy link
Copy Markdown
Contributor

Summary

  • Add AGENTS.md as the single orientation document for coding agents (Astro site layout, content collections, sync CLI, machine-generated files). CLAUDE.md is kept as a thin @AGENTS.md pointer so Claude Code picks up the same content without duplication.
  • Add make lint to website-admin/Makefile running a pinned golangci-lint (v2.12.1) alongside the existing staticcheck / vet targets.
  • Restore the missing trailing newline in website-admin/Makefile.

Test plan

  • cd website-admin && make lint installs golangci-lint and runs cleanly
  • cd website-admin && make staticcheck vet test still pass
  • Open AGENTS.md and CLAUDE.md in an agent session and confirm the pointer resolves

Coding agents (Claude Code, etc.) repeatedly need the same orientation
when starting work in this repo: which Make targets to use, where the
content collections live, how the Astro site relates to the Go sync CLI,
and which files are machine-generated and must not be hand-edited.

Capturing that in AGENTS.md gives agents a single, durable entry point
and removes the cost of re-discovering the layout on every session.
CLAUDE.md is kept as a thin pointer (@AGENTS.md) so Claude Code picks
up the same content without duplicating it.
We already had staticcheck and vet wired up, but golangci-lint bundles
a much broader set of analyzers and is what CI-style Go projects
typically reach for. Adding a dedicated 'make lint' target gives
contributors (and agents) a one-shot way to run the aggregated linter
locally without remembering the install incantation, and pins the
version so results are reproducible.

Also drops the missing trailing newline at EOF.
@netlify

netlify Bot commented May 5, 2026

Copy link
Copy Markdown

Deploy Preview for nifty-bardeen-5c7e53 ready!

Name Link
🔨 Latest commit 489d9f3
🔍 Latest deploy log https://app.netlify.com/projects/nifty-bardeen-5c7e53/deploys/69fa3d1679441600086a4362
😎 Deploy Preview https://deploy-preview-1429--nifty-bardeen-5c7e53.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@andygrunwald andygrunwald merged commit 52c5183 into main May 5, 2026
6 of 7 checks passed
@andygrunwald andygrunwald deleted the andygrunwald/agents-md-and-go-lint-target branch May 5, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant