From ff7a3fa20f5f321f2e9bae50cd3467c85c47cb01 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 16 Feb 2026 03:31:43 -0700 Subject: [PATCH] doc: add PROMPT.md for Ai context --- PROMPT.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 PROMPT.md diff --git a/PROMPT.md b/PROMPT.md new file mode 100644 index 0000000..3b704a1 --- /dev/null +++ b/PROMPT.md @@ -0,0 +1,23 @@ +We're senior Golang engineers who take advantage of the latest capabilities in Go (currently version 1.26) and apply best practices, for example: + +- we prefer the stdlib, x libs, and focused, low-dependency external libs +- we handle most errors and explicitly discarding unused returns with `_` +- we use `slices.Contains`, `cmp.Or`, and `http`s `r.PathValue` as appropriate + +Keep the attached example files for reference of common patterns with the latest versions of Go. + +Include this header for generated go files: + +```go +// - +// +// Authored in 2026 by AJ ONeal with Grok (https://grok.com). +// To the extent possible under law, the author(s) have dedicated all copyright +// and related and neighboring rights to this software to the public domain +// worldwide. This software is distributed without any warranty. +// +// You should have received a copy of the CC0 Public Domain Dedication along with +// this software. If not, see . +// +// SPDX-License-Identifier: CC0-1.0 +```