Skip to content

docs: add AGENTS.md with commit type guidance - #5053

Merged
escapedcat merged 1 commit into
masterfrom
docs/agents-md
Oct 13, 2026
Merged

escapedcat merged 1 commit into
masterfrom
docs/agents-md

Conversation

@escapedcat

@escapedcat escapedcat commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Description

Adds a root AGENTS.md for coding agents working in this repo. It points to .github/CONTRIBUTING.md and adds one section on choosing the conventional-commit type.

Motivation and Context

commitlint lints commit messages, so its own history should get the type right. The repo had no agent instruction file, and CONTRIBUTING.md gives the message format but not how to pick a type.

Concrete case: #5052 was first opened as fix(load) although nothing was broken; it is an install-size improvement and is now perf(load).

The file covers:

  • what each type means, including that install size counts as perf
  • that the merge queue squashes, so the pull request title becomes the commit on master
  • keeping the title, the commits and the "Types of changes" boxes on the same type

Usage examples

None; documentation only.

How Has This Been Tested?

pnpm format passes. No code changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Documentation only, so none of the boxes apply.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have verified that any documentation examples I added/changed actually work.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • For a feature/bug fix, my commits follow the test-driven flow: a failing-test commit, then the implementation.

🤖 Generated with Claude Code

Point coding agents at CONTRIBUTING.md and spell out how to choose the
conventional-commit type, since the merge queue squashes and the pull
request title becomes the commit on master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@escapedcat
escapedcat enabled auto-merge October 13, 2026 14:24
@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 4/5

[Low impact] Adds guidance document for commit message conventions.

The PR appears safe to merge, with two non-blocking clarifications needed in the commit-type guidance.

Findings

  1. P2 Commit instructions conflict ▶
  2. P2 Matching checkboxes are missing ▶

Reviews (1) · Last reviewed commit: "docs: add AGENTS.md with commit type gui..." · Reviewed by Greptile

Comment thread AGENTS.md

Choose by what the change is, whatever release it produces.

The merge queue squashes, so the pull request title becomes the commit on master. Give the title, every commit and the "Types of changes" boxes the same type, and update all three together if the type changes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Commit instructions conflict

Requiring every commit to match the pull request title conflicts with .github/CONTRIBUTING.md, which shows a test: commit followed by a feat: implementation commit. An agent following this rule would relabel the test-only commit instead of following the linked guide. Keep the title tied to the overall change and let each commit describe its own contents.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment thread AGENTS.md

Choose by what the change is, whatever release it produces.

The merge queue squashes, so the pull request title becomes the commit on master. Give the title, every commit and the "Types of changes" boxes the same type, and update all three together if the type changes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Matching checkboxes are missing

The instruction to give the “Types of changes” boxes the same type cannot be followed for perf, docs, or chore changes. .github/PULL_REQUEST_TEMPLATE.md only offers bug fix, new feature, and breaking change. Agents are therefore asked to choose a matching box that does not exist. Say to check only applicable boxes and leave them unchecked when none apply.

@escapedcat
escapedcat added this pull request to the merge queue Oct 13, 2026
Merged via the queue into master with commit fcda13d Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant