Skip to content

chore(agents): update AGENTS.md for Zig project#51

Merged
vmvarela merged 2 commits intomasterfrom
chore/update-agents-precommit-zig
Mar 14, 2026
Merged

chore(agents): update AGENTS.md for Zig project#51
vmvarela merged 2 commits intomasterfrom
chore/update-agents-precommit-zig

Conversation

@vmvarela
Copy link
Owner

Summary

  • Rewrites AGENTS.md to reflect this is a Zig project, not Go
  • Replaces the Go pre-commit checklist with the Zig equivalent
  • Adds a proper skills table and conventions section

Changes

Section Before After
Skills Prose descriptions of 3 skills Table mapping context → skill for all 4 skills
Pre-commit `go test -race` + `make golangci-lint` `zig build test` + `ziglint src build.zig`
Conventions Missing Branch names, commit style, PR rules, label conventions

- Z026: replace empty catch {} with explicit error logging via std.log.err
- Z023: move Allocator and comptime parameters to first position in all
  affected functions (inferTypes, parseHeader, createTable, prepareInsert,
  execQuery, fatal, csvReader, csvReaderWithDelimiter)
- Z032: rename SQLITE_STATIC → sqlite_static (acronym casing)
- Z006: rename INFERENCE_BUFFER_SIZE → inference_buffer_size (snake_case)
- Z004: use .init syntax for DebugAllocator instead of T{} (also fixes Z011
  deprecation of GeneralPurposeAllocator)
- Z024: shorten decorator comment lines; break long fatal() call-sites into
  multi-line; split b.option() calls in build.zig; add .ziglint.zon with
  max_length=200 to accommodate shell multiline strings in build.zig
- Rewrite skills table with all 4 applicable skills (zig-best-practices,
  github-scrum, pragmatic-docs, methodical-programming)
- Replace Go pre-commit commands with Zig equivalents:
  'zig build test' and 'ziglint src build.zig'
- Add Conventions section with branch naming, commit style, PR rules
  and label/status-label guidelines
@github-actions github-actions bot added type:feature New functionality type:chore Maintenance, refactoring, tooling type:docs Documentation only labels Mar 14, 2026
@vmvarela vmvarela merged commit 10e84b7 into master Mar 14, 2026
6 checks passed
@vmvarela vmvarela deleted the chore/update-agents-precommit-zig branch March 14, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:chore Maintenance, refactoring, tooling type:docs Documentation only type:feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant