doc: add PROMPT.md for Ai context

This commit is contained in:
AJ ONeal 2026-02-16 03:31:43 -07:00
parent 614af86976
commit ff7a3fa20f
No known key found for this signature in database

23
PROMPT.md Normal file
View File

@ -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
// <name of thing> - <one line description>
//
// Authored in 2026 by AJ ONeal <aj@therootcompany.com> 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 <https://creativecommons.org/publicdomain/zero/1.0/>.
//
// SPDX-License-Identifier: CC0-1.0
```