Skip to content

Commit ffd5e06

Browse files
silverwindclaude
andauthored
docs(agents): update AGENTS.md (#37684)
Add two rules to `AGENTS.md` for recurring issues. Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
1 parent 79f7062 commit ffd5e06

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
- Use Conventional Commits format for commit messages and PR titles (e.g. `type(scope): subject`)
1111
- Never force-push, amend, or squash unless asked. Use new commits and normal push for pull request updates
1212
- Preserve existing code comments, do not remove or rewrite comments that are still relevant
13+
- Keep comments short, prefer same-line, explain why, never narrate code
14+
- Prefer unit tests over integration tests when logic is testable in isolation
15+
- Aim for sub-2s local runtime for integration and e2e tests
1316
- In TypeScript, use `!` (non-null assertion) instead of `?.`/`??` when a value is known to always exist
1417
- For CSS layout, prefer `flex-*` helpers over per-child `tw-ml-*` / `tw-mr-*` margins; fall back to `tw-*` utilities when specificity requires `!important`
1518
- Include authorship attribution in issue and pull request comments

0 commit comments

Comments
 (0)