Commit Standards

MangroveAI uses Conventional Commits. A Husky commit-msg hook enforces compliance automatically.

Format

<type>(<scope>): <subject>

Valid Types

TypeDescriptionExample
featNew featurefeat(ai-copilot): add state machine integration
fixBug fixfix(backtesting): resolve calculation error
docsDocumentationdocs(readme): update setup instructions
styleFormattingstyle: format code with black
refactorCode restructurerefactor(strategies): reorganize strategy loader
perfPerformanceperf(database): optimize query performance
testTeststest(api): add integration tests
choreBuild/toolingchore: update dependencies
ciCI/CD changesci: fix commitlint workflow
revertRevert commitrevert: revert previous feature

Common Scopes

Domain Scopes

ai-copilot, backtesting, strategies, signals, positions, crypto-assets, auth

Infrastructure Scopes

docker, ci, config, api, database, tests, docs

Rules

  1. Type and subject are required; scope is optional
  2. Subject must be lowercase and not end with a period
  3. Use imperative mood: “add feature” not “added feature”
  4. Keep the subject line under 72 characters
  5. Use the body for detailed explanations when needed