How do you create AI-based commit message with scope and action in Cursor AI?

CK CK 3788 
Created at  
805 0 0

Automated commit messages generated from diffs can be helpful because they provide a quick and concise summary of the changes made, saving developers time and effort by automatically describing the modifications. This improves commit history readability and facilitates easier code review by providing a preliminary understanding of the changes without needing to delve directly into the code. Furthermore, consistent and informative commit messages improve project maintainability, enabling better tracking of code evolution and easier debugging by providing context to the changes.
 

To ensure clear and comprehensive commit messages, simply create a .cursorrules file and populate it with relevant information to guide your commit writing. This approach streamlines the commit process by providing a consistent framework for crafting informative and easy-to-understand messages.

 

{
	"$schema": "https://raw.githubusercontent.com/getcursor/cursor/main/cursor.schema.json",
	"commitMessage": {
		"template": "{type}{scope}{colon} {description}",
		"types": [
			"create",
			"add",
			"update",
			"delete",
			"remove",
			"implement",
			"refactor",
			"docs",
			"test",
			"style",
			"ci",
			"perf",
			"fix",
			"chore",
			"build",
			"revert",
			"merge"
		],
		"allowBullets": false,
		"prefixBullet": "",
		"colon": ":",
		"subjectPatternError": "Subject must start with a valid action, scope in parentheses, colon, and contain no more than 10 words total. Scopes must be separated by commas. Use lowercase letters only. The commit message must be based on the new update or change.",
		"maxWords": 10,
		"scopeSeparator": ",",
		"additionalTemplates": [
			"{type}({scope}): {description}"
		],
		"descriptionPattern": "^[A-Za-z0-9 ,\\-()]+$",
		"mergeRules": {
			"feature/*": {
				"template": "merge(feature): Merge feature branch {branch}",
				"descriptionPattern": "^Merge feature branch [A-Za-z0-9\\-_/]+$"
			},
			"bugfix/*": {
				"template": "merge(bugfix): Merge bugfix branch {branch}",
				"descriptionPattern": "^Merge bugfix branch [A-Za-z0-9\\-_/]+$"
			},
			"hotfix/*": {
				"template": "merge(hotfix): Merge hotfix branch {branch}",
				"descriptionPattern": "^Merge hotfix branch [A-Za-z0-9\\-_/]+$"
			},
			"release/*": {
				"template": "merge(release): Merge release branch {branch}",
				"descriptionPattern": "^Merge release branch [A-Za-z0-9\\-_/]+$"
			},
			"*": {
				"template": "merge: Merge branch {branch}",
				"descriptionPattern": "^Merge branch [A-Za-z0-9\\-_/]+$"
			}
		}
	}
}


 

Tags AI-based Commit Message Automated Commit Message Cursor AI Facebook X
Comments 0
Similar posts
  1. Kiro versus Cursor AI - Spec-Driven? or Chat-Driven?
    403
  1. Why AI-DLC is the New Paradigm for Development?
    332
  2. Autonomous Vehicle Machine Learning (AV ML): An Architectural Review
    408
  3. AI-based workflow innovation - it's not just an optimizing cost/process but also a matter of survival!
    391
  4. Cloud-Based AI Architecture Proposals for US Auto Finance Industry
    568
  5. Netflix's Recommendation System
    419
  6. Is PyTorch Dead? Deep Learning's Enduring Role Beyond LLMs & Essential Skills
    695
  7. Coding Revolution with Claude Code & MoAI ADK(Agent Development Kit)
    734
  8. Curiousity if OpenAI Engineers use Cursor.ai
    6691
  9. Building my own ChatGPT based on SageMaker and Milvus that is specialized to Shopping Mall
    272
  10. Your Blueprint for an LLM & Vector DB Insurance Product Q&A
    263
  11. The Core of Vector Databases: Embeddings and LLM Dependency
    260
  12. Original Purpose of Markdown File - why Engineers love it?
    767
  13. Switch to using Claude Sonnet 4 (Claude-4-sonnet) in the Amazon Q Developer CLI
    642
  14. Amazon Q CLI for Debugging - What You Can Do
    442
  15. Vibe coding with Amazon Q in CLI combined with Claud AI Sonet 4
    471
  16. Learn SLM if you have interent in the next after LLM
    4861
  17. VLM vs. LLM: How Vision-Language Models Are Revolutionizing Real-Time Media Processing
    39
  18. Why Reranking is Crucial for RAG and Agentic AI Systems?
    269
  19. Technical Hierarchy of AI Agents
    817
  20. MCP vs A2A
    600
  21. Vulnerabilities of MCP
    589
  22. The Revenge of the Junior Developer
    2,294
  23. A Complete Guide to LLM Dataset Formats: From Pre-Training to DPO in JSONL
    212
  24. Comparison of ChatGPT, Gemini, and Grok
    562
  25. MLOps Explained: Spark, Flink, and Reference Architecture Deep Dive
    244
  26. AI-based Image Creation based on Bing Image Creator
    987
  27. ChatGPT App (flowGPT) to create images with text
    1,038
  28. TikTok's Recommendation System - Monolith
    295
  29. Things to Know for AI-driven, Multimodal Content Personalization.
    201
  30. Deep Dive into Vector Databases: Understanding Collections (Not Tables) and Embeddings
    235
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    42
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    36
  3. How do I create animated background for Google Meet?
    21,044
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    252
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    94
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  7. Array of arguments passed to script in PHP
    90
  8. Invalid Auction Storms in Ad Tech
    98
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    202
  10. The Two Clocks of Ad Server Architecture
    71
  11. Frequency Cap Architecture Overview
    515
  12. Collecting Proof-of-Play from 100,000 Screens
    146
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    288
  14. What is RedisVL?
    109
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    232
  16. TPU & GPU Cluster Management Tools
    245
  17. The Concept of Scaffolding in AI Agents
    234
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    583
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    259
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    339
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    202
  22. Machine Learning: Training vs. Ranking
    222
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    222
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  25. Designing a Data Curation System Around a Vector Database
    221
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    257
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    196
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    219
  30. Understanding Data Lineage
    263