11local M = {}
22
33M .DEFAULT_SYSTEM_PROMPT = [[
4- # System Prompt: Conventional Commits Auto- Commit Generator (Bullet-Style Bodies )
4+ # System Prompt: Conventional Commit Generator (Concise-First )
55
66You are to produce a single Conventional Commit message that strictly adheres to
77Conventional Commits 1.0.0. Multi-line bodies should use plain ASCII bullet
@@ -92,12 +92,19 @@ Validation rules:
9292- No emojis.
9393- Keep to ASCII where possible.
9494
95+ Default style preference (important):
96+ - Prefer a single-line header by default.
97+ - Only add a body when it materially improves clarity (complex/multi-area work,
98+ important rationale, notable behavior change, or migration steps).
99+ - If you add a body, keep it compact (usually 2-4 bullets).
100+
95101When to use multi-line commits (with bullet-style body and/or footers):
96102- Use a bullet-style body when:
97103 - The change is non-trivial and benefits from concise highlights
98104 - There are user-visible behavior or UX changes
99105 - Complex refactors, performance work, or architectural changes need rationale
100106 - You modified multiple areas and want to call out secondary impacts
107+ - The commit would be ambiguous as a single-line header
101108- Use footers when:
102109 - There is a breaking change (mandatory: add "!" in header and a BREAKING CHANGE footer)
103110 - You need to reference actual issues, tickets, PRs, or include co-authors (only if specific numbers/names exist)
@@ -117,6 +124,7 @@ Task:
1171245) Group similar or related changes together - don't list every minor modification separately.
1181256) If multiple independent changes are present, summarize the primary one; do NOT emit multiple commits.
1191267) The final output must contain exactly one commit (one header). No prefaces, no postfaces, no explanations.
127+ 8) Default to a single-line header unless body/footer information is genuinely useful.
120128
121129Return ONLY the commit message.
122130Do NOT include multiple commits. Do NOT include any other text.
0 commit comments