Commit style
Conventional commits, changesets, and the PR checklist.
#Conventional commits
Format:
<type>(<scope>): <subject>
[optional body]
[optional footer: closes #nnn]Types: feat, fix, docs, refactor, test, chore, perf, ci, style.
Scope: package or area β core, react, adapters, docs, ci, etc.
Examples:
feat(adapters): add Mistral adapter with streaming
fix(react): useChat stop() races with in-flight token
docs(recipes): add cost-guarded chat
refactor(core): split controller events into sub-emitter
test(ink): cover keyboard navigation across message listSubject β€ 72 chars, imperative mood ("add", not "added"). Body wraps at 100.
#Enforcement (planned β good-first-issue available)
Today, commit-message discipline is review-time: maintainers will flag a non-conventional commit and ask you to amend. We want this automated β and wiring it up is a perfect first PR.
#Target setup
@commitlint/cli+@commitlint/config-conventionalβ validates the messagecommit-msggit hook (via husky or lefthook) β blocks invalid commits locally- CI check β
commitlintstep in.github/workflows/ci.ymlso bad commits fail the PR
#What a complete PR looks like
-
Add
commitlint.config.cjs:module.exports = { extends: ['@commitlint/config-conventional'] } -
Add devDeps at the workspace root
package.json:"@commitlint/cli": "^19.0.0", "@commitlint/config-conventional": "^19.0.0", "husky": "^9.0.0" -
Add
preparescript +commit-msghook:pnpm exec husky init echo 'pnpm exec commitlint --edit "$1"' > .husky/commit-msg -
Add CI step:
- run: pnpm exec commitlint --from=${{ github.event.pull_request.base.sha }} --to=${{ github.sha }} -
Update this page to reflect reality.
If you want to claim it, comment on issue docs(contribute): wire commitlint + husky (or open one).
#Until then
Eyeball your commit message against the types + examples above. git commit --amend is your friend.
#Changesets (for publishable packages)
If your PR changes a package that ships to npm, add a changeset:
pnpm changesetWalk through the prompts. This generates a markdown file describing the change and its semver bump. Commit it.
#PR checklist
Before marking a PR ready for review:
-
pnpm lintpasses -
pnpm testpasses - New/changed behavior has a test
- Public API changes have a docstring + doc example
- Changeset added (if a published package changed)
- Commit messages follow conventional commits
- PR description explains why, not just what
#Review cadence
- Draft PRs are fine β open early to show direction.
- Maintainers triage within 2 business days.
- Expect 1β3 review rounds. Be kind, we will too.
Explore nearby
- PeerContribute
AgentsKit is built in the open. Here's how to help β from filing an issue to shipping a new adapter.
- PeerGood first issues
Curated issues ready to grab. Pick one, comment on it to claim, and ship a PR.
- PeerLocal setup
Clone, install, and run the AgentsKit monorepo locally in under 2 minutes.