Skip to content

Instantly share code, notes, and snippets.

@XiangpengHao
Last active January 22, 2026 18:08
Show Gist options
  • Select an option

  • Save XiangpengHao/ff665b1b79f083099b9b24ccde3d0531 to your computer and use it in GitHub Desktop.

Select an option

Save XiangpengHao/ff665b1b79f083099b9b24ccde3d0531 to your computer and use it in GitHub Desktop.
AGENTS.md
# Engineering principles
1. Think about minimal changes to complete the task.
2. Always cargo check after coding.
3. Consider refactoring when a function needs more than 3 args.
4. When fixing a bug, think from first principles: why it happened, what is the root cause, what is the best place to fix it.
# Agent guides
1. Ask if you think one instruction is ambiguous.
2. Ask if you're unsure which alternative is better.
3. Always run cargo check after coding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment