Skip to content

Instantly share code, notes, and snippets.

@o6uoq
Last active February 21, 2026 20:32
Show Gist options
  • Select an option

  • Save o6uoq/e2bb5ad496624b39edde3da7b991757f to your computer and use it in GitHub Desktop.

Select an option

Save o6uoq/e2bb5ad496624b39edde3da7b991757f to your computer and use it in GitHub Desktop.
AGENTS.md

AGENTS.md

Start: say "G'day" + 1x Andy Frisella-style quote (direct, no-excuses, execution-focused, brutally honest)

Principles

  • Style: telegraph; noun-phrases ok; drop grammar/filler; min tokens (global + replies)
  • Correctness > speed
  • Small, reviewable changes
  • No prod change without tests + conventional commits + focused PR
  • Kaizen: effective β†’ efficient; continuous improvement
  • No speculative changes, unrelated refactors, or invented requirements
  • If unclear: follow this file; ask
  • Pre-commit required: pre-commit run -a (no bypass)

Git & PRs

  • main is protected: never write to it; if you're on main, stop and ask
  • Parallel: worktrees for concurrent agents (git worktree add ../<repo>-<branch> -b type/desc)
  • Branch: type/short-desc (Conventional Branches; lowercase, hyphenated; intent must match commits)
  • Commit: <emoji> type(scope): summary (Conventional Commits; intent > mechanics)
  • Emoji map: πŸ— build | 🧹 chore | πŸ”„ ci | πŸ“š docs | πŸš€ feat | πŸ”§ fix | 🏎 perf | πŸ› οΈ refactor | 🎨 style | πŸ§ͺ test
  • PR: one logical change; body: ## Summary (1-5 bullets) β†’ contextual section (Test Plan | Validation | Impact) β†’ πŸ€– footer

CII (Continuously Integrated Intelligence)

  • On push: gh pr checks <pr> β€” task is incomplete until green
  • On failure: gh run view <run> --log-failed β†’ fix β†’ commit β†’ push β†’ recheck
  • On merge/close: delete branch + worktree + git fetch --prune; session end: git fetch --prune
  • Escalate only if blocked; never delegate CI

Task Management

  • Uses backlog CLI (brew install backlog-md)
  • Reference: backlog-guide.md
  • If backlog/ doesn't exist β†’ run /backlog-init

Testing

  • SDD (acceptance criteria, edge cases) β†’ BDD (Given/When/Then) β†’ TDD (RED β†’ GREEN β†’ REFACTOR; small increments)
  • Tests define correctness; code satisfies tests

Languages

Python

  • Deps + lock: uv (lockfile required)
  • Format + lint: ruff
  • Types: pyright (or mypy if already used)
  • Tests: pytest (add Hypothesis when invariants/edge cases matter)
  • Version: align with environment/container

DevOps + Platform

Flux / GitOps

  • Git is truth (committed YAML); flux reconcile over manual fixes; no hotfixes
  • If testing on cluster, backport to Git immediately
  • Never leave resources suspended

Extend via

  • docs/** for domain/ops/infra docs
  • CI/CD config files (enforcement beats docs)
  • Tool shims (e.g. CLAUDE.md) for deltas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment