]> git.giacomolli.uk - onechat/commitdiff
Add Nix-built Go program and agent rules
authorAnderson A. Giacomolli <redacted>
Fri, 6 Nov 2026 12:50:06 +0000 (09:50 -0300)
committerAnderson A. Giacomolli <redacted>
Fri, 6 Nov 2026 12:50:06 +0000 (09:50 -0300)
OneChat is a Go program that prints its name. A Nix flake pins the Go
toolchain and every tool, builds the program with nix build, and runs
the binary in an install check. The development shell supplies the
formatters, the linters, and a pinned Vim, and it turns on the commit
message hook.

AGENTS.md holds the rules that apply to every task, such as the Nix
environment, the current-state-only rule, and the rule against revealing
infrastructure. The skills in .agents/skills hold the procedures for Go
code, documentation and comments, checks, and commits, so an agent loads
each one only for the task that needs it.

bin/format and bin/check cover every Go, Nix, RST, and Markdown file
that Git knows about. bin/reflow wraps comment paragraphs the same way
on every machine because it does not use a personal Vim configuration.
CLAUDE.md and .claude/skills are links to the same files, so Claude Code
reads one copy of the rules and skills.


No differences found