Back to list
axone-protocol

conventional-commits

by axone-protocol

📜 Smart contracts for the Axone protocol

123🍴 19📅 Jan 23, 2026

SKILL.md


name: conventional-commits description: Guide for writing conventional commit messages. Use when committing changes, writing commit messages, or reviewing commit history. license: BSD-3-Clause metadata: author: axone.xyz version: "1.0"

Conventional Commits

This skill helps you write commit messages following the Conventional Commits specification, adapted to Axone protocol preferences.

When to use this skill

Use this skill when you need to:

  • Write commit messages for changes
  • Review or improve commit messages
  • Structure commits for a pull request

Commit Message Format

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

One line only. No body. No footer (except for breaking changes).

Subject Line Rules

  • Imperative mood, present tense
  • Short, dense, unambiguous
  • Describes the intent, not the implementation
  • One line only
  • No capitalization at start
  • No period at end

Verb Selection

⚠️ Avoid weak verbs: add, remove, change, update, modify

Use precise, action-oriented verbs:

VerbUse When
enforceAdding constraints or rules
introduceBringing in new concepts/APIs
implementBuilding out functionality
preventBlocking undesired behavior
fixCorrecting bugs
refactorRestructuring without behavior change
clarifyImproving readability/naming
alignMaking consistent with standards
tightenStrengthening validation/constraints
hardenSecurity or robustness improvements
validateInput/state verification
handleManaging edge cases
supportEnabling new use cases
ensureGuaranteeing invariants
documentDocumentation work

Type

TypeDescriptionTriggers
featNew featureMinor version bump
fixBug fixPatch version bump
docsDocumentation onlyNo release
styleFormatting, whitespaceNo release
refactorCode restructuringNo release
perfPerformance improvementPatch version bump
testAdding/updating testsNo release
buildBuild system, dependenciesNo release
ciCI/CD configurationNo release
choreMaintenance tasksNo release

Scope

  • Mandatory when it adds clarity
  • Short, meaningful, domain or component oriented
  • Use contract names without axone- prefix: gov, logic
  • Other examples: workflow, dependabot, README, make, deps
  • If unsure, omit it

Examples

See examples for comprehensive good and bad examples.

Quick reference:

feat(gov): introduce quadratic voting mechanism
fix(handlers): prevent overflow in vote counting
refactor(state): clarify storage key naming
test(gov): validate error paths for unauthorized access
build(deps): enforce abstract-sdk 0.26.1

Granularity

Rule: One commit = one intention

Instead of...Prefer...
One big mixed commitMultiple focused commits
feat: implement X and fix YTwo separate commits
Tests bundled with featureSeparate test: commit
Build changes with featureSeparate build: commit

What to Avoid

  • ❌ Generic messages hiding what changed
  • ❌ Explanations or rationale in the message
  • ❌ Marketing language or inflated wording
  • ❌ Multiple intentions in one commit
  • ❌ Vague subjects like "improve", "update", "fix issue"

Breaking Changes

Use ! after type/scope:

feat(msg)!: restructure ExecuteMsg variants
refactor(api)!: enforce stricter validation schema

Commit Linting

Commits are validated using commitlint. Ensuring lint passes is mandatory.

Validate locally:

npm i -g @commitlint/cli @commitlint/config-conventional
echo "feat(gov): introduce voting mechanism" | commitlint --extends @commitlint/config-conventional

Quick Checklist

Before committing, verify:

  • Uses a strong, precise verb
  • Subject describes intent clearly
  • Scope is present if it adds clarity
  • One intention per commit
  • No generic or vague wording
  • Commit message passes linting

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon