Files
nix/modules/home/programs/terminal/pi/config/AGENTS.md
Evan Reichard ea794a6772 feat(pi): add address-gh-review skill and enforce title case comments
- Add new address-gh-review skill with SKILL.md and gh_review.sh script
  for fetching and addressing unresolved GitHub PR review comments
- Update AGENTS.md comment style to require Title Case for block titles
2026-04-16 10:01:55 -04:00

1.9 KiB

AI Agent Guidelines

Important Rules

  1. Timeout for bash tool: The bash tool MUST have a timeout specified. Without a timeout, the tool will hang indefinitely and cause the task to fail.

  2. File writing: Do NOT use cat with heredocs to write files. Use the write tool instead (or edit for modifications).

Example of Correct Usage

Incorrect (will hang):

bash(command="some long-running command")

Correct (with timeout):

bash(command="some command", timeout=30)

Incorrect (file writing):

bash(command="cat > file.txt << 'EOF'\ncontent\nEOF")

Correct (file writing):

write(path="file.txt", content="content")

Principles

  1. KISS / YAGNI - Keep solutions simple and straightforward. Don't introduce abstractions, generics, or indirection unless there is a concrete, immediate need. Prefer obvious code over clever code.

  2. Maintain AGENTS.md - If the project has an AGENTS.md, keep it up to date as conventions or architecture evolve. However, follow the BLUF (Bottom Line Up Front) principle: keep it concise, actionable, and context-size conscious. Don't overload it with information that belongs in code comments or external docs.

Style

Comment Style

A logical "block" of code (doesn't have to be a scope, but a cohesive group of statements responsible for something) should have a comment above it with a short "title". The title must be in Title Case. For example:

// Map Component Results
for _, comp := range components {
    results[comp.Name] = comp.Result
}

If the block is more complicated or non-obvious, explain why it does what it does after the title:

// Map Component Results - This is needed because downstream consumers
// expect a name-keyed lookup. Without it, the renderer would fall back
// to O(n) scans on every frame.
for _, comp := range components {
    results[comp.Name] = comp.Result
}