Commit rules
agentlet-core enforces the Conventional Commits specification using commitlint and husky.
Format
Section titled “Format”<type>(<scope>): <description>
[optional body]
[optional footer(s)]Required types
Section titled “Required types”| Type | Meaning |
|---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation changes |
style |
Code style changes, formatting, missing semicolons |
refactor |
Code refactoring without changing functionality |
perf |
Performance improvements |
test |
Adding or updating tests |
build |
Build system changes, webpack, npm scripts |
ci |
CI/CD configuration changes, GitHub Actions |
chore |
Maintenance tasks, updating dependencies |
revert |
Reverting previous commits |
disable |
Disabling features or functionality |
simplify |
Simplifying code or architecture |
- Use lowercase for the subject line.
- Do not end the subject with a period.
- Keep the header under 72 characters.
- Use present tense: “add”, not “added”.
- Use imperative mood: “move cursor to…”, not “moves cursor to…”.
Examples
Section titled “Examples”feat: add table extraction API for agentletsfix: resolve DOM manipulation issue in form fillerdocs: update API documentation for table extractorstyle: improve CSS formatting in panel componentrefactor: use CLI parameters for plop instead of file modificationdisable: turn off Playwright video recordingCommits are automatically validated via husky git hooks. Invalid commits are rejected.
Other development rules
Section titled “Other development rules”- Never commit or push if tests fail locally; always test first before any git-related action.
- Every new file under
src/is written in TypeScript. Any existing.jsfile undersrc/that a change touches, and that is under 300 lines, is converted to.tsin the same change. - No
any. ESLint rejects explicitanyin.tsfiles; useunknown, or a precise union, with a one-line comment for genuinely dynamic values. npm run typecheckmust pass before any commit, alongsidenpm test,npm run build, andnpm run lint.
Source: agentlet-core CLAUDE.md, sections “Commit message format” and “Development rules”.